From bchacc at san.rr.com Tue Mar 1 00:05:31 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 28 Feb 2005 22:05:31 -0800 Subject: [AccessD] VSTO References: <0ICN003BBQVKX9@l-daemon> Message-ID: <041301c51e24$ad08faf0$6901a8c0@HAL9002> Jim: Thanks. I may take you up on it. But I will have to bite the bullet sometime and get VSTO and the Sagekey script. Have you made a run time from A2003 and VSTO? How big is it? regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 28, 2005 9:21 PM Subject: RE: [AccessD] VSTO > Hi Rocky: > > I do have a beta 2003 VSTO version and can whip up a compile for you. I > can > try to automate something that you can access remotely...off list. Send me > a > message if you require same. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, February 28, 2005 8:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VSTO > > Jim: > > Looks lie it will once I get rolling with VSTO. Actually, I don't even > want > > to run VSTO. All I want to do is make a run-time with the Sagekey script. > I guess VSTO has to be present to do that. > > Rocky > > ----- Original Message ----- > From: "Jim Lawrence" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 28, 2005 12:29 PM > Subject: RE: [AccessD] VSTO > > >> Hi Rocky: >> >> Would this help? >> http://blogs.msdn.com/eric_carter/archive/2005/02/21/377691.aspx >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >> Beach Access Software >> Sent: Monday, February 28, 2005 12:21 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VSTO >> >> Charlotte: >> >> Good list. Bad news. Oh well. There's a rumor that VSTO might be in >> the >> Action Pack quarterly update on April 1. >> >> Rocky >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Monday, February 28, 2005 9:33 AM >> Subject: RE: [AccessD] VSTO >> >> >>> Rocky, >>> >>> The products that qualify you for upgrade are listed at >>> http://msdn.microsoft.com/howtobuy/upgrade/#vsto >>> >>> My understanding is that the Action Pack does not qualify you for >>> upgrade pricing of anything, nor does MSDN, etc. I think you have to >>> have a retail version to qualify. I've got XP developer and VB 6 Pro, >>> so I would have qualified for the upgrade two ways. >>> >>> Charlotte Foust >>> >>> >>> -----Original Message----- >>> From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >>> Sent: Friday, February 25, 2005 6:07 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VSTO >>> >>> >>> Eric: >>> >>> I don't really want to use it. But I wonder if I load it then I can buy >>> the >>> VSTO upgrade instead of the full boat - ~$165 vs. ~$480. >>> >>> Rocky >>> >>> ----- Original Message ----- >>> From: "Eric Barro" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Friday, February 25, 2005 4:31 PM >>> Subject: RE: [AccessD] VSTO >>> >>> >>>> Rocky, >>>> >>>> The VB.NET that M$ gave out is actually Visual Studio.NET albeit with >>>> one >>>> dialect - VB.NET. That limitation and the fact that you don't have the >>> C# >>>> language support plus the inability to connect to SQL server db via >>> the >>>> wizard are the only limitations I've seen so far. >>>> >>>> Eric >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin >>> >>>> - Beach Access Software >>>> Sent: Friday, February 25, 2005 11:33 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] VSTO >>>> >>>> >>>> Yeah, I got my vb.net that way, too. Now I need VSTO. >>>> >>>> Rocky >>>> >>>> ----- Original Message ----- >>>> From: "Eric Barro" >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Friday, February 25, 2005 10:45 AM >>>> Subject: RE: [AccessD] VSTO >>>> >>>> >>>>> M$ had a page (at one point in time) that you could go to where you >>>>> could watch several presentations that would qualify you for a copy >>>>> of VB.NET or the training manuals for VB.NET. I got my copy that way. >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky >>>>> Smolin - Beach Access Software >>>>> Sent: Friday, February 25, 2005 8:55 AM >>>>> To: AccessD at databaseadvisors.com >>>>> Subject: [AccessD] VSTO >>>>> >>>>> >>>>> Dear List: >>>>> >>>>> A while back I got the Promo version of Visual Basic.Net through a >>>>> lead >>>>> on >>>>> this list. Another lister I know, subsequently got VSTO sent to him >>>>> gratis. But he doesn't know why. Does anyone know anything about >>> this? >>>>> >>>>> Thanks and regards, >>>>> >>>>> Rocky Smolin >>>>> Beach Access Software >>>>> http://www.e-z-mrp.com >>>>> 858-259-4334 >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>> >>> >>>> >>> >>>> >>>> ---------------------------------------------------------------- >>>> The information contained in this e-mail message and any file, >>> document, >>>> previous e-mail message and/or attachment transmitted >>>> herewith is confidential and may be legally privileged. It is intended >>> >>>> solely for the private use of the addressee and must not be >>>> disclosed to or used by anyone other than the addressee. If you >>> receive >>>> this transmission by error, please immediately notify the >>>> sender by reply e-mail and destroy the original transmission and its >>>> attachments without reading or saving it in any manner. If you >>>> are not the intended recipient, or a person responsible for delivering >>> it >>>> to the intended recipient, you are hereby notified that any >>>> disclosure, copying, distribution or use of any of the information >>>> contained in or attached to this transmission is STRICTLY >>>> PROHIBITED. E-mail transmission cannot be guaranteed to be secure or >>> error >>>> free as information could be intercepted, corrupted, >>>> lost, destroyed, arrive late or incomplete, or contain viruses. >>>> The sender therefore does not accept liability for any errors or >>> omissions >>>> in the contents of this message, which arise as a result of >>>> email transmission. Users and employees of the e-mail system are >>> expressly >>>> required not to make defamatory statements and not >>>> to infringe or authorize any infringement of copyright or any other >>> legal >>>> right by email communications. Any such communication is >>>> contrary to company policy. The company will not accept any liability >>> in >>>> respect of such communication. >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From handyman at actcom.co.il Tue Mar 1 00:29:22 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 08:29:22 +0200 Subject: [AccessD] "class not registered" error Message-ID: <5.1.0.14.2.20050301082307.00a9e648@pop5.actcom.net.il> Hi all, I am trying to use the wizard to add a combo or list box to a form. Right after I select the query to use for my data, a "class not registered" error is returned. I am using access 2000, windows2000, and downloaded the latest patches, but this didn't help. When I try the same process on my access2002/xp operating system, it works fine. Can anyone give me a clue as to what's going on? Thanks Gershon From accessd666 at yahoo.com Tue Mar 1 00:52:34 2005 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 28 Feb 2005 22:52:34 -0800 (PST) Subject: [AccessD] Link CSV file Message-ID: <20050301065234.25310.qmail@web90110.mail.scd.yahoo.com> Hi group, I need to link a csv file in Access 2000. Does anybody know how I can achieve this? Thnx Sander __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ From Erwin.Craps at ithelps.be Tue Mar 1 05:16:15 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 1 Mar 2005 12:16:15 +0100 Subject: [AccessD] "class not registered" error Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5828@stekelbes.ithelps.local> CLass not registered and the listboxes in the wizard are empty?! Ha, had this last week or so after an Office update or a fix and repair which I did because the office update or something. Don't remember anymore what came first... The solution is to remove and reinstall the Access part of you office installation (removing the whole office is not necesary). Fix And repair does not work. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Tuesday, March 01, 2005 7:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] "class not registered" error Hi all, I am trying to use the wizard to add a combo or list box to a form. Right after I select the query to use for my data, a "class not registered" error is returned. I am using access 2000, windows2000, and downloaded the latest patches, but this didn't help. When I try the same process on my access2002/xp operating system, it works fine. Can anyone give me a clue as to what's going on? Thanks Gershon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jarus at amerinet-gpo.com Tue Mar 1 06:13:24 2005 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Tue, 01 Mar 2005 06:13:24 -0600 Subject: [AccessD] Link CSV file Message-ID: You do that exactly as you would link any other file/table. Select File - Get External Data - Link Tables; select Text Files from Files of Type dropdown and select the appropriate file. That's all there is to it. Terri Jarus Vice President, Contract Services jarus at amerinet-gpo.com 314-542-1902 >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> Hi group, I need to link a csv file in Access 2000. Does anybody know how I can achieve this? Thnx Sander __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2005 Amerinet 1nc. From garykjos at gmail.com Tue Mar 1 07:28:13 2005 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 1 Mar 2005 07:28:13 -0600 Subject: [AccessD] Is the DBA Website down? Message-ID: I can't get it to some up and a few other people on the OT list have said the same thing. -- Gary Kjos garykjos at gmail.com From andy at minstersystems.co.uk Tue Mar 1 06:38:39 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 1 Mar 2005 13:38:39 +0100 Subject: [AccessD] Is the DBA Website down? Message-ID: <20050301133836.3EE992BFB4B@smtp.nildram.co.uk> Looks like it to me. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: maintenance at databaseadvisors.com , Access Developers discussion and problem solving Subject: [AccessD] Is the DBA Website down? Date: 01/03/05 13:31 > > I can't get it to some up and a few other people on the OT list have > said the same thing. > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From handyman at actcom.co.il Tue Mar 1 07:42:02 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 15:42:02 +0200 Subject: [AccessD] "class not registered" error In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5828@stekelbes.ithelps.l ocal> Message-ID: <5.1.0.14.2.20050301153940.00aa69d0@pop5.actcom.net.il> I did a repair on office, and it didn't help. I then deleted the entire office, and reinstalled it. I am still getting this class error. Any other thoughts? Thanks.. At 12:16 PM, 03/01/2005 +0100, you wrote: >CLass not registered and the listboxes in the wizard are empty?! > >Ha, had this last week or so after an Office update or a fix and repair >which I did because the office update or something. Don't remember >anymore what came first... > >The solution is to remove and reinstall the Access part of you office >installation (removing the whole office is not necesary). >Fix And repair does not work. > >Erwin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >handyman at actcom.co.il >Sent: Tuesday, March 01, 2005 7:29 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] "class not registered" error > >Hi all, > >I am trying to use the wizard to add a combo or list box to a form. >Right after I select the query to use for my data, a "class not >registered" error is returned. I am using access 2000, windows2000, and >downloaded the latest patches, but this didn't help. > >When I try the same process on my access2002/xp operating system, it >works fine. > >Can anyone give me a clue as to what's going on? > >Thanks > >Gershon > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From Gustav at cactus.dk Tue Mar 1 08:32:29 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 15:32:29 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav From dwaters at usinternet.com Tue Mar 1 08:44:59 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 1 Mar 2005 08:44:59 -0600 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server In-Reply-To: <14254467.1109647075948.JavaMail.root@sniper13> Message-ID: <000601c51e6d$3e8b1ce0$123a11d8@danwaters> Marty, Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint uses an optimistic record locking scheme. This would let me use an Access database as read-write for one location and read-only for any others. Still, that could be useful in some situations. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, February 28, 2005 9:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server How Access easily hooks into Sharepoint 2.0 which I think maybe one way MS is proceeding to allow you to get at a large document taxonomy. Here is how to quickly link Sharepoint Lists as Access Tables with 2003 and I think Access XP. File-->Get External Tables--> Link Tables brings up Link Form at bottom select File Types for "Windows Sharepoint Services" This brings up Link to Windows SharePoint Services Wizard Here you enter the http:// url of the site After that it links the Sharepoint Lists (think of them as access tables) If you open up a list (err a table) and there is at least one entry say a note or message click on the blue edit field This will automatically bring up an editor for that message in an IE window. Gunderloy on Access and Sharepoint http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/ht ml/odc_OfOfficeSysandWSS.asp Jim DeMarco wrote: >Hello All, > >First, if you sign up for the free trial make sure you get a password soon after signing up. I had to contact them for one (which I couldn't do as there was no contact info to be found on the site) and lost over a week of my trial even though I asked for an extension. I got a marketing call or e-mail (can't remember which) so I took the opportunity to tell the rep to get me set up and quick! > >Next, Sharepoint Services out of the box is a pretty cool tool. You can't ask for more than a place to collaborate and share contacts, docs, links, etc that requires no programming and easy admin. We just started using it within our dept. as an eval before making it available to various workgroups/departments. If you use Office 2003 it's even better with integration to open/edit documents in the doc library, the ability to see who's on-line. Plenty of smart tag activity too that lets you send a site member e-mail, get notifications if items are added or changed in various section (user definable too!). > >So far I'm loving it! > >The Portal Server adds the ability to customize or add your own version of some of the main sections plus I think it has advanced user management. > >HTH, > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Sunday, February 27, 2005 3:30 PM >To: accessd at databaseadvisors.com; dba-tech at databaseadvisors.com >Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server > > >Hi Marty and Dan > >Here's link which describes what's "Portal" and what's not: > > http://msdn.microsoft.com/library/en-us/dnanchor/html/Sharepoint.asp > > >Perhaps the "Portal" is what is charged heavily for while the >"Services" are free? > >/gustav > > > >>>>Gustav at cactus.dk 27-02-2005 20:13:36 >>> >>>> >>>> >Hi Marty > >Strange. Are you sure there is only one version? Perhaps like for >Exchange, an "Enterprise" version is available too? > >/gustav > > > >>>>martyconnelly at shaw.ca 27-02-2005 19:35:26 >>> >>>> >>>> >Microsoft Office SharePoint Portal Server 2003 (the current release) >is > >a Content Management System which belongs to the Microsoft Office >family. It is a collaborative portal application based on the Windows >SharePoint >Services platform, a free component of Windows Server 2003. Cheapest >form is Win 2003 server Small Business Version. I think based on WEBDav > >protocol. You also have to decide on using Windows SharePoint Services >and SharePoint Portal Server 2003, alone or in combination. >See to chose a suitable sharepoint version >http://www.gotsharepoint.com/ >or here >http://www.gotsharepoint.com/advisor/default.asp > >http://office.microsoft.com/en-ca/FX010909721033.aspx > >Content Management Systems >CMSs allow end-users (typically authors) to create new content in the >form of documents. These document may be entered as plain text or >perhaps >with markup to manage document layout and structure. The system then >uses rules to style the article, which separates the display from the >content, which has a number of advantages when trying to get many >articles to conform to a consistent "look and feel". The system then >adds the articles to a larger collection for publishing. The systems >also often include some sort of concept of the workflow for the target > >users, which defines how the new content is to be routed around the >system. A good example of a CMS would be a system for managing a >newspaper. In such a system the reporters type articles into the >system, which stores them in a database. Along with the article the >system stores >attributes, including keywords, the date and time of filing, the >reporter's name, >etc. The system then uses these attributes to find out, given its >workflow >rules, who should proofread the article, approve it for publication, >edit it, >etc. Later the editors can choose which articles to include (or ignore) >in an edition >of the newspaper, which is then laid out and printed automatically. >You >can also add wikki's blogs forums etc. > > >Gustav Brock wrote: > > > >>Hi Dan >> >>I don't have the exact cost. However, it is about USD 6000 for the >>server and maybe USD 100 for each seat (CAL). For a large company >> >> >this > > >>is peanuts but for our small clients it is prohibitive. >> >>As John says, it is in the Action Pack which we do have, but we >> >> >haven't > > >>bothered installing it due to it's very limited potential caused by >> >> >the > > >>license fees. >> >>/gustav >> >> >> >> >> >>>>>dwaters at usinternet.com 27-02-2005 17:18:04 >>> >>>>> >>>>> >>>>> >>>>> >>Hi Gustav, >> >>Do you know what the license costs would be? This could make the >>difference for my customer. >> >>Thanks, >>Dan >> >>-----Original Message----- >>From: dba-tech-bounces at databaseadvisors.com >>[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Sunday, February 27, 2005 9:26 AM >>To: dba-tech at databaseadvisors.com >>Subject: Re: [dba-Tech] Overview of Sharepoint Server >> >>Hi Dan >> >>One of the cons is the high license costs. >> >>I haven't been working with it. >>Does anyone know of a public Sharepoint server you can connect to and >>do live test? >> >>/gustav >> >> >> >> >> >>>>>dwaters at usinternet.com 26-02-2005 17:08:41 >>> >>>>> >>>>> >>>>> >>>>> >>I have a customer I've been trying to get a project started with for >>about 9 months now (large company). Two weeks ago we had what was >>supposed to >>be the last 'approval' meeting with a group of people from various IT >>functions. Yesterday my customer told me that a higher-level IT >>manager has suggested that he look at Sharepoint Server as a possible >>alternative before he makes a decision on what technology to use. >> >>So - can someone point me to where I can read a good overview of what >>Sharepoint does? What are it's pros/cons, etc. Beyond MS marketing >> >> >- > > >>how have people really used it to their advantage and what should it >>not be used for? >> >>Thanks! >>Dan Waters >>ProMation Systems >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 1 08:47:25 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 1 Mar 2005 06:47:25 -0800 (PST) Subject: [AccessD] Link CSV file in VBA In-Reply-To: Message-ID: <20050301144725.99178.qmail@web90106.mail.scd.yahoo.com> Terri, my mistake...I wasn't clear with my question. What I meant was: I need to link a csv file in Access 2000 USING VBA does anybody know how to do this? Background info: I need to run 68 reports. They all have 1 or more csv as input source. At this point we need to manually link them as described by terri. This is very time consuming. I want to create something so that the user selects a report and then automagically the following things happen: - the required csv files are linked (or imported) - the required queries are started - the created table (via the queries) is exported to Excel. That's all. Sander --- Terri Jarus wrote: > You do that exactly as you would link any other > file/table. Select File > - Get External Data - Link Tables; select Text Files > from Files of Type > dropdown and select the appropriate file. > > That's all there is to it. > > Terri Jarus > Vice President, Contract Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> > > Hi group, > > I need to link a csv file in Access 2000. > > Does anybody know how I can achieve this? > > Thnx > > Sander > > > > __________________________________ > Do you Yahoo!? > Yahoo! Sports - Sign up for Fantasy Baseball. > http://baseball.fantasysports.yahoo.com/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2005 Amerinet 1nc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From ssharkins at bellsouth.net Tue Mar 1 08:50:18 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 1 Mar 2005 09:50:18 -0500 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server In-Reply-To: <000601c51e6d$3e8b1ce0$123a11d8@danwaters> Message-ID: <20050301145019.TYOS2068.imf22aec.mail.bellsouth.net@SUSANONE> I think Martin's writing a book on SharePoint -- you might ring his chimes. Susan H. Marty, Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint uses an optimistic record locking scheme. This would let me use an Access database as read-write for one location and read-only for any others. Still, that could be useful in some situations. Dan Waters ProMation Systems From andy at minstersystems.co.uk Tue Mar 1 07:57:10 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 1 Mar 2005 14:57:10 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: <20050301145707.AE7572BFE38@smtp.nildram.co.uk> Hi Gustav I had a go at this ages ago. The project never happened so I didn't take it very far but IIRC what I did (and it worked as far as it went) was create an HTML document as my template then, in Access, I read that in line by line as a text file, building up a string, replaced a recognisable bit of text with the required name, then plugged the string into the Outlook email's .HTMLBody. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Date: 01/03/05 14:35 > > Hi all > > The client wish to move from general mass e-mail (Dear customer ..) in > plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML > format. > > I know all about getting Access to generate e-mails and have them > mailed but how to create the body of the e-mail in HTML format? Also, > the e-mail must contain a part in plain text which will be shown to > those receivers not having a mail client with HTML reader. > > My thought is to have the client's advertising agency creating a > template with a "field" - some unique search word which I can search for > and replace with the actual customer's name as it carries no purpose to > have the Access app build the e-mail from scratch. > > Has anyone done something similar? > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From mwp.reid at qub.ac.uk Tue Mar 1 09:01:40 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 01 Mar 2005 15:01:40 +0000 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: LOL I have been discussing some stuff of list. But in general SP also contains its own security systemn with lists etc. I am doing two major reviews for a publisher on Sharepoint. I also did a section on FrontPage 203 for Microsoft and I know there are a few articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul Litwin wrote an article at the same time as me for them which dealt with Web Parts/XML and Access. Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint services and SharePoint Portal Server. The Portal Server provides great indexing and searching capability for Sharepoint Services. But the main development tool is Web parts. Web parts provide descrite functionality for example a set of data from SQL Server, DB2 etc. ALso provides a single sign on cabability for multiple systems. Martin On Mar 1 2005, Susan Harkins wrote: > I think Martin's writing a book on SharePoint -- you might ring his > chimes. > > Susan H. > > Marty, > > Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint > uses an optimistic record locking scheme. This would let me use an Access > database as read-write for one location and read-only for any others. > > Still, that could be useful in some situations. > > Dan Waters > ProMation Systems > > -- Martin WP Reid Analyst Information Services Queens University Belfast From Lambert.Heenan at AIG.com Tue Mar 1 09:08:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 1 Mar 2005 10:08:56 -0500 Subject: [AccessD] "class not registered" error Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D22@xlivmbx21.aig.com> Check this... http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of > handyman at actcom.co.il > Sent: Tuesday, March 01, 2005 8:42 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] "class not registered" error > > I did a repair on office, and it didn't help. I then deleted the entire > office, and reinstalled it. I am still getting this class error. > > Any other thoughts? > > Thanks.. > > At 12:16 PM, 03/01/2005 +0100, you wrote: > >CLass not registered and the listboxes in the wizard are empty?! > > > >Ha, had this last week or so after an Office update or a fix and repair > >which I did because the office update or something. Don't remember > >anymore what came first... > > > >The solution is to remove and reinstall the Access part of you office > >installation (removing the whole office is not necesary). > >Fix And repair does not work. > > > >Erwin > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >handyman at actcom.co.il > >Sent: Tuesday, March 01, 2005 7:29 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] "class not registered" error > > > >Hi all, > > > >I am trying to use the wizard to add a combo or list box to a form. > >Right after I select the query to use for my data, a "class not > >registered" error is returned. I am using access 2000, windows2000, and > >downloaded the latest patches, but this didn't help. > > > >When I try the same process on my access2002/xp operating system, it > >works fine. > > > >Can anyone give me a clue as to what's going on? > > > >Thanks > > > >Gershon > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > Gershon Markowitz > mailto:Handyman at actcom.co.il > http://www.yadchaimtzvi.org > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Mar 1 09:13:32 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 1 Mar 2005 10:13:32 -0500 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2CF2@TTNEXCHCL2.hshhp.com> Are we able to create and use custom web parts if we are only using Sharepoint Services (not Portal Server)? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Tuesday, March 01, 2005 10:02 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server LOL I have been discussing some stuff of list. But in general SP also contains its own security systemn with lists etc. I am doing two major reviews for a publisher on Sharepoint. I also did a section on FrontPage 203 for Microsoft and I know there are a few articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul Litwin wrote an article at the same time as me for them which dealt with Web Parts/XML and Access. Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint services and SharePoint Portal Server. The Portal Server provides great indexing and searching capability for Sharepoint Services. But the main development tool is Web parts. Web parts provide descrite functionality for example a set of data from SQL Server, DB2 etc. ALso provides a single sign on cabability for multiple systems. Martin On Mar 1 2005, Susan Harkins wrote: > I think Martin's writing a book on SharePoint -- you might ring his > chimes. > > Susan H. > > Marty, > > Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint > uses an optimistic record locking scheme. This would let me use an Access > database as read-write for one location and read-only for any others. > > Still, that could be useful in some situations. > > Dan Waters > ProMation Systems > > -- Martin WP Reid Analyst Information Services Queens University Belfast -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Developer at UltraDNT.com Tue Mar 1 09:13:26 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Tue, 1 Mar 2005 10:13:26 -0500 Subject: [AccessD] Link CSV file in VBA In-Reply-To: <20050301144725.99178.qmail@web90106.mail.scd.yahoo.com> Message-ID: <001801c51e71$3ae48640$0700a8c0@COA3> All do-able with DoCmd ... Dig in help for all paramters yu will need, something like: Sub ImportExport DoCmd.TransferText acLinkDelim, , "tblCSV", "c:\temp\yada-yada.xls" DoCmd.RunSQL "query name" DoCmd.TransferText acExportDelim, , , "c:\temp\blah-blah.xls" End Sub Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, March 01, 2005 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link CSV file in VBA Terri, my mistake...I wasn't clear with my question. What I meant was: I need to link a csv file in Access 2000 USING VBA does anybody know how to do this? Background info: I need to run 68 reports. They all have 1 or more csv as input source. At this point we need to manually link them as described by terri. This is very time consuming. I want to create something so that the user selects a report and then automagically the following things happen: - the required csv files are linked (or imported) - the required queries are started - the created table (via the queries) is exported to Excel. That's all. Sander --- Terri Jarus wrote: > You do that exactly as you would link any other > file/table. Select File > - Get External Data - Link Tables; select Text Files > from Files of Type > dropdown and select the appropriate file. > > That's all there is to it. > > Terri Jarus > Vice President, Contract Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> > > Hi group, > > I need to link a csv file in Access 2000. > > Does anybody know how I can achieve this? > > Thnx > > Sander > > > > __________________________________ > Do you Yahoo!? > Yahoo! Sports - Sign up for Fantasy Baseball. > http://baseball.fantasysports.yahoo.com/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > ------------------------------------------------------------------------ --- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2005 Amerinet 1nc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail -- 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 Mar 1 09:19:55 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 01 Mar 2005 15:19:55 +0000 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: Yip Heres the article on Access/XML FrontPage 2003 and Sharepoint http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_fp2003_ta/html/odc_fpbldgxmlwebs.asp Martin On Mar 1 2005, Jim DeMarco wrote: > Are we able to create and use custom web parts if we are only using > Sharepoint Services (not Portal Server)? > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Tuesday, March 01, 2005 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server > > > LOL > > I have been discussing some stuff of list. > > But in general SP also contains its own security systemn with lists etc. > I am doing two major reviews for a publisher on Sharepoint. I also did a > section on FrontPage 203 for Microsoft and I know there are a few > articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul > Litwin wrote an article at the same time as me for them which dealt with > Web Parts/XML and Access. > > Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint > services and SharePoint Portal Server. The Portal Server provides great > indexing and searching capability for Sharepoint Services. But the main > development tool is Web parts. Web parts provide descrite functionality > for example a set of data from SQL Server, DB2 etc. ALso provides a > single sign on cabability for multiple systems. > > Martin > > > > On Mar 1 2005, Susan Harkins wrote: > > > I think Martin's writing a book on SharePoint -- you might ring his > > chimes. > > > > Susan H. > > > > Marty, > > > > Under the paragraph Using Sharepoint Lists, Mike states that > > Sharepoint > uses an optimistic record locking scheme. This would let > > me use an Access database as read-write for one location and read-only > > for any others. > > > > Still, that could be useful in some situations. > > > > Dan Waters > > ProMation Systems > > > > > > -- Martin WP Reid Analyst Information Services Queens University Belfast From mwp.reid at qub.ac.uk Tue Mar 1 09:21:58 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 01 Mar 2005 15:21:58 +0000 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: Jim heres another article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/pjsdk/html/pjsdkWebpInstallAndWSS_HV01100336.asp Martin On Mar 1 2005, Jim DeMarco wrote: > Are we able to create and use custom web parts if we are only using > Sharepoint Services (not Portal Server)? > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Tuesday, March 01, 2005 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server > > > LOL > > I have been discussing some stuff of list. > > But in general SP also contains its own security systemn with lists etc. > I am doing two major reviews for a publisher on Sharepoint. I also did a > section on FrontPage 203 for Microsoft and I know there are a few > articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul > Litwin wrote an article at the same time as me for them which dealt with > Web Parts/XML and Access. > > Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint > services and SharePoint Portal Server. The Portal Server provides great > indexing and searching capability for Sharepoint Services. But the main > development tool is Web parts. Web parts provide descrite functionality > for example a set of data from SQL Server, DB2 etc. ALso provides a > single sign on cabability for multiple systems. > > Martin > > > > On Mar 1 2005, Susan Harkins wrote: > > > I think Martin's writing a book on SharePoint -- you might ring his > > chimes. > > > > Susan H. > > > > Marty, > > > > Under the paragraph Using Sharepoint Lists, Mike states that > > Sharepoint > uses an optimistic record locking scheme. This would let > > me use an Access database as read-write for one location and read-only > > for any others. > > > > Still, that could be useful in some situations. > > > > Dan Waters > > ProMation Systems > > > > > > -- Martin WP Reid Analyst Information Services Queens University Belfast From bchacc at san.rr.com Tue Mar 1 09:32:04 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 07:32:04 -0800 Subject: [AccessD] Link CSV file in VBA References: <001801c51e71$3ae48640$0700a8c0@COA3> Message-ID: <009501c51e73$d28b3d20$6501a8c0@HAL9002> Sander: Although not as quick and elegant as Steve's solution, I usually read the file into a temporary table. It's easier to work with that way, and I have found in the past that the TrasnferText command was not, shall we say, robust. Seemed unreliable but I can't remember exactly what it was that gave me fits at the time. Open strFolder & txtPatientName & "2.txt" For Input As #1 Do While Not EOF(1) Input #1, strQID, strRAnswer, gstrBackQID rstResponses.AddNew rstResponses!fldPatientID = lngPatientID rstResponses!fldQID = strQID rstResponses!fldRAnswer = strRAnswer rstResponses!fldBackQID = gstrBackQID rstResponses.Update Loop HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Steve Conklin (Developer at UltraDNT)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 7:13 AM Subject: RE: [AccessD] Link CSV file in VBA > All do-able with DoCmd ... > > Dig in help for all paramters yu will need, something like: > > Sub ImportExport > > DoCmd.TransferText acLinkDelim, , "tblCSV", "c:\temp\yada-yada.xls" > DoCmd.RunSQL "query name" > DoCmd.TransferText acExportDelim, , , "c:\temp\blah-blah.xls" > > End Sub > > > Hth > Steve > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der > Sent: Tuesday, March 01, 2005 9:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Link CSV file in VBA > > > Terri, > > my mistake...I wasn't clear with my question. What I > meant was: > I need to link a csv file in Access 2000 USING VBA > does anybody know how to do this? > > Background info: > I need to run 68 reports. They all have 1 or more csv > as input source. At this point we need to manually > link them as described by terri. This is very time > consuming. I want to create something so that the user > selects a report and then automagically the following > things happen: > - the required csv files are linked (or imported) > - the required queries are started > - the created table (via the queries) is exported to > Excel. > > That's all. > > Sander > > --- Terri Jarus wrote: > >> You do that exactly as you would link any other >> file/table. Select File >> - Get External Data - Link Tables; select Text Files >> from Files of Type >> dropdown and select the appropriate file. >> >> That's all there is to it. >> >> Terri Jarus >> Vice President, Contract Services >> jarus at amerinet-gpo.com >> 314-542-1902 >> >> >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> >> >> Hi group, >> >> I need to link a csv file in Access 2000. >> >> Does anybody know how I can achieve this? >> >> Thnx >> >> Sander >> >> >> >> __________________________________ >> Do you Yahoo!? >> Yahoo! Sports - Sign up for Fantasy Baseball. >> http://baseball.fantasysports.yahoo.com/ >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> > ------------------------------------------------------------------------ > --- >> This email and any files transmitted with it are >> confidential and >> intended solely for the use of the individuals or >> entities to whom they >> are addressed. If you have received this email in >> error please return >> it to the sender, and erase any copies thereof. >> Copyright 2005 Amerinet 1nc. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 1 09:53:16 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 07:53:16 -0800 Subject: [AccessD] HTML personalized mass mail In-Reply-To: Message-ID: <0ICO00K2UK602U@l-daemon> Hi Gustav: Andy and I put together a mini-app on the DBA site when creating a web-ring. We used ASP-Mail, a free, or a least it was, mail server/client package. I personally use PHP mail as the price is right and it can be ran on anything that can run IIS. IIS use to be able to downloaded for free. Since XP Professional and 2000 it is no longer available but it is part of those OSs. I use to run IIS on my Win98SE box until it required a rebuild and never bothered to install it again. The mailing part is simple to setup and only requires about 30 lines of code to run. If you want to go that route I can send you the code. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 6:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Tue Mar 1 10:02:27 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 18:02:27 +0200 Subject: [AccessD] "class not registered" error In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D22@xlivmbx21.aig.com > Message-ID: <5.1.0.14.2.20050301175857.031a7060@pop5.actcom.net.il> This also didn't help the cause. I'm getting so frustrated with this, that maybe I'll just upgrade to access 2002. I hope I don't open another can of worms doing this :) At 10:08 AM, 03/01/2005 -0500, you wrote: >Check this... > >http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 > >Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of > > handyman at actcom.co.il > > Sent: Tuesday, March 01, 2005 8:42 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] "class not registered" error > > > > I did a repair on office, and it didn't help. I then deleted the entire > > office, and reinstalled it. I am still getting this class error. > > > > Any other thoughts? > > > > Thanks.. > > > > At 12:16 PM, 03/01/2005 +0100, you wrote: > > >CLass not registered and the listboxes in the wizard are empty?! > > > > > >Ha, had this last week or so after an Office update or a fix and repair > > >which I did because the office update or something. Don't remember > > >anymore what came first... > > > > > >The solution is to remove and reinstall the Access part of you office > > >installation (removing the whole office is not necesary). > > >Fix And repair does not work. > > > > > >Erwin > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > >handyman at actcom.co.il > > >Sent: Tuesday, March 01, 2005 7:29 AM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] "class not registered" error > > > > > >Hi all, > > > > > >I am trying to use the wizard to add a combo or list box to a form. > > >Right after I select the query to use for my data, a "class not > > >registered" error is returned. I am using access 2000, windows2000, and > > >downloaded the latest patches, but this didn't help. > > > > > >When I try the same process on my access2002/xp operating system, it > > >works fine. > > > > > >Can anyone give me a clue as to what's going on? > > > > > >Thanks > > > > > >Gershon > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > Gershon Markowitz > > mailto:Handyman at actcom.co.il > > http://www.yadchaimtzvi.org > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From Gustav at cactus.dk Tue Mar 1 10:11:29 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 17:11:29 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi Andy OK, in that way the file for the body - including pictures - can have any size. The only issue I can see at the moment is, that "foreign" characters (non US ASCII) are encoded in HTML. How would I do that encoding? It is relevant as names here often contain strange characters. Or would it be enough just to specify the character set, which is "ISO-8859-1", as the default for the document? Then any special character can be "hardcoded" in the body. /gustav >>> andy at minstersystems.co.uk 01-03-2005 14:57:10 >>> Hi Gustav I had a go at this ages ago. The project never happened so I didn't take it very far but IIRC what I did (and it worked as far as it went) was create an HTML document as my template then, in Access, I read that in line by line as a text file, building up a string, replaced a recognisable bit of text with the required name, then plugged the string into the Outlook email's .HTMLBody. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Date: 01/03/05 14:35 > > Hi all > > The client wish to move from general mass e-mail (Dear customer ..) in > plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML > format. > > I know all about getting Access to generate e-mails and have them > mailed but how to create the body of the e-mail in HTML format? Also, > the e-mail must contain a part in plain text which will be shown to > those receivers not having a mail client with HTML reader. > > My thought is to have the client's advertising agency creating a > template with a "field" - some unique search word which I can search for > and replace with the actual customer's name as it carries no purpose to > have the Access app build the e-mail from scratch. > > Has anyone done something similar? > > /gustav From Gustav at cactus.dk Tue Mar 1 10:18:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 17:18:34 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi Jim Thanks, nice offer, however this is a custom built CRM/DM Access application which works OK, just needs to be expanded with up-to-date mailing features. So I would prefer to keep as much as possible within the application. That should be possible as the mail body will be provided from an external source. /gustav >>> accessd at shaw.ca 01-03-2005 16:53:16 >>> Hi Gustav: Andy and I put together a mini-app on the DBA site when creating a web-ring. We used ASP-Mail, a free, or a least it was, mail server/client package. I personally use PHP mail as the price is right and it can be ran on anything that can run IIS. IIS use to be able to downloaded for free. Since XP Professional and 2000 it is no longer available but it is part of those OSs. I use to run IIS on my Win98SE box until it required a rebuild and never bothered to install it again. The mailing part is simple to setup and only requires about 30 lines of code to run. If you want to go that route I can send you the code. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 6:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav From andy at minstersystems.co.uk Tue Mar 1 09:19:10 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 1 Mar 2005 16:19:10 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: <20050301161907.7967B2C0054@smtp.nildram.co.uk> Sorry Gustav, can't help with that. Not an issue I've attempted to deal with. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] HTML personalized mass mail Date: 01/03/05 16:12 > > Hi Andy > > OK, in that way the file for the body - including pictures - can have > any size. > > The only issue I can see at the moment is, that "foreign" characters > (non US ASCII) are encoded in HTML. > How would I do that encoding? It is relevant as names here often > contain strange characters. > > Or would it be enough just to specify the character set, which is > "ISO-8859-1", as the default for the document? Then any special > character can be "hardcoded" in the body. > > /gustav > > >>> andy at minstersystems.co.uk 01-03-2005 14:57:10 >>> > Hi Gustav > I had a go at this ages ago. The project never happened so I didn't > take it > very far but IIRC what I did (and it worked as far as it went) was > create an > HTML document as my template then, in Access, I read that in line by > line as > a text file, building up a string, replaced a recognisable bit of text > with > the required name, then plugged the string into the Outlook email's > ..HTMLBody. > > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: [AccessD] HTML personalized mass mail > Date: 01/03/05 14:35 > > > > > Hi all > > > > The client wish to move from general mass e-mail (Dear customer ..) > in > > plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML > > format. > > > > I know all about getting Access to generate e-mails and have them > > mailed but how to create the body of the e-mail in HTML format? > Also, > > the e-mail must contain a part in plain text which will be shown to > > those receivers not having a mail client with HTML reader. > > > > My thought is to have the client's advertising agency creating a > > template with a &quot;field&quot; - some unique search word which I > can search for > > and replace with the actual customer's name as it carries no purpose > to > > have the Access app build the e-mail from scratch. > > > > Has anyone done something similar? > > > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From marklbreen at gmail.com Tue Mar 1 11:09:29 2005 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 1 Mar 2005 17:09:29 +0000 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland From cyx5 at cdc.gov Tue Mar 1 11:21:50 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 1 Mar 2005 12:21:50 -0500 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: Most clients own a copy of Access, so the .mde is easier to distribute. I have to use the runtime for clients in many countries who do not have Access installed on their system. I have been using the 2003 runtime and am happy with it, my users are not experiencing any problems. I know that when I test the runtime on my workstation, that has three versions of Access, that the next time I go to an app, it opens up in the version of the runtime that I last installed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 12:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Seeking your Access Runtime Experiences Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 1 11:48:02 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Mar 2005 09:48:02 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: We market commercial apps that all include the runtime, currently XP. We can't count on our clients having the correct version of Access or the correct service packs or the correct libraries, and the runtime handles that. If you are going to use the runtime, do NOT try to use MS tools to create the installer. Invest in Wise or InstallShield and the SageKey scripts. They will see to it that the app you design installs properly on the target machine. There are some things to watch out for, including the fact that you do not have access to all the built in menus in a runtime version and you can't use the property sheet to bind objects to custom menus and toolbars, you have to do it in code. Charlotte Foust -----Original Message----- From: Mark Breen [mailto:marklbreen at gmail.com] Sent: Tuesday, March 01, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] Seeking your Access Runtime Experiences Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 12:13:46 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 12:13:46 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: Hi Mark, If you know all of the machines your app will be running on have the same configuration and includes Access there would be little point to use runtime. I use a runtime via Wise Install Builder and Sagekey Access scripts for everything I distribute. Saves the client money, ensures you have what you need on the end user's machine and has generally saved me a lot of headaches over the last half dozen years. You do have to do a little prep for it for which the "/runtime" command line switch comes in handy. Making your own toolbars and menus is probably the biggest issue. I can offer no advice on native MS runtime building capability lately. All I can say it that it used to be poor. The issue that seems to pop up with most people is the cost of Wise/Sagekey. I have seen it as a cost savings but then I also can justify it because I'm the boss and would rather have money coming in than complaints :o) I can relay to you that one of my (very fiscally short-sighted) clients that I do general consulting for has an Access application that is not distributed via runtime. It has cost them more in the last year to purchase Office Pro than it would have cost to just buy the developer Wise/Sagekey and send them to training to learn how to use it. They have no reason to purchase Office Pro other than this app and it is over double the cost to have Office 2k3 Pro versus Office k3 Basic.) John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 11:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] Seeking your Access Runtime Experiences Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 1 12:45:56 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 10:45:56 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences References: Message-ID: <022f01c51e8e$e78130c0$6501a8c0@HAL9002> Mark: The target market for E-Z-MRP all seem to have Access. I've only run into one guy who didn't have it. However, I just got the Action Pack so I can support Access 2003 (while a 2000 mdb will run under 2003 the mde won't). I wanted it primarily for the Sleep Doctor which has to be a run time. So now I'm casting about for VSTO which I need to make a run time and will get the Sagekey script. Once that's done, I might make a run-time of E-Z-MRP but it will be a lot bigger package to send than the current package of mde, manual and sample databases which, zipped, are under 5MB. Rocky ----- Original Message ----- From: "Mark Breen" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 01, 2005 9:09 AM Subject: [AccessD] Seeking your Access Runtime Experiences > Hello All, > > As you may have seen, I am currently enjoying being up to my elbows in > Access 97, a database with 1000 linked oracle tables and hundreds of > forms, reports, queries, pass through queries, dynamically generated > SQL etc and of course loads of code, no errorhandling and no comments > and no documentation! > > A question arose a few days ago about migrating it to Access 2003 and > using the Runtime version. > > I have gone online and had a quick read of what is required for > runtime, at its simplest level it seems to be to build a complete GUI, > which I normally do anyway. > > The only thing that I usually depend on is the filter by form etc > context menu's. > > Have you guys any comments to make on using the runtime? Rocky, why > did you not use the Runtime for EZ-MRP? I am guessing that you > evaluated it and found it troublesome. Is that the case? > > In fact, I get the impression that most of us do not use the runtime, > the question I am curious about is why? It is surely handy to lock > down an app but is it a heavy handed tool? > > Thanks all for your advice, > > Mark Breen > Ireland > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Mar 1 12:58:45 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 10:58:45 -0800 Subject: [AccessD] Embedding a WAV file Message-ID: <024601c51e90$b224d790$6501a8c0@HAL9002> Dear List: Can a wav file be embedded in an access app like a jpg? And, if so, does it run on the click event of the control that holds it? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From Gustav at cactus.dk Tue Mar 1 13:06:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 20:06:05 +0100 Subject: [AccessD] Embedding a WAV file Message-ID: Hi Rocky You could save it as a blob (AppendChunk), then retrieve it (GetChunk) and save to a temp file which you launch. Not very fancy but it will probably work. Are we dealing with the alarm clock for the sleeper application? /gustav >>> bchacc at san.rr.com 01-03-2005 19:58:45 >>> Dear List: Can a wav file be embedded in an access app like a jpg? And, if so, does it run on the click event of the control that holds it? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- From martyconnelly at shaw.ca Tue Mar 1 13:32:53 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 01 Mar 2005 11:32:53 -0800 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server References: Message-ID: <4224C365.2040407@shaw.ca> One thing I found out that isn't clear in Sharepoint, is that you have to assign web designer or contributor rights to a user even if user is the administrator in order to upload an Access Table. Now I just have to figure out how to link pictures on the site into the list (table). Maybe I have to do this with xml web services. Sub WWSupload() On Error GoTo errout DoCmd.TransferDatabase transfertype:=acExport, databasetype:="WSS", _ databasename:="http://username.sharepointsite.com", _ objecttype:=acTable, Source:="Household Inventory", _ Destination:="Household Inventory", structureonly:=False errout: Debug.Print Err.Number & "-" & Err.Description End Sub Martin Reid wrote: > > Jim > > heres another article > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/pjsdk/html/pjsdkWebpInstallAndWSS_HV01100336.asp > > > > Martin > > On Mar 1 2005, Jim DeMarco wrote: > >> Are we able to create and use custom web parts if we are only using >> Sharepoint Services (not Portal Server)? >> >> Jim DeMarco >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid >> Sent: Tuesday, March 01, 2005 10:02 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server >> >> >> LOL >> >> I have been discussing some stuff of list. >> But in general SP also contains its own security systemn with lists >> etc. I am doing two major reviews for a publisher on Sharepoint. I >> also did a section on FrontPage 203 for Microsoft and I know there >> are a few articles up on MSDN. Have a look for FrontPage 2003 and >> Sharepoint. Paul Litwin wrote an article at the same time as me for >> them which dealt with Web Parts/XML and Access. >> >> Its really a trinity of Products - FrontPage 2003 (or .NET) >> Sharepoint services and SharePoint Portal Server. The Portal Server >> provides great indexing and searching capability for Sharepoint >> Services. But the main development tool is Web parts. Web parts >> provide descrite functionality for example a set of data from SQL >> Server, DB2 etc. ALso provides a single sign on cabability for >> multiple systems. >> >> Martin >> >> >> >> On Mar 1 2005, Susan Harkins wrote: >> >> > I think Martin's writing a book on SharePoint -- you might ring his >> > chimes. >> > > Susan H. > > Marty, >> > > Under the paragraph Using Sharepoint Lists, Mike states that > >> Sharepoint > uses an optimistic record locking scheme. This would let >> > me use an Access database as read-write for one location and >> read-only > for any others. >> > > Still, that could be useful in some situations. >> > > Dan Waters >> > ProMation Systems >> > > >> > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Mar 1 13:40:11 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 11:40:11 -0800 Subject: [AccessD] Embedding a WAV file References: Message-ID: <026d01c51e96$7bde6fb0$6501a8c0@HAL9002> Gustav: Actually it's a wav file that has a nice 'click' sound which I play whenever they click a command button. An audible confirmation that they've done something. But for beta testing we're sending this to people who are completely untechnological so we only want to send the one mde file and not 'Clicker.WAV' which they'd have to get into the same folder with the Sleep Advisor. So that's why I want to embed it. Right now, it plays fine using the PlaySound API. We still need more beta testers for the Sleep Advisor, BTW. You game? ANYBODY ELSE? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, March 01, 2005 11:06 AM Subject: Re: [AccessD] Embedding a WAV file > Hi Rocky > > You could save it as a blob (AppendChunk), then retrieve it (GetChunk) > and save to a temp file which you launch. > Not very fancy but it will probably work. > > Are we dealing with the alarm clock for the sleeper application? > > /gustav > >>>> bchacc at san.rr.com 01-03-2005 19:58:45 >>> > Dear List: > > Can a wav file be embedded in an access app like a jpg? And, if so, > does it run on the click event of the control that holds it? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Tue Mar 1 13:55:13 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 20:55:13 +0100 Subject: [AccessD] Embedding a WAV file Message-ID: Hi Rocky Hmmm, the awful click sound from IE in Windows XP is one of the first things I remove. As for the beta test I would like to, but time right now doesn't permit ... /gustav >>> bchacc at san.rr.com 01-03-2005 20:40:11 >>> Gustav: Actually it's a wav file that has a nice 'click' sound which I play whenever they click a command button. An audible confirmation that they've done something. But for beta testing we're sending this to people who are completely untechnological so we only want to send the one mde file and not 'Clicker.WAV' which they'd have to get into the same folder with the Sleep Advisor. So that's why I want to embed it. Right now, it plays fine using the PlaySound API. We still need more beta testers for the Sleep Advisor, BTW. You game? ANYBODY ELSE? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, March 01, 2005 11:06 AM Subject: Re: [AccessD] Embedding a WAV file > Hi Rocky > > You could save it as a blob (AppendChunk), then retrieve it (GetChunk) > and save to a temp file which you launch. > Not very fancy but it will probably work. > > Are we dealing with the alarm clock for the sleeper application? > > /gustav > >>>> bchacc at san.rr.com 01-03-2005 19:58:45 >>> > Dear List: > > Can a wav file be embedded in an access app like a jpg? And, if so, > does it run on the click event of the control that holds it? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- From martyconnelly at shaw.ca Tue Mar 1 14:19:03 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 01 Mar 2005 12:19:03 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences References: Message-ID: <4224CE37.8050200@shaw.ca> Just wondering if anyone has used the .msi file install with SageKey rather than Wise or Install Shield and if there any drawbacks. Mark Breen wrote: >Hello All, > >As you may have seen, I am currently enjoying being up to my elbows in >Access 97, a database with 1000 linked oracle tables and hundreds of >forms, reports, queries, pass through queries, dynamically generated >SQL etc and of course loads of code, no errorhandling and no comments >and no documentation! > >A question arose a few days ago about migrating it to Access 2003 and >using the Runtime version. > >I have gone online and had a quick read of what is required for >runtime, at its simplest level it seems to be to build a complete GUI, >which I normally do anyway. > >The only thing that I usually depend on is the filter by form etc >context menu's. > >Have you guys any comments to make on using the runtime? Rocky, why >did you not use the Runtime for EZ-MRP? I am guessing that you >evaluated it and found it troublesome. Is that the case? > >In fact, I get the impression that most of us do not use the runtime, >the question I am curious about is why? It is surely handy to lock >down an app but is it a heavy handed tool? > >Thanks all for your advice, > >Mark Breen >Ireland > > -- Marty Connelly Victoria, B.C. Canada From GregSmith at starband.net Tue Mar 1 14:20:54 2005 From: GregSmith at starband.net (GregSmith at starband.net) Date: Tue, 1 Mar 2005 15:20:54 -0500 (EST) Subject: [AccessD] Is the DBA Website down? In-Reply-To: <20050301133836.3EE992BFB4B@smtp.nildram.co.uk> References: <20050301133836.3EE992BFB4B@smtp.nildram.co.uk> Message-ID: <59787.65.118.249.214.1109708454.squirrel@cetus.email.starband.net> Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Mar 1 14:34:28 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 01 Mar 2005 12:34:28 -0800 Subject: [AccessD] "class not registered" error References: <5.1.0.14.2.20050301175857.031a7060@pop5.actcom.net.il> Message-ID: <4224D1D4.2020205@shaw.ca> There are a few things that can wrong with class wizards Did you install Jet Version 8 or 7? Here are some other things to try http://support.microsoft.com/default.aspx?scid=kb;en-us;303769 Usual cause Cause 5: There Is a Damaged Wizard File Resolution 1. Use Windows Explorer to locate the following wizard files: Acwzmain.mde, Acwztool.mde and Acwzlib.mde. 2. Change the file name extension of each file to "old." For example, change Acwzmain.mde to Acwzmain.old. 3. Reinstall Access to restore the files. handyman at actcom.co.il wrote: > This also didn't help the cause. I'm getting so frustrated with this, > that maybe I'll just upgrade to access 2002. I hope I don't open > another can of worms doing this :) > > > > > At 10:08 AM, 03/01/2005 -0500, you wrote: > >> Check this... >> >> http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 >> >> Lambert >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >> > handyman at actcom.co.il >> > Sent: Tuesday, March 01, 2005 8:42 AM >> > To: Access Developers discussion and problem solving >> > Subject: RE: [AccessD] "class not registered" error >> > >> > I did a repair on office, and it didn't help. I then deleted the >> entire >> > office, and reinstalled it. I am still getting this class error. >> > >> > Any other thoughts? >> > >> > Thanks.. >> > >> > At 12:16 PM, 03/01/2005 +0100, you wrote: >> > >CLass not registered and the listboxes in the wizard are empty?! >> > > >> > >Ha, had this last week or so after an Office update or a fix and >> repair >> > >which I did because the office update or something. Don't remember >> > >anymore what came first... >> > > >> > >The solution is to remove and reinstall the Access part of you office >> > >installation (removing the whole office is not necesary). >> > >Fix And repair does not work. >> > > >> > >Erwin >> > > >> > >-----Original Message----- >> > >From: accessd-bounces at databaseadvisors.com >> > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> > >handyman at actcom.co.il >> > >Sent: Tuesday, March 01, 2005 7:29 AM >> > >To: accessd at databaseadvisors.com >> > >Subject: [AccessD] "class not registered" error >> > > >> > >Hi all, >> > > >> > >I am trying to use the wizard to add a combo or list box to a form. >> > >Right after I select the query to use for my data, a "class not >> > >registered" error is returned. I am using access 2000, >> windows2000, and >> > >downloaded the latest patches, but this didn't help. >> > > >> > >When I try the same process on my access2002/xp operating system, it >> > >works fine. >> > > >> > >Can anyone give me a clue as to what's going on? >> > > >> > >Thanks >> > > >> > >Gershon >> > > > Gershon Markowitz > mailto:Handyman at actcom.co.il > http://www.yadchaimtzvi.org -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Mar 1 14:50:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 12:50:10 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <59787.65.118.249.214.1109708454.squirrel@cetus.email.starband.net> Message-ID: <0ICO00F7PXY2WR@l-daemon> Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 1 15:00:54 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 1 Mar 2005 13:00:54 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: <4224CE37.8050200@shaw.ca> Message-ID: I've been wondering the same thing. Didn't MS go to Wise for help designing the MSI? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Tuesday, March 01, 2005 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Just wondering if anyone has used the .msi file install with SageKey rather than Wise or Install Shield and if there any drawbacks. Mark Breen wrote: >Hello All, > >As you may have seen, I am currently enjoying being up to my elbows in >Access 97, a database with 1000 linked oracle tables and hundreds of >forms, reports, queries, pass through queries, dynamically generated >SQL etc and of course loads of code, no errorhandling and no comments >and no documentation! > >A question arose a few days ago about migrating it to Access 2003 and >using the Runtime version. > >I have gone online and had a quick read of what is required for >runtime, at its simplest level it seems to be to build a complete GUI, >which I normally do anyway. > >The only thing that I usually depend on is the filter by form etc >context menu's. > >Have you guys any comments to make on using the runtime? Rocky, why >did you not use the Runtime for EZ-MRP? I am guessing that you >evaluated it and found it troublesome. Is that the case? > >In fact, I get the impression that most of us do not use the runtime, >the question I am curious about is why? It is surely handy to lock >down an app but is it a heavy handed tool? > >Thanks all for your advice, > >Mark Breen >Ireland > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 15:44:28 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 15:44:28 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: IIRC it was InstallShield. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Tuesday, March 01, 2005 3:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Seeking your Access Runtime Experiences I've been wondering the same thing. Didn't MS go to Wise for help designing the MSI? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Tuesday, March 01, 2005 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Just wondering if anyone has used the .msi file install with SageKey rather than Wise or Install Shield and if there any drawbacks. Mark Breen wrote: >Hello All, > >As you may have seen, I am currently enjoying being up to my elbows in >Access 97, a database with 1000 linked oracle tables and hundreds of >forms, reports, queries, pass through queries, dynamically generated >SQL etc and of course loads of code, no errorhandling and no comments >and no documentation! > >A question arose a few days ago about migrating it to Access 2003 and >using the Runtime version. > >I have gone online and had a quick read of what is required for >runtime, at its simplest level it seems to be to build a complete GUI, >which I normally do anyway. > >The only thing that I usually depend on is the filter by form etc >context menu's. > >Have you guys any comments to make on using the runtime? Rocky, why >did you not use the Runtime for EZ-MRP? I am guessing that you >evaluated it and found it troublesome. Is that the case? > >In fact, I get the impression that most of us do not use the runtime, >the question I am curious about is why? It is surely handy to lock >down an app but is it a heavy handed tool? > >Thanks all for your advice, > >Mark Breen >Ireland > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Tue Mar 1 15:59:42 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 23:59:42 +0200 Subject: [AccessD] "class not registered" error In-Reply-To: <4224D1D4.2020205@shaw.ca> References: <5.1.0.14.2.20050301175857.031a7060@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20050301235758.031ebcb8@pop5.actcom.net.il> This also didn't help. :( If I deleted the whole office and reinstalled it, then everything should be fresh & new. My hunch is that maybe something in windows op(2000) is causing the problem. At 12:34 PM, 03/01/2005 -0800, you wrote: >There are a few things that can wrong with class wizards >Did you install Jet Version 8 or 7? >Here are some other things to try > >http://support.microsoft.com/default.aspx?scid=kb;en-us;303769 >Usual cause > > > Cause 5: There Is a Damaged Wizard File > > > Resolution > >1. Use Windows Explorer to locate the following wizard files: >Acwzmain.mde, Acwztool.mde and Acwzlib.mde. >2. Change the file name extension of each file to "old." For example, >change Acwzmain.mde to Acwzmain.old. >3. Reinstall Access to restore the files. > > > >handyman at actcom.co.il wrote: > >>This also didn't help the cause. I'm getting so frustrated with this, >>that maybe I'll just upgrade to access 2002. I hope I don't open another >>can of worms doing this :) >> >> >> >> >>At 10:08 AM, 03/01/2005 -0500, you wrote: >> >>>Check this... >>> >>>http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 >>> >>>Lambert >>> >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > handyman at actcom.co.il >>> > Sent: Tuesday, March 01, 2005 8:42 AM >>> > To: Access Developers discussion and problem solving >>> > Subject: RE: [AccessD] "class not registered" error >>> > >>> > I did a repair on office, and it didn't help. I then deleted the entire >>> > office, and reinstalled it. I am still getting this class error. >>> > >>> > Any other thoughts? >>> > >>> > Thanks.. >>> > >>> > At 12:16 PM, 03/01/2005 +0100, you wrote: >>> > >CLass not registered and the listboxes in the wizard are empty?! >>> > > >>> > >Ha, had this last week or so after an Office update or a fix and repair >>> > >which I did because the office update or something. Don't remember >>> > >anymore what came first... >>> > > >>> > >The solution is to remove and reinstall the Access part of you office >>> > >installation (removing the whole office is not necesary). >>> > >Fix And repair does not work. >>> > > >>> > >Erwin >>> > > >>> > >-----Original Message----- >>> > >From: accessd-bounces at databaseadvisors.com >>> > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > >handyman at actcom.co.il >>> > >Sent: Tuesday, March 01, 2005 7:29 AM >>> > >To: accessd at databaseadvisors.com >>> > >Subject: [AccessD] "class not registered" error >>> > > >>> > >Hi all, >>> > > >>> > >I am trying to use the wizard to add a combo or list box to a form. >>> > >Right after I select the query to use for my data, a "class not >>> > >registered" error is returned. I am using access 2000, windows2000, and >>> > >downloaded the latest patches, but this didn't help. >>> > > >>> > >When I try the same process on my access2002/xp operating system, it >>> > >works fine. >>> > > >>> > >Can anyone give me a clue as to what's going on? >>> > > >>> > >Thanks >>> > > >>> > >Gershon >>> >> >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org > > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From marklbreen at gmail.com Tue Mar 1 16:01:18 2005 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 1 Mar 2005 22:01:18 +0000 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: References: Message-ID: Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help designing > the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey rather > than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows in > >Access 97, a database with 1000 linked oracle tables and hundreds of > >forms, reports, queries, pass through queries, dynamically generated > >SQL etc and of course loads of code, no errorhandling and no comments > >and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete GUI, > >which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Tue Mar 1 16:13:03 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 01 Mar 2005 22:13:03 +0000 Subject: [AccessD] Embedding a WAV file In-Reply-To: <026d01c51e96$7bde6fb0$6501a8c0@HAL9002> Message-ID: Rocky, Couldn't you just reference the windows .wav files already on the machine?...when the db launches...it finds the wave files and stores the path...when you click...it 'CLICKS'...I think most installs would have these files...if not error handle them...lol... Just a thought? Thanks, mark >From: "Rocky Smolin - Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Embedding a WAV file >Date: Tue, 1 Mar 2005 11:40:11 -0800 > >Gustav: > >Actually it's a wav file that has a nice 'click' sound which I play >whenever they click a command button. An audible confirmation that they've >done something. But for beta testing we're sending this to people who are >completely untechnological so we only want to send the one mde file and not >'Clicker.WAV' which they'd have to get into the same folder with the Sleep >Advisor. > >So that's why I want to embed it. Right now, it plays fine using the >PlaySound API. > >We still need more beta testers for the Sleep Advisor, BTW. You game? >ANYBODY ELSE? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > > >----- Original Message ----- From: "Gustav Brock" >To: >Sent: Tuesday, March 01, 2005 11:06 AM >Subject: Re: [AccessD] Embedding a WAV file > > >>Hi Rocky >> >>You could save it as a blob (AppendChunk), then retrieve it (GetChunk) >>and save to a temp file which you launch. >>Not very fancy but it will probably work. >> >>Are we dealing with the alarm clock for the sleeper application? >> >>/gustav >> >>>>>bchacc at san.rr.com 01-03-2005 19:58:45 >>> >>Dear List: >> >>Can a wav file be embedded in an access app like a jpg? And, if so, >>does it run on the click event of the control that holds it? >> >>MTIA, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >>-- >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 1 16:25:46 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 1 Mar 2005 14:25:46 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: 3) Be prepared to invest in (Installshield or Wise) And Sagekey etc (preferably Wise :P ) Installshield and wise are both the packagers (either will do, but my biased self would recommend Wise over Installshield, especially if you don't need the MSI packager). Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help designing > the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey rather > than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows in > >Access 97, a database with 1000 linked oracle tables and hundreds of > >forms, reports, queries, pass through queries, dynamically generated > >SQL etc and of course loads of code, no errorhandling and no comments > >and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete GUI, > >which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 1 16:38:27 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Mar 2005 14:38:27 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: SageKey is NOT so expensive when you factor in their excellent support. Whenever we've had problems with an installer, their help has been outstanding. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Tuesday, March 01, 2005 2:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Seeking your Access Runtime Experiences 3) Be prepared to invest in (Installshield or Wise) And Sagekey etc (preferably Wise :P ) Installshield and wise are both the packagers (either will do, but my biased self would recommend Wise over Installshield, especially if you don't need the MSI packager). Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help designing > the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey rather > than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows > >in Access 97, a database with 1000 linked oracle tables and hundreds > >of forms, reports, queries, pass through queries, dynamically > >generated SQL etc and of course loads of code, no errorhandling and > >no comments and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete > >GUI, which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 16:39:15 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 16:39:15 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: Mark, I would include it in the cost to the client and keep ownership of it yourself. Easy to justify with 1000 units of O2k3 Pro! Once you write an install script in Wise it is really just a matter of tweaking it a bit for each app you distribute. No Bell curve, just a high start up learning period which goes down to almost nothing. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help > designing the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey > rather than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows > >in Access 97, a database with 1000 linked oracle tables and hundreds > >of forms, reports, queries, pass through queries, dynamically > >generated SQL etc and of course loads of code, no errorhandling and > >no comments and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete > >GUI, which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 16:39:15 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 16:39:15 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: You get good support with it too. John B. Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David From k.williamson5 at verizon.net Tue Mar 1 16:40:45 2005 From: k.williamson5 at verizon.net (Keith Williamson) Date: Tue, 01 Mar 2005 17:40:45 -0500 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <0ICO00F7PXY2WR@l-daemon> Message-ID: <000c01c51eaf$b637d6b0$568bfea9@KeithHome> Jim, Sho is Korksoft? Do they host our website? They charge us $10.00 per month.....along with the RoseHosting's $34.95. If Rose isn't our web host...I assume Korksoft is?? Regards, Keith Williamson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 01, 2005 3:50 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From k.williamson5 at verizon.net Tue Mar 1 16:43:01 2005 From: k.williamson5 at verizon.net (Keith Williamson) Date: Tue, 01 Mar 2005 17:43:01 -0500 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <0ICO00F7PXY2WR@l-daemon> Message-ID: <000d01c51eb0$07810320$568bfea9@KeithHome> Jim, I just called Korksoft.....they have a message that they are having a hardware problem with their hard drive...which won't be corrected until tomorrow. I assume that is our problem. Regards, Keith Williamson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 01, 2005 3:50 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 1 17:25:07 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 2 Mar 2005 00:25:07 +0100 Subject: [AccessD] "class not registered" error Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5839@stekelbes.ithelps.local> Do you also experience this when beeing logged on as another user. If not, you hav a corruption in that specific user registry If so, try this: Sometimes some registry keys are corrupt due to terminal shutdowns of the computer. If nothing else works, remove office via add/remove software compleetly. Reboot, then go in the registry and find the office xx keys in software\Microsoft Export this office key to a reg file and when done delete it fully. It's a long shot, but maybe it helps. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Tuesday, March 01, 2005 11:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "class not registered" error This also didn't help. :( If I deleted the whole office and reinstalled it, then everything should be fresh & new. My hunch is that maybe something in windows op(2000) is causing the problem. At 12:34 PM, 03/01/2005 -0800, you wrote: >There are a few things that can wrong with class wizards Did you >install Jet Version 8 or 7? >Here are some other things to try > >http://support.microsoft.com/default.aspx?scid=kb;en-us;303769 >Usual cause > > > Cause 5: There Is a Damaged Wizard File > > > Resolution > >1. Use Windows Explorer to locate the following wizard files: >Acwzmain.mde, Acwztool.mde and Acwzlib.mde. >2. Change the file name extension of each file to "old." For example, >change Acwzmain.mde to Acwzmain.old. >3. Reinstall Access to restore the files. > > > >handyman at actcom.co.il wrote: > >>This also didn't help the cause. I'm getting so frustrated with this, >>that maybe I'll just upgrade to access 2002. I hope I don't open >>another can of worms doing this :) >> >> >> >> >>At 10:08 AM, 03/01/2005 -0500, you wrote: >> >>>Check this... >>> >>>http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 >>> >>>Lambert >>> >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > handyman at actcom.co.il >>> > Sent: Tuesday, March 01, 2005 8:42 AM >>> > To: Access Developers discussion and problem solving >>> > Subject: RE: [AccessD] "class not registered" error >>> > >>> > I did a repair on office, and it didn't help. I then deleted the >>> > entire office, and reinstalled it. I am still getting this class error. >>> > >>> > Any other thoughts? >>> > >>> > Thanks.. >>> > >>> > At 12:16 PM, 03/01/2005 +0100, you wrote: >>> > >CLass not registered and the listboxes in the wizard are empty?! >>> > > >>> > >Ha, had this last week or so after an Office update or a fix and >>> > >repair which I did because the office update or something. Don't >>> > >remember anymore what came first... >>> > > >>> > >The solution is to remove and reinstall the Access part of you >>> > >office installation (removing the whole office is not necesary). >>> > >Fix And repair does not work. >>> > > >>> > >Erwin >>> > > >>> > >-----Original Message----- >>> > >From: accessd-bounces at databaseadvisors.com >>> > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > >handyman at actcom.co.il >>> > >Sent: Tuesday, March 01, 2005 7:29 AM >>> > >To: accessd at databaseadvisors.com >>> > >Subject: [AccessD] "class not registered" error >>> > > >>> > >Hi all, >>> > > >>> > >I am trying to use the wizard to add a combo or list box to a form. >>> > >Right after I select the query to use for my data, a "class not >>> > >registered" error is returned. I am using access 2000, >>> > >windows2000, and downloaded the latest patches, but this didn't help. >>> > > >>> > >When I try the same process on my access2002/xp operating system, >>> > >it works fine. >>> > > >>> > >Can anyone give me a clue as to what's going on? >>> > > >>> > >Thanks >>> > > >>> > >Gershon >>> >> >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org > > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 1 17:31:35 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 1 Mar 2005 15:31:35 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: Charlotte and John, I in no way meant that it isn't worth the price, it definitely is! I just meant if you don't have the funds and are contemplating the purchase, it can be hard to make that decision to pay almost as much to the bit of code as you are for the packaging software itself. But as mentioned, it is well worth it, and the money you pay will be less that the time you spend trying to deal with all of the problems that Sagekey has taken care of for you. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Tuesday, March 01, 2005 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Seeking your Access Runtime Experiences You get good support with it too. John B. Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Tue Mar 1 17:49:08 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Tue, 1 Mar 2005 15:49:08 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <000c01c51eaf$b637d6b0$568bfea9@KeithHome> Message-ID: <20050301234921.919783FC0E@omta16.mta.everyone.net> Korksoft hosts the website, RoseHosting hosts the mailing list. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Keith Williamson > Sent: 01 Mar 2005 2:41 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Jim, > > Sho is Korksoft? Do they host our website? They charge us > $10.00 per month.....along with the RoseHosting's $34.95. If > Rose isn't our web host...I assume Korksoft is?? > > Regards, > > Keith Williamson > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Tuesday, March 01, 2005 3:50 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Hi All: > > The Database Advisors web site is down. It must have gone > down overnight and we still have not been able to contact the > ISP. When we have more information it will be posted to this list. > > Your patients will be greatly appreciated. > > Thanks > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > GregSmith at starband.net > Sent: Tuesday, March 01, 2005 12:21 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Is the DBA Website down? > > Looks like it still is. Nothing comes up except the search > engine for msn. > > > Looks like it to me. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > > > To: maintenance at databaseadvisors.com > , > > Access Developers discussion and problem solving > > > > Subject: [AccessD] Is the DBA Website down? > > Date: 01/03/05 13:31 > > > >> > >> I can't get it to some up and a few other people on the OT > list have > >> said the same thing. > >> > >> -- > >> Gary Kjos > >> garykjos at gmail.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> > >> > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 1 17:56:09 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 15:56:09 -0800 Subject: [AccessD] Embedding a WAV file References: Message-ID: <031e01c51eba$3e2ec510$6501a8c0@HAL9002> Mark: I see that CLICKERX.WAV file in the I386 folder. Do you think that's where it appears on all versions of Windows? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, March 01, 2005 2:13 PM Subject: Re: [AccessD] Embedding a WAV file > Rocky, > > Couldn't you just reference the windows .wav files already on the > machine?...when the db launches...it finds the wave files and stores the > path...when you click...it 'CLICKS'...I think most installs would have > these files...if not error handle them...lol... > > Just a thought? > > Thanks, > > mark > > >>From: "Rocky Smolin - Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] Embedding a WAV file >>Date: Tue, 1 Mar 2005 11:40:11 -0800 >> >>Gustav: >> >>Actually it's a wav file that has a nice 'click' sound which I play >>whenever they click a command button. An audible confirmation that >>they've done something. But for beta testing we're sending this to people >>who are completely untechnological so we only want to send the one mde >>file and not 'Clicker.WAV' which they'd have to get into the same folder >>with the Sleep Advisor. >> >>So that's why I want to embed it. Right now, it plays fine using the >>PlaySound API. >> >>We still need more beta testers for the Sleep Advisor, BTW. You game? >>ANYBODY ELSE? >> >>Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >> >> >>----- Original Message ----- From: "Gustav Brock" >>To: >>Sent: Tuesday, March 01, 2005 11:06 AM >>Subject: Re: [AccessD] Embedding a WAV file >> >> >>>Hi Rocky >>> >>>You could save it as a blob (AppendChunk), then retrieve it (GetChunk) >>>and save to a temp file which you launch. >>>Not very fancy but it will probably work. >>> >>>Are we dealing with the alarm clock for the sleeper application? >>> >>>/gustav >>> >>>>>>bchacc at san.rr.com 01-03-2005 19:58:45 >>> >>>Dear List: >>> >>>Can a wav file be embedded in an access app like a jpg? And, if so, >>>does it run on the click event of the control that holds it? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>>-- >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>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 Mar 1 17:53:47 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 15:53:47 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <20050301234921.919783FC0E@omta16.mta.everyone.net> Message-ID: <0ICP0007K6GUPW@l-daemon> Thank you Kathryn: Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Tuesday, March 01, 2005 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Korksoft hosts the website, RoseHosting hosts the mailing list. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Keith Williamson > Sent: 01 Mar 2005 2:41 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Jim, > > Sho is Korksoft? Do they host our website? They charge us > $10.00 per month.....along with the RoseHosting's $34.95. If > Rose isn't our web host...I assume Korksoft is?? > > Regards, > > Keith Williamson > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Tuesday, March 01, 2005 3:50 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Hi All: > > The Database Advisors web site is down. It must have gone > down overnight and we still have not been able to contact the > ISP. When we have more information it will be posted to this list. > > Your patients will be greatly appreciated. > > Thanks > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > GregSmith at starband.net > Sent: Tuesday, March 01, 2005 12:21 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Is the DBA Website down? > > Looks like it still is. Nothing comes up except the search > engine for msn. > > > Looks like it to me. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > > > To: maintenance at databaseadvisors.com > , > > Access Developers discussion and problem solving > > > > Subject: [AccessD] Is the DBA Website down? > > Date: 01/03/05 13:31 > > > >> > >> I can't get it to some up and a few other people on the OT > list have > >> said the same thing. > >> > >> -- > >> Gary Kjos > >> garykjos at gmail.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> > >> > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 1 18:02:58 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 16:02:58 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <000d01c51eb0$07810320$568bfea9@KeithHome> Message-ID: <0ICP001C36W70S@l-daemon> Hi Keith: RoseHosting manages our LIST mail but also handles the NameServer pointing to our web site location at Korksoft. Korksoft had to change their IP address so we have to update our NameServer addresses at RoseHosting. Make sense? There are three parts to every web site: 1. The Domain Name registration. 2. The NameServers that point our Domain name to our actual web site. 3. The actual web site. All can be at the same site or each can be at a different site. I believe it is better to de-bundle the NameServer management from the Domain Register site. There are a few free stable sites that can manage this. More later. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, March 01, 2005 2:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Jim, I just called Korksoft.....they have a message that they are having a hardware problem with their hard drive...which won't be corrected until tomorrow. I assume that is our problem. Regards, Keith Williamson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 01, 2005 3:50 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Mar 1 19:18:56 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 2 Mar 2005 12:18:56 +1100 Subject: [AccessD] Embedding a WAV file In-Reply-To: <031e01c51eba$3e2ec510$6501a8c0@HAL9002> Message-ID: <200503020119.j221Jlec017365@cooper.uws.edu.au> Hi Rocky I have a folder in the App home folder for sounds. Also one for Images and Skins etc EG C:\Program Files\My app will be the 'home' folder And in it will be C:\Program Files\My app\Sounds (About 5 or 6 files in here) C:\Program Files\My app\Images (3 more folders and about 20 files in here) C:\Program Files\My app\Skins (1 folder (but it can grow) and many files in here) I install them when I install the app. They are my 'standard' folders and files and go with every app. And I refer to them now by heart with lines like (I actually use globals for the length of the session But can be done at a form Sub level just as easy) EG Dim strSkinToUse as String Dim strSkinFolder as String Dim strImagesFolder as String strSkinToUse = Dlookup("[SkinName]","tblOptions") strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)) - 1) & "\Images" strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" Then I refer to each skin component like.....('Cause I know 'em off by heart) Me.picture = strSkinFolder & "\Background.jpg" Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" I use the API code "PlaySound" for Playing Sounds Eg Private Sub Form_Load() PlaySound (strSoundsFolder & "\Logon.wav") End sub It works and is pretty simple. HTH See ya Darren From handyman at actcom.co.il Tue Mar 1 22:51:18 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 02 Mar 2005 06:51:18 +0200 Subject: [AccessD] tabbed form question Message-ID: <5.1.0.14.2.20050302063644.028039c0@pop5.actcom.net.il> Hi all, I have a tabbed form which has a whole load of categories of different parts that need to be purchased. Each category can have 1-30 items below it. I want each tab under the category to list it's item names and a checkbox. The user can then check off any items that needs to be purchased. I thought of making a tabbed form that has all the categories, and then have a subform that has 30 checkboxes and thru code fill in the checkbox label with the item names - and make any unused checkboxes not visible. Can anyone suggest an easier way? Thanks Gershon, (who still can't get my listbox wizards to work, but I ordered a new version of office) Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From accessd666 at yahoo.com Wed Mar 2 01:35:24 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 1 Mar 2005 23:35:24 -0800 (PST) Subject: [AccessD] Complex query....for me :-) Message-ID: <20050302073524.24958.qmail@web90109.mail.scd.yahoo.com> Hi group, I've got a table with a field called [category] and a field called [position]. I need a query that has several output fields: New Pos, Old Pos, Delivered The calculation for these fields is as follows: New Pos = SUM(POSITION) WHERE CATEGORY = "NP" Old Pos = SUM(POSITION) WHERE CATEGORY = "NZ" Delivered = SUM(POSITION) WHERE CATEGORY = "DD" But how do I create a query that spits out these values?? Thnx. Sander __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From Gustav at cactus.dk Wed Mar 2 04:23:25 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 02 Mar 2005 11:23:25 +0100 Subject: [AccessD] Complex query....for me :-) Message-ID: Hi Sander That could be: SELECT SUM(ABS(CATEGORY='NP')*POSITION) AS [New Pos], SUM(ABS(CATEGORY='NZ')*POSITION) AS [Old Pos], SUM(ABS(CATEGORY='DD')*POSITION) AS [Delivered] FROM tblYourTable; /gustav >>> accessd666 at yahoo.com 02-03-2005 08:35:24 >>> Hi group, I've got a table with a field called [category] and a field called [position]. I need a query that has several output fields: New Pos, Old Pos, Delivered The calculation for these fields is as follows: New Pos = SUM(POSITION) WHERE CATEGORY = "NP" Old Pos = SUM(POSITION) WHERE CATEGORY = "NZ" Delivered = SUM(POSITION) WHERE CATEGORY = "DD" But how do I create a query that spits out these values?? Thnx. Sander From accessd666 at yahoo.com Wed Mar 2 05:50:08 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 2 Mar 2005 03:50:08 -0800 (PST) Subject: [AccessD] Complex query....for me :-) In-Reply-To: Message-ID: <20050302115008.52837.qmail@web90101.mail.scd.yahoo.com> A very nice solution! Lets check the performance. Thnx Gustav. --- Gustav Brock wrote: > Hi Sander > > That could be: > > SELECT > SUM(ABS(CATEGORY='NP')*POSITION) AS [New Pos], > SUM(ABS(CATEGORY='NZ')*POSITION) AS [Old Pos], > SUM(ABS(CATEGORY='DD')*POSITION) AS [Delivered] > FROM > tblYourTable; > > /gustav > > >>> accessd666 at yahoo.com 02-03-2005 08:35:24 >>> > Hi group, > > I've got a table with a field called [category] and > a > field called [position]. > > I need a query that has several output fields: > New Pos, Old Pos, Delivered > > The calculation for these fields is as follows: > New Pos = SUM(POSITION) WHERE CATEGORY = "NP" > Old Pos = SUM(POSITION) WHERE CATEGORY = "NZ" > Delivered = SUM(POSITION) WHERE CATEGORY = "DD" > > But how do I create a query that spits out these > values?? > > Thnx. > > Sander > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From markamatte at hotmail.com Wed Mar 2 07:26:00 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 02 Mar 2005 13:26:00 +0000 Subject: [AccessD] Embedding a WAV file In-Reply-To: <031e01c51eba$3e2ec510$6501a8c0@HAL9002> Message-ID: Rocky, Actually looking at my machines...they all seem to be in different folders...and named differently. Maybe not such a good idea after all...unless you wanted the app to search for the file when it launches...and then store the path to reference later? Thanks, Mark >From: "Rocky Smolin - Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Embedding a WAV file >Date: Tue, 1 Mar 2005 15:56:09 -0800 > >Mark: > >I see that CLICKERX.WAV file in the I386 folder. Do you think that's where >it appears on all versions of Windows? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > >----- Original Message ----- From: "Mark A Matte" >To: >Sent: Tuesday, March 01, 2005 2:13 PM >Subject: Re: [AccessD] Embedding a WAV file > > >>Rocky, >> >>Couldn't you just reference the windows .wav files already on the >>machine?...when the db launches...it finds the wave files and stores the >>path...when you click...it 'CLICKS'...I think most installs would have >>these files...if not error handle them...lol... >> >>Just a thought? >> >>Thanks, >> >>mark >> >> >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] Embedding a WAV file >>>Date: Tue, 1 Mar 2005 11:40:11 -0800 >>> >>>Gustav: >>> >>>Actually it's a wav file that has a nice 'click' sound which I play >>>whenever they click a command button. An audible confirmation that >>>they've done something. But for beta testing we're sending this to >>>people who are completely untechnological so we only want to send the one >>>mde file and not 'Clicker.WAV' which they'd have to get into the same >>>folder with the Sleep Advisor. >>> >>>So that's why I want to embed it. Right now, it plays fine using the >>>PlaySound API. >>> >>>We still need more beta testers for the Sleep Advisor, BTW. You game? >>>ANYBODY ELSE? >>> >>>Regards, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >>> >>> >>>----- Original Message ----- From: "Gustav Brock" >>>To: >>>Sent: Tuesday, March 01, 2005 11:06 AM >>>Subject: Re: [AccessD] Embedding a WAV file >>> >>> >>>>Hi Rocky >>>> >>>>You could save it as a blob (AppendChunk), then retrieve it (GetChunk) >>>>and save to a temp file which you launch. >>>>Not very fancy but it will probably work. >>>> >>>>Are we dealing with the alarm clock for the sleeper application? >>>> >>>>/gustav >>>> >>>>>>>bchacc at san.rr.com 01-03-2005 19:58:45 >>> >>>>Dear List: >>>> >>>>Can a wav file be embedded in an access app like a jpg? And, if so, >>>>does it run on the click event of the control that holds it? >>>> >>>>MTIA, >>>> >>>>Rocky Smolin >>>>Beach Access Software >>>>http://www.e-z-mrp.com >>>>858-259-4334 >>>>-- >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Wed Mar 2 07:55:43 2005 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Wed, 02 Mar 2005 07:55:43 -0600 Subject: [AccessD] Access to Word Merge Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A1123B9BE@cntexchange.pgdp.usec.com> I am using the below code to open a Word document. The user wants to use a Word document for the printed form. So I am trying to create a Mail Merge with the EquipSpec.doc. Is there a way to use this same code but include something that will open the Word document to the current record? Sort of like using the OpenReport to a certain record: DoCmd.OpenReport stDocName, acPreview, , "[EquipSpecID]=" & Me![EquipSpecID] Virginia *********************************************** Function GoToEquipSpecForm() 'Opens Spec Word document Dim objWord As Object Set objWord = CreateObject("Word.Application") objWord.Visible = True objWord.Documents.Open "C:\Documents and Settings\Desktop\EQIPSPEC.doc", , True Set objWord = Nothing End Function From andy at minstersystems.co.uk Wed Mar 2 07:11:01 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 2 Mar 2005 14:11:01 +0100 Subject: [AccessD] Access to Word Merge Message-ID: <20050302141058.8DCD72C05D6@smtp.nildram.co.uk> Virginia I suggest you set the merge data of your doc to a temp table or a query rather than direct to a main table. If a temp table you write the required record to the tabel before opening the doc, then do the mailmerge. If you base the doc on a query you ensure with the query's criteria that it uses the right record. Either way the doc will then just open to the right record. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] Access to Word Merge Date: 02/03/05 13:57 > > I am using the below code to open a Word document. The user wants to use a > Word document for the printed form. So I am trying to create a Mail Merge > with the EquipSpec.doc. > > > > Is there a way to use this same code but include something that will open > the Word document to the current record? > > > > Sort of like using the OpenReport to a certain record: > > DoCmd.OpenReport stDocName, acPreview, , "[EquipSpecID]=" & > Me![EquipSpecID] > > > > Virginia > > > > *********************************************** > > Function GoToEquipSpecForm() > > 'Opens Spec Word document > > Dim objWord As Object > > > > Set objWord = CreateObject("Word.Application") > > objWord.Visible = True > > > > objWord.Documents.Open "C:Documents and SettingsDesktopEQIPSPEC.doc", , > True > > > > Set objWord = Nothing > > > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Jdemarco at hudsonhealthplan.org Wed Mar 2 09:54:52 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 2 Mar 2005 10:54:52 -0500 Subject: [AccessD] HTML personalized mass mail Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D02@TTNEXCHCL2.hshhp.com> Gustav, Is there even a way for you to determine whether the client can view HTML mail? Many that don't will display the HTML code instead of the formatting. I know that when I sign up for newsletters there's an option as to which format I'd like to recieve (text or HTML). Is that not an option for your client? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Gustav at cactus.dk Wed Mar 2 10:14:37 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 02 Mar 2005 17:14:37 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi Jim Receivers are executives who you cannot be expected to make decisions on anything regarding format. Thus I wish to create e-mails of the sort where HTML is displayed if the reader can and will do it, otherwise a similar content should be displayed but as plain text including a link to the HTML formatted newsletter to be viewed in a browser if the receiver wish to. /gustav >>> Jdemarco at hudsonhealthplan.org 02-03-2005 16:54:52 >>> Gustav, Is there even a way for you to determine whether the client can view HTML mail? Many that don't will display the HTML code instead of the formatting. I know that when I sign up for newsletters there's an option as to which format I'd like to recieve (text or HTML). Is that not an option for your client? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav From markamatte at hotmail.com Wed Mar 2 10:17:13 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 02 Mar 2005 16:17:13 +0000 Subject: [AccessD] tabbed form question In-Reply-To: <5.1.0.14.2.20050302063644.028039c0@pop5.actcom.net.il> Message-ID: Gershon, I do something similar...five tabs...different categories of questions on each tab. Instead of labels...I use 'locked' text boxes in a subform on each tab. The subform is driven by a table that contains ALL of the questions and is filtered by the question type for each tab. Hope that helps. Mark A. Matte >From: handyman at actcom.co.il >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] tabbed form question >Date: Wed, 02 Mar 2005 06:51:18 +0200 > >Hi all, > >I have a tabbed form which has a whole load of categories of different >parts that need to be purchased. Each category can have 1-30 items below >it. I want each tab under the category to list it's item names and a >checkbox. The user can then check off any items that needs to be purchased. > >I thought of making a tabbed form that has all the categories, and then >have a subform that has 30 checkboxes and thru code fill in the checkbox >label with the item names - and make any unused checkboxes not visible. >Can anyone suggest an easier way? > >Thanks > >Gershon, (who still can't get my listbox wizards to work, but I ordered a >new version of office) > >Gershon Markowitz >mailto:Handyman at actcom.co.il >http://www.yadchaimtzvi.org > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Wed Mar 2 10:33:27 2005 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Wed, 02 Mar 2005 10:33:27 -0600 Subject: [AccessD] Access to Word Merge Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A1123BB40@cntexchange.pgdp.usec.com> The mail merge is getting the data from a query - not directly from a table. But on the form, when you go to a specific record. I want a cmdButton that will run the code to open the Word (mail merge) & show just the data for that record. Right now the Word mail merge always opens to the first record in the database & not the current record from the form. I thought I would need some a statement in the code so the mail merge knows which record to display for the data. If I want ES-1, the Word file opens to ES-1. If I am on ES-23, the Word file opens to ES-23. Virginia ************************************************************** Virginia I suggest you set the merge data of your doc to a temp table or a query rather than direct to a main table. If a temp table you write the required record to the tabel before opening the doc, then do the mailmerge. If you base the doc on a query you ensure with the query's criteria that it uses the right record. Either way the doc will then just open to the right record. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving > To: accessd at databaseadvisors.com > Subject: [AccessD] Access to Word Merge Date: 02/03/05 13:57 > > I am using the below code to open a Word document. The user wants to use a > Word document for the printed form. So I am trying to create a Mail Merge > with the EquipSpec.doc. > > > > Is there a way to use this same code but include something that will open > the Word document to the current record? > > > > Sort of like using the OpenReport to a certain record: > > DoCmd.OpenReport stDocName, acPreview, , "[EquipSpecID]=" & > Me![EquipSpecID] > > > > Virginia > > > > *********************************************** > > Function GoToEquipSpecForm() > > 'Opens Spec Word document > > Dim objWord As Object > > > > Set objWord = CreateObject("Word.Application") > > objWord.Visible = True > > > > objWord.Documents.Open "C:Documents and SettingsDesktopEQIPSPEC.doc", , > True > > > > Set objWord = Nothing > > > > End Function From Developer at UltraDNT.com Wed Mar 2 11:21:39 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 2 Mar 2005 12:21:39 -0500 Subject: [AccessD] Access to Word Merge In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A1123BB40@cntexchange.pgdp.usec.com> Message-ID: <001101c51f4c$4ea9bed0$0700a8c0@COA3> Virginia: You will need a proper record position of the desired record, ie, ES-23 = record # 23 in the query (or it doesn't) ... Then once you have this number, the Word application needs to issue a GoTo command, for that same number SECTION, not page - this is important, a Word mail merge is numbered by sections for each record, not by page - there's a Page 1 for each record. Selection.GoTo What:=wdGoToSection, Which:=wdGoToFirst, Count:=, Name:="" Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Wednesday, March 02, 2005 11:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access to Word Merge The mail merge is getting the data from a query - not directly from a table. But on the form, when you go to a specific record. I want a cmdButton that will run the code to open the Word (mail merge) & show just the data for that record. Right now the Word mail merge always opens to the first record in the database & not the current record from the form. I thought I would need some a statement in the code so the mail merge knows which record to display for the data. If I want ES-1, the Word file opens to ES-1. If I am on ES-23, the Word file opens to ES-23. Virginia ************************************************************** Virginia I suggest you set the merge data of your doc to a temp table or a query rather than direct to a main table. If a temp table you write the required record to the tabel before opening the doc, then do the mailmerge. If you base the doc on a query you ensure with the query's criteria that it uses the right record. Either way the doc will then just open to the right record. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving > To: accessd at databaseadvisors.com > Subject: [AccessD] Access to Word Merge Date: 02/03/05 13:57 > > I am using the below code to open a Word document. The user wants to > use a Word document for the printed form. So I am trying to create a > Mail Merge with the EquipSpec.doc. > > > > Is there a way to use this same code but include something that will > open the Word document to the current record? > > > > Sort of like using the OpenReport to a certain record: > > DoCmd.OpenReport stDocName, acPreview, , > "[EquipSpecID]=" & > Me![EquipSpecID] > > > > Virginia > > > > *********************************************** > > Function GoToEquipSpecForm() > > 'Opens Spec Word document > > Dim objWord As Object > > > > Set objWord = CreateObject("Word.Application") > > objWord.Visible = True > > > > objWord.Documents.Open "C:Documents and SettingsDesktopEQIPSPEC.doc", , > True > > > > Set objWord = Nothing > > > > End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 2 11:25:09 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 2 Mar 2005 09:25:09 -0800 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> Message-ID: <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren > > -- > 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 Mar 2 12:05:26 2005 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 2 Mar 2005 10:05:26 -0800 Subject: [AccessD] Embedding a WAV file In-Reply-To: <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Message-ID: <002001c51f52$6ccd9980$c300a8c0@murphyf3vdfepi> Rocky, Why not just zip your database and the wav file into one zip file for testing distribution. Then tell your testers to leave all the files in the same folder when they unzip them? You can get the path to your application so you know the path to the wav file. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 02, 2005 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images > and Skins etc EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. And I > refer to them now by heart with lines like (I actually use globals for > the length of the session But can be done at a form Sub level just as > easy) EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Wed Mar 2 12:19:00 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 02 Mar 2005 20:19:00 +0200 Subject: [AccessD] tabbed form question In-Reply-To: References: <5.1.0.14.2.20050302063644.028039c0@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20050302201802.04a3a758@pop5.actcom.net.il> Mark, what do you mean by 'locked' text boxes? Thanks Gershon At 04:17 PM, 03/02/2005 +0000, you wrote: >Gershon, > >I do something similar...five tabs...different categories of questions on >each tab. Instead of labels...I use 'locked' text boxes in a subform on >each tab. The subform is driven by a table that contains ALL of the >questions and is filtered by the question type for each tab. > >Hope that helps. > >Mark A. Matte > >>From: handyman at actcom.co.il >>Reply-To: Access Developers discussion and problem >>solving >>To: accessd at databaseadvisors.com >>Subject: [AccessD] tabbed form question >>Date: Wed, 02 Mar 2005 06:51:18 +0200 >> >>Hi all, >> >>I have a tabbed form which has a whole load of categories of different >>parts that need to be purchased. Each category can have 1-30 items below >>it. I want each tab under the category to list it's item names and a >>checkbox. The user can then check off any items that needs to be purchased. >> >>I thought of making a tabbed form that has all the categories, and then >>have a subform that has 30 checkboxes and thru code fill in the checkbox >>label with the item names - and make any unused checkboxes not visible. >>Can anyone suggest an easier way? >> >>Thanks >> >>Gershon, (who still can't get my listbox wizards to work, but I ordered a >>new version of office) >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From bchacc at san.rr.com Wed Mar 2 12:46:23 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 2 Mar 2005 10:46:23 -0800 Subject: [AccessD] Embedding a WAV file References: <002001c51f52$6ccd9980$c300a8c0@murphyf3vdfepi> Message-ID: <022801c51f58$220eb720$6401a8c0@HAL9002> Believe it or not, we've had a problem with some people doing this. It would be the 90% solution. But it just seems to me that if I can use this: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long to play an external file there should be some way to use it to play an embedded file. But I can't figure out how. Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 02, 2005 10:05 AM Subject: RE: [AccessD] Embedding a WAV file > Rocky, > > Why not just zip your database and the wav file into one zip file for > testing distribution. Then tell your testers to leave all the files in > the > same folder when they unzip them? You can get the path to your > application > so you know the path to the wav file. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 02, 2005 9:25 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include my WAV file and > it > will be transparent to the user. For beta testing I need to send them just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an Unbound > Object Frame. But getting it to play in the On Click events of other > controls, like command buttons, is the next problem. And then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a table and running it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > >> Hi Rocky >> I have a folder in the App home folder for sounds. Also one for Images >> and Skins etc EG >> C:\Program Files\My app will be the 'home' folder >> And in it will be >> C:\Program Files\My app\Sounds (About 5 or 6 files in here) >> C:\Program Files\My app\Images (3 more folders and about 20 files in >> here) >> C:\Program Files\My app\Skins (1 folder (but it can grow) and many files >> in >> here) >> >> I install them when I install the app. >> They are my 'standard' folders and files and go with every app. And I >> refer to them now by heart with lines like (I actually use globals for >> the length of the session But can be done at a form Sub level just as >> easy) EG >> Dim strSkinToUse as String >> Dim strSkinFolder as String >> Dim strImagesFolder as String >> >> strSkinToUse = Dlookup("[SkinName]","tblOptions") >> strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse >> strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Images" >> strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" >> >> Then I refer to each skin component like.....('Cause I know 'em off by >> heart) >> >> Me.picture = strSkinFolder & "\Background.jpg" >> Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" >> >> I use the API code "PlaySound" for Playing Sounds >> Eg >> Private Sub Form_Load() >> PlaySound (strSoundsFolder & "\Logon.wav") >> End sub >> >> It works and is pretty simple. >> >> HTH >> >> See ya >> >> Darren >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at touchtelindia.net Wed Mar 2 12:48:37 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 3 Mar 2005 00:18:37 +0530 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Message-ID: <00e901c51f58$8b5fc660$6a1865cb@winxp> Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren From Jim.Hale at FleetPride.com Wed Mar 2 13:22:54 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 2 Mar 2005 13:22:54 -0600 Subject: [AccessD] Embedding a WAV file Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233744F@corp-es01.fleetpride.com> Is it possible to store it in a table, test if the file exists, and if not create it? Of course I do this routinely with bat and other text files but I don't know if it can be done with a wav file. Jim -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 02, 2005 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file Believe it or not, we've had a problem with some people doing this. It would be the 90% solution. But it just seems to me that if I can use this: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long to play an external file there should be some way to use it to play an embedded file. But I can't figure out how. Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 02, 2005 10:05 AM Subject: RE: [AccessD] Embedding a WAV file > Rocky, > > Why not just zip your database and the wav file into one zip file for > testing distribution. Then tell your testers to leave all the files in > the > same folder when they unzip them? You can get the path to your > application > so you know the path to the wav file. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 02, 2005 9:25 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include my WAV file and > it > will be transparent to the user. For beta testing I need to send them just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an Unbound > Object Frame. But getting it to play in the On Click events of other > controls, like command buttons, is the next problem. And then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a table and running it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > >> Hi Rocky >> I have a folder in the App home folder for sounds. Also one for Images >> and Skins etc EG >> C:\Program Files\My app will be the 'home' folder >> And in it will be >> C:\Program Files\My app\Sounds (About 5 or 6 files in here) >> C:\Program Files\My app\Images (3 more folders and about 20 files in >> here) >> C:\Program Files\My app\Skins (1 folder (but it can grow) and many files >> in >> here) >> >> I install them when I install the app. >> They are my 'standard' folders and files and go with every app. And I >> refer to them now by heart with lines like (I actually use globals for >> the length of the session But can be done at a form Sub level just as >> easy) EG >> Dim strSkinToUse as String >> Dim strSkinFolder as String >> Dim strImagesFolder as String >> >> strSkinToUse = Dlookup("[SkinName]","tblOptions") >> strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse >> strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Images" >> strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" >> >> Then I refer to each skin component like.....('Cause I know 'em off by >> heart) >> >> Me.picture = strSkinFolder & "\Background.jpg" >> Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" >> >> I use the API code "PlaySound" for Playing Sounds >> Eg >> Private Sub Form_Load() >> PlaySound (strSoundsFolder & "\Logon.wav") >> End sub >> >> It works and is pretty simple. >> >> HTH >> >> See ya >> >> Darren >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From bchacc at san.rr.com Wed Mar 2 13:32:23 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 2 Mar 2005 11:32:23 -0800 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> <00e901c51f58$8b5fc660$6a1865cb@winxp> Message-ID: <023a01c51f5e$8f60f490$6401a8c0@HAL9002> A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Mar 2 14:59:09 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 02 Mar 2005 20:59:09 +0000 Subject: [AccessD] tabbed form question In-Reply-To: <5.1.0.14.2.20050302201802.04a3a758@pop5.actcom.net.il> Message-ID: Gershon, On the 'data' tab of the text box properties...there is a LOCKED property ( does not allow user to edit data in this field). This allows me to display the questions and a check box for each record...and the user can use the check box...but not edit the question. You can even go a step farther and use the textbox's format properties(back style,back color, etc.) to make it look like a label. Let me know if you have any other questions. Thanks, Mark >From: handyman at actcom.co.il >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: RE: [AccessD] tabbed form question >Date: Wed, 02 Mar 2005 20:19:00 +0200 > >Mark, > >what do you mean by 'locked' text boxes? > >Thanks > >Gershon > >At 04:17 PM, 03/02/2005 +0000, you wrote: >>Gershon, >> >>I do something similar...five tabs...different categories of questions on >>each tab. Instead of labels...I use 'locked' text boxes in a subform on >>each tab. The subform is driven by a table that contains ALL of the >>questions and is filtered by the question type for each tab. >> >>Hope that helps. >> >>Mark A. Matte >> >>>From: handyman at actcom.co.il >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: accessd at databaseadvisors.com >>>Subject: [AccessD] tabbed form question >>>Date: Wed, 02 Mar 2005 06:51:18 +0200 >>> >>>Hi all, >>> >>>I have a tabbed form which has a whole load of categories of different >>>parts that need to be purchased. Each category can have 1-30 items below >>>it. I want each tab under the category to list it's item names and a >>>checkbox. The user can then check off any items that needs to be >>>purchased. >>> >>>I thought of making a tabbed form that has all the categories, and then >>>have a subform that has 30 checkboxes and thru code fill in the checkbox >>>label with the item names - and make any unused checkboxes not visible. >>>Can anyone suggest an easier way? >>> >>>Thanks >>> >>>Gershon, (who still can't get my listbox wizards to work, but I ordered a >>>new version of office) >>> >>>Gershon Markowitz >>>mailto:Handyman at actcom.co.il >>>http://www.yadchaimtzvi.org >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > >Gershon Markowitz >mailto:Handyman at actcom.co.il >http://www.yadchaimtzvi.org >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Robert at servicexp.com Wed Mar 2 15:06:49 2005 From: Robert at servicexp.com (Robert Gracie) Date: Wed, 2 Mar 2005 16:06:49 -0500 Subject: [AccessD] OT: Exchange 2003 In-Reply-To: <200503020119.j221Jlec017365@cooper.uws.edu.au> Message-ID: I'm trying to set up a sever (Server 2003) and Exchange 2003, and I'm having a heck of a time figuring this email set up out. Does anyone have a recommendation for a good (down to earth) book on Exchange 2003, and how Host DNS's (mx records and such) work with my system? Robert Gracie From d.dick at uws.edu.au Wed Mar 2 16:38:09 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 3 Mar 2005 09:38:09 +1100 Subject: [AccessD] Embedding a WAV file In-Reply-To: <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Message-ID: <200503022239.j22Md2ec021481@cooper.uws.edu.au> Hi Rocky Demo Sent off line Anyone else want a demo? Send an email OFF LIST to d.dick at uws.edu.au See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, 3 March 2005 4:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 2 17:43:11 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 02 Mar 2005 15:43:11 -0800 Subject: [AccessD] Web site up In-Reply-To: <023a01c51f5e$8f60f490$6401a8c0@HAL9002> Message-ID: <0ICR00E210JUET@l-daemon> Hi All: Thanks to Bryan and other help the DBA web site is up and running. We will be working to make sure that there is at least a process in place that will deter this event from happening again. Thanks all for your patients Jim Lawrence The web guy From martyconnelly at shaw.ca Wed Mar 2 21:23:59 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 02 Mar 2005 19:23:59 -0800 Subject: [AccessD] OT: Exchange 2003 References: Message-ID: <4226834F.3060000@shaw.ca> Dont know about a book but that and tips can be found here http://www.slipstick.com/exs/index.htm Robert Gracie wrote: > I'm trying to set up a sever (Server 2003) and Exchange 2003, and I'm >having a heck of a time figuring this email set up out. > > Does anyone have a recommendation for a good (down to earth) book on >Exchange 2003, and how Host DNS's (mx records and such) work with my system? > > >Robert Gracie > > > -- Marty Connelly Victoria, B.C. Canada From handyman at actcom.co.il Wed Mar 2 21:35:41 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Thu, 03 Mar 2005 05:35:41 +0200 Subject: [AccessD] tabbed form question In-Reply-To: References: <5.1.0.14.2.20050302201802.04a3a758@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20050303053511.03430de8@pop5.actcom.net.il> I forgot about that. Thanks. works fine. gershon At 08:59 PM, 03/02/2005 +0000, you wrote: >Gershon, > >On the 'data' tab of the text box properties...there is a LOCKED property >( does not allow user to edit data in this field). This allows me to >display the questions and a check box for each record...and the user can >use the check box...but not edit the question. You can even go a step >farther and use the textbox's format properties(back style,back color, >etc.) to make it look like a label. > >Let me know if you have any other questions. > >Thanks, > >Mark > > >>From: handyman at actcom.co.il >>Reply-To: Access Developers discussion and problem >>solving >>To: Access Developers discussion and problem >>solving >>Subject: RE: [AccessD] tabbed form question >>Date: Wed, 02 Mar 2005 20:19:00 +0200 >> >>Mark, >> >>what do you mean by 'locked' text boxes? >> >>Thanks >> >>Gershon >> >>At 04:17 PM, 03/02/2005 +0000, you wrote: >>>Gershon, >>> >>>I do something similar...five tabs...different categories of questions >>>on each tab. Instead of labels...I use 'locked' text boxes in a subform >>>on each tab. The subform is driven by a table that contains ALL of the >>>questions and is filtered by the question type for each tab. >>> >>>Hope that helps. >>> >>>Mark A. Matte >>> >>>>From: handyman at actcom.co.il >>>>Reply-To: Access Developers discussion and problem >>>>solving >>>>To: accessd at databaseadvisors.com >>>>Subject: [AccessD] tabbed form question >>>>Date: Wed, 02 Mar 2005 06:51:18 +0200 >>>> >>>>Hi all, >>>> >>>>I have a tabbed form which has a whole load of categories of different >>>>parts that need to be purchased. Each category can have 1-30 items >>>>below it. I want each tab under the category to list it's item names >>>>and a checkbox. The user can then check off any items that needs to be >>>>purchased. >>>> >>>>I thought of making a tabbed form that has all the categories, and then >>>>have a subform that has 30 checkboxes and thru code fill in the >>>>checkbox label with the item names - and make any unused checkboxes not >>>>visible. >>>>Can anyone suggest an easier way? >>>> >>>>Thanks >>>> >>>>Gershon, (who still can't get my listbox wizards to work, but I ordered >>>>a new version of office) >>>> >>>>Gershon Markowitz >>>>mailto:Handyman at actcom.co.il >>>>http://www.yadchaimtzvi.org >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From martyconnelly at shaw.ca Wed Mar 2 21:51:38 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 02 Mar 2005 19:51:38 -0800 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server References: <4224C365.2040407@shaw.ca> Message-ID: <422689CA.30203@shaw.ca> Another little oddity about using Access Web Services to Sharepoint is some services screw up over authentication. If the user has not been authenticated, a Maximum retry on connection exceeded error occurs. In Visual Basic .NET or C# .NET, you authenticate the user from code by creating a Credentials object for the user. wsAdapter.Credentials = System.Net.CredentialCache.DefaultCredentials However it is not easy to do in Access 2003 with say GetListCollection of sharepoint http://username.sharepointsite.com/_vti_bin/Lists.asmx?op=GetListCollection So if you create a web service class via the wizard to getlist collection it doesn't authenticate properly with code like this testws. But if you pre run any straight forward soap xmlhttp call to the site it then works okay and the access program has established authentication as shown in the click sub below Sub testws() ' Class created by Access WS toolkit to connect to the Web service Dim ws As New clsws_Lists ' The collection is returned as an XML node list Dim lc As MSXML2.IXMLDOMNodeList 'Root node of the returned list Dim nod As MSXML2.IXMLDOMNode ' Document to hold an XSLT transform Dim docXSLT As New MSXML2.DOMDocument50 ' Output string for the XML transformation Dim strOutput As String ' Retrieve the collection of lists Set lc = ws.wsm_GetListCollection ' Create the XSLT to select the desired information docXSLT.LoadXml (" " & _ "" & _ "," & _ "," & _ " ") ' Get the root node from the list Set nod = lc.Item(0) ' Apply the XSLT transform strOutput = (nod.transformNode(docXSLT)) Debug.Print strOutput End Sub Sub Click() On Error GoTo Err_Command8_Click Dim URL As String Dim http As New MSXML2.XMLHTTP Dim objResult As New MSXML2.DOMDocument Dim objStyle As New MSXML2.DOMDocument Dim strEnvelopeBegin As String Dim strEnvelopeEnd As String Dim xmlReq As String Dim s As String Dim strReturned As String Dim strQuery As String s = "" & vbCrLf URL = "http://mconnelly.sharepointsite.com/_vti_bin/Lists.asmx" strEnvelopeBegin = " " & vbCrLf & _ " " strEnvelopeEnd = vbCrLf & " " xmlReq = s & strEnvelopeBegin & strEnvelopeEnd Debug.Print xmlReq ' Me!Text0 = xmlReq ' Me!Text2 = URL http.Open "POST", URL, False 'http.setRequestHeader "Accept", "text/xml" http.setRequestHeader "Content-Type", "text/xml" ' http.setRequestHeader "Cache-Control", "no-cache" http.setRequestHeader "SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/GetListCollection" ' http.setRequestHeader "SOAPMethodName", "GetListCollection" http.send xmlReq Debug.Print http.responseText; Len(http.responseText) Debug.Print http.Status; http.statusText WriteFile "C:\Access files\sharepoint\" & "test" & _ Format(Now, "yyyymmddhhmmss") & ".xml", http.responseText Debug.Print http.responseBody; Len(http.responseBody) Set http = Nothing Exit_Command8_Click: Exit Sub Err_Command8_Click: MsgBox Err.Description Resume Exit_Command8_Click End Sub Public Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub MartyConnelly wrote: > One thing I found out that isn't clear in Sharepoint, is that you have > to assign web designer or contributor rights to a user > even if user is the administrator in order to upload an Access Table. > Now I just have to figure out how to link pictures on the site into > the list (table). > Maybe I have to do this with xml web services. > > Sub WWSupload() > On Error GoTo errout > DoCmd.TransferDatabase transfertype:=acExport, databasetype:="WSS", _ > databasename:="http://username.sharepointsite.com", _ > objecttype:=acTable, Source:="Household Inventory", _ > Destination:="Household Inventory", structureonly:=False > errout: > Debug.Print Err.Number & "-" & Err.Description > End Sub > > Martin Reid wrote: > >> >> Jim >> >> heres another article >> >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/pjsdk/html/pjsdkWebpInstallAndWSS_HV01100336.asp >> >> >> >> Martin >> >> On Mar 1 2005, Jim DeMarco wrote: >> >>> Are we able to create and use custom web parts if we are only using >>> Sharepoint Services (not Portal Server)? >>> >>> Jim DeMarco >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid >>> Sent: Tuesday, March 01, 2005 10:02 AM >>> To: Access Developers discussion and problem solving >>> Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server >>> >>> >>> LOL >>> >>> I have been discussing some stuff of list. >>> But in general SP also contains its own security systemn with lists >>> etc. I am doing two major reviews for a publisher on Sharepoint. I >>> also did a section on FrontPage 203 for Microsoft and I know there >>> are a few articles up on MSDN. Have a look for FrontPage 2003 and >>> Sharepoint. Paul Litwin wrote an article at the same time as me for >>> them which dealt with Web Parts/XML and Access. >>> >>> Its really a trinity of Products - FrontPage 2003 (or .NET) >>> Sharepoint services and SharePoint Portal Server. The Portal Server >>> provides great indexing and searching capability for Sharepoint >>> Services. But the main development tool is Web parts. Web parts >>> provide descrite functionality for example a set of data from SQL >>> Server, DB2 etc. ALso provides a single sign on cabability for >>> multiple systems. >>> >>> Martin >>> >>> >>> >>> On Mar 1 2005, Susan Harkins wrote: >>> >>> > I think Martin's writing a book on SharePoint -- you might ring >>> his > chimes. >>> > > Susan H. > > Marty, >>> > > Under the paragraph Using Sharepoint Lists, Mike states that > >>> Sharepoint > uses an optimistic record locking scheme. This would >>> let > me use an Access database as read-write for one location and >>> read-only > for any others. >>> > > Still, that could be useful in some situations. >>> > > Dan Waters >>> > ProMation Systems >>> > > >>> >> > -- Marty Connelly Victoria, B.C. Canada From adtp at touchtelindia.net Wed Mar 2 22:48:43 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 3 Mar 2005 10:18:43 +0530 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au><01ee01c51f4c$c92 dba80$6401a8c0@HAL9002><00e901c51f58$8b5fc660$6a1865cb@winxp> <023a01c51f5e$8f60f490$6401a8c0@HAL9002> Message-ID: <005f01c51fac$8d242780$031865cb@winxp> Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren From andy at minstersystems.co.uk Thu Mar 3 01:54:58 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 3 Mar 2005 8:54:58 +0100 Subject: [AccessD] Web site up Message-ID: <20050303085456.4F7172BEBB6@smtp.nildram.co.uk> Thanks to you and Bryan for your efforts on our behalf. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Web site up Date: 03/03/05 02:26 > > Hi All: > > Thanks to Bryan and other help the DBA web site is up and running. We will > be working to make sure that there is at least a process in place that will > deter this event from happening again. > > Thanks all for your patients > > Jim Lawrence > The web guy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Paul.Rogers at SummitMedia.co.uk Thu Mar 3 05:42:06 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 3 Mar 2005 11:42:06 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F538@s003.wolds.summitmedia.co.uk> How do I look at the coding in an html email, please gurus? So easy of a website View/source, but it seems hidden away with Outlook. Cheers paul -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 From Chris.Foote at uk.thalesgroup.com Thu Mar 3 06:19:13 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 3 Mar 2005 12:19:13 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C5D7@ntscxch1.int.rdel.co.uk> In Outlook - open e-mail - hover cursor over body of message - click right hand mouse key - select View Source from drop-down menu - viola! HTH - Chris Foote > -----Original Message----- > From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk] > Sent: Thursday, March 03, 2005 11:42 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Looking behind those html emails > > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away > with Outlook. > Cheers > paul From andy at minstersystems.co.uk Thu Mar 3 05:35:49 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 3 Mar 2005 12:35:49 +0100 Subject: [AccessD] Looking behind those html emails Message-ID: <20050303123547.2F93F2C0262@smtp.nildram.co.uk> Hi Paul I'm using Outlook 2K and I can right-click and View Source. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Looking behind those html emails Date: 03/03/05 11:43 > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away with Outlook. > Cheers > paul > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From garykjos at gmail.com Thu Mar 3 08:32:54 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 3 Mar 2005 08:32:54 -0600 Subject: [AccessD] Web site up In-Reply-To: <0ICR00E210JUET@l-daemon> References: <023a01c51f5e$8f60f490$6401a8c0@HAL9002> <0ICR00E210JUET@l-daemon> Message-ID: Thanks Jim and Bryan and anyone else who helped out. You guys don't get nearly the credit you deserve. Thank you, thank you, thank you. Gary Kjos On Wed, 02 Mar 2005 15:43:11 -0800, Jim Lawrence wrote: > Hi All: > > Thanks to Bryan and other help the DBA web site is up and running. We will > be working to make sure that there is at least a process in place that will > deter this event from happening again. > > Thanks all for your patients > > Jim Lawrence > The web guy > > -- > 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 Gustav at cactus.dk Thu Mar 3 08:42:07 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 03 Mar 2005 15:42:07 +0100 Subject: [AccessD] Mimer SQL database engine Message-ID: Hi all Anyone familiar with this: http://www.mimer.com/ I have no idea of the license fee. /gustav From bchacc at san.rr.com Thu Mar 3 09:53:57 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 3 Mar 2005 07:53:57 -0800 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <"01ee01c51f4c$c92 dba80$6401a8c0"@HAL9002> <00e901c51f58$8b5fc660$6a1865cb@winxp> <023a01c51f5e$8f60f490$6401a8c0@HAL9002> <005f01c51fac$8d242780$031865cb@winxp> Message-ID: <009801c52009$35f106b0$6401a8c0@HAL9002> A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Thu Mar 3 10:05:49 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 3 Mar 2005 16:05:49 -0000 Subject: [AccessD] Embedding a WAV file Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C5DE@ntscxch1.int.rdel.co.uk> Personnally Rocky I would really dislike any sound that I could not easily disable. I have all of my machines set to stealth mode with absolute minimum beeps, clangs, whooshes and indeed that jarring windows noise. Consider an office full of machines running your app..... Just my two-pen'oth! Regards! Chris F > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 03, 2005 3:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > A.D.: > > Thanks again. We got feedback from one beta tester who > wanted to know how > to turn off that annoying click. So the question may be moot. > > So here's a user interface question for anyone - we put the > click sound > behind all of the command buttons as an audible confirmation > to the user. > This product is end-item consumer oriented - not to pros or > techies. So > some of the interface problems are a bit different than I've > previously > encountered. Do you think you'd like or dislike a click or > beep sound every > time you click the Next button? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 8:48 PM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Playing a wave sound through OLE control does not cause > any intrusion by > way of invoking a music player (like Real or Windows Media > Player). Just try > it. Absolutely normal except for the focus going to OLE control. > > If you are keen to try the API alternative, a way will > have to be found > to extract the sound clip from OLE object and place it in a > suitable folder. > This takes us back to square one, i.e. the wav files could as > well have been > stored in a special folder - to start with. > > Practical demonstration of playing a wav file using API > call, after > searching for it (if available in the target folder), is > covered in my > sample db named AppointmentsAlert, available at Rogers Access > Library (other > developers library). Link - > http://www.rogersaccesslibrary.com > > Best wishes, > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Thursday, March 03, 2005 01:02 > Subject: Re: [AccessD] Embedding a WAV file > > > A.D: > > Well that does work, but instead of playing it straight through the > speakers like the function: > > Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ > (ByVal IpszName As String, ByVal hModule As Long, _ > ByVal dwFLags As Long) As Long > > does, it invokes a player - in my case RealPlayer. Do you > know of a way > to use the function with an embedded wav file? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 10:48 AM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Sample code given below, pertains to bound OLE control > named Drg. > Record > source for the form is a table having wav sounds stored in > this field. > CmdSound is the name of command button used for playing the sound > pertaining > to current record. > > It may please be noted that when the sound clip is > played, the focus > gets captured by the OLE control. > > Best wishes, > A.D.Tejpal > -------------- > > ============================== > Private Sub CmdSound_Click() > On Error Resume Next > If Drg.OLEType = acOLENone Then > MsgBox "No Recording" > Else > Drg.Action = acOLEActivate > End If 'Drg > On Error GoTo 0 > End Sub > ============================== > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Wednesday, March 02, 2005 22:55 > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include > my WAV file and > it > will be transparent to the user. For beta testing I need > to send them > just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an > Unbound > Object Frame. But getting it to play in the On Click > events of other > controls, like command buttons, is the next problem. And > then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a > table and running > it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > > > Hi Rocky > > I have a folder in the App home folder for sounds. Also > one for Images > and > > Skins etc > > EG > > C:\Program Files\My app will be the 'home' folder > > And in it will be > > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > > C:\Program Files\My app\Images (3 more folders and > about 20 files in > here) > > C:\Program Files\My app\Skins (1 folder (but it can > grow) and many > files > > in > > here) > > > > I install them when I install the app. > > They are my 'standard' folders and files and go with every app. > > And I refer to them now by heart with lines like > > (I actually use globals for the length of the session > But can be done > at > a > > form Sub level just as easy) > > EG > > Dim strSkinToUse as String > > Dim strSkinFolder as String > > Dim strImagesFolder as String > > > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > > > Then I refer to each skin component like.....('Cause I > know 'em off by > > heart) > > > > Me.picture = strSkinFolder & "\Background.jpg" > > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > > > I use the API code "PlaySound" for Playing Sounds > > Eg > > Private Sub Form_Load() > > PlaySound (strSoundsFolder & "\Logon.wav") > > End sub > > > > It works and is pretty simple. > > > > HTH > > > > See ya > > > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Thu Mar 3 10:14:41 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 03 Mar 2005 08:14:41 -0800 Subject: [AccessD] Embedding a WAV file In-Reply-To: <009801c52009$35f106b0$6401a8c0@HAL9002> Message-ID: <0ICS00K86AGEEN@l-daemon> Hi Rocky: I personally am not use to clicking sounds, other than the clonking of the keyboard. I do think a lot of programs use the 'click' sound as the a 'hour-glass' visual clue can be used to inform a user process especially if is taking a while. My two cents worth Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 03, 2005 7:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Thu Mar 3 10:16:03 2005 From: JHewson at karta.com (Jim Hewson) Date: Thu, 3 Mar 2005 10:16:03 -0600 Subject: [AccessD] Embedding a WAV file Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068DFB@karta-exc-int.Karta.com> I have the sound turned down or mute on most of the machines I use. I don't hear the clicks, etc. I do hear music and the like when I need to but that is seldom. The constant sounds of the mouse and keyboard are all the confirmation I need. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 03, 2005 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 3 10:34:41 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 3 Mar 2005 10:34:41 -0600 Subject: [AccessD] Embedding a WAV file In-Reply-To: <009801c52009$35f106b0$6401a8c0@HAL9002> References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <00e901c51f58$8b5fc660$6a1865cb@winxp> <023a01c51f5e$8f60f490$6401a8c0@HAL9002> <005f01c51fac$8d242780$031865cb@winxp> <009801c52009$35f106b0$6401a8c0@HAL9002> Message-ID: I'd hate it. A lot. > Do you think you'd like or dislike a click or beep sound every > time you click the Next button? > > Regards, -- Gary Kjos garykjos at gmail.com From bchacc at san.rr.com Thu Mar 3 10:50:55 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 3 Mar 2005 08:50:55 -0800 Subject: [AccessD] Embedding a WAV file References: <9C382E065F54AE48BC3AA7925DCBB01C02068DFB@karta-exc-int.Karta.com> Message-ID: <011701c52011$2b6ca340$6401a8c0@HAL9002> Thanks all. I'm beginning to get the idea. Confirming clicking is not a desirable feature. Makes this whole problem of running an embedded wav file moot as well. :) Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Jim Hewson" To: "Access Developers discussion and problem solving" Sent: Thursday, March 03, 2005 8:16 AM Subject: RE: [AccessD] Embedding a WAV file >I have the sound turned down or mute on most of the machines I use. > I don't hear the clicks, etc. I do hear music and the like when I need to > but that is seldom. > The constant sounds of the mouse and keyboard are all the confirmation I > need. > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, March 03, 2005 9:54 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > A.D.: > > Thanks again. We got feedback from one beta tester who wanted to know how > to turn off that annoying click. So the question may be moot. > > So here's a user interface question for anyone - we put the click sound > behind all of the command buttons as an audible confirmation to the user. > This product is end-item consumer oriented - not to pros or techies. So > some of the interface problems are a bit different than I've previously > encountered. Do you think you'd like or dislike a click or beep sound > every > time you click the Next button? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 8:48 PM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Playing a wave sound through OLE control does not cause any intrusion > by > way of invoking a music player (like Real or Windows Media Player). Just > try > it. Absolutely normal except for the focus going to OLE control. > > If you are keen to try the API alternative, a way will have to be found > to extract the sound clip from OLE object and place it in a suitable > folder. > This takes us back to square one, i.e. the wav files could as well have > been > stored in a special folder - to start with. > > Practical demonstration of playing a wav file using API call, after > searching for it (if available in the target folder), is covered in my > sample db named AppointmentsAlert, available at Rogers Access Library > (other > developers library). Link - > http://www.rogersaccesslibrary.com > > Best wishes, > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Thursday, March 03, 2005 01:02 > Subject: Re: [AccessD] Embedding a WAV file > > > A.D: > > Well that does work, but instead of playing it straight through the > speakers like the function: > > Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ > (ByVal IpszName As String, ByVal hModule As Long, _ > ByVal dwFLags As Long) As Long > > does, it invokes a player - in my case RealPlayer. Do you know of a way > to use the function with an embedded wav file? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 10:48 AM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Sample code given below, pertains to bound OLE control named Drg. > Record > source for the form is a table having wav sounds stored in this field. > CmdSound is the name of command button used for playing the sound > pertaining > to current record. > > It may please be noted that when the sound clip is played, the focus > gets captured by the OLE control. > > Best wishes, > A.D.Tejpal > -------------- > > ============================== > Private Sub CmdSound_Click() > On Error Resume Next > If Drg.OLEType = acOLENone Then > MsgBox "No Recording" > Else > Drg.Action = acOLEActivate > End If 'Drg > On Error GoTo 0 > End Sub > ============================== > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Wednesday, March 02, 2005 22:55 > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include my WAV file > and > it > will be transparent to the user. For beta testing I need to send them > just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an > Unbound > Object Frame. But getting it to play in the On Click events of other > controls, like command buttons, is the next problem. And then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a table and running > it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > > > Hi Rocky > > I have a folder in the App home folder for sounds. Also one for > Images > and > > Skins etc > > EG > > C:\Program Files\My app will be the 'home' folder > > And in it will be > > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > > C:\Program Files\My app\Images (3 more folders and about 20 files in > here) > > C:\Program Files\My app\Skins (1 folder (but it can grow) and many > files > > in > > here) > > > > I install them when I install the app. > > They are my 'standard' folders and files and go with every app. > > And I refer to them now by heart with lines like > > (I actually use globals for the length of the session But can be done > at > a > > form Sub level just as easy) > > EG > > Dim strSkinToUse as String > > Dim strSkinFolder as String > > Dim strImagesFolder as String > > > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > > > Then I refer to each skin component like.....('Cause I know 'em off > by > > heart) > > > > Me.picture = strSkinFolder & "\Background.jpg" > > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > > > I use the API code "PlaySound" for Playing Sounds > > Eg > > Private Sub Form_Load() > > PlaySound (strSoundsFolder & "\Logon.wav") > > End sub > > > > It works and is pretty simple. > > > > HTH > > > > See ya > > > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Chris.Foote at uk.thalesgroup.com Thu Mar 3 11:02:43 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 3 Mar 2005 17:02:43 -0000 Subject: [AccessD] Embedding a WAV file Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C5E0@ntscxch1.int.rdel.co.uk> Trouble is Rocky you are not really talking to the right kind of users here! If your app. is for use by data-entry type people, copy typing stuff from pieces of paper, they may like the audible feedback. By all means include the click, but offer an option to disable it would be my approch. Best regards! Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 03, 2005 4:51 PM > To: Access Developers discussion and problem solving > Cc: Rubin Naiman > Subject: Re: [AccessD] Embedding a WAV file > > > Thanks all. I'm beginning to get the idea. Confirming > clicking is not a > desirable feature. Makes this whole problem of running an > embedded wav file > moot as well. :) > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Jim Hewson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 03, 2005 8:16 AM > Subject: RE: [AccessD] Embedding a WAV file > > > >I have the sound turned down or mute on most of the machines I use. > > I don't hear the clicks, etc. I do hear music and the like > when I need to > > but that is seldom. > > The constant sounds of the mouse and keyboard are all the > confirmation I > > need. > > Jim From bchacc at san.rr.com Thu Mar 3 11:14:59 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 3 Mar 2005 09:14:59 -0800 Subject: [AccessD] Embedding a WAV file References: <97CF276BD8C6D4119C4B00508BB18DE709E0C5E0@ntscxch1.int.rdel.co.uk> Message-ID: <015c01c52014$8778e8d0$6401a8c0@HAL9002> Actually, the target is consumers - use it at home - its the sleep disorder analysis program. $40-$80, very non-technical users. That change anyone's mind? Rocky ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 03, 2005 9:02 AM Subject: RE: [AccessD] Embedding a WAV file > Trouble is Rocky you are not really talking to the right kind of users > here! > > If your app. is for use by data-entry type people, copy typing stuff from > pieces of paper, they may like the audible feedback. > > By all means include the click, but offer an option to disable it would be > my approch. > > Best regards! > Chris Foote > >> -----Original Message----- >> From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >> Sent: Thursday, March 03, 2005 4:51 PM >> To: Access Developers discussion and problem solving >> Cc: Rubin Naiman >> Subject: Re: [AccessD] Embedding a WAV file >> >> >> Thanks all. I'm beginning to get the idea. Confirming >> clicking is not a >> desirable feature. Makes this whole problem of running an >> embedded wav file >> moot as well. :) >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Jim Hewson" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 03, 2005 8:16 AM >> Subject: RE: [AccessD] Embedding a WAV file >> >> >> >I have the sound turned down or mute on most of the machines I use. >> > I don't hear the clicks, etc. I do hear music and the like >> when I need to >> > but that is seldom. >> > The constant sounds of the mouse and keyboard are all the >> confirmation I >> > need. >> > Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Mar 3 11:23:45 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 03 Mar 2005 12:23:45 -0500 Subject: [AccessD] Embedding a WAV file In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C5E0@ntscxch1.int.rdel.co.uk> Message-ID: <002e01c52015$c12b7560$697aa8c0@ColbyM6805> Agreed, use the registry to store a disable if requested. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: Thursday, March 03, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Embedding a WAV file Trouble is Rocky you are not really talking to the right kind of users here! If your app. is for use by data-entry type people, copy typing stuff from pieces of paper, they may like the audible feedback. By all means include the click, but offer an option to disable it would be my approch. Best regards! Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 03, 2005 4:51 PM > To: Access Developers discussion and problem solving > Cc: Rubin Naiman > Subject: Re: [AccessD] Embedding a WAV file > > > Thanks all. I'm beginning to get the idea. Confirming > clicking is not a > desirable feature. Makes this whole problem of running an > embedded wav file > moot as well. :) > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Jim Hewson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 03, 2005 8:16 AM > Subject: RE: [AccessD] Embedding a WAV file > > > >I have the sound turned down or mute on most of the machines I use. > >I don't hear the clicks, etc. I do hear music and the like > when I need to > > but that is seldom. > > The constant sounds of the mouse and keyboard are all the > confirmation I > > need. > > Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 13:03:45 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 11:03:45 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. From erbachs at gmail.com Thu Mar 3 13:06:13 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 13:06:13 -0600 Subject: [AccessD] Random numbers lottery-style Message-ID: <39cb22f305030311065cc6c1b9@mail.gmail.com> Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From dmcafee at pacbell.net Thu Mar 3 13:15:05 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 3 Mar 2005 11:15:05 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column In-Reply-To: Message-ID: Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Mar 3 13:28:06 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 3 Mar 2005 14:28:06 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> Steve, Rather than an array how about using the VBA Collection object which will allow you to remove an item. Add your Activity ID items to a Collection with your numeric value as the key value. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Random numbers lottery-style Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From pharold at proftesting.com Thu Mar 3 13:29:53 2005 From: pharold at proftesting.com (Perry Harold) Date: Thu, 3 Mar 2005 14:29:53 -0500 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030311065cc6c1b9@mail.gmail.com> Message-ID: <002101c52027$6063e520$192da8c0@D58BT131Perry> Steve How adding a check to see if the ActivityID is already in the selected list - then cycle around and run the randomizer again until there's not a match? Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Random numbers lottery-style Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nkling at co.montgomery.ny.us Thu Mar 3 13:50:30 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Thu, 3 Mar 2005 14:50:30 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <30BC111F638EB54082001A7E7282FE41114D01@elmo.co.montgomery.ny.us> This might do you. Return a randomized list from your table something like this: select tblActivities.* from tblActivities order by rnd(isnull(tblActivities.ActivityID) * 0 + 1) Then take the first 4 records (or however many) from the resulting recordset. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Random numbers lottery-style Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Mar 3 13:58:52 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 13:58:52 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <002101c52027$6063e520$192da8c0@D58BT131Perry> References: <39cb22f305030311065cc6c1b9@mail.gmail.com> <002101c52027$6063e520$192da8c0@D58BT131Perry> Message-ID: <39cb22f305030311583d11419e@mail.gmail.com> Perry, Are you talking about examining the recordset every time a new ActivityID is randomly selected for the current Volunteer before a new row is added? That should work. I guess I'm looking for something a bit more general purpose; that is, a function that returns a number from a given list while removing the number from the list for the next go round. Thanks, Steve Erbach On Thu, 3 Mar 2005 14:29:53 -0500, Perry Harold wrote: > Steve > > How adding a check to see if the ActivityID is already in the selected list > - then cycle around and run the randomizer again until there's not a match? > > Perry Harold From erbachs at gmail.com Thu Mar 3 14:03:11 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 14:03:11 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> Message-ID: <39cb22f305030312031c445e02@mail.gmail.com> JIm, I'd forgotten about collections. So, lets say we have a collection like thise: col(1) = 16 col(2) = 18 col(3) = 27 col(4) = 29 ... col(29) = 147 So we generate a random number from 1 to 29 and zoom in on that index in the collecition. If the selected number is 4 then I pick col(4) and then remove that item from the collection for the next go round. But how, then, do I pick the Nth collection item if the indexes are non-continguous? Or does the collection re-index itself after removing an item? Steve Erbach On Thu, 3 Mar 2005 14:28:06 -0500, Jim DeMarco wrote: > Steve, > > Rather than an array how about using the VBA Collection object which will allow you to remove an item. Add your Activity ID items to a Collection with your numeric value as the key value. > > HTH, > > Jim DeMarco From Lambert.Heenan at AIG.com Thu Mar 3 14:04:37 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 15:04:37 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D4F@xlivmbx21.aig.com> Try this... Function GetRandomSelections(nNumberOfSelections As Long, nSelectFrom As Long) As Variant Dim nSelection() As Long Dim n As Long Dim nHits As Long Dim nRnd As Long ReDim nSelection(nSelectFrom) For n = LBound(nSelection) To UBound(nSelection) nSelection(n) = 0 Next n nHits = 0 Randomize While nHits < nNumberOfSelections nRnd = Int(Rnd() * nSelectFrom) If nSelection(nRnd) = 0 Then ' new number selected. Flag it as 'used' nSelection(nRnd) = 1 nHits = nHits + 1 End If Wend GetRandomSelections = nSelection() End Function Sub testRnd() Dim vArray As Variant Dim n As Long Dim str As String vArray = GetRandomSelections(5, 29) For n = LBound(vArray) To UBound(vArray) If vArray(n) = 1 Then str = str & ", " & n End If Next n Debug.Print "Numbers chosen: " & str End Sub Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 2:06 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Random numbers lottery-style > > Dear Group, > > I'd like to fill up some test data tables in a Volunteer database that > tracks activities and the amount of time volunteers commit to these > activities. > > I thought that I might attempt filling the tables in a random fashion, > but I'm having some difficulty. The table (tblVolActivity) I want to > fill has this structure: > > VolActID - AutoNumber (Key) > VolunteerID - Long > ActivityDate - Date > ActivityID - Long > TimeSpent - Single > > I've created another table (tblTempVols) that contains the following info: > > VolunteerID - Long > NoOfInterests - Long > NoOfTimes - Long > > For each of the 300-odd volunteers I've used the Rnd function to fill > in the two 'NoOf' columns. The NoOfInterests is a number between 1 and > 6, representing the number of different types of activity a Volunteer > commits time to. For example, transporting people, paying visits to > the sick, or working in the gift shop. There are a total of 29 > different activities. > > The NoOfTimes column shows the total number of times the Volunteer > worked during the year. That number is between 1 and 48. Again, I used > the Rnd function to fill this column as well as the NoOfInterests > column. So it looks like this: > > VolunteerID - NoOfInterests - NoOfTimes > 1 - 3 - 13 > 2 - 6 - 5 > 3 - 4 - 2 > 4 - 4 - 16 > 5 - 2 - 38 > etc. > > Now I want to fill another table (tblTempActList) that has this structure: > > VolunteerID - Long > ActivityID - Long > > Here's where I'm stuck. The list of 29 different Activities has > ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is > interested in, say, 4 Interests (from the NoOfInterests column in > tblTempVols) I'd like to insert 4 rows for this Volunteer into this > tblTempActList table and randomly pick the ActivityIDs. Now, of > course, if I use the Rnd function to select 4 ActivityIDs there's a > chance that there will be duplicate ActivityIDs for this Volunteer. So > what I'd like to do is pick the ActivityIDs like they pick lottery > numbers; that is, removing the selected numbers from the pool before > picking the next one. > > How do I accomplish that is the question. Does anybody have, say, a > PickLotteryNumber() function where the function would take a list of > numbers and pick one while removing the selected number from the list > of available numbers? I've been fooling with arrays, but I can't > "erase" an array element from the middle with a ReDim statement. > > If this problem is solved then I can take the next step > > Any ideas? > -- > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > www.swerbach.com > Security Page: www.swerbach.com/security > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Mar 3 14:08:58 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 3 Mar 2005 15:08:58 -0500 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030311583d11419e@mail.gmail.com> Message-ID: <20050303200900.NKBC2296.imf21aec.mail.bellsouth.net@SUSANONE> Steve, I'm not sure what you're trying to do, but I once had produce a random set of records, based on different subsets -- I found it extremely difficult to work out all the kinks because there were so many conditions but in a nutshell, I ran a query to produce each subset, added a Rnd() to the subset, sorted on the Rnd(), and grabbed the top n number of records. Wasn't perfect, but it worked. Unfortunately, it was very slow. I ended up flagging the "selected" records and then running a Make Table on the flagged records, which did improve things a bit, but it never was a performance winner for me, but then, I was working with a ton of data, so I'm not sure anything would've been fast. Susan H. Perry, Are you talking about examining the recordset every time a new ActivityID is randomly selected for the current Volunteer before a new row is added? That should work. I guess I'm looking for something a bit more general purpose; that is, a function that returns a number from a given list while removing the number from the list for the next go round. Thanks, Steve Erbach On Thu, 3 Mar 2005 14:29:53 -0500, Perry Harold wrote: > Steve > > How adding a check to see if the ActivityID is already in the selected > list > - then cycle around and run the randomizer again until there's not a match? > > Perry Harold -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Mar 3 14:18:01 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 14:18:01 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030312031c445e02@mail.gmail.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> <39cb22f305030312031c445e02@mail.gmail.com> Message-ID: <39cb22f3050303121834a18191@mail.gmail.com> According to the documentation for the Remove method of a Collection, the index of the collection is, indeed, renumbered. That just might fill the bill. Thanks, Jim. Steve Erbach On Thu, 3 Mar 2005 14:03:11 -0600, Steve Erbach wrote: > JIm, > > I'd forgotten about collections. So, lets say we have a collection like thise: > > col(1) = 16 > col(2) = 18 > col(3) = 27 > col(4) = 29 > ... > col(29) = 147 > > So we generate a random number from 1 to 29 and zoom in on that index > in the collecition. If the selected number is 4 then I pick col(4) and > then remove that item from the collection for the next go round. > > But how, then, do I pick the Nth collection item if the indexes are > non-continguous? Or does the collection re-index itself after removing > an item? > > Steve Erbach > From Jdemarco at hudsonhealthplan.org Thu Mar 3 14:22:04 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 3 Mar 2005 15:22:04 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D1B@TTNEXCHCL2.hshhp.com> The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 3:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Random numbers lottery-style JIm, I'd forgotten about collections. So, lets say we have a collection like thise: col(1) = 16 col(2) = 18 col(3) = 27 col(4) = 29 ... col(29) = 147 So we generate a random number from 1 to 29 and zoom in on that index in the collecition. If the selected number is 4 then I pick col(4) and then remove that item from the collection for the next go round. But how, then, do I pick the Nth collection item if the indexes are non-continguous? Or does the collection re-index itself after removing an item? Steve Erbach On Thu, 3 Mar 2005 14:28:06 -0500, Jim DeMarco wrote: > Steve, > > Rather than an array how about using the VBA Collection object which will allow you to remove an item. Add your Activity ID items to a Collection with your numeric value as the key value. > > HTH, > > Jim DeMarco -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Lambert.Heenan at AIG.com Thu Mar 3 15:36:26 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 16:36:26 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D52@xlivmbx21.aig.com> Ok. If you'd prefer to use a collection instead of an array.... Function GetRandomCol(nNumberOfSelections As Long, nSelectFrom As Long) As Collection Dim c As New Collection Dim n As Long Dim nHits As Long Dim nRnd As Long Dim bHit As Boolean nHits = 0 Randomize While nHits < nNumberOfSelections nRnd = Int(Rnd() * nSelectFrom) bHit = False For n = 1 To c.Count If c.Item(n) = nRnd Then bHit = True Exit For End If Next n If bHit = False Then c.Add nRnd ' no need for a Key here as we will use the item() array to get at our members nHits = nHits + 1 End If Wend Set GetRandomCol = c End Function Sub testRndColl() Dim c As Collection Dim n As Long Set c = GetRandomCol(5, 29) For n = 1 To c.Count Debug.Print c.Item(n) & ", "; Next n Debug.Print End Sub Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 3:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Random numbers lottery-style > > According to the documentation for the Remove method of a Collection, > the index of the collection is, indeed, renumbered. That just might > fill the bill. Thanks, Jim. > > Steve Erbach > > > On Thu, 3 Mar 2005 14:03:11 -0600, Steve Erbach wrote: > > JIm, > > > > I'd forgotten about collections. So, lets say we have a collection like > thise: > > > > col(1) = 16 > > col(2) = 18 > > col(3) = 27 > > col(4) = 29 > > ... > > col(29) = 147 > > > > So we generate a random number from 1 to 29 and zoom in on that index > > in the collecition. If the selected number is 4 then I pick col(4) and > > then remove that item from the collection for the next go round. > > > > But how, then, do I pick the Nth collection item if the indexes are > > non-continguous? Or does the collection re-index itself after removing > > an item? > > > > Steve Erbach > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 15:45:15 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 13:45:15 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: We're trying to find out *why* it's happening so we can prevent it, and the form is shared with the Access version, so an sproc or view is out of the question. The client is in Oklahoma and using a runtime executable, so there isn't any printing to the immediate window. The fact that the dates appear if we remove the Format function from the rowsource strongly suggests that the dates are there but that something is interfering in rendering them. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 11:15 AM To: Access Developers discussion and problem solving Cc: Steve White Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Mar 3 15:54:30 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 3 Mar 2005 13:54:30 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column In-Reply-To: Message-ID: Something to do with the runtime maybe? Are you testing with a true runtime or using the /runtime parameter in the command line when testing on your end? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 1:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column We're trying to find out *why* it's happening so we can prevent it, and the form is shared with the Access version, so an sproc or view is out of the question. The client is in Oklahoma and using a runtime executable, so there isn't any printing to the immediate window. The fact that the dates appear if we remove the Format function from the rowsource strongly suggests that the dates are there but that something is interfering in rendering them. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 11:15 AM To: Access Developers discussion and problem solving Cc: Steve White Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 16:02:34 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 14:02:34 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: No, if it were the runtime installation (which is AXP SP3, BTW), we'd have problems on all the installations at that client. It's only turning up on some of the Win2k machines, not all. Even then, it doesn't make sense that it would display properly when you selected a well from the combobox on the form but not when you selected a well from another form and passed the value back, since that calls exactly the same AfterUpdate event for the Well combobox that making a direct selection calls. Furthermore, it ONLY breaks after opening the second form and choosing a well from there. We can't reproduce it in our office at all, but one of our owners saw it in action at the client location. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 1:54 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Something to do with the runtime maybe? Are you testing with a true runtime or using the /runtime parameter in the command line when testing on your end? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 1:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column We're trying to find out *why* it's happening so we can prevent it, and the form is shared with the Access version, so an sproc or view is out of the question. The client is in Oklahoma and using a runtime executable, so there isn't any printing to the immediate window. The fact that the dates appear if we remove the Format function from the rowsource strongly suggests that the dates are there but that something is interfering in rendering them. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 11:15 AM To: Access Developers discussion and problem solving Cc: Steve White Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Mar 3 16:13:49 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 17:13:49 -0500 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D53@xlivmbx21.aig.com> I've just been dealing with a similar problem where I was using Left() in a combo's rowsource (I was taking the left 255 characters from a memo field so that I could sort on it). The combo would show blank rows on certain machines. Here is what I've found: This is an Access 97 application. The application uses Outlook to send email, so it has a reference set to the Outlook object library - for Outlook 97. It is running on a group of machines, some of which have Outlook 2000 and other have 97. This does not cause the 'usual' missing reference problem, rather Left() and Now() and such would need seem to function in Queries. Here's how I fixed it. I wrote a little module that wrapped the VBA functions Left, Right, Mid, Now and Date like this... Option Compare Database Option Explicit ' This module wraps a bunch of common VBA functions to help avoid problems with ' different versions of Outlook Function uLeft(strSource As String, nPos As Long) As String uLeft = VBA.Left$(strSource, nPos) End Function Function uRight(strSource As String, nPos As Long) As String uRight = VBA.Right$(strSource, nPos) End Function Function uMid(strSource As String, nStart As Long, Optional nEnd As Long = 0) If nEnd > 0 Then uMid = VBA.Mid$(strSource, nStart, nEnd) Else uMid = VBA.Mid$(strSource, nStart) End If End Function Function uNow() As Date uNow = VBA.Now() End Function Function uDate() As Date uDate = VBA.Date() End Function Function uFormat(sExpression As Variant, sFormat As String, Optional nFirstDayOfweek As Long = vbSunday, Optional nFirstWeekOfYear As Long = vbFirstJan1) As Variant uFormat = VBA.Format$(sExpression, sFormat, nFirstDayOfweek, nFirstWeekOfYear) End Function What this code does is prefix the calls to the VBA function with the explicit object library reference (VBA.) and this seems to have fixed my problem, so perhaps it can do the same for yours. Having written the module I then used Rick Fisher's Find and Replace to seek out and change all the calls to these functions to my 'universal' versions (hence the 'u' suffix in the function names). HTH Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, March 03, 2005 4:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > We're trying to find out *why* it's happening so we can prevent it, and > the form is shared with the Access version, so an sproc or view is out > of the question. The client is in Oklahoma and using a runtime > executable, so there isn't any printing to the immediate window. The > fact that the dates appear if we remove the Format function from the > rowsource strongly suggests that the dates are there but that something > is interfering in rendering them. > > Charlotte Foust > > > -----Original Message----- > From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] > Sent: Thursday, March 03, 2005 11:15 AM > To: Access Developers discussion and problem solving > Cc: Steve White > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > > Have you printed to the immediate window to see if the value is actually > in the combo (just not displaying)? > > What about changing the resource to a view or sproc that formats the > number for you? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Thursday, March 03, 2005 11:04 AM > To: AccessD at databaseadvisors.com > Cc: Steve White > Subject: [AccessD] AXP Combobox Shows blank formatted date column > > > We have a client installation where certain machines running Windows > 2000 are seeing an odd behavior in a combobox that displays two columns, > a report number and a medium formatted date. We have not been able to > reproduce the behavior here even on Win2k, so I need some ideas. The > back end is SQL Server 2000 and the combobox has this for a rowsource: > > SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") > FROM DailyDrillHdr WHERE > ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by > ReportNo desc; > > This works fine when the form opens and a WellID is selected. It breaks > when the user brings up a popup form that allows them to select a > different WellID and hand that back to the initial form. The initial > form obligingly changes the WellID in its Well combobox, which > repopulates the subform, and it specifically requeries the report number > combobox in the AfterUpdate event of the WellID combobox. > > At this point, however, on those problem machines, the date column of > the report number combo is blank and it doesn't show dates again until > the form is closed and reopened. The combobox is being requeried, > because the correct report numbers do show up in it, but not the dates > associated with them. The really odd part is that if you take the > formatting out of the combobox rowsource, the dates show up every time. > > > Has anyone else seen something like this? I know I have, but it's been > years ago and I can't remember what caused it! > > Charlotte Foust > Infostat Systems, Inc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Mar 3 16:26:38 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 16:26:38 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D1B@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D1B@TTNEXCHCL2.hshhp.com> Message-ID: <39cb22f305030314261ce420ae@mail.gmail.com> Jim, Thanks. I've created a collection that holds the dates for each day of the year for a one-year period. I also have a collection for the list of volunteer interests for one volunteer. But something funny is happening. I'm using Access 2003. In one procedure I DIM the two New Collections, colDays and colInts. I fill the colDays collection with a procedure that looks like this (I pass the colDays collection as a parameter right after DIMing it): Private Sub FillDaysCol(colD As Collection) Dim i As Long Dim dat As Date On Error GoTo PROC_ERR ' Set the starting day dat = CDate("8/1/2003") ' 366 days because of the leap year For i = 1 To 366 colD.Add dat, CStr(i) dat = DateAdd("d", 1, dat) Next i PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillDaysCol" Resume PROC_EXIT End Sub This works champion. I can Remove items from the collection at will and the collection persists as I pass it from procedure to procedure as a parameter. On the other hand, the colInts doesn't work so well. I DIM the colInts and pass it as a parameter to another procedure to fill it with the values from a recordset: Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) Dim lng1 As Long On Error GoTo PROC_ERR lng1 = 1 Do While Not rstI.EOF colI.Add rstI("ActivityID"), CStr(lng1) lng1 = lng1 + 1 rstI.MoveNext Loop PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillIntsCol" Resume PROC_EXIT End Sub The procedure builds the collection all right, but when I try to refer to one of its items back in the calling procedure, I get the error: Error 3420 : Object invalid or no longer set Now, if I put a break in the code at the start of the Do While loop, I can check the item's value in the Immediate window right after it's been added to the collection. But when the loop finishes up, I check the Count of the collection and I get the right number of items...but then I try to check the value of one of those items in the Immediate window, I get the error: No current record (runtime error 3021) What's this about a "record"? I am stumped here. Why does one collection "building" procedure work, but the other one doesn't? Steve Erbach On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco wrote: > The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. > > Jim D. From markamatte at hotmail.com Thu Mar 3 16:28:33 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 03 Mar 2005 22:28:33 +0000 Subject: [AccessD] AXP Combobox Shows blank formatted date column In-Reply-To: Message-ID: Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well from >another form and passed the value back, since that calls exactly the >same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when testing >on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is actually >in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two columns, >a report number and a medium formatted date. We have not been able to >reproduce the behavior here even on Win2k, so I need some ideas. The >back end is SQL Server 2000 and the combobox has this for a rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It breaks >when the user brings up a popup form that allows them to select a >different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report number >combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 16:46:56 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 14:46:56 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Thanks, Mark. I tried to get to the old archives, but got a "cannot display page" error getting to Drew's site. Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, March 03, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well >from another form and passed the value back, since that calls exactly >the same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when >testing on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is >actually in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two >columns, a report number and a medium formatted date. We have not been >able to reproduce the behavior here even on Win2k, so I need some >ideas. The back end is SQL Server 2000 and the combobox has this for a >rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It >breaks when the user brings up a popup form that allows them to select >a different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report >number combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 16:52:16 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 14:52:16 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Eek! Did I remember to mention that the Record number combobox is unbound? It is merely used to select a report for viewing in the subforms. Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, March 03, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well >from another form and passed the value back, since that calls exactly >the same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when >testing on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is >actually in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two >columns, a report number and a medium formatted date. We have not been >able to reproduce the behavior here even on Win2k, so I need some >ideas. The back end is SQL Server 2000 and the combobox has this for a >rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It >breaks when the user brings up a popup form that allows them to select >a different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report >number combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Mar 3 16:53:52 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 17:53:52 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D57@xlivmbx21.aig.com> Could you post the code you are using to refer to an item in the collection? Both from your procedure and whatever you use in the immediate window. In fact would you mind posting the whole procedure that calls the two routines to populate the collections and then makes use of them? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 5:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Random numbers lottery-style > > Jim, > > Thanks. I've created a collection that holds the dates for each day of > the year for a one-year period. I also have a collection for the list > of volunteer interests for one volunteer. But something funny is > happening. > > I'm using Access 2003. In one procedure I DIM the two New Collections, > colDays and colInts. I fill the colDays collection with a procedure > that looks like this (I pass the colDays collection as a parameter > right after DIMing it): > > Private Sub FillDaysCol(colD As Collection) > Dim i As Long > Dim dat As Date > > On Error GoTo PROC_ERR > > ' Set the starting day > dat = CDate("8/1/2003") > ' 366 days because of the leap year > For i = 1 To 366 > colD.Add dat, CStr(i) > dat = DateAdd("d", 1, dat) > Next i > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillDaysCol" > Resume PROC_EXIT > End Sub > > This works champion. I can Remove items from the collection at will > and the collection persists as I pass it from procedure to procedure > as a parameter. > > On the other hand, the colInts doesn't work so well. I DIM the colInts > and pass it as a parameter to another procedure to fill it with the > values from a recordset: > > Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) > Dim lng1 As Long > > On Error GoTo PROC_ERR > > lng1 = 1 > Do While Not rstI.EOF > colI.Add rstI("ActivityID"), CStr(lng1) > lng1 = lng1 + 1 > rstI.MoveNext > Loop > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillIntsCol" > Resume PROC_EXIT > End Sub > > The procedure builds the collection all right, but when I try to refer > to one of its items back in the calling procedure, I get the error: > > Error 3420 : Object invalid or no longer set > > Now, if I put a break in the code at the start of the Do While loop, I > can check the item's value in the Immediate window right after it's > been added to the collection. But when the loop finishes up, I check > the Count of the collection and I get the right number of items...but > then I try to check the value of one of those items in the Immediate > window, I get the error: > > No current record (runtime error 3021) > > What's this about a "record"? I am stumped here. Why does one > collection "building" procedure work, but the other one doesn't? > > Steve Erbach > > On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco > wrote: > > The collection will reindex itself. There will be one less item for > each iteration so you'll have to use the Count property of the Collection > to determine the upper bound of the index in your random selection > process. > > > > Jim D. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Mar 3 17:38:07 2005 From: pharold at proftesting.com (Perry Harold) Date: Thu, 3 Mar 2005 18:38:07 -0500 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030311583d11419e@mail.gmail.com> Message-ID: <003e01c5204a$0f0ac540$192da8c0@D58BT131Perry> Yes. If you find it exits just cycle back through the process again. Would only work for this one process of course - wouldn't be reusable in other apps without adaptation. Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Random numbers lottery-style Perry, Are you talking about examining the recordset every time a new ActivityID is randomly selected for the current Volunteer before a new row is added? That should work. I guess I'm looking for something a bit more general purpose; that is, a function that returns a number from a given list while removing the number from the list for the next go round. Thanks, Steve Erbach On Thu, 3 Mar 2005 14:29:53 -0500, Perry Harold wrote: > Steve > > How adding a check to see if the ActivityID is already in the selected > list > - then cycle around and run the randomizer again until there's not a match? > > Perry Harold -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 18:32:46 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 11:32:46 +1100 Subject: [AccessD] Web site up In-Reply-To: <0ICR00E210JUET@l-daemon> Message-ID: <200503040033.j240XelE020131@cooper.uws.edu.au> Well done team -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, 3 March 2005 10:43 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Web site up Hi All: Thanks to Bryan and other help the DBA web site is up and running. We will be working to make sure that there is at least a process in place that will deter this event from happening again. Thanks all for your patients Jim Lawrence The web guy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 21:16:13 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 14:16:13 +1100 Subject: [AccessD] Embedding a WAV file In-Reply-To: <009801c52009$35f106b0$6401a8c0@HAL9002> Message-ID: <200503040316.j243GIlE004789@cooper.uws.edu.au> Hi Rocky - for what it's worth I usually put a Check box in some Settings/Preferences screen that is bound To a local options table Say...tblOptions In that Table I have a Field called AllowSounds - Data type = Number Bind it to a check box in the Preferences/Settings screen I'm only saying give 'em access to the basics like Sound on or off Or Pretty headers and footers on or off etc - nothing too dramatic I have a special Admin Settings/preferences screen for Admin users So for a basic non technical user a check box or two on a preferences/Settings screen is fine. Anyway I find it simple to implement and manage They get to set the sound on or off So...When the app. Loads set a global or a form level global something like Psuedo code Option Compare Database Option Explicit Dim frm_lvl_glob_intAllowSounds as integer frm_lvl_glob_intAllowSounds = dlookup("[AllowSounds]","tbloptions") Private sub SomeEvent() if frm_lvl_glob_intAllowSounds =-1 then 'Don't play a sound - simple elseif frm_lvl_glob_intAllowSounds =0 then 'Cool - play the sound else 'Dunno what to say :-)) end if End sub See ya Darren PS Even though it may be a mott point did you get the Sound Demo?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, 4 March 2005 2:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Mar 3 21:52:55 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 4 Mar 2005 14:52:55 +1100 Subject: [AccessD] Am I missing something simple? - function in query criteria Message-ID: <001501c5206d$a6c88390$8001a8c0@user> Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net From d.dick at uws.edu.au Thu Mar 3 22:45:47 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 15:45:47 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <200503040445.j244jqlE002500@cooper.uws.edu.au> Just a WAG Are you referencing a subform in the first IsFormOpen statement? If so try putting .form. between [FrmClientMarketValueHistorySubform] and [TemplateID] so it loks like GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform].form.[Templa teID] Instead of GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] HTH DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 4 March 2005 2:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in querycriteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 22:50:43 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 15:50:43 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <200503040450.j244onlE009649@cooper.uws.edu.au> Also I can't see a "Value if null' in the nz statement surrounding the DLOOKUP -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 4 March 2005 2:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in querycriteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 23:01:11 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 16:01:11 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <200503040501.j2451GlE021648@cooper.uws.edu.au> Something else You are testing for the existence of 2 forms and an alternative Have you made sure that when each form is actually open it returns a result? Same as the Dlookup alternative? IE run the function with each form open and look at the debug result Then the same with neither form open to see if the dlookup does its stuff DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 4 March 2005 2:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in querycriteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Mar 3 23:02:38 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 03 Mar 2005 21:02:38 -0800 Subject: [AccessD] Am I missing something simple? - function in query criteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <0ICT0010UA0D42@l-daemon> Hi Kath: Is the public function in a module and not the current form? Calling a function, from a query only works in a module. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, March 03, 2005 7:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in query criteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Mar 3 23:25:57 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 4 Mar 2005 16:25:57 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria References: <0ICT0010UA0D42@l-daemon> Message-ID: <006f01c5207a$a60b3b20$8001a8c0@user> Yep - it is in a module - Kath ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, March 04, 2005 4:02 PM Subject: RE: [AccessD] Am I missing something simple? - function in querycriteria Hi Kath: Is the public function in a module and not the current form? Calling a function, from a query only works in a module. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, March 03, 2005 7:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in query criteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Mar 4 01:39:59 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 4 Mar 2005 07:39:59 -0000 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <017a01c5208d$5e9b22b0$b274d0d5@minster33c3r25> Just to help you see what's happening try making the function a column in your query and see what it shows. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kath Pelletti > Sent: 04 March 2005 03:53 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Am I missing something simple? - function > in querycriteria > > > Hi all - > > I am using a function in my query criteria. The function > works and returns a value of 52275 (I can see that from the > debug window). > > If I type in 52275 as the query criteria it rerurns a result, > but if I use the function it doesn't. After much head banging > I am looking for something basic I may be doing wrong. Any ideas? > > Function is: > > Public Function GetTemplateld() As Long > Dim strerrormsg As String > Dim StrAccountno As String > Dim IntRepCycleID As Integer > 'On Error GoTo Err_Handler > > If IsFormOpen("FrmClientDetails") = True Then > GetTemplateld = > [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform > ]![TemplateID] > > ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then > GetTemplateld = > [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] > > ElseIf IsFormOpen("FrmMainMenu") = True Then > StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] > IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] > gettemplateid = Nz(DLookup("[TemplateID]", > "TblHistory_SubAccountTemplate", _ > "[AccountNo] = '" & StrAccountno & " '" & " And > [reportcycleid] = " & IntRepCycleID)) Else > gettemplateid = 0 > End If > > Debug.Print gettemplateid > > Normal_exit: > Exit Function > Err_Handler: > MsgBox "Error: [" & Err.Number & "] " & > IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), > vbCritical, "Error Message" > Resume Normal_exit > End Function > > ______________________________________________ > Kath Pelletti > Software Design & Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > KP at SDSOnline.net > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From accessd666 at yahoo.com Fri Mar 4 02:19:38 2005 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 4 Mar 2005 00:19:38 -0800 (PST) Subject: [AccessD] Dynamicly build and use Import Specs Message-ID: <20050304081938.31270.qmail@web90107.mail.scd.yahoo.com> Hi group, is it possible to dynamicly build an import spec? So a user selects a CSV file to link to access. However there is no Import Specification for this file. Is it possible to build a Import Spec on the fly and then use it to link the file? Regards, Sander __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From Erwin.Craps at ithelps.be Fri Mar 4 03:03:18 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 4 Mar 2005 10:03:18 +0100 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B584D@stekelbes.ithelps.local> I'm not sure I understand the problem fully, but I believe to recognise an issue I struggled with when running in a Access Runtime with listboxes. This was the case with listboxes rowsource property that was set from VBA code. Sometimes, with some users it was blanc whatever I did... Only in the Runtime version, not in Full Access. The problem lies in the rowsource property. Because I build the SQL string in VBA code to set it when selecting stuff, I used to leave the rowsource property empty. By dooing this the runtime does not know how to build the colomns (fields) of the listbox. It is posible this was only with an unbound control, I don't know that. The solution is to always set the rowsource property with a correct SQL string so the runtime knows when opening the form how much fields there are. I also tend to set my sql string criteria to "Somefield is null" so I was sure no data was displayed when first opening the form. This is true for A2K runtime, don't know for others, but since then I always program it this way. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:52 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Eek! Did I remember to mention that the Record number combobox is unbound? It is merely used to select a report for viewing in the subforms. Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, March 03, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well >from another form and passed the value back, since that calls exactly >the same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when >testing on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is >actually in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two >columns, a report number and a medium formatted date. We have not been >able to reproduce the behavior here even on Win2k, so I need some >ideas. The back end is SQL Server 2000 and the combobox has this for a >rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It >breaks when the user brings up a popup form that allows them to select >a different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report >number combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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.Rogers at SummitMedia.co.uk Fri Mar 4 04:34:22 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 4 Mar 2005 10:34:22 -0000 Subject: [AccessD] How to see the coding of html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F53C@s003.wolds.summitmedia.co.uk> Not exactly Access, forgive me, but how do you see the code of an html email, please, Gurus? Cheers paul -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 From Paul.Rogers at SummitMedia.co.uk Fri Mar 4 04:40:11 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 4 Mar 2005 10:40:11 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F53D@s003.wolds.summitmedia.co.uk> Many thanks, Andy. -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 03 March 2005 11:36 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looking behind those html emails Hi Paul I'm using Outlook 2K and I can right-click and View Source. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Looking behind those html emails Date: 03/03/05 11:43 > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away with Outlook. > Cheers > paul > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 From Paul.Rogers at SummitMedia.co.uk Fri Mar 4 04:40:41 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 4 Mar 2005 10:40:41 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F53E@s003.wolds.summitmedia.co.uk> Many thanks, Chris -----Original Message----- From: Foote, Chris [mailto:Chris.Foote at uk.thalesgroup.com] Sent: 03 March 2005 12:19 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Looking behind those html emails In Outlook - open e-mail - hover cursor over body of message - click right hand mouse key - select View Source from drop-down menu - viola! HTH - Chris Foote > -----Original Message----- > From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk] > Sent: Thursday, March 03, 2005 11:42 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Looking behind those html emails > > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away > with Outlook. > Cheers > paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 From Gustav at cactus.dk Fri Mar 4 04:56:55 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 11:56:55 +0100 Subject: [AccessD] Am I missing something simple? - function in querycriteria Message-ID: Hit Kath This line is in error: "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Should read: "[AccountNo] = '" & StrAccountno & "'" & " And [reportcycleid] = " & IntRepCycleID & "")) Also, this should read: GetTemplateld = [Forms]![FrmClientDetails]![NameOfYourSubformControl].Form![TemplateID] /gustav >>> KP at sdsonline.net 04-03-2005 04:52:55 >>> Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net From Gustav at cactus.dk Fri Mar 4 05:06:02 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 12:06:02 +0100 Subject: [AccessD] Random numbers lottery-style Message-ID: Hi Steve The last part can be solved by a function and a query. You set Picked to True when a record is drawn. Calling Randomize outside the query (by an external function) takes place in a different scope than that of the query, thus if Rnd(..) is run in the query with the same seed initially it will, of course, return the same sample or sequence of samples. The solution is to generate the random number in the external function: Public Function RandomNumber( _ Optional ByVal booRandomize As Boolean) _ As Single Static booRandomized As Boolean If booRandomize = True Or booRandomized = False Then ' A new seed is requested or this is the first run. Randomize booRandomized = True End If ' Generate and return a random number. RandomNumber = Rnd() End Function Now the query would look something like this: SELECT TOP n * FROM tblPick WHERE tblPick.Picked = False ORDER BY RandomNumber([ID] Is Null); where n is the count of records in the requested sample, and ID is a field that is never Null like the primary key. The use of ID in the parameter is needed to call RandomNumber not once but for every record. /gustav >>> erbachs at gmail.com 03-03-2005 20:06:13 >>> Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From Gustav at cactus.dk Fri Mar 4 05:17:42 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 12:17:42 +0100 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Hi Lambert To me this _does_ look like the missing reference problem. Did you try to reestablish the references by removing one and adding it back (old trick)? /gustav >>> Lambert.Heenan at AIG.com 03-03-2005 23:13:49 >>> I've just been dealing with a similar problem where I was using Left() in a combo's rowsource (I was taking the left 255 characters from a memo field so that I could sort on it). The combo would show blank rows on certain machines. Here is what I've found: This is an Access 97 application. The application uses Outlook to send email, so it has a reference set to the Outlook object library - for Outlook 97. It is running on a group of machines, some of which have Outlook 2000 and other have 97. This does not cause the 'usual' missing reference problem, rather Left() and Now() and such would need seem to function in Queries. Here's how I fixed it. I wrote a little module that wrapped the VBA functions Left, Right, Mid, Now and Date like this... Option Compare Database Option Explicit ' This module wraps a bunch of common VBA functions to help avoid problems with ' different versions of Outlook Function uLeft(strSource As String, nPos As Long) As String uLeft = VBA.Left$(strSource, nPos) End Function Function uRight(strSource As String, nPos As Long) As String uRight = VBA.Right$(strSource, nPos) End Function Function uMid(strSource As String, nStart As Long, Optional nEnd As Long = 0) If nEnd > 0 Then uMid = VBA.Mid$(strSource, nStart, nEnd) Else uMid = VBA.Mid$(strSource, nStart) End If End Function Function uNow() As Date uNow = VBA.Now() End Function Function uDate() As Date uDate = VBA.Date() End Function Function uFormat(sExpression As Variant, sFormat As String, Optional nFirstDayOfweek As Long = vbSunday, Optional nFirstWeekOfYear As Long = vbFirstJan1) As Variant uFormat = VBA.Format$(sExpression, sFormat, nFirstDayOfweek, nFirstWeekOfYear) End Function What this code does is prefix the calls to the VBA function with the explicit object library reference (VBA.) and this seems to have fixed my problem, so perhaps it can do the same for yours. Having written the module I then used Rick Fisher's Find and Replace to seek out and change all the calls to these functions to my 'universal' versions (hence the 'u' suffix in the function names). HTH Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, March 03, 2005 4:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > We're trying to find out *why* it's happening so we can prevent it, and > the form is shared with the Access version, so an sproc or view is out > of the question. The client is in Oklahoma and using a runtime > executable, so there isn't any printing to the immediate window. The > fact that the dates appear if we remove the Format function from the > rowsource strongly suggests that the dates are there but that something > is interfering in rendering them. > > Charlotte Foust > > > -----Original Message----- > From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] > Sent: Thursday, March 03, 2005 11:15 AM > To: Access Developers discussion and problem solving > Cc: Steve White > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > > Have you printed to the immediate window to see if the value is actually > in the combo (just not displaying)? > > What about changing the resource to a view or sproc that formats the > number for you? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Thursday, March 03, 2005 11:04 AM > To: AccessD at databaseadvisors.com > Cc: Steve White > Subject: [AccessD] AXP Combobox Shows blank formatted date column > > > We have a client installation where certain machines running Windows > 2000 are seeing an odd behavior in a combobox that displays two columns, > a report number and a medium formatted date. We have not been able to > reproduce the behavior here even on Win2k, so I need some ideas. The > back end is SQL Server 2000 and the combobox has this for a rowsource: > > SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") > FROM DailyDrillHdr WHERE > ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by > ReportNo desc; > > This works fine when the form opens and a WellID is selected. It breaks > when the user brings up a popup form that allows them to select a > different WellID and hand that back to the initial form. The initial > form obligingly changes the WellID in its Well combobox, which > repopulates the subform, and it specifically requeries the report number > combobox in the AfterUpdate event of the WellID combobox. > > At this point, however, on those problem machines, the date column of > the report number combo is blank and it doesn't show dates again until > the form is closed and reopened. The combobox is being requeried, > because the correct report numbers do show up in it, but not the dates > associated with them. The really odd part is that if you take the > formatting out of the combobox rowsource, the dates show up every time. > > > Has anyone else seen something like this? I know I have, but it's been > years ago and I can't remember what caused it! > > Charlotte Foust > Infostat Systems, Inc. From Gustav at cactus.dk Fri Mar 4 05:27:49 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 12:27:49 +0100 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Hi Charlotte I would try up to four things until success: 1. Replace the format string with "dd\-mmm\-yy" 2. Adjust the query using Group By. 3. Save the query as a stored query and use this. 4. Replace [Forms]![frmDailyRpt]![cboWellID] with a function GetSelectedWellID() which retrieves the WellID but returns a Long as I guess your ID is. /gustav >>> cfoust at infostatsystems.com 03-03-2005 20:03:45 >>> We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. From accessd666 at yahoo.com Fri Mar 4 08:21:54 2005 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 4 Mar 2005 06:21:54 -0800 (PST) Subject: [AccessD] Run stored action query Message-ID: <20050304142154.40043.qmail@web90103.mail.scd.yahoo.com> Hi group, how do I run a stored action query using VBA? I'm using A2K. I know how to run a select query. I tried the same for my action query but Access didn't like that :-( TIA Sander __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From andy at minstersystems.co.uk Fri Mar 4 08:09:07 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 4 Mar 2005 15:09:07 +0100 Subject: [AccessD] Run stored action query Message-ID: <20050304150904.463A22C0BBC@smtp.nildram.co.uk> Hi Sander Dim db as Database Dim qdf as Querydef Set db = CurrentDb Set qdf=db.Querydefs("xxxxquery") qdf.Execute set qdf = nothing set db = nothing HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Acces User Group Subject: [AccessD] Run stored action query Date: 04/03/05 14:24 > > Hi group, > > how do I run a stored action query using VBA? > I'm using A2K. > > I know how to run a select query. I tried the same for > my action query but Access didn't like that :-( > > TIA > > Sander > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From reuben at gfconsultants.com Fri Mar 4 09:45:00 2005 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 4 Mar 2005 10:45:00 -0500 Subject: [AccessD] Run stored action query In-Reply-To: <20050304150904.463A22C0BBC@smtp.nildram.co.uk> Message-ID: You should be able to use Docmd.OpenQuery("queryname") You may also want to use "docmd.setwarnings False" before the query and "docmd.setwarnings True" after the query so the user doesn't have to answer the prompts about adding, editing, or deleting records associated with action queries. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, March 04, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Run stored action query Hi Sander Dim db as Database Dim qdf as Querydef Set db = CurrentDb Set qdf=db.Querydefs("xxxxquery") qdf.Execute set qdf = nothing set db = nothing HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Acces User Group Subject: [AccessD] Run stored action query Date: 04/03/05 14:24 > > Hi group, > > how do I run a stored action query using VBA? > I'm using A2K. > > I know how to run a select query. I tried the same for > my action query but Access didn't like that :-( > > TIA > > Sander > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Mar 4 13:13:38 2005 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 4 Mar 2005 13:13:38 -0600 Subject: [AccessD] OT: VB.NET code window Message-ID: <100F91B31300334B89EC531C9DCB08656F0A96@tccexch01.tappeconstruction.net> I've run across a new "feature" of Visual Studio.net, but have no idea what it is used for. In the left hand margin of the code window, where breakpoints would normally display, certain lines have a light blue rectangular marker. Can someone tell me what this is all about? Even my buddy Google is going "huh?" Brett Barabash Lead Software Developer Tappe Construction, Co. Eagan, MN Email: bbarabash at tappeconstruction.com Phone: (651) 256-6831 "If you go through a lot of hammers each month, I don't think it necessarily means you're a hard worker. It may just mean that you have a lot to learn about proper hammer maintenance." - Jack Handey -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From BBarabash at TappeConstruction.com Fri Mar 4 13:19:00 2005 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 4 Mar 2005 13:19:00 -0600 Subject: [AccessD] RE: OT: VB.NET code window Message-ID: <100F91B31300334B89EC531C9DCB08656F0A97@tccexch01.tappeconstruction.net> Sorry, please disregard my previous message. Apparently I have just discovered the "bookmark" feature of the code editor. ________________________________ From: Brett Barabash Sent: Friday, March 04, 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: OT: VB.NET code window I've run across a new "feature" of Visual Studio.net, but have no idea what it is used for. In the left hand margin of the code window, where breakpoints would normally display, certain lines have a light blue rectangular marker. Can someone tell me what this is all about? Even my buddy Google is going "huh?" Brett Barabash Lead Software Developer Tappe Construction, Co. Eagan, MN Email: bbarabash at tappeconstruction.com Phone: (651) 256-6831 "If you go through a lot of hammers each month, I don't think it necessarily means you're a hard worker. It may just mean that you have a lot to learn about proper hammer maintenance." - Jack Handey -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From martyconnelly at shaw.ca Fri Mar 4 14:34:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 04 Mar 2005 12:34:41 -0800 Subject: [AccessD] Dynamicly build and use Import Specs References: <20050304081938.31270.qmail@web90107.mail.scd.yahoo.com> Message-ID: <4228C661.6000402@shaw.ca> Why not just use the Import File Wizard on the last form of the wizard there is the option under the advanced tab to save the .ini file. or the Link text Wizard has this option too under Access 2003. Sad Der wrote: >Hi group, > >is it possible to dynamicly build an import spec? > >So a user selects a CSV file to link to access. >However there is no Import Specification for this >file. > >Is it possible to build a Import Spec on the fly and >then use it to link the file? > >Regards, > >Sander > > > > >__________________________________ >Celebrate Yahoo!'s 10th Birthday! >Yahoo! Netrospective: 100 Moments of the Web >http://birthday.yahoo.com/netrospective/ > > -- Marty Connelly Victoria, B.C. Canada From mcaro at bigpond.net.au Fri Mar 4 15:01:51 2005 From: mcaro at bigpond.net.au (Martin Caro) Date: Sat, 5 Mar 2005 08:01:51 +1100 Subject: [AccessD] Back to Front Message-ID: <000a01c520fd$638c7010$0100000a@MITSERVER> Hi folks What's the simplest way to do the following... I have a table of hotels 1:M with a table of owners. (HotelID is my primary/foreign key) I want to select an owner from the owner table and for as many times as that owner appears in the child table, list (in a subform), the related hotels in the parent table. I'm OK with the mechanics its just that it's back to front from normal and it's the wrong end of the week (recursion?). Ta Martin From jeffrey.demulling at usbank.com Fri Mar 4 15:14:54 2005 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 4 Mar 2005 15:14:54 -0600 Subject: [AccessD] Back to Front In-Reply-To: <000a01c520fd$638c7010$0100000a@MITSERVER> Message-ID: try this, not tested, just off the top of my head... SELECT HotelName FROM OWNERS JOIN HOTELS ON OWNERS.HotelID = HOTELS.HotelID WHERE OWNERS.OwnerID = <> Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Martin Caro" To Sent by: "Access Developers discussion and accessd-bounces at d problem solving" atabaseadvisors.c om cc Subject 03/04/2005 03:01 [AccessD] Back to Front PM Please respond to "Access Developers discussion and problem solving" Hi folks What's the simplest way to do the following... I have a table of hotels 1:M with a table of owners. (HotelID is my primary/foreign key) I want to select an owner from the owner table and for as many times as that owner appears in the child table, list (in a subform), the related hotels in the parent table. I'm OK with the mechanics its just that it's back to front from normal and it's the wrong end of the week (recursion?). Ta Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From dmcafee at pacbell.net Fri Mar 4 15:42:01 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Fri, 4 Mar 2005 13:42:01 -0800 Subject: [AccessD] Back to Front In-Reply-To: <000a01c520fd$638c7010$0100000a@MITSERVER> Message-ID: There shouldn't be anything different here. On the parent form, create the combo, and set its rowsource to something like: SELECT OwnerID, Owner FROM tblOwners ORDER BY Owner ASC; Then as a quick test, to see if this is what you want, forget the subform for just a few minutes. Add a listbox to your parent form. Set the listbox rowsource to something like: SELECT * FROM tblHotels WHERE OwnerID = Forms![yourParentForm]![cboYourComboBoxNameHere] In the after update event of the combobox, place the following code: Me.listbox1.Requery Does this work? If so, then create you subform, set its recordsource to that of the Hotel Table (or Query) then clicking on the subform which is placed on the Parent Form, you should be able to select OwnerID as your Parent/Child Linking fields HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Caro Sent: Friday, March 04, 2005 1:02 PM To: Access Developers discussion and problem solving Subject: [AccessD] Back to Front Hi folks What's the simplest way to do the following... I have a table of hotels 1:M with a table of owners. (HotelID is my primary/foreign key) I want to select an owner from the owner table and for as many times as that owner appears in the child table, list (in a subform), the related hotels in the parent table. I'm OK with the mechanics its just that it's back to front from normal and it's the wrong end of the week (recursion?). Ta Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Fri Mar 4 15:44:40 2005 From: mcaro at bigpond.net.au (Martin Caro) Date: Sat, 5 Mar 2005 08:44:40 +1100 Subject: [AccessD] Back to Front References: Message-ID: <002101c52103$5e9fda00$0100000a@MITSERVER> Thanks Jeffery, I now have the query working with a LEFT JOIN Hotels Martin ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 8:14 AM Subject: Re: [AccessD] Back to Front > try this, not tested, just off the top of my head... > > SELECT > HotelName > FROM > OWNERS > JOIN HOTELS > ON OWNERS.HotelID = HOTELS.HotelID > WHERE > OWNERS.OwnerID = <> > > Jeffrey F. Demulling > Project Manager > U.S. Bank Corporate Trust Services > 60 Livingston Avenue > EP-MN-WS3C > St. Paul, MN 55107-2292 > Ph: 651-495-3925 > Fax: 651-495-8103 > email: jeffrey.demulling at usbank.com > > > > "Martin Caro" > t.au> To > Sent by: "Access Developers discussion and > accessd-bounces at d problem solving" > atabaseadvisors.c > om cc > > Subject > 03/04/2005 03:01 [AccessD] Back to Front > PM > > > Please respond to > "Access > Developers > discussion and > problem solving" > advisors.com> > > > > > > > Hi folks > What's the simplest way to do the following... > I have a table of hotels 1:M with a table of owners. (HotelID is my > primary/foreign key) > I want to select an owner from the owner table and for as many times as > that owner appears in the child table, list (in a subform), the related > hotels in the parent table. > I'm OK with the mechanics its just that it's back to front from normal and > it's the wrong end of the week (recursion?). > > Ta > Martin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > -------------------------------------------------------------------------- ---- > Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. > ============================================================================ == > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Fri Mar 4 15:48:11 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Sat, 5 Mar 2005 08:48:11 +1100 Subject: [AccessD] Am I missing something simple? - function inquerycriteria References: Message-ID: <002f01c52103$dcf8d280$8001a8c0@user> Thanks Andy / Gustav - the second part of your reply here solved it - Many thanks Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, March 04, 2005 9:56 PM Subject: Re: [AccessD] Am I missing something simple? - function inquerycriteria Hit Kath This line is in error: "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Should read: "[AccountNo] = '" & StrAccountno & "'" & " And [reportcycleid] = " & IntRepCycleID & "")) Also, this should read: GetTemplateld = [Forms]![FrmClientDetails]![NameOfYourSubformControl].Form![TemplateID] /gustav >>> KP at sdsonline.net 04-03-2005 04:52:55 >>> Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Fri Mar 4 16:05:39 2005 From: mcaro at bigpond.net.au (Martin Caro) Date: Sat, 5 Mar 2005 09:05:39 +1100 Subject: [AccessD] Back to Front References: Message-ID: <002801c52106$4cf8eeb0$0100000a@MITSERVER> Thanks David for your procedure Now I'm certainly on the way to a solution Martin ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 8:42 AM Subject: RE: [AccessD] Back to Front > There shouldn't be anything different here. > > On the parent form, create the combo, and set its rowsource to something > like: > > SELECT OwnerID, Owner FROM tblOwners ORDER BY Owner ASC; > > Then as a quick test, to see if this is what you want, forget the subform > for just a few minutes. > Add a listbox to your parent form. Set the listbox rowsource to something > like: > > SELECT * FROM tblHotels WHERE OwnerID = > Forms![yourParentForm]![cboYourComboBoxNameHere] > > In the after update event of the combobox, place the following code: > > Me.listbox1.Requery > > Does this work? If so, then create you subform, set its recordsource to that > of the Hotel Table (or Query) then clicking on the subform which is placed > on the Parent Form, you should be able to select OwnerID as your > Parent/Child Linking fields > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Caro > Sent: Friday, March 04, 2005 1:02 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Back to Front > > > Hi folks > What's the simplest way to do the following... > I have a table of hotels 1:M with a table of owners. (HotelID is my > primary/foreign key) > I want to select an owner from the owner table and for as many times as that > owner appears in the child table, list (in a subform), the related hotels in > the parent table. > I'm OK with the mechanics its just that it's back to front from normal and > it's the wrong end of the week (recursion?). > > Ta > Martin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From erbachs at gmail.com Fri Mar 4 20:13:07 2005 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 4 Mar 2005 20:13:07 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: References: Message-ID: <39cb22f30503041813652ac096@mail.gmail.com> Gustav, Thank you for that analysis. It wasn't so much the randomness that I was interested in: it was the reduction in the pool of available items once one of them is "drawn." The trouble I was having with the collection for Interests I bypassed by using a function to build a string with all of the Interest numbers in it and then generate a random number based on the number of items in the collection and then find that one in the string, remove it from the string, leaving a shorter string. It worked. I finally was able to generate over 7000 sample data records that I can use for reporting. Thanks to everyone who helped out on this. I'm going to have to remember collections in the future, though I sure haven't figured out why that one didn't work. Steve Erbach On Fri, 04 Mar 2005 12:06:02 +0100, Gustav Brock wrote: > Hi Steve > > The last part can be solved by a function and a query. > You set Picked to True when a record is drawn. > > Calling Randomize outside the query (by an external function) takes > place in a different scope than that of the query, thus if Rnd(..) is > run in the query with the same seed initially it will, of course, return > the same sample or sequence of samples. > > The solution is to generate the random number in the external > function: > > Public Function RandomNumber( _ > Optional ByVal booRandomize As Boolean) _ > As Single > > Static booRandomized As Boolean > > If booRandomize = True Or booRandomized = False Then > ' A new seed is requested or this is the first run. > Randomize > booRandomized = True > End If > ' Generate and return a random number. > RandomNumber = Rnd() > > End Function > > Now the query would look something like this: > > SELECT TOP n > * > FROM > tblPick > WHERE > tblPick.Picked = False > ORDER BY > RandomNumber([ID] Is Null); > > where n is the count of records in the requested sample, and ID is a > field that is never Null like the primary key. > The use of ID in the parameter is needed to call RandomNumber not once > but for every record. > > /gustav From bchacc at san.rr.com Sat Mar 5 14:14:08 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 5 Mar 2005 12:14:08 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb Message-ID: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> Dear List: Can you control all of the functions of a second mdb from the first mdb - start, open forms, run reports, etc.? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From ksklos at comcast.net Sat Mar 5 15:22:45 2005 From: ksklos at comcast.net (ksklos at comcast.net) Date: Sat, 05 Mar 2005 21:22:45 +0000 Subject: [AccessD] Import objects from 2002 into 2000 Message-ID: <030520052122.5281.422A23250006A0DB000014A122007354469C0104059C05@comcast.net> I am using 2000 and need to import some objects from a 2002 database. Any ideas? I tried opening it at work where I have 2002 and saving it down to a 2000 database. That didn't seem to work. TIA From martyconnelly at shaw.ca Sat Mar 5 16:17:42 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 05 Mar 2005 14:17:42 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> Message-ID: <422A3006.4090403@shaw.ca> I know of two ways but this depends on program flow, you are running from one or the other mdb 1. Use an MDA but I don't know all the ramifications of using an MDA, there are exceptions like circular references See MDH Developers Handbook on Developing wizards or http://www.vb123.com/toolshed/00_Docs/buildwizards.htm 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL and VB6 runtime Rocky Smolin - Beach Access Software wrote: >Dear List: > >Can you control all of the functions of a second mdb from the first mdb - start, open forms, run reports, etc.? > >TIA > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sat Mar 5 19:11:55 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 5 Mar 2005 17:11:55 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> Message-ID: <016601c521e9$7ce02c90$6b01a8c0@HAL9002> Marty: So far the code is: DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ "IN 'C:\ACESSDAT\Reports.mdb' " & _ "SELECT tUDGlobalMerge.* " & _ "FROM tUDGlobalMerge" This code is run from a database named Forms.mdb It deletes all the records in a table tUDGlobalMerge in the database named Reports. It then copies all the data from the table named tUDGlobalMerge in Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can then be run. What client wants now is, from the database Forms.mdb, open Reports.mdb hidden (so it doesn't show in the screen), print Report and close Reports.mdb. Can it be done with DoCmd.OpenReport specifying the report as the database and report name in the reports collection? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 2:17 PM Subject: Re: [AccessD] Contralling a second mdb from the first mdb >I know of two ways but this depends on program flow, you are running from >one or the other mdb > 1. Use an MDA but I don't know all the ramifications of using an MDA, > there are exceptions like circular references > See MDH Developers Handbook on Developing wizards > or > http://www.vb123.com/toolshed/00_Docs/buildwizards.htm > > 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL and > VB6 runtime > > Rocky Smolin - Beach Access Software wrote: > >>Dear List: >> >>Can you control all of the functions of a second mdb from the first mdb - >>start, open forms, run reports, etc.? >> >>TIA >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ksklos at comcast.net Sat Mar 5 22:01:19 2005 From: ksklos at comcast.net (ksklos at comcast.net) Date: Sun, 06 Mar 2005 04:01:19 +0000 Subject: [AccessD] Union Query Message-ID: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. From bchacc at san.rr.com Sun Mar 6 08:54:12 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 6 Mar 2005 06:54:12 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> Message-ID: <01d901c5225c$5c1590e0$6b01a8c0@HAL9002> Trying to run a report in a second database from the first database I tried DoCmd.OpenReport "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview Where xReports is the name of the mdb with the report I'm trying to run from an mdb called Forms.mdb, but the syntax is incorrect. Does anyone know the correct syntax? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 5:11 PM Subject: Re: [AccessD] Contralling a second mdb from the first mdb > Marty: > > So far the code is: > > DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" > DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ > "IN 'C:\ACESSDAT\Reports.mdb' " & _ > "SELECT tUDGlobalMerge.* " & _ > "FROM tUDGlobalMerge" > > > This code is run from a database named Forms.mdb > It deletes all the records in a table tUDGlobalMerge in the database named > Reports. > > It then copies all the data from the table named tUDGlobalMerge in > Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can then > be run. > > What client wants now is, from the database Forms.mdb, open Reports.mdb > hidden (so it doesn't show in the screen), print Report and close > Reports.mdb. > > Can it be done with DoCmd.OpenReport specifying the report as the database > and report name in the reports collection? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 2:17 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >>I know of two ways but this depends on program flow, you are running from >>one or the other mdb >> 1. Use an MDA but I don't know all the ramifications of using an MDA, >> there are exceptions like circular references >> See MDH Developers Handbook on Developing wizards >> or >> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >> >> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL and >> VB6 runtime >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>Can you control all of the functions of a second mdb from the first mdb - >>>start, open forms, run reports, etc.? >>> >>>TIA >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Sun Mar 6 23:37:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 06 Mar 2005 21:37:41 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> <01d901c5225c$5c1590e0$6b01a8c0@HAL9002> Message-ID: <422BE8A5.6020401@shaw.ca> Do you have a reference set to C:\Acessdat\xReports.mdb But this is where you may come a cropper on deployment, because the reference may not be correct. and cannot be modified in an mde It will search the library mdb first for the name.of the report also this command must execute from within a subroutine in the library mdb that has the report and you can call the subroutine name from the main mdb. DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview Rocky Smolin - Beach Access Software wrote: > Trying to run a report in a second database from the first database I > tried > > DoCmd.OpenReport > "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview > > > Where xReports is the name of the mdb with the report I'm trying to > run from an mdb called Forms.mdb, but the syntax is incorrect. > > Does anyone know the correct syntax? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > ----- Original Message ----- From: "Rocky Smolin - Beach Access > Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 5:11 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >> Marty: >> >> So far the code is: >> >> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >> "SELECT tUDGlobalMerge.* " & _ >> "FROM tUDGlobalMerge" >> >> >> This code is run from a database named Forms.mdb >> It deletes all the records in a table tUDGlobalMerge in the database >> named Reports. >> >> It then copies all the data from the table named tUDGlobalMerge in >> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can >> then be run. >> >> What client wants now is, from the database Forms.mdb, open >> Reports.mdb hidden (so it doesn't show in the screen), print Report >> and close Reports.mdb. >> >> Can it be done with DoCmd.OpenReport specifying the report as the >> database and report name in the reports collection? >> >> TIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> >> ----- Original Message ----- From: "MartyConnelly" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 2:17 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> I know of two ways but this depends on program flow, you are running >>> from one or the other mdb >>> 1. Use an MDA but I don't know all the ramifications of using an >>> MDA, there are exceptions like circular references >>> See MDH Developers Handbook on Developing wizards >>> or >>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>> >>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>> and VB6 runtime >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>> Dear List: >>>> >>>> Can you control all of the functions of a second mdb from the first >>>> mdb - start, open forms, run reports, etc.? >>>> >>>> TIA >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> http://www.e-z-mrp.com >>>> 858-259-4334 >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon Mar 7 00:16:50 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 6 Mar 2005 22:16:50 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> <01d901c5225c$5c1590e0$6b01a8c0@HAL9002> <422BE8A5.6020401@shaw.ca> Message-ID: <005f01c522dd$406c8de0$6b01a8c0@HAL9002> I got this from Michael Mattys: Dim acc As Access.Application Set acc = CreateObject("access.application") acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal acc.CloseCurrentDatabase Set acc = Nothing and it worked. Problem solved. Thanks and regards, Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, March 06, 2005 9:37 PM Subject: Re: [AccessD] Contralling a second mdb from the first mdb > Do you have a reference set to C:\Acessdat\xReports.mdb > But this is where you may come a cropper on deployment, because the > reference may not be correct. > and cannot be modified in an mde > It will search the library mdb first for the name.of the report > also this command must execute from within a subroutine in the library > mdb that has the report and you can call the > subroutine name from the main mdb. > > DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview > > Rocky Smolin - Beach Access Software wrote: > >> Trying to run a report in a second database from the first database I >> tried >> >> DoCmd.OpenReport >> "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview >> >> >> Where xReports is the name of the mdb with the report I'm trying to run >> from an mdb called Forms.mdb, but the syntax is incorrect. >> >> Does anyone know the correct syntax? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 5:11 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> Marty: >>> >>> So far the code is: >>> >>> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >>> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >>> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >>> "SELECT tUDGlobalMerge.* " & _ >>> "FROM tUDGlobalMerge" >>> >>> >>> This code is run from a database named Forms.mdb >>> It deletes all the records in a table tUDGlobalMerge in the database >>> named Reports. >>> >>> It then copies all the data from the table named tUDGlobalMerge in >>> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can then >>> be run. >>> >>> What client wants now is, from the database Forms.mdb, open Reports.mdb >>> hidden (so it doesn't show in the screen), print Report and close >>> Reports.mdb. >>> >>> Can it be done with DoCmd.OpenReport specifying the report as the >>> database and report name in the reports collection? >>> >>> TIA >>> >>> Rocky Smolin >>> Beach Access Software >>> http://www.e-z-mrp.com >>> 858-259-4334 >>> >>> >>> ----- Original Message ----- From: "MartyConnelly" >>> >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Saturday, March 05, 2005 2:17 PM >>> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >>> >>> >>>> I know of two ways but this depends on program flow, you are running >>>> from one or the other mdb >>>> 1. Use an MDA but I don't know all the ramifications of using an MDA, >>>> there are exceptions like circular references >>>> See MDH Developers Handbook on Developing wizards >>>> or >>>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>>> >>>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>>> and VB6 runtime >>>> >>>> Rocky Smolin - Beach Access Software wrote: >>>> >>>>> Dear List: >>>>> >>>>> Can you control all of the functions of a second mdb from the first >>>>> mdb - start, open forms, run reports, etc.? >>>>> >>>>> TIA >>>>> >>>>> Rocky Smolin >>>>> Beach Access Software >>>>> http://www.e-z-mrp.com >>>>> 858-259-4334 >>>>> >>>> >>>> -- >>>> Marty Connelly >>>> Victoria, B.C. >>>> Canada >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd666 at yahoo.com Mon Mar 7 00:40:18 2005 From: accessd666 at yahoo.com (Sad Der) Date: Sun, 6 Mar 2005 22:40:18 -0800 (PST) Subject: [AccessD] Run stored action query In-Reply-To: Message-ID: <20050307064018.16569.qmail@web31610.mail.mud.yahoo.com> Hi, I've tried both given solutions but they both failed! I keep getting the error: ?err.Number 3615 ?err.Description Type mismatch in expression. Can anybody please help me on this one? Thnx! Regards Sander --- Reuben Cummings wrote: > You should be able to use > > Docmd.OpenQuery("queryname") > > You may also want to use "docmd.setwarnings False" > before the query and > "docmd.setwarnings True" after the query so the user > doesn't have to answer > the prompts about adding, editing, or deleting > records associated with > action queries. > > > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On > Behalf Of Andy Lacey > Sent: Friday, March 04, 2005 9:09 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Run stored action query > > > Hi Sander > > Dim db as Database > Dim qdf as Querydef > > Set db = CurrentDb > Set qdf=db.Querydefs("xxxxquery") > qdf.Execute > > set qdf = nothing > set db = nothing > > HTH > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem > solving > > To: Acces User Group > Subject: [AccessD] Run stored action query > Date: 04/03/05 14:24 > > > > > Hi group, > > > > how do I run a stored action query using VBA? > > I'm using A2K. > > > > I know how to run a select query. I tried the same > for > > my action query but Access didn't like that :-( > > > > TIA > > > > Sander > > > > > > > > > > > > __________________________________ > > Celebrate Yahoo!'s 10th Birthday! > > Yahoo! Netrospective: 100 Moments of the Web > > http://birthday.yahoo.com/netrospective/ > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From bchacc at san.rr.com Mon Mar 7 01:07:06 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 6 Mar 2005 23:07:06 -0800 Subject: [AccessD] Run stored action query References: <20050307064018.16569.qmail@web31610.mail.mud.yahoo.com> Message-ID: <008601c522e4$45eec150$6b01a8c0@HAL9002> Can you run the query by itself from the database container? Can you see it in design view and SQL view? Can you post the SQL statement here? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Sunday, March 06, 2005 10:40 PM Subject: RE: [AccessD] Run stored action query > Hi, > > I've tried both given solutions but they both failed! > I keep getting the error: > ?err.Number > 3615 > ?err.Description > Type mismatch in expression. > > Can anybody please help me on this one? > Thnx! > > Regards > Sander > > > --- Reuben Cummings wrote: > >> You should be able to use >> >> Docmd.OpenQuery("queryname") >> >> You may also want to use "docmd.setwarnings False" >> before the query and >> "docmd.setwarnings True" after the query so the user >> doesn't have to answer >> the prompts about adding, editing, or deleting >> records associated with >> action queries. >> >> >> >> Reuben Cummings >> GFC, LLC >> phone: 812.523.1017 >> email: reuben at gfconsultants.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On >> Behalf Of Andy Lacey >> Sent: Friday, March 04, 2005 9:09 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Run stored action query >> >> >> Hi Sander >> >> Dim db as Database >> Dim qdf as Querydef >> >> Set db = CurrentDb >> Set qdf=db.Querydefs("xxxxquery") >> qdf.Execute >> >> set qdf = nothing >> set db = nothing >> >> HTH >> >> -- >> Andy Lacey >> http://www.minstersystems.co.uk >> >> >> >> --------- Original Message -------- >> From: Access Developers discussion and problem >> solving >> >> To: Acces User Group >> Subject: [AccessD] Run stored action query >> Date: 04/03/05 14:24 >> >> > >> > Hi group, >> > >> > how do I run a stored action query using VBA? >> > I'm using A2K. >> > >> > I know how to run a select query. I tried the same >> for >> > my action query but Access didn't like that :-( >> > >> > TIA >> > >> > Sander >> > >> > >> > >> > >> > >> > __________________________________ >> > Celebrate Yahoo!'s 10th Birthday! >> > Yahoo! Netrospective: 100 Moments of the Web >> > http://birthday.yahoo.com/netrospective/ >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > >> > >> > >> > >> >> ________________________________________________ >> Message sent using UebiMiau 2.7.2 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd666 at yahoo.com Mon Mar 7 01:18:37 2005 From: accessd666 at yahoo.com (Sad Der) Date: Sun, 6 Mar 2005 23:18:37 -0800 (PST) Subject: [AccessD] Run stored action query In-Reply-To: <008601c522e4$45eec150$6b01a8c0@HAL9002> Message-ID: <20050307071837.49528.qmail@web31603.mail.mud.yahoo.com> Rocky, thnx for the reply. I was just about to update this item. I created some very simple queries: insert; update; make table; They all ran fine. Then I checked the query and noticed an "Expr1" field. It seems that the source file has changed and a field I need is missing!! Thnx for the help. Regards, Sander --- Rocky Smolin - Beach Access Software wrote: > Can you run the query by itself from the database > container? Can you see it > in design view and SQL view? Can you post the SQL > statement here? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Sunday, March 06, 2005 10:40 PM > Subject: RE: [AccessD] Run stored action query > > > > Hi, > > > > I've tried both given solutions but they both > failed! > > I keep getting the error: > > ?err.Number > > 3615 > > ?err.Description > > Type mismatch in expression. > > > > Can anybody please help me on this one? > > Thnx! > > > > Regards > > Sander > > > > > > --- Reuben Cummings > wrote: > > > >> You should be able to use > >> > >> Docmd.OpenQuery("queryname") > >> > >> You may also want to use "docmd.setwarnings > False" > >> before the query and > >> "docmd.setwarnings True" after the query so the > user > >> doesn't have to answer > >> the prompts about adding, editing, or deleting > >> records associated with > >> action queries. > >> > >> > >> > >> Reuben Cummings > >> GFC, LLC > >> phone: 812.523.1017 > >> email: reuben at gfconsultants.com > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com]On > >> Behalf Of Andy Lacey > >> Sent: Friday, March 04, 2005 9:09 AM > >> To: Access Developers discussion and problem > solving > >> Subject: Re: [AccessD] Run stored action query > >> > >> > >> Hi Sander > >> > >> Dim db as Database > >> Dim qdf as Querydef > >> > >> Set db = CurrentDb > >> Set qdf=db.Querydefs("xxxxquery") > >> qdf.Execute > >> > >> set qdf = nothing > >> set db = nothing > >> > >> HTH > >> > >> -- > >> Andy Lacey > >> http://www.minstersystems.co.uk > >> > >> > >> > >> --------- Original Message -------- > >> From: Access Developers discussion and problem > >> solving > >> > >> To: Acces User Group > > >> Subject: [AccessD] Run stored action query > >> Date: 04/03/05 14:24 > >> > >> > > >> > Hi group, > >> > > >> > how do I run a stored action query using VBA? > >> > I'm using A2K. > >> > > >> > I know how to run a select query. I tried the > same > >> for > >> > my action query but Access didn't like that :-( > >> > > >> > TIA > >> > > >> > Sander > >> > > >> > > >> > > >> > > >> > > >> > __________________________________ > >> > Celebrate Yahoo!'s 10th Birthday! > >> > Yahoo! Netrospective: 100 Moments of the Web > >> > http://birthday.yahoo.com/netrospective/ > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > > >> > > >> > > >> > > >> > >> ________________________________________________ > >> Message sent using UebiMiau 2.7.2 > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > > > > > __________________________________ > > Celebrate Yahoo!'s 10th Birthday! > > Yahoo! Netrospective: 100 Moments of the Web > > http://birthday.yahoo.com/netrospective/ > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From ssharkins at bellsouth.net Mon Mar 7 07:23:13 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 7 Mar 2005 08:23:13 -0500 Subject: [AccessD] Union Query In-Reply-To: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Message-ID: <20050307132312.GCJW2073.imf18aec.mail.bellsouth.net@SUSANONE> My books are all still in storage (no rest of the wicked and all that), so I can't look this one up for you. I'm not aware of one, but if there is one that I just don't have memorized, it's probably large. How many statements do you need? I would think the number of records will slow you down way before the number of actual statements. Susan H. Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. From jimdettman at earthlink.net Mon Mar 7 07:53:32 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 7 Mar 2005 08:53:32 -0500 Subject: [AccessD] Union Query In-Reply-To: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Message-ID: Not on number of Unions per say, but on queries in general. Depending on how complex this is, you'll probably bump into one of these: 1. Limit of 255 columns in the output. 2. Limit of 32 tables in a query. 3. Approx limit of 64K characters in a SQL statement. 4. The nebulous "query too complex message" - Up until A95, queries needed to "compile" into a single 64K segment. Starting with A95, that limit was removed, but it was never specified exactly what the new limit was. You can fall within all the other specs and still get "query too complex". If you do, you hitting an internal limit that has not been specified. HTH, Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ksklos at comcast.net Sent: Saturday, March 05, 2005 11:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Union Query Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Mar 7 07:54:58 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 7 Mar 2005 08:54:58 -0500 Subject: [AccessD] Union Query In-Reply-To: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Message-ID: Oh..one other you might bump into with a large number of Unions; the result set must be 1GB or less in size. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ksklos at comcast.net Sent: Saturday, March 05, 2005 11:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Union Query Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Mon Mar 7 08:27:33 2005 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 7 Mar 2005 06:27:33 -0800 (PST) Subject: [AccessD] Run stored action query In-Reply-To: <20050307071837.49528.qmail@web31603.mail.mud.yahoo.com> Message-ID: <20050307142733.33788.qmail@web31608.mail.mud.yahoo.com> Hi, not only was a field missing there was also a datatype change. A field changed from text to Number-Double!?! Thnx for the help. Btw I solved it like this: Set rstQueries = New ADODB.Recordset strSQL = vbNullString strSQL = "SELECT tReportQuery.QueryName " & _ "FROM tReports INNER JOIN tReportQuery ON tReports.ID = tReportQuery.ReportID " & _ "WHERE tReports.ID = " & m_intReportID With rstQueries .ActiveConnection = CurrentProject.Connection .Source = strSQL .Open If (Not .BOF) And (Not .EOF) Then .MoveFirst Do While Not .EOF DoCmd.OpenQuery (.Fields(0)) .MoveNext Loop End If End With Regards, Sander --- Sad Der wrote: > Rocky, > > thnx for the reply. I was just about to update this > item. > > I created some very simple queries: > insert; > update; > make table; > > They all ran fine. > > Then I checked the query and noticed an "Expr1" > field. > It seems that the source file has changed and a > field > I need is missing!! > > Thnx for the help. > > Regards, > > Sander > --- Rocky Smolin - Beach Access Software > wrote: > > > Can you run the query by itself from the database > > container? Can you see it > > in design view and SQL view? Can you post the SQL > > statement here? > > > > Regards, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.com > > 858-259-4334 > > > > ----- Original Message ----- > > From: "Sad Der" > > To: "Access Developers discussion and problem > > solving" > > > > Sent: Sunday, March 06, 2005 10:40 PM > > Subject: RE: [AccessD] Run stored action query > > > > > > > Hi, > > > > > > I've tried both given solutions but they both > > failed! > > > I keep getting the error: > > > ?err.Number > > > 3615 > > > ?err.Description > > > Type mismatch in expression. > > > > > > Can anybody please help me on this one? > > > Thnx! > > > > > > Regards > > > Sander > > > > > > > > > --- Reuben Cummings > > wrote: > > > > > >> You should be able to use > > >> > > >> Docmd.OpenQuery("queryname") > > >> > > >> You may also want to use "docmd.setwarnings > > False" > > >> before the query and > > >> "docmd.setwarnings True" after the query so the > > user > > >> doesn't have to answer > > >> the prompts about adding, editing, or deleting > > >> records associated with > > >> action queries. > > >> > > >> > > >> > > >> Reuben Cummings > > >> GFC, LLC > > >> phone: 812.523.1017 > > >> email: reuben at gfconsultants.com > > >> > > >> > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com > > >> [mailto:accessd-bounces at databaseadvisors.com]On > > >> Behalf Of Andy Lacey > > >> Sent: Friday, March 04, 2005 9:09 AM > > >> To: Access Developers discussion and problem > > solving > > >> Subject: Re: [AccessD] Run stored action query > > >> > > >> > > >> Hi Sander > > >> > > >> Dim db as Database > > >> Dim qdf as Querydef > > >> > > >> Set db = CurrentDb > > >> Set qdf=db.Querydefs("xxxxquery") > > >> qdf.Execute > > >> > > >> set qdf = nothing > > >> set db = nothing > > >> > > >> HTH > > >> > > >> -- > > >> Andy Lacey > > >> http://www.minstersystems.co.uk > > >> > > >> > > >> > > >> --------- Original Message -------- > > >> From: Access Developers discussion and problem > > >> solving > > >> > > >> To: Acces User Group > > > > >> Subject: [AccessD] Run stored action query > > >> Date: 04/03/05 14:24 > > >> > > >> > > > >> > Hi group, > > >> > > > >> > how do I run a stored action query using VBA? > > >> > I'm using A2K. > > >> > > > >> > I know how to run a select query. I tried the > > same > > >> for > > >> > my action query but Access didn't like that > :-( > > >> > > > >> > TIA > > >> > > > >> > Sander > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > __________________________________ > > >> > Celebrate Yahoo!'s 10th Birthday! > > >> > Yahoo! Netrospective: 100 Moments of the Web > > >> > http://birthday.yahoo.com/netrospective/ > > >> > -- > > >> > AccessD mailing list > > >> > AccessD at databaseadvisors.com > > >> > > > >> > > > http://databaseadvisors.com/mailman/listinfo/accessd > > >> > Website: http://www.databaseadvisors.com > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > ________________________________________________ > > >> Message sent using UebiMiau 2.7.2 > > >> > > >> -- > > >> AccessD mailing list > > >> AccessD at databaseadvisors.com > > >> > > > http://databaseadvisors.com/mailman/listinfo/accessd > > >> Website: http://www.databaseadvisors.com > > >> > > >> > > >> > > >> > > >> -- > > >> AccessD mailing list > > >> AccessD at databaseadvisors.com > > >> > > > http://databaseadvisors.com/mailman/listinfo/accessd > > >> Website: http://www.databaseadvisors.com > > >> > > > > > > > > > > > > > > > > > > __________________________________ > > > Celebrate Yahoo!'s 10th Birthday! > > > Yahoo! Netrospective: 100 Moments of the Web > > > http://birthday.yahoo.com/netrospective/ > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > === message truncated === __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From mikedorism at adelphia.net Mon Mar 7 08:31:04 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 7 Mar 2005 09:31:04 -0500 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: Message-ID: <000401c52322$4d981580$0b08a845@hargrove.internal> Does anyone have any code to detect if Outlook is open that works in Access2003? Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From andy at minstersystems.co.uk Mon Mar 7 07:52:43 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 7 Mar 2005 14:52:43 +0100 Subject: [AccessD] Code to detect if Outlook is open Message-ID: <20050307145240.50FD52BAF9D@smtp.nildram.co.uk> Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From mikedorism at adelphia.net Mon Mar 7 09:20:11 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 7 Mar 2005 10:20:11 -0500 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: <20050307145240.50FD52BAF9D@smtp.nildram.co.uk> Message-ID: <000901c52329$2a42cf60$0b08a845@hargrove.internal> Thanks, Andy, but that isn't quite what I was looking for. I had some API code I wrote for an AccessXP database that could detect whether Outlook was already open and process accordingly. I used API code because if Outlook was already open on the user's machine, I didn't want my code to close it. My old code used the EnumWindows process to look through the tabs but when I run it using Access2003, I don't get the same results. I was hoping someone had updated code. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 07, 2005 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code to detect if Outlook is open Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Mar 7 09:26:32 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 7 Mar 2005 10:26:32 -0500 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1CE6A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE870@ADGSERVER> And if you do not want to be tied to a given version of Outlook, you can use late binding like so: Dim objOutlook As object 'note as object now, not outlook.application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") This is air code, so ymmv. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 07, 2005 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code to detect if Outlook is open Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com From dwaters at usinternet.com Mon Mar 7 09:52:26 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 7 Mar 2005 09:52:26 -0600 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: <10201791.1110209180867.JavaMail.root@sniper17> Message-ID: <001801c5232d$a96116e0$123a11d8@danwaters> Hi Doris, I use exactly what Andy is using, to my satisfaction. It works essentially like a Boolean value if Outlook is open or not, and won't close Outlook if it's open. If Outlook is closed the error code is 429 which you can trap. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Monday, March 07, 2005 9:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code to detect if Outlook is open Thanks, Andy, but that isn't quite what I was looking for. I had some API code I wrote for an AccessXP database that could detect whether Outlook was already open and process accordingly. I used API code because if Outlook was already open on the user's machine, I didn't want my code to close it. My old code used the EnumWindows process to look through the tabs but when I run it using Access2003, I don't get the same results. I was hoping someone had updated code. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 07, 2005 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code to detect if Outlook is open Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Mar 7 10:29:43 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 07 Mar 2005 08:29:43 -0800 Subject: [AccessD] Code to detect if Outlook is open References: <000901c52329$2a42cf60$0b08a845@hargrove.internal> Message-ID: <422C8177.3080202@shaw.ca> Here is some rough code I use to determine all the names of tasks running. I don't know if different version of Outlook may have slightly different names Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Declare Function GetWindow Lib "user32" _ (ByVal hWnd As Long, ByVal wCmd As Long) As Long Private Declare Function GetParent Lib "user32" _ (ByVal hWnd As Long) As Long Private Declare Function GetWindowTextLength Lib _ "user32" Alias "GetWindowTextLengthA" (ByVal hWnd As Long) As Long Private Declare Function GetWindowText Lib "user32" _ Alias "GetWindowTextA" (ByVal hWnd As Long, ByVal _ lpString As String, ByVal cch As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" _ (ByVal hWnd As Long) As Long 'Determining Which Tasks Are Running 'With the Microsoft Windows operating system, 'you can run any number of applications simultaneously. 'Occasionally, you may need to determine which tasks are currently being 'run. 'This can be accomplished by using several Windows application programming 'interface '(API) functions. 'To find the names of all currently executing tasks, 'you must first determine the handle of the window that is currently 'at the top of the z-order. This, of course, would be the window of your 'own Microsoft Visual Basic application. 'You can use the Windows API GetWindow function to retrieve the handle 'of your application's window with the statement: ' CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' To use in Access replace with the following ' parent_hwnd = FindWindow(vbNullString, "Microsoft Access") 'The first argument of the GetWindow function is the handle of the window 'that is at the top of the z-order. In this case, this is the handle of 'Form1. 'The second argument of the GetWindow function specifies the window 'you want to retrieve the handle for. 'This argument can have one of the following values: ' GW_CHILD Retrieve the handle for the child window. ' GW_HWNDFIRST Retrieve the handle for the window at the top of the z- 'order. ' GW_HWNDLAST Retrieve the handle for the window at the bottom of the z- 'order. ' GW_HWNDNEXT Retrieve the handle of the window below the specified window 'in the z-order. ' GW_HWNDPREV Retrieve the handle of the window above the specified window 'in the z-order. ' GW_OWNER Retrieve the handle of the window that owns the specified 'window, if any. 'After you have retrieved the application's window handle, 'you can use the Windows API GetParent function to retrieve this window's 'child window handle. Next, you call the Windows API GetWindowText and 'GetWindowTextLength functions to retrieve the text in the window's title 'bar 'and the length of this text, respectively. You can then use the text string 'in your own application. For example, you can save the title bar text 'to a List Box control. 'All of the above steps are repeated until you have processed all running 'tasks. 'You know that you have gone through each task when the current window is 'that'of your own application. Function LoadTaskList() As String Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim Parent As Long Dim parent_hwnd As Long Dim strMyTaskList As String strMyTaskList = " Task List " & vbCrLf ' This line below works from VB form 'CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' get Parent Window Handle parent_hwnd = FindWindow(vbNullString, "Microsoft Access") If parent_hwnd = 0 Then MsgBox "Access Not Found" Exit Function End If 'SetFocusAPI parent_hwnd CurrWnd = parent_hwnd While CurrWnd <> 0 Parent = GetParent(CurrWnd) Length = GetWindowTextLength(CurrWnd) TaskName = Space$(Length + 1) Length = GetWindowText(CurrWnd, TaskName, Length + 1) TaskName = Left$(TaskName, Len(TaskName) - 1) If Length > 0 Then 'If TaskName <> Me.Caption Then 'If TaskName <> "Microsoft Access" Then 'List1.AddItem TaskName strMyTaskList = strMyTaskList & TaskName & vbCrLf Debug.Print TaskName 'End If End If CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend LoadTaskList = strMyTaskList End Function Mike & Doris Manning wrote: >Thanks, Andy, but that isn't quite what I was looking for. I had some API >code I wrote for an AccessXP database that could detect whether Outlook was >already open and process accordingly. I used API code because if Outlook >was already open on the user's machine, I didn't want my code to close it. >My old code used the EnumWindows process to look through the tabs but when I >run it using Access2003, I don't get the same results. I was hoping someone >had updated code. > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey >Sent: Monday, March 07, 2005 8:53 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Code to detect if Outlook is open > > >Hi Doris >I can't test it in A2003 but this works in earlier versions > >Dim objOutlook As Outlook.Application > >On Error GoTo Err_NoOutlook >Set objOutlook = GetObject(, "Outlook.Application") > > >If it errors then Outlook's not running. > >Any use? > >-- >Andy Lacey >http://www.minstersystems.co.uk > > > >--------- Original Message -------- >From: Access Developers discussion and problem solving > >To: 'Access Developers discussion and problem solving' > >Subject: [AccessD] Code to detect if Outlook is open >Date: 07/03/05 14:33 > > > >>Does anyone have any code to detect if Outlook is open that works in >>Access2003? >> >>Doris Manning >>Database Administrator >>Hargrove Inc. >>www.hargroveinc.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> >> >> >> > >________________________________________________ >Message sent using UebiMiau 2.7.2 > > > -- Marty Connelly Victoria, B.C. Canada From Jdemarco at hudsonhealthplan.org Mon Mar 7 10:48:23 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 7 Mar 2005 11:48:23 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D37@TTNEXCHCL2.hshhp.com> Steve, Sorry I was out sick on Friday. Is this problem not solved yet? You could try changing your line of code that adds a value to your colInt to this: colI.Add rstI("ActivityID").Value, CStr(lng1) or 'create a variable to hold the field value and add that to the collection instead intActivityID = rstI("ActivityID") colI.Add intActivityID, CStr(lng1) It sounds like you may be adding the field from the recordset to your collection as opposed to the field's value (hence the reference in your error to no current record and why the object is not valid). HTH, Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 5:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Random numbers lottery-style Jim, Thanks. I've created a collection that holds the dates for each day of the year for a one-year period. I also have a collection for the list of volunteer interests for one volunteer. But something funny is happening. I'm using Access 2003. In one procedure I DIM the two New Collections, colDays and colInts. I fill the colDays collection with a procedure that looks like this (I pass the colDays collection as a parameter right after DIMing it): Private Sub FillDaysCol(colD As Collection) Dim i As Long Dim dat As Date On Error GoTo PROC_ERR ' Set the starting day dat = CDate("8/1/2003") ' 366 days because of the leap year For i = 1 To 366 colD.Add dat, CStr(i) dat = DateAdd("d", 1, dat) Next i PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillDaysCol" Resume PROC_EXIT End Sub This works champion. I can Remove items from the collection at will and the collection persists as I pass it from procedure to procedure as a parameter. On the other hand, the colInts doesn't work so well. I DIM the colInts and pass it as a parameter to another procedure to fill it with the values from a recordset: Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) Dim lng1 As Long On Error GoTo PROC_ERR lng1 = 1 Do While Not rstI.EOF colI.Add rstI("ActivityID"), CStr(lng1) lng1 = lng1 + 1 rstI.MoveNext Loop PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillIntsCol" Resume PROC_EXIT End Sub The procedure builds the collection all right, but when I try to refer to one of its items back in the calling procedure, I get the error: Error 3420 : Object invalid or no longer set Now, if I put a break in the code at the start of the Do While loop, I can check the item's value in the Immediate window right after it's been added to the collection. But when the loop finishes up, I check the Count of the collection and I get the right number of items...but then I try to check the value of one of those items in the Immediate window, I get the error: No current record (runtime error 3021) What's this about a "record"? I am stumped here. Why does one collection "building" procedure work, but the other one doesn't? Steve Erbach On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco wrote: > The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. > > Jim D. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Mon Mar 7 12:34:47 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 07 Mar 2005 13:34:47 -0500 Subject: [AccessD] Learned something new Message-ID: <000a01c52344$574d7710$697aa8c0@ColbyM6805> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From handyman at actcom.co.il Mon Mar 7 12:39:15 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Mon, 07 Mar 2005 20:39:15 +0200 Subject: [AccessD] "class not registered" error - revisited Message-ID: <5.1.0.14.2.20050307203233.00abb6b0@pop5.actcom.net.il> After all my problems with using wizards for list box and combo boxes, and getting the "class not registered" error, I installed Access2003. Now when using the wizard I get "Data cannot be retrieved from the source you have selected. You must select a different table or query to continue in the wizard." I checked out Microsoft kbid=839783, and even updated all the updates. Still no go. Now I really think there must be something wrong with my Windows2000 op. Perhaps someone has other insights. Thanks Gershon From erbachs at gmail.com Mon Mar 7 12:45:25 2005 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 7 Mar 2005 12:45:25 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D37@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D37@TTNEXCHCL2.hshhp.com> Message-ID: <39cb22f3050307104565985fe4@mail.gmail.com> Jim, You may have something there. For now it's an academic point because I worked around it to make over 7000 test data records. I will, however, remember the .value bit for future reference. It makes sense. Thank you. Steve Erbach On Mon, 7 Mar 2005 11:48:23 -0500, Jim DeMarco wrote: > Steve, > > Sorry I was out sick on Friday. Is this problem not solved yet? You could try changing your line of code that adds a value to your colInt to this: > > colI.Add rstI("ActivityID").Value, CStr(lng1) > > or > > 'create a variable to hold the field value and add that to the collection instead > intActivityID = rstI("ActivityID") > colI.Add intActivityID, CStr(lng1) > > It sounds like you may be adding the field from the recordset to your collection as opposed to the field's value (hence the reference in your error to no current record and why the object is not valid). > > HTH, > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 5:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Random numbers lottery-style > > Jim, > > Thanks. I've created a collection that holds the dates for each day of > the year for a one-year period. I also have a collection for the list > of volunteer interests for one volunteer. But something funny is > happening. > > I'm using Access 2003. In one procedure I DIM the two New Collections, > colDays and colInts. I fill the colDays collection with a procedure > that looks like this (I pass the colDays collection as a parameter > right after DIMing it): > > Private Sub FillDaysCol(colD As Collection) > Dim i As Long > Dim dat As Date > > On Error GoTo PROC_ERR > > ' Set the starting day > dat = CDate("8/1/2003") > ' 366 days because of the leap year > For i = 1 To 366 > colD.Add dat, CStr(i) > dat = DateAdd("d", 1, dat) > Next i > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillDaysCol" > Resume PROC_EXIT > End Sub > > This works champion. I can Remove items from the collection at will > and the collection persists as I pass it from procedure to procedure > as a parameter. > > On the other hand, the colInts doesn't work so well. I DIM the colInts > and pass it as a parameter to another procedure to fill it with the > values from a recordset: > > Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) > Dim lng1 As Long > > On Error GoTo PROC_ERR > > lng1 = 1 > Do While Not rstI.EOF > colI.Add rstI("ActivityID"), CStr(lng1) > lng1 = lng1 + 1 > rstI.MoveNext > Loop > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillIntsCol" > Resume PROC_EXIT > End Sub > > The procedure builds the collection all right, but when I try to refer > to one of its items back in the calling procedure, I get the error: > > Error 3420 : Object invalid or no longer set > > Now, if I put a break in the code at the start of the Do While loop, I > can check the item's value in the Immediate window right after it's > been added to the collection. But when the loop finishes up, I check > the Count of the collection and I get the right number of items...but > then I try to check the value of one of those items in the Immediate > window, I get the error: > > No current record (runtime error 3021) > > What's this about a "record"? I am stumped here. Why does one > collection "building" procedure work, but the other one doesn't? > > Steve Erbach > > On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco > wrote: > > The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. > > > > Jim D. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From accessd at shaw.ca Mon Mar 7 13:38:26 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 07 Mar 2005 11:38:26 -0800 Subject: [AccessD] Learned something new In-Reply-To: <000a01c52344$574d7710$697aa8c0@ColbyM6805> Message-ID: <0ICZ00J9VYK0CX@l-daemon> Hi John: This is one of the 'gotyas' with bound data sets. What is your data source? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, March 07, 2005 10:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Learned something new Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Mar 7 15:51:25 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 07 Mar 2005 16:51:25 -0500 Subject: [AccessD] Learned something new In-Reply-To: <0ICZ00J9VYK0CX@l-daemon> Message-ID: <000b01c5235f$d2e53870$697aa8c0@ColbyM6805> This is indeed a bound data form but the query itself will not display the updates, even if opened directly. I have the class write the changes to the data source (live data). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 07, 2005 2:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Hi John: This is one of the 'gotyas' with bound data sets. What is your data source? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, March 07, 2005 10:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Learned something new Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Mon Mar 7 17:22:31 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 7 Mar 2005 15:22:31 -0800 (PST) Subject: [AccessD] My Subform won't show if I leave access and come back!!!! Message-ID: <20050307232231.201.qmail@web20426.mail.yahoo.com> I have a form and a subform. If I go to another program like ie explorer or outlook then come back to my access app, I can see my main form but the subform has a snapshot of whatever the prior program was that I was in. It's like the subform is frozen and won't come back. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web From Erwin.Craps at ithelps.be Mon Mar 7 21:10:23 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 8 Mar 2005 04:10:23 +0100 Subject: [AccessD] My Subform won't show if I leave access and come back!!!! Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5868@stekelbes.ithelps.local> That is probably a graphical card driver problem... I would advice you to first get a update to your graphical card driver and to try again... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, March 08, 2005 12:23 AM To: AccessD solving' Subject: [AccessD] My Subform won't show if I leave access and come back!!!! I have a form and a subform. If I go to another program like ie explorer or outlook then come back to my access app, I can see my main form but the subform has a snapshot of whatever the prior program was that I was in. It's like the subform is frozen and won't come back. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 8 02:15:15 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 00:15:15 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... Message-ID: <20050308081515.63165.qmail@web31606.mail.mud.yahoo.com> Hi group, my story of the queries continues. I need to run a set of action queries. This works fine. Several queries have parameters. So that means the user has to watch the screen for a parameter to pop-up. Is it possible to add some parameter fields in the form to fill the required parameters...WITHOUT changing the query it self? So I have a parameters in my query: [Enter version:] [Enter startdate:] And I do not want to change these to: forms!frmReport!txtVersion forms!frmReport!txtStartDate TIA Sander __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Tue Mar 8 03:18:56 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 08 Mar 2005 10:18:56 +0100 Subject: [AccessD] Learned something new Message-ID: Hi John Thank you for bringing this. It's a good reminder that sometimes a temp table _is_ the choice and not just a quick work-around. /gustav >>> jwcolby at colbyconsulting.com 07-03-2005 19:34:47 >>> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com From cyx5 at cdc.gov Tue Mar 8 05:46:03 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 06:46:03 -0500 Subject: [AccessD] Learned something new Message-ID: I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 08, 2005 4:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Learned something new Hi John Thank you for bringing this. It's a good reminder that sometimes a temp table _is_ the choice and not just a quick work-around. /gustav >>> jwcolby at colbyconsulting.com 07-03-2005 19:34:47 >>> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Tue Mar 8 06:20:52 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 8 Mar 2005 17:50:52 +0530 Subject: [AccessD] Automating parameterized action queries..... References: <20050308081515.63165.qmail@web31606.mail.mud.yahoo.com> Message-ID: <00bb01c523d9$58cb48c0$1f1465cb@winxp> Sander, Any objection to using global variables ? A.D.Tejpal -------------- ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, March 08, 2005 13:45 Subject: [AccessD] Automating parameterized action queries..... Hi group, my story of the queries continues. I need to run a set of action queries. This works fine. Several queries have parameters. So that means the user has to watch the screen for a parameter to pop-up. Is it possible to add some parameter fields in the form to fill the required parameters...WITHOUT changing the query it self? So I have a parameters in my query: [Enter version:] [Enter startdate:] And I do not want to change these to: forms!frmReport!txtVersion forms!frmReport!txtStartDate TIA Sander From bheid at appdevgrp.com Tue Mar 8 06:23:32 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 07:23:32 -0500 Subject: [AccessD] Learned something new In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1CFF4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE87E@ADGSERVER> I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. From bheid at appdevgrp.com Tue Mar 8 06:26:05 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 07:26:05 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1CFD6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE87F@ADGSERVER> If you are not wanting to encode a particular form field because the query is called from several forms, might I suggest that you create a new hidden form that contains fields for all of the fields that are used as parameters. Then the queries can access these fields. You would need to set the fields on the form before the queries were executed. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, March 08, 2005 3:15 AM To: Acces User Group Subject: [AccessD] Automating parameterized action queries..... Hi group, my story of the queries continues. I need to run a set of action queries. This works fine. Several queries have parameters. So that means the user has to watch the screen for a parameter to pop-up. Is it possible to add some parameter fields in the form to fill the required parameters...WITHOUT changing the query it self? So I have a parameters in my query: [Enter version:] [Enter startdate:] And I do not want to change these to: forms!frmReport!txtVersion forms!frmReport!txtStartDate TIA Sander From cyx5 at cdc.gov Tue Mar 8 06:37:58 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 07:37:58 -0500 Subject: [AccessD] Learned something new Message-ID: That is a great idea. I never thought of that. I am going to implement this in my applications. Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 7:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 8 06:52:16 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 08 Mar 2005 13:52:16 +0100 Subject: [AccessD] Learned something new Message-ID: Hi Karen and Bobby I find it easier just to (re)create the temp database when you launch the frontend. /gustav >>> cyx5 at cdc.gov 08-03-2005 13:37:58 >>> That is a great idea. I never thought of that. I am going to implement this in my applications. Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 7:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. From jwcolby at colbyconsulting.com Tue Mar 8 06:57:04 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 08 Mar 2005 07:57:04 -0500 Subject: [AccessD] Learned something new In-Reply-To: Message-ID: <001201c523de$53bcef50$697aa8c0@ColbyM6805> Yep exactly. We get so used to doing everything with queries because it is so easy that we kind of lose focus on the end objective. In this case I really didn't even know that this behavior existed but once I did a temp table was an easy solution. I actually use a table right in the FE because I usually implement a FE that is downloaded every morning from a server. That controls bloat since they get a new copy every morning. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 08, 2005 4:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Learned something new Hi John Thank you for bringing this. It's a good reminder that sometimes a temp table _is_ the choice and not just a quick work-around. /gustav >>> jwcolby at colbyconsulting.com 07-03-2005 19:34:47 >>> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 06:58:02 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 08 Mar 2005 07:58:02 -0500 Subject: [AccessD] Learned something new In-Reply-To: Message-ID: <001301c523de$795829a0$697aa8c0@ColbyM6805> And using the "IN" syntax you can often do it without even linking the tables to the FE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 08, 2005 7:52 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Learned something new Hi Karen and Bobby I find it easier just to (re)create the temp database when you launch the frontend. /gustav >>> cyx5 at cdc.gov 08-03-2005 13:37:58 >>> That is a great idea. I never thought of that. I am going to implement this in my applications. Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 7:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 8 07:05:09 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 05:05:09 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050308130510.43137.qmail@web31607.mail.mud.yahoo.com> yes, the global variables need to be filled. If the user runs the query manually (thus by double clicking it in the database container) the global var isn't filled. Thnx anyway. --- "A.D.Tejpal" wrote: > Sander, > > Any objection to using global variables ? > > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Sad Der > To: Acces User Group > Sent: Tuesday, March 08, 2005 13:45 > Subject: [AccessD] Automating parameterized action > queries..... > > > Hi group, > > my story of the queries continues. I need to run a > set > of action queries. This works fine. > > Several queries have parameters. So that means the > user has to watch the screen for a parameter to > pop-up. Is it possible to add some parameter > fields in > the form to fill the required parameters...WITHOUT > changing the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: > forms!frmReport!txtVersion > forms!frmReport!txtStartDate > > TIA > > Sander > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From accessd666 at yahoo.com Tue Mar 8 07:09:53 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 05:09:53 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050308130953.43418.qmail@web31607.mail.mud.yahoo.com> You are correct. However the queries are not executed via from several forms but they are executed: 1- via one form 2- a user manually clicks it in the database container. The process is as follows: 1 - the reports (xls files) are stored in the database 2 - the queries that create the report are also stored in the database 3 - the user selects a report 4 - the necessary queries are executed one by one However, several times a week a manager requests a part of the report that is slightly different from the original. A user then must have the change to quickly adjust the query and run it manually. HTH Sander --- Bobby Heid wrote: > If you are not wanting to encode a particular form > field because the query > is called from several forms, might I suggest that > you create a new hidden > form that contains fields for all of the fields that > are used as parameters. > Then the queries can access these fields. > > You would need to set the fields on the form before > the queries were > executed. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 3:15 AM > To: Acces User Group > Subject: [AccessD] Automating parameterized action > queries..... > > > Hi group, > > my story of the queries continues. I need to run a > set > of action queries. This works fine. > > Several queries have parameters. So that means the > user has to watch the screen for a parameter to > pop-up. Is it possible to add some parameter fields > in > the form to fill the required parameters...WITHOUT > changing the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: > forms!frmReport!txtVersion > forms!frmReport!txtStartDate > > TIA > > Sander > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bheid at appdevgrp.com Tue Mar 8 08:26:21 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 09:26:21 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D01B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE881@ADGSERVER> Why not have two sets of queries, one set that looks to a form (this one is called programmatically), and one set that queries the user for the parameters? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, March 08, 2005 8:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries..... You are correct. However the queries are not executed via from several forms but they are executed: 1- via one form 2- a user manually clicks it in the database container. The process is as follows: 1 - the reports (xls files) are stored in the database 2 - the queries that create the report are also stored in the database 3 - the user selects a report 4 - the necessary queries are executed one by one However, several times a week a manager requests a part of the report that is slightly different from the original. A user then must have the change to quickly adjust the query and run it manually. HTH Sander --- Bobby Heid wrote: > If you are not wanting to encode a particular form > field because the query > is called from several forms, might I suggest that > you create a new hidden > form that contains fields for all of the fields that > are used as parameters. > Then the queries can access these fields. > > You would need to set the fields on the form before > the queries were > executed. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 3:15 AM > To: Acces User Group > Subject: [AccessD] Automating parameterized action queries..... > > > Hi group, > > my story of the queries continues. I need to run a > set > of action queries. This works fine. > > Several queries have parameters. So that means the > user has to watch the screen for a parameter to > pop-up. Is it possible to add some parameter fields > in > the form to fill the required parameters...WITHOUT > changing the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: forms!frmReport!txtVersion > forms!frmReport!txtStartDate > > TIA > > Sander > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 8 08:33:42 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 06:33:42 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050308143342.68438.qmail@web31605.mail.mud.yahoo.com> I also thought of that but I hoped their was a way to fill the parameters per query with form input. That way i could make a form for the users in wich they can enter: - a new report - queries per report - parameters per query - parametertype per parameter (eg date, number, etc) With this info I could, based on a report selection build a form dynamicly. Well I have to look at this some more and let the customer decide. Regards, Sander --- Bobby Heid wrote: > Why not have two sets of queries, one set that looks > to a form (this one is > called programmatically), and one set that queries > the user for the > parameters? > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 8:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Automating parameterized > action queries..... > > > You are correct. However the queries are not > executed > via from several forms but they are executed: > 1- via one form > 2- a user manually clicks it in the database > container. > > The process is as follows: > 1 - the reports (xls files) are stored in the > database > 2 - the queries that create the report are also > stored > in the database > 3 - the user selects a report > 4 - the necessary queries are executed one by one > > However, several times a week a manager requests a > part of the report that is slightly different from > the original. A user then > must have the change to quickly adjust the query and > run it manually. > > HTH > > Sander > > > --- Bobby Heid wrote: > > If you are not wanting to encode a particular form > > field because the query > > is called from several forms, might I suggest that > > you create a new hidden > > form that contains fields for all of the fields > that > > are used as parameters. > > Then the queries can access these fields. > > > > You would need to set the fields on the form > before > > the queries were > > executed. > > > > Bobby > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Sad Der > > Sent: Tuesday, March 08, 2005 3:15 AM > > To: Acces User Group > > Subject: [AccessD] Automating parameterized action > queries..... > > > > > > Hi group, > > > > my story of the queries continues. I need to run a > > set > > of action queries. This works fine. > > > > Several queries have parameters. So that means the > > user has to watch the screen for a parameter to > > pop-up. Is it possible to add some parameter > fields > > in > > the form to fill the required parameters...WITHOUT > > changing the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > TIA > > > > Sander > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From scapistrant at symphonyinfo.com Tue Mar 8 08:40:42 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Tue, 8 Mar 2005 08:40:42 -0600 Subject: [AccessD] Learned something new Message-ID: <855499653F55AD4190B242717DF132BC04EE33@dewey.Symphony.local> What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 08:49:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 8 Mar 2005 09:49:49 -0500 Subject: [AccessD] Learned something new In-Reply-To: <855499653F55AD4190B242717DF132BC04EE33@dewey.Symphony.local> Message-ID: <001701c523ee$183f7e10$697aa8c0@ColbyM6805> Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Mar 8 08:51:44 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 8 Mar 2005 09:51:44 -0500 Subject: [AccessD] Automating parameterized action queries..... Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D45@TTNEXCHCL2.hshhp.com> Sander, I'm not 100% positive but I believe I've seen a technique that did allow you to programatically fill "Enter xxx" prompts. Have you searched the web? I'm sorry I don't have anything more concrete to offer other than a vague recollection. A quick search of Dev Ashish's site turns up this code: Dim db As Database 'current database Dim rs As Recordset 'holds query resultset Dim qdfParmQry As QueryDef 'the actual query object Set db = CurrentDb() Set qdfParmQry = db.QueryDefs("Qry1") qdfParmQry("Please Enter Code:") = 3 qdef.parameters(1) = "[Enter xxx]= " & yourvaluehere Maybe that will help you figure out how to handle that situation. HTH Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Tuesday, March 08, 2005 9:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries..... I also thought of that but I hoped their was a way to fill the parameters per query with form input. That way i could make a form for the users in wich they can enter: - a new report - queries per report - parameters per query - parametertype per parameter (eg date, number, etc) With this info I could, based on a report selection build a form dynamicly. Well I have to look at this some more and let the customer decide. Regards, Sander --- Bobby Heid wrote: > Why not have two sets of queries, one set that looks > to a form (this one is > called programmatically), and one set that queries > the user for the > parameters? > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 8:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Automating parameterized > action queries..... > > > You are correct. However the queries are not > executed > via from several forms but they are executed: > 1- via one form > 2- a user manually clicks it in the database > container. > > The process is as follows: > 1 - the reports (xls files) are stored in the > database > 2 - the queries that create the report are also > stored > in the database > 3 - the user selects a report > 4 - the necessary queries are executed one by one > > However, several times a week a manager requests a > part of the report that is slightly different from > the original. A user then > must have the change to quickly adjust the query and > run it manually. > > HTH > > Sander > > > --- Bobby Heid wrote: > > If you are not wanting to encode a particular form > > field because the query > > is called from several forms, might I suggest that > > you create a new hidden > > form that contains fields for all of the fields > that > > are used as parameters. > > Then the queries can access these fields. > > > > You would need to set the fields on the form > before > > the queries were > > executed. > > > > Bobby > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Sad Der > > Sent: Tuesday, March 08, 2005 3:15 AM > > To: Acces User Group > > Subject: [AccessD] Automating parameterized action > queries..... > > > > > > Hi group, > > > > my story of the queries continues. I need to run a > > set > > of action queries. This works fine. > > > > Several queries have parameters. So that means the > > user has to watch the screen for a parameter to > > pop-up. Is it possible to add some parameter > fields > > in > > the form to fill the required parameters...WITHOUT > > changing the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > TIA > > > > Sander > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bheid at appdevgrp.com Tue Mar 8 09:06:18 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 10:06:18 -0500 Subject: [AccessD] Learned something new In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D04F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE883@ADGSERVER> Steve, Yes, it is a separate database that is password protected. The FE links to the work tables at the same time that it links to the BE tables. Due to linking problems in the past, the FE re-links to the BE and work tables at every start up. To handle the linking, I have two arrays of table names to link to. Array 1, holds tables in the BE, Array 2 holds tables in the work db. I actually have another array that holds tables in a configuration db (legacy). Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. From bheid at appdevgrp.com Tue Mar 8 09:07:21 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 10:07:21 -0500 Subject: [AccessD] Learned something new In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D056@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE884@ADGSERVER> Interesting idea John. I may look into doing something like that in the future. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, March 08, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com From scapistrant at symphonyinfo.com Tue Mar 8 09:15:36 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Tue, 8 Mar 2005 09:15:36 -0600 Subject: [AccessD] Learned something new Message-ID: <855499653F55AD4190B242717DF132BC04EE38@dewey.Symphony.local> John, I like the elegance of that solution, since our "compact on close" routine takes time and really fouls up users who exit and try immediately to reenter. However, our FE files usually carry a number of user-defined settings (preferences, defaults, etc), and these get wiped out with upgrades, so your system of daily refreshes would be a problem. But now I'm wondering if we could store the user-defined settings outside of the FE...perhaps in a text file, or a little companion mdb. Have you tried this? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, March 08, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 09:24:15 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 8 Mar 2005 10:24:15 -0500 Subject: [AccessD] Learned something new In-Reply-To: <855499653F55AD4190B242717DF132BC04EE38@dewey.Symphony.local> Message-ID: <001a01c523f2$e6f682e0$697aa8c0@ColbyM6805> LOL, that is what the registry is for. Also known as "little companion db". 8-) And yes, you should use the registry to store user specific settings. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new John, I like the elegance of that solution, since our "compact on close" routine takes time and really fouls up users who exit and try immediately to reenter. However, our FE files usually carry a number of user-defined settings (preferences, defaults, etc), and these get wiped out with upgrades, so your system of daily refreshes would be a problem. But now I'm wondering if we could store the user-defined settings outside of the FE...perhaps in a text file, or a little companion mdb. Have you tried this? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, March 08, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Tue Mar 8 09:26:12 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 8 Mar 2005 10:26:12 -0500 Subject: [AccessD] Error when using DoCmd.SendObject Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A16F@mercury.tnco-inc.com> Access 2000 no SP I have a database that uses DoCmd.SendObject to send a report in snapshot format. On some computers, the user gets an error message when it get to this line of code: DoCmd.SendObject acSendReport, "PRINT OUT CCR", acFormatSNP, "Ted Haley;Bob Glidden;Ken Campanale;Karin Gilman;Joe Talkowski;Dave McKenna", "Rose Anderson", , "CCR# " & Me.DocumentNum, "Open attached file for CCR info.", True The error message is: There isn't enough memory to perform this operation. Close unneeded programs and try the operation again. I have tried rebooting the computer and then tried again with no luck. I checked out MS and had no luck. JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From bchacc at san.rr.com Tue Mar 8 10:10:27 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 08:10:27 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050308143342.68438.qmail@web31605.mail.mud.yahoo.com> Message-ID: <007801c523f9$582166a0$6b01a8c0@HAL9002> Sander: I always take parameters from a form. Don't like to let the users muck around in the database container. So get the parameter into the query I make a Public Function GetParameterX GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter End Function Then in the query under criteria I put GetParameterX() and it fetches the contents of the text box from the form when it runs. Probably not the most elegant solution but it works and its easy. But you have to run the query from the form. The users I write for prefer it. Almost none of them would know how to run a query from the database container and most don't even know what a query is. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 08, 2005 6:33 AM Subject: RE: [AccessD] Automating parameterized action queries..... >I also thought of that but I hoped their was a way to > fill the parameters per query with form input. > > That way i could make a form for the users in wich > they can enter: > - a new report > - queries per report > - parameters per query > - parametertype per parameter (eg date, number, etc) > > With this info I could, based on a report selection > build a form dynamicly. > > Well I have to look at this some more and let the > customer decide. > > Regards, > > Sander > > --- Bobby Heid wrote: >> Why not have two sets of queries, one set that looks >> to a form (this one is >> called programmatically), and one set that queries >> the user for the >> parameters? >> >> Bobby >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On >> Behalf Of Sad Der >> Sent: Tuesday, March 08, 2005 8:10 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> You are correct. However the queries are not >> executed >> via from several forms but they are executed: >> 1- via one form >> 2- a user manually clicks it in the database >> container. >> >> The process is as follows: >> 1 - the reports (xls files) are stored in the >> database >> 2 - the queries that create the report are also >> stored >> in the database >> 3 - the user selects a report >> 4 - the necessary queries are executed one by one >> >> However, several times a week a manager requests a >> part of the report that is slightly different from >> the original. A user then >> must have the change to quickly adjust the query and >> run it manually. >> >> HTH >> >> Sander >> >> >> --- Bobby Heid wrote: >> > If you are not wanting to encode a particular form >> > field because the query >> > is called from several forms, might I suggest that >> > you create a new hidden >> > form that contains fields for all of the fields >> that >> > are used as parameters. >> > Then the queries can access these fields. >> > >> > You would need to set the fields on the form >> before >> > the queries were >> > executed. >> > >> > Bobby >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On >> > Behalf Of Sad Der >> > Sent: Tuesday, March 08, 2005 3:15 AM >> > To: Acces User Group >> > Subject: [AccessD] Automating parameterized action >> queries..... >> > >> > >> > Hi group, >> > >> > my story of the queries continues. I need to run a >> > set >> > of action queries. This works fine. >> > >> > Several queries have parameters. So that means the >> > user has to watch the screen for a parameter to >> > pop-up. Is it possible to add some parameter >> fields >> > in >> > the form to fill the required parameters...WITHOUT >> > changing the query it self? >> > >> > So I have a parameters in my query: >> > [Enter version:] >> > [Enter startdate:] >> > >> > And I do not want to change these to: >> forms!frmReport!txtVersion >> > forms!frmReport!txtStartDate >> > >> > TIA >> > >> > Sander >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Mar 8 10:17:37 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 8 Mar 2005 11:17:37 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <007801c523f9$582166a0$6b01a8c0@HAL9002> Message-ID: <20050308161733.KMRX10694.imf25aec.mail.bellsouth.net@SUSANONE> Rocky -- so you've got a fixed query that's using a function to retrieve the selected item in a list or combo box? Susan H. Sander: I always take parameters from a form. Don't like to let the users muck around in the database container. So get the parameter into the query I make a Public Function GetParameterX GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter End Function Then in the query under criteria I put GetParameterX() and it fetches the contents of the text box from the form when it runs. Probably not the most elegant solution but it works and its easy. But you have to run the query from the form. The users I write for prefer it. Almost none of them would know how to run a query from the database container and most don't even know what a query is. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 08, 2005 6:33 AM Subject: RE: [AccessD] Automating parameterized action queries..... >I also thought of that but I hoped their was a way to > fill the parameters per query with form input. > > That way i could make a form for the users in wich > they can enter: > - a new report > - queries per report > - parameters per query > - parametertype per parameter (eg date, number, etc) > > With this info I could, based on a report selection > build a form dynamicly. > > Well I have to look at this some more and let the > customer decide. > > Regards, > > Sander > > --- Bobby Heid wrote: >> Why not have two sets of queries, one set that looks >> to a form (this one is >> called programmatically), and one set that queries >> the user for the >> parameters? >> >> Bobby >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On >> Behalf Of Sad Der >> Sent: Tuesday, March 08, 2005 8:10 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> You are correct. However the queries are not >> executed >> via from several forms but they are executed: >> 1- via one form >> 2- a user manually clicks it in the database >> container. >> >> The process is as follows: >> 1 - the reports (xls files) are stored in the >> database >> 2 - the queries that create the report are also >> stored >> in the database >> 3 - the user selects a report >> 4 - the necessary queries are executed one by one >> >> However, several times a week a manager requests a >> part of the report that is slightly different from >> the original. A user then >> must have the change to quickly adjust the query and >> run it manually. >> >> HTH >> >> Sander >> >> >> --- Bobby Heid wrote: >> > If you are not wanting to encode a particular form >> > field because the query >> > is called from several forms, might I suggest that >> > you create a new hidden >> > form that contains fields for all of the fields >> that >> > are used as parameters. >> > Then the queries can access these fields. >> > >> > You would need to set the fields on the form >> before >> > the queries were >> > executed. >> > >> > Bobby >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On >> > Behalf Of Sad Der >> > Sent: Tuesday, March 08, 2005 3:15 AM >> > To: Acces User Group >> > Subject: [AccessD] Automating parameterized action >> queries..... >> > >> > >> > Hi group, >> > >> > my story of the queries continues. I need to run a >> > set >> > of action queries. This works fine. >> > >> > Several queries have parameters. So that means the >> > user has to watch the screen for a parameter to >> > pop-up. Is it possible to add some parameter >> fields >> > in >> > the form to fill the required parameters...WITHOUT >> > changing the query it self? >> > >> > So I have a parameters in my query: >> > [Enter version:] >> > [Enter startdate:] >> > >> > And I do not want to change these to: >> forms!frmReport!txtVersion >> > forms!frmReport!txtStartDate >> > >> > TIA >> > >> > Sander >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 10:26:29 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 8 Mar 2005 11:26:29 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <007801c523f9$582166a0$6b01a8c0@HAL9002> Message-ID: <001b01c523fb$98903c00$697aa8c0@ColbyM6805> Rocky, See my posts re "Filters". The downside to your method is you have to have a function GetParameterX for each form / control. Which means building a new function for every one of these. Another downside is that the form has to be open or the query won't run. BTW I call this "pull" technology as it "pulls" the information from the form. For testing purposes it is sometimes convenient to not need the form open, just feed values in from the debug window. Furthermore you can use OnCurrent to feed PK values into a filter etc without needing a text box to hold the PK value for your method. The alternative is "push" where the form "pushes" the value into a Fltr() as the control changes. Thus in AfterUpdate of a text box you would use: Fltr "MyTxtBoxName", MyTxtBox.Value The query now uses Fltr("MyTxtBoxName") instead of GetParameterX(). You now just add new filter values to the Fltr() as you need them. No writing a new function every time. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, March 08, 2005 11:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating parameterized action queries..... Sander: I always take parameters from a form. Don't like to let the users muck around in the database container. So get the parameter into the query I make a Public Function GetParameterX GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter End Function Then in the query under criteria I put GetParameterX() and it fetches the contents of the text box from the form when it runs. Probably not the most elegant solution but it works and its easy. But you have to run the query from the form. The users I write for prefer it. Almost none of them would know how to run a query from the database container and most don't even know what a query is. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 08, 2005 6:33 AM Subject: RE: [AccessD] Automating parameterized action queries..... >I also thought of that but I hoped their was a way to > fill the parameters per query with form input. > > That way i could make a form for the users in wich > they can enter: > - a new report > - queries per report > - parameters per query > - parametertype per parameter (eg date, number, etc) > > With this info I could, based on a report selection > build a form dynamicly. > > Well I have to look at this some more and let the > customer decide. > > Regards, > > Sander > > --- Bobby Heid wrote: >> Why not have two sets of queries, one set that looks >> to a form (this one is >> called programmatically), and one set that queries >> the user for the >> parameters? >> >> Bobby >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On >> Behalf Of Sad Der >> Sent: Tuesday, March 08, 2005 8:10 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> You are correct. However the queries are not >> executed >> via from several forms but they are executed: >> 1- via one form >> 2- a user manually clicks it in the database >> container. >> >> The process is as follows: >> 1 - the reports (xls files) are stored in the >> database >> 2 - the queries that create the report are also >> stored >> in the database >> 3 - the user selects a report >> 4 - the necessary queries are executed one by one >> >> However, several times a week a manager requests a >> part of the report that is slightly different from >> the original. A user then >> must have the change to quickly adjust the query and >> run it manually. >> >> HTH >> >> Sander >> >> >> --- Bobby Heid wrote: >> > If you are not wanting to encode a particular form >> > field because the query >> > is called from several forms, might I suggest that >> > you create a new hidden >> > form that contains fields for all of the fields >> that >> > are used as parameters. >> > Then the queries can access these fields. >> > >> > You would need to set the fields on the form >> before >> > the queries were >> > executed. >> > >> > Bobby >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On >> > Behalf Of Sad Der >> > Sent: Tuesday, March 08, 2005 3:15 AM >> > To: Acces User Group >> > Subject: [AccessD] Automating parameterized action >> queries..... >> > >> > >> > Hi group, >> > >> > my story of the queries continues. I need to run a >> > set >> > of action queries. This works fine. >> > >> > Several queries have parameters. So that means the >> > user has to watch the screen for a parameter to >> > pop-up. Is it possible to add some parameter >> fields >> > in >> > the form to fill the required parameters...WITHOUT changing the >> > query it self? >> > >> > So I have a parameters in my query: >> > [Enter version:] >> > [Enter startdate:] >> > >> > And I do not want to change these to: >> forms!frmReport!txtVersion >> > forms!frmReport!txtStartDate >> > >> > TIA >> > >> > Sander >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 8 10:37:08 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 08:37:08 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050308161733.KMRX10694.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <00b201c523fd$12701300$6b01a8c0@HAL9002> Yeah. Or a value in a text box. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 8:17 AM Subject: RE: [AccessD] Automating parameterized action queries..... > Rocky -- so you've got a fixed query that's using a function to retrieve > the > selected item in a list or combo box? > > Susan H. > > > Sander: > > I always take parameters from a form. Don't like to let the users muck > around in the database container. So get the parameter into the query I > make a > > Public Function GetParameterX > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > End Function > > Then in the query under criteria I put GetParameterX() and it fetches the > contents of the text box from the form when it runs. > > Probably not the most elegant solution but it works and its easy. But you > have to run the query from the form. > > The users I write for prefer it. Almost none of them would know how to > run > a query from the database container and most don't even know what a query > is. > > HTH > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, March 08, 2005 6:33 AM > Subject: RE: [AccessD] Automating parameterized action queries..... > > >>I also thought of that but I hoped their was a way to >> fill the parameters per query with form input. >> >> That way i could make a form for the users in wich >> they can enter: >> - a new report >> - queries per report >> - parameters per query >> - parametertype per parameter (eg date, number, etc) >> >> With this info I could, based on a report selection >> build a form dynamicly. >> >> Well I have to look at this some more and let the >> customer decide. >> >> Regards, >> >> Sander >> >> --- Bobby Heid wrote: >>> Why not have two sets of queries, one set that looks >>> to a form (this one is >>> called programmatically), and one set that queries >>> the user for the >>> parameters? >>> >>> Bobby >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On >>> Behalf Of Sad Der >>> Sent: Tuesday, March 08, 2005 8:10 AM >>> To: Access Developers discussion and problem solving >>> Subject: RE: [AccessD] Automating parameterized >>> action queries..... >>> >>> >>> You are correct. However the queries are not >>> executed >>> via from several forms but they are executed: >>> 1- via one form >>> 2- a user manually clicks it in the database >>> container. >>> >>> The process is as follows: >>> 1 - the reports (xls files) are stored in the >>> database >>> 2 - the queries that create the report are also >>> stored >>> in the database >>> 3 - the user selects a report >>> 4 - the necessary queries are executed one by one >>> >>> However, several times a week a manager requests a >>> part of the report that is slightly different from >>> the original. A user then >>> must have the change to quickly adjust the query and >>> run it manually. >>> >>> HTH >>> >>> Sander >>> >>> >>> --- Bobby Heid wrote: >>> > If you are not wanting to encode a particular form >>> > field because the query >>> > is called from several forms, might I suggest that >>> > you create a new hidden >>> > form that contains fields for all of the fields >>> that >>> > are used as parameters. >>> > Then the queries can access these fields. >>> > >>> > You would need to set the fields on the form >>> before >>> > the queries were >>> > executed. >>> > >>> > Bobby >>> > >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [mailto:accessd-bounces at databaseadvisors.com] On >>> > Behalf Of Sad Der >>> > Sent: Tuesday, March 08, 2005 3:15 AM >>> > To: Acces User Group >>> > Subject: [AccessD] Automating parameterized action >>> queries..... >>> > >>> > >>> > Hi group, >>> > >>> > my story of the queries continues. I need to run a >>> > set >>> > of action queries. This works fine. >>> > >>> > Several queries have parameters. So that means the >>> > user has to watch the screen for a parameter to >>> > pop-up. Is it possible to add some parameter >>> fields >>> > in >>> > the form to fill the required parameters...WITHOUT >>> > changing the query it self? >>> > >>> > So I have a parameters in my query: >>> > [Enter version:] >>> > [Enter startdate:] >>> > >>> > And I do not want to change these to: >>> forms!frmReport!txtVersion >>> > forms!frmReport!txtStartDate >>> > >>> > TIA >>> > >>> > Sander >>> > >>> > -- >>> > AccessD mailing list >>> > AccessD at databaseadvisors.com >>> > >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> > Website: http://www.databaseadvisors.com >>> > >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam >>> protection around >>> http://mail.yahoo.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Mar 8 10:40:45 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 08:40:45 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <001b01c523fb$98903c00$697aa8c0@ColbyM6805> Message-ID: <00b701c523fd$93d86e60$6b01a8c0@HAL9002> John: All true. But where I have a lot of parameter values - like the data selection criteria in the manufacturing system, I actually build the SQL statement or report filter in code and push it into the record source or filter of the report instead of using a stored query. Another brute force solution. :) Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 8:26 AM Subject: RE: [AccessD] Automating parameterized action queries..... > Rocky, > > See my posts re "Filters". > > The downside to your method is you have to have a function GetParameterX > for > each form / control. Which means building a new function for every one of > these. Another downside is that the form has to be open or the query > won't > run. BTW I call this "pull" technology as it "pulls" the information from > the form. > > For testing purposes it is sometimes convenient to not need the form open, > just feed values in from the debug window. Furthermore you can use > OnCurrent to feed PK values into a filter etc without needing a text box > to > hold the PK value for your method. > > The alternative is "push" where the form "pushes" the value into a Fltr() > as > the control changes. Thus in AfterUpdate of a text box you would use: > > Fltr "MyTxtBoxName", MyTxtBox.Value > > The query now uses Fltr("MyTxtBoxName") instead of GetParameterX(). You > now > just add new filter values to the Fltr() as you need them. No writing a > new > function every time. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, March 08, 2005 11:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating parameterized action queries..... > > > Sander: > > I always take parameters from a form. Don't like to let the users muck > around in the database container. So get the parameter into the query I > make a > > Public Function GetParameterX > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > End Function > > Then in the query under criteria I put GetParameterX() and it fetches the > contents of the text box from the form when it runs. > > Probably not the most elegant solution but it works and its easy. But you > have to run the query from the form. > > The users I write for prefer it. Almost none of them would know how to > run > a query from the database container and most don't even know what a query > is. > > HTH > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, March 08, 2005 6:33 AM > Subject: RE: [AccessD] Automating parameterized action queries..... > > >>I also thought of that but I hoped their was a way to >> fill the parameters per query with form input. >> >> That way i could make a form for the users in wich >> they can enter: >> - a new report >> - queries per report >> - parameters per query >> - parametertype per parameter (eg date, number, etc) >> >> With this info I could, based on a report selection >> build a form dynamicly. >> >> Well I have to look at this some more and let the >> customer decide. >> >> Regards, >> >> Sander >> >> --- Bobby Heid wrote: >>> Why not have two sets of queries, one set that looks >>> to a form (this one is >>> called programmatically), and one set that queries >>> the user for the >>> parameters? >>> >>> Bobby >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On >>> Behalf Of Sad Der >>> Sent: Tuesday, March 08, 2005 8:10 AM >>> To: Access Developers discussion and problem solving >>> Subject: RE: [AccessD] Automating parameterized >>> action queries..... >>> >>> >>> You are correct. However the queries are not >>> executed >>> via from several forms but they are executed: >>> 1- via one form >>> 2- a user manually clicks it in the database >>> container. >>> >>> The process is as follows: >>> 1 - the reports (xls files) are stored in the >>> database >>> 2 - the queries that create the report are also >>> stored >>> in the database >>> 3 - the user selects a report >>> 4 - the necessary queries are executed one by one >>> >>> However, several times a week a manager requests a >>> part of the report that is slightly different from >>> the original. A user then >>> must have the change to quickly adjust the query and >>> run it manually. >>> >>> HTH >>> >>> Sander >>> >>> >>> --- Bobby Heid wrote: >>> > If you are not wanting to encode a particular form >>> > field because the query >>> > is called from several forms, might I suggest that >>> > you create a new hidden >>> > form that contains fields for all of the fields >>> that >>> > are used as parameters. >>> > Then the queries can access these fields. >>> > >>> > You would need to set the fields on the form >>> before >>> > the queries were >>> > executed. >>> > >>> > Bobby >>> > >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [mailto:accessd-bounces at databaseadvisors.com] On >>> > Behalf Of Sad Der >>> > Sent: Tuesday, March 08, 2005 3:15 AM >>> > To: Acces User Group >>> > Subject: [AccessD] Automating parameterized action >>> queries..... >>> > >>> > >>> > Hi group, >>> > >>> > my story of the queries continues. I need to run a >>> > set >>> > of action queries. This works fine. >>> > >>> > Several queries have parameters. So that means the >>> > user has to watch the screen for a parameter to >>> > pop-up. Is it possible to add some parameter >>> fields >>> > in >>> > the form to fill the required parameters...WITHOUT changing the >>> > query it self? >>> > >>> > So I have a parameters in my query: >>> > [Enter version:] >>> > [Enter startdate:] >>> > >>> > And I do not want to change these to: >>> forms!frmReport!txtVersion >>> > forms!frmReport!txtStartDate >>> > >>> > TIA >>> > >>> > Sander >>> > >>> > -- >>> > AccessD mailing list >>> > AccessD at databaseadvisors.com >>> > >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> > Website: http://www.databaseadvisors.com >>> > >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam >>> protection around >>> http://mail.yahoo.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Tue Mar 8 11:03:32 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 8 Mar 2005 17:03:32 -0000 Subject: [AccessD] report grouping on the fly? Message-ID: <61F915314798D311A2F800A0C9C831880722564A@dibble.observatory.donnslaw.co.uk> Dear all My colleague Tom and I are working on a reporting tool. The principles are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing amount of fiddle to get We are finding that the demand for bespoke report 'templates' (i.e. pre-created reports that they can then set criteria against) is outstripping our ability to provide them, because users constantly want different sorting and grouping. Has anyone ever built anything that created group headers & footers on the fly? I am trying to conceptualize it but it seems like a big task. Thinking aloud here - I can see that we need to limit the options presented to the user. They will have little understanding of the data or the principles of data interrogation. So we will need to determine which grouping functions to make available and which report fields each function can apply to. We will then need to create the appropriate report sections and populate them with controls, nicely positioned, suitably formatted and containing the correct data binding / grouping function. I think positioning them will turn out to be the hardest part; it's such a visual task when you put total controls on manually. Any thoughts or advice would be welcome Cheers Roz -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From donald.a.Mcgillivray at mail.sprint.com Tue Mar 8 11:27:18 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Tue, 8 Mar 2005 11:27:18 -0600 Subject: [AccessD] report grouping on the fly? Message-ID: Hi, Roz (and Tom), I used the following approach to create a report grouped according to user preferences. Not near as complex as what you're proposing, but this might be helpful as a starting point for where you're going. Here's what I did: 1. Built a query using generic aliases for the variable grouping/sorting fields (EmployeeName as GroupSortVal1, EmployeeNumber as GroupSortVal2, etc.) 2. Designed a report based on the query, using the generic field names as the group/sort values. 3. Designed a report spec form with combo boxe(s) offering a selection of grouping options. 4. User selects the desired group field(s), and I use the choice(s) to build the SQL for a new query, assigning the chosen grouping fields to the appropriate aliases. 5. Update the query's SQL property with the new SQL string. 6. Open the report. Since the grouping/sorting is being done in the report on generic aliases, the report doesn't care which fields/values from the query the aliases represent. Could get kinda ugly, but I'd guess you could pre-position other controls bound to aliased fields, and assign fields to the aliases as needed for other elements of the report, too. HTH Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Tuesday, March 08, 2005 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] report grouping on the fly? Dear all My colleague Tom and I are working on a reporting tool. The principles are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing amount of fiddle to get We are finding that the demand for bespoke report 'templates' (i.e. pre-created reports that they can then set criteria against) is outstripping our ability to provide them, because users constantly want different sorting and grouping. Has anyone ever built anything that created group headers & footers on the fly? I am trying to conceptualize it but it seems like a big task. Thinking aloud here - I can see that we need to limit the options presented to the user. They will have little understanding of the data or the principles of data interrogation. So we will need to determine which grouping functions to make available and which report fields each function can apply to. We will then need to create the appropriate report sections and populate them with controls, nicely positioned, suitably formatted and containing the correct data binding / grouping function. I think positioning them will turn out to be the hardest part; it's such a visual task when you put total controls on manually. Any thoughts or advice would be welcome Cheers Roz From Gustav at cactus.dk Tue Mar 8 11:34:13 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 08 Mar 2005 18:34:13 +0100 Subject: [AccessD] report grouping on the fly? Message-ID: Hi Roz Perhaps you can leave all this to DBxtra: www.dbxtra.com /gustav >>> roz.clarke at donnslaw.co.uk 08-03-2005 18:03:32 >>> Dear all My colleague Tom and I are working on a reporting tool. The principles are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing amount of fiddle to get We are finding that the demand for bespoke report 'templates' (i.e. pre-created reports that they can then set criteria against) is outstripping our ability to provide them, because users constantly want different sorting and grouping. Has anyone ever built anything that created group headers & footers on the fly? I am trying to conceptualize it but it seems like a big task. Thinking aloud here - I can see that we need to limit the options presented to the user. They will have little understanding of the data or the principles of data interrogation. So we will need to determine which grouping functions to make available and which report fields each function can apply to. We will then need to create the appropriate report sections and populate them with controls, nicely positioned, suitably formatted and containing the correct data binding / grouping function. I think positioning them will turn out to be the hardest part; it's such a visual task when you put total controls on manually. Any thoughts or advice would be welcome Cheers Roz From bchacc at san.rr.com Tue Mar 8 11:59:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 09:59:43 -0800 Subject: [AccessD] report grouping on the fly? References: <61F915314798D311A2F800A0C9C831880722564A@dibble.observatory.donnslaw.co.uk> Message-ID: <012101c52409$005b3490$6b01a8c0@HAL9002> Roz: On many of the reports in the manufacturing app I give the users three levels of sorting on fields which they select from a combo box. The report is set up with three groupings defaulted to some low level field like part number. Then, in the Open event of the report I set the grouping field: Me.GroupLevel(0).ControlSource = Forms!frmSupplySideReport!cboSort1.Column(0) Me.GroupLevel(1).ControlSource = Forms!frmSupplySideReport!cboSort2.Column(0) Me.GroupLevel(2).ControlSource = Forms!frmSupplySideReport!cboSort3.Column(0) HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Roz Clarke" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 9:03 AM Subject: [AccessD] report grouping on the fly? > Dear all > > My colleague Tom and I are working on a reporting tool. The principles are > borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing > amount of fiddle to get > > We are finding that the demand for bespoke report 'templates' (i.e. > pre-created reports that they can then set criteria against) is > outstripping > our ability to provide them, because users constantly want different > sorting > and grouping. > > Has anyone ever built anything that created group headers & footers on the > fly? I am trying to conceptualize it but it seems like a big task. > > Thinking aloud here - I can see that we need to limit the options > presented > to the user. They will have little understanding of the data or the > principles of data interrogation. So we will need to determine which > grouping functions to make available and which report fields each function > can apply to. > > We will then need to create the appropriate report sections and populate > them with controls, nicely positioned, suitably formatted and containing > the > correct data binding / grouping function. > > I think positioning them will turn out to be the hardest part; it's such a > visual task when you put total controls on manually. > > Any thoughts or advice would be welcome > > Cheers > > Roz > -------------------------------------------------------------------------------- > > The contents of this message and any attachments are the property of Donns > Solicitors > and are intended for the confidential use of the named recipient only. > They may be legally > privileged and should not be communicated to, or relied upon, by any other > party without > our written consent. If you are not the addressee, please notify us > immediately so that we > can make arrangements for its return. You should not show this e-mail to > any person or > take copies as you may be committing a criminal or civil offence for which > you may be > liable. The statement and opinions expressed in this e-mail message are > those of the > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > to this e-mail will have been checked with virus protection software prior > to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss > which may be caused > by software viruses... > -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Mar 8 12:07:24 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 8 Mar 2005 13:07:24 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <00b201c523fd$12701300$6b01a8c0@HAL9002> Message-ID: <20050308180721.LVBD5764.imf19aec.mail.bellsouth.net@SUSANONE> So, are you using the query as the basis for another form or report? I've seen that -- done it myself -- to create dynamic (kind of) reports where the report design doesn't necessarily change, but the data does. Susan H. Yeah. Or a value in a text box. From martyconnelly at shaw.ca Tue Mar 8 12:25:18 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 08 Mar 2005 10:25:18 -0800 Subject: [AccessD] report grouping on the fly? References: <61F915314798D311A2F800A0C9C831880722564A@dibble.observatory.donnslaw.co.uk> Message-ID: <422DEE0E.6070702@shaw.ca> Here is another approach to customizable reports; download and docs are at bottom of page from Armen Stein. http://www.jstreettech.com/Downloads.asp Roz Clarke wrote: >Dear all > >My colleague Tom and I are working on a reporting tool. The principles are >borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing >amount of fiddle to get > >We are finding that the demand for bespoke report 'templates' (i.e. >pre-created reports that they can then set criteria against) is outstripping >our ability to provide them, because users constantly want different sorting >and grouping. > >Has anyone ever built anything that created group headers & footers on the >fly? I am trying to conceptualize it but it seems like a big task. > >Thinking aloud here - I can see that we need to limit the options presented >to the user. They will have little understanding of the data or the >principles of data interrogation. So we will need to determine which >grouping functions to make available and which report fields each function >can apply to. > >We will then need to create the appropriate report sections and populate >them with controls, nicely positioned, suitably formatted and containing the >correct data binding / grouping function. > >I think positioning them will turn out to be the hardest part; it's such a >visual task when you put total controls on manually. > >Any thoughts or advice would be welcome > >Cheers > >Roz > > >------------------------------------------------------------------------ > > >The contents of this message and any attachments are the property of Donns Solicitors >and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without >our written consent. If you are not the addressee, please notify us immediately so that we >can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the >writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, >you should carry out your own virus check before opening any attachment. >Donns Solicitors does not accept any liability for any damage or loss which may be caused >by software viruses... > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Mar 8 12:26:56 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 10:26:56 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050308180721.LVBD5764.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <013901c5240c$6903ee80$6b01a8c0@HAL9002> Exactly. Since I make apps for end users who are not guaranteed to be tech savvy, I rarely write a query designed to be run by itself. They're always record sources for forms or reports. So the form where the report is run has to have all of the sort and data select options on the form. Then, in the open event of the report, I create the filter on the fly from their data selections and set the sorting and grouping. I can send you something off-line if you want. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 10:07 AM Subject: RE: [AccessD] Automating parameterized action queries..... > So, are you using the query as the basis for another form or report? I've > seen that -- done it myself -- to create dynamic (kind of) reports where > the > report design doesn't necessarily change, but the data does. > > Susan H. > > Yeah. Or a value in a text box. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KIsmert at TexasSystems.com Tue Mar 8 12:46:32 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 8 Mar 2005 12:46:32 -0600 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D45@TTNEXCHCL2.hshhp.com> Message-ID: <00a301c5240f$25801eb0$2a3ca8c0@TEXASSYSTEMS.COM> Sander, There is a class-based approach: Define a class, CReportParms, with two variant properties, Version and StartDate: Private mVersion As Variant Private mStartDate As Variant Property Get Version() As Variant Version = mVersion End Property Property Let Version(VersionIn As Variant) mVersion = VersionIn End Property ' (Similar Get/Let for StartDate) Private Sub Class_Initialize() mVersion = Null mStartDate = Null End Sub Declare it as global in one of your modules: Public gRptParms As New CReportParms Provide two global functions to use in your queries in place of your parameters: Public Function ParmVersion() As Variant Parms = gRptParms.Version End Function Public Function ParmStartDate() As Variant Parms = gRptParms.StartDate End Function You can set these properties in your form before you run your report: gRptParms.Version = txtVersion gRptParms.StartDate = txtStartDate If you can calculate reasonable values for Version and StartDate, you can do so in the CReportParms Initialize event. Alternately, you can prompt the user in the class when the queries are run standalone: Property Get Version() As Variant Dim sVersion As String If IsNull(mVersion) Then sVersion = InputBox("Enter Version:") If sVersion > "" Then mVersion = CLng(sVersion) End If End If Version = mVersion End Property You could also have a third property, FormDriven, that, when set to True, doesn't prompt the user. Only your frmReport form will set this property, and clear it upon exit. That way, the user is always prompted when running the queries stand-alone. -Ken > Hi group, > > my story of the queries continues. I need to > run a set of action queries. This works fine. > > Several queries have parameters. So that means > the user has to watch the screen for a > parameter to pop-up. Is it possible to add > some parameter fields in the form to fill > the required parameters...WITHOUT changing > the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: > forms!frmReport!txtVersion > forms!frmReport!txtStartDate From ssharkins at bellsouth.net Tue Mar 8 12:47:33 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 8 Mar 2005 13:47:33 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <013901c5240c$6903ee80$6b01a8c0@HAL9002> Message-ID: <20050308184730.QYAZ2031.imf17aec.mail.bellsouth.net@SUSANONE> I can send you something off-line if you want. ==========No thank you -- I've already written about it. :) Always working, always working... ;) Susan H. From cyx5 at cdc.gov Tue Mar 8 13:18:00 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 14:18:00 -0500 Subject: [AccessD] Windows Key - ASCII Code - OT Message-ID: Anyone know what the ASCII code is to invoke the functionality that is provided by the Windows key (the little flying window) on the keyboard? From cyx5 at cdc.gov Tue Mar 8 13:24:47 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 14:24:47 -0500 Subject: [AccessD] Windows Key - ASCII Code - OT Message-ID: Maybe I should say, how do I program in Access, what is the shortcut, like [page up], etc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Windows Key - ASCII Code - OT Anyone know what the ASCII code is to invoke the functionality that is provided by the Windows key (the little flying window) on the keyboard? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Mar 8 13:37:35 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 08 Mar 2005 13:37:35 -0600 Subject: [AccessD] Re: Learned something new In-Reply-To: <200503081800.j28I0Ai03265@databaseadvisors.com> Message-ID: <5.1.0.14.2.20050308133646.03d87c80@pop3.highstream.net> Steve, Why not save them in a table in the FE? Robert At 12:00 PM 3/8/2005 -0600, you wrote: >Date: Tue, 8 Mar 2005 09:15:36 -0600 >From: "Steve Capistrant" >Subject: RE: [AccessD] Learned something new >To: "Access Developers discussion and problem solving" > >Message-ID: > <855499653F55AD4190B242717DF132BC04EE38 at dewey.Symphony.local> >Content-Type: text/plain; charset="us-ascii" > >John, I like the elegance of that solution, since our "compact on close" >routine takes time and really fouls up users who exit and try >immediately to reenter. However, our FE files usually carry a number of >user-defined settings (preferences, defaults, etc), and these get wiped >out with upgrades, so your system of daily refreshes would be a problem. >But now I'm wondering if we could store the user-defined settings >outside of the FE...perhaps in a text file, or a little companion mdb. >Have you tried this? > >Steve Capistrant >scapistrant at symphonyinfo.com >Symphony Information Services >7308 Aspen Lane North, Suite 132 >Brooklyn Park, MN 55428 >763-391-7400 >www.symphonyinfo.com From rl_stewart at highstream.net Tue Mar 8 13:43:01 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 08 Mar 2005 13:43:01 -0600 Subject: [AccessD] Re: Automating parameterized action queries..... In-Reply-To: <200503081800.j28I0Ai03265@databaseadvisors.com> Message-ID: <5.1.0.14.2.20050308134018.03c040f8@pop3.highstream.net> Rocky, It is the right solution if you take it a step further. 2 queries MyQuery_0 and MyQuery_1 _0 has the straight SQL without a WHERE clause Open it, get the SQL, build the WHERE clause and append the 2 statements together. Replace the SQL statement in _1 Reports and such are based on _1 Robert At 12:00 PM 3/8/2005 -0600, you wrote: >Date: Tue, 8 Mar 2005 08:40:45 -0800 >From: "Rocky Smolin - Beach Access Software" >Subject: Re: [AccessD] Automating parameterized action queries..... >To: "Access Developers discussion and problem solving" > >Message-ID: <00b701c523fd$93d86e60$6b01a8c0 at HAL9002> >Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > >John: > >All true. But where I have a lot of parameter values - like the data >selection criteria in the manufacturing system, I actually build the SQL >statement or report filter in code and push it into the record source or >filter of the report instead of using a stored query. Another brute force >solution. :) > >Rocky From martyconnelly at shaw.ca Tue Mar 8 13:53:33 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 08 Mar 2005 11:53:33 -0800 Subject: [AccessD] Windows Key - ASCII Code - OT References: Message-ID: <422E02BD.3000104@shaw.ca> Here is how I do it The constant is VK_LWIN so it is hex 5B some keyboards have two windows buttons Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Sub OpenWindowsHelp() ' Open the Windows Help Windows - F1 ' ' You can use the same technique to programmatically "press" any other ' key, including Shift, Ctrl, Alt and keys combinations that can't be ' simulated through SendKeys 'vbKey constants partially definined in Access Help ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the F1 key keybd_event vbKeyF1, 0, 0, 0 keybd_event vbKeyF1, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Sub CloseAllWindows() ' Minimize all open windows Windows-M 'Const acaltMask ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the M key keybd_event vbKeyM, 0, 0, 0 keybd_event vbKeyM, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Nicholson, Karen wrote: >Maybe I should say, how do I program in Access, what is the shortcut, >like [page up], etc. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Tuesday, March 08, 2005 2:18 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Windows Key - ASCII Code - OT > > >Anyone know what the ASCII code is to invoke the functionality that is >provided by the Windows key (the little flying window) on the keyboard? > > -- Marty Connelly Victoria, B.C. Canada From tdd-inc at shaw.ca Tue Mar 8 14:25:47 2005 From: tdd-inc at shaw.ca (Technical Designs) Date: Tue, 08 Mar 2005 12:25:47 -0800 Subject: [AccessD] what is the total number of e-mails which can be sent at once In-Reply-To: <200503081800.j28I0Ai03229@databaseadvisors.com> Message-ID: <003501c5241d$04158d60$6701a8c0@PortaPower> Hi I am using sendobject to send emails out of Access It goes through and creates a BCC list of email addresses to send to from a table... does anyone know what the maximum number of addresses Outlook will send to a one time as I thought I read somewhere that MicroSoft put in a limit to stop spamming... I would like to know the 'magic number' thanks Phil From scapistrant at symphonyinfo.com Tue Mar 8 14:26:05 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Tue, 8 Mar 2005 14:26:05 -0600 Subject: [AccessD] Re: Learned something new Message-ID: <855499653F55AD4190B242717DF132BC04EE62@dewey.Symphony.local> Robert, that's what we currently do. Works great. Until it comes time to provide a program update, which overwrites the FE file. It would also get overwritten each day if you implemented a daily FE replacement like John Colby does. Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, March 08, 2005 2:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Learned something new Steve, Why not save them in a table in the FE? Robert At 12:00 PM 3/8/2005 -0600, you wrote: >Date: Tue, 8 Mar 2005 09:15:36 -0600 >From: "Steve Capistrant" >Subject: RE: [AccessD] Learned something new >To: "Access Developers discussion and problem solving" > >Message-ID: > <855499653F55AD4190B242717DF132BC04EE38 at dewey.Symphony.local> >Content-Type: text/plain; charset="us-ascii" > >John, I like the elegance of that solution, since our "compact on close" >routine takes time and really fouls up users who exit and try >immediately to reenter. However, our FE files usually carry a number of >user-defined settings (preferences, defaults, etc), and these get wiped >out with upgrades, so your system of daily refreshes would be a problem. >But now I'm wondering if we could store the user-defined settings >outside of the FE...perhaps in a text file, or a little companion mdb. >Have you tried this? > >Steve Capistrant >scapistrant at symphonyinfo.com >Symphony Information Services >7308 Aspen Lane North, Suite 132 >Brooklyn Park, MN 55428 >763-391-7400 >www.symphonyinfo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 8 15:24:46 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 8 Mar 2005 22:24:46 +0100 Subject: [AccessD] what is the total number of e-mails which can be sent atonce Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B586F@stekelbes.ithelps.local> I'm not aware of any limitation in Outlook but I supose there is a theoretical one. But I'm aware of most ISP have a limitation on the relay (SMTP) server. This depends on the ISP in question. You should asked the question to them. Some allow no more than 100, some 999. I supose this can be avoided when u use DNS/SMTP instead of a relay server. This would require your own SMTP server. But the disadvantage is that each email (per domain) goes out seperatly over your connection. So the time between first and last mail will be greater and you get more bandwith utilization over a long period. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Technical Designs Sent: Tuesday, March 08, 2005 9:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] what is the total number of e-mails which can be sent atonce Hi I am using sendobject to send emails out of Access It goes through and creates a BCC list of email addresses to send to from a table... does anyone know what the maximum number of addresses Outlook will send to a one time as I thought I read somewhere that MicroSoft put in a limit to stop spamming... I would like to know the 'magic number' thanks Phil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 8 15:25:50 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Tue, 8 Mar 2005 13:25:50 -0800 (PST) Subject: [AccessD] Windows Key - ASCII Code - OT In-Reply-To: Message-ID: <20050308212550.14208.qmail@web80808.mail.yahoo.com> The ASCII code of the Windows Key is 57. THe Keycode for the left "Start" button is 91 and the keycode for the right button is 92. But I believe you are asking how to pop up the start menu? I believe Marty may have answered this question. David --- "Nicholson, Karen" wrote: > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Nicholson, > Karen > Sent: Tuesday, March 08, 2005 2:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Windows Key - ASCII Code - OT > > > Anyone know what the ASCII code is to invoke the > functionality that is > provided by the Windows key (the little flying > window) on the keyboard? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Tue Mar 8 15:34:31 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 8 Mar 2005 22:34:31 +0100 Subject: [AccessD] Error when using DoCmd.SendObject Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5870@stekelbes.ithelps.local> I believe he give this when a person is not recognised or more than 1 posible resolved recipients are available. Instead of using names use real e-mail addresses. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Tuesday, March 08, 2005 4:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error when using DoCmd.SendObject Access 2000 no SP I have a database that uses DoCmd.SendObject to send a report in snapshot format. On some computers, the user gets an error message when it get to this line of code: DoCmd.SendObject acSendReport, "PRINT OUT CCR", acFormatSNP, "Ted Haley;Bob Glidden;Ken Campanale;Karin Gilman;Joe Talkowski;Dave McKenna", "Rose Anderson", , "CCR# " & Me.DocumentNum, "Open attached file for CCR info.", True The error message is: There isn't enough memory to perform this operation. Close unneeded programs and try the operation again. I have tried rebooting the computer and then tried again with no luck. I checked out MS and had no luck. JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 8 20:27:39 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 8 Mar 2005 18:27:39 -0800 Subject: [AccessD] Form event when record changes Message-ID: <200503090227.j292RMi04108@databaseadvisors.com> I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g From chris at denverdb.com Tue Mar 8 20:39:48 2005 From: chris at denverdb.com (Chris Mackin) Date: Tue, 8 Mar 2005 19:39:48 -0700 Subject: [AccessD] Form event when record changes In-Reply-To: <200503090227.j292RMi04108@databaseadvisors.com> Message-ID: See the Current event. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Tuesday, March 08, 2005 7:28 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Form event when record changes I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Mar 8 21:03:40 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 9 Mar 2005 14:03:40 +1100 Subject: [AccessD] Form event when record changes In-Reply-To: <200503090227.j292RMi04108@databaseadvisors.com> Message-ID: <200503090303.j2933slE023055@cooper.uws.edu.au> Hi Joe Can't you use the On_Current event Eg Private Sub Form_Current() If me.newrecord = true then Msgbox "It's a brand new 'fresh', untouched record" Else msgbox "I have just loaded another record: " & me.YourPK End if End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 9 March 2005 1:28 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Form event when record changes I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 8 21:06:52 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 8 Mar 2005 19:06:52 -0800 Subject: [AccessD] Form event when record changes In-Reply-To: <200503090303.j2933slE023055@cooper.uws.edu.au> Message-ID: <200503090306.j2936Yi13994@databaseadvisors.com> Thanks Darrin and Dick. You Too Duane Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, March 08, 2005 7:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form event when record changes Hi Joe Can't you use the On_Current event Eg Private Sub Form_Current() If me.newrecord = true then Msgbox "It's a brand new 'fresh', untouched record" Else msgbox "I have just loaded another record: " & me.YourPK End if End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 9 March 2005 1:28 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Form event when record changes I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 21:57:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 08 Mar 2005 22:57:13 -0500 Subject: [AccessD] Learned something else new today Message-ID: <000d01c5245c$13b69090$697aa8c0@ColbyM6805> I wrote an app for an insurance call center. The head tech cheese was trying to get a bunch of report queries to work "easier" which were written by a young lady they assigned that task. She had been pulling a result set with dozens of event records for each claim then "cutting and pasting" the right ones into excel. JohnS had turned it into a group by and successfully caused it to pull just the result set he wanted. However a memo field was displaying a pair of Chinese characters (literally). Very strange looking, and definitely not what we wanted to see. It turns out that he had a group by on that field. Can you guess what it was doing (or my educated guess anyway)? It took me a few minutes to figure it out!!! As you probably know, memo fields are not stored in the record, but rather a (32 bit?) pointer to the memo is stored. The GroupBy was causing the memo field to be evaluated literally, thus it was taking the POINTER and displaying (and grouping by) that. I am also guessing that Access knew that a memo is supposed to be text so it was doing an implicit cstr() on the pointer to attempt to coerce the value back to text and to display the value as a string. Thus it was displaying Chinese (and other odd) characters. By changing the GroupBy to a Max (I think anyway) the memo field text reappeared. I have never actually seen, or found any way to see the actual pointer to the memo field out in the memo area but it certainly appears that using a groupby on that field caused the pointer data itself to be exposed as the "value" of the memo. Cool huh? So if your ever seeing a pair of totally weird characters in a group by query, see if the field is a memo with a group by under it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bchacc at san.rr.com Tue Mar 8 23:12:55 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 21:12:55 -0800 Subject: [AccessD] Learned something else new today References: <000d01c5245c$13b69090$697aa8c0@ColbyM6805> Message-ID: <034601c52466$a73771e0$6b01a8c0@HAL9002> They would have had to have the Asian language support loaded as well. Why did they do that? Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 7:57 PM Subject: [AccessD] Learned something else new today >I wrote an app for an insurance call center. The head tech cheese was > trying to get a bunch of report queries to work "easier" which were > written > by a young lady they assigned that task. She had been pulling a result > set > with dozens of event records for each claim then "cutting and pasting" the > right ones into excel. JohnS had turned it into a group by and > successfully > caused it to pull just the result set he wanted. However a memo field was > displaying a pair of Chinese characters (literally). Very strange > looking, > and definitely not what we wanted to see. > > It turns out that he had a group by on that field. Can you guess what it > was doing (or my educated guess anyway)? It took me a few minutes to > figure > it out!!! > > As you probably know, memo fields are not stored in the record, but rather > a > (32 bit?) pointer to the memo is stored. The GroupBy was causing the memo > field to be evaluated literally, thus it was taking the POINTER and > displaying (and grouping by) that. I am also guessing that Access knew > that > a memo is supposed to be text so it was doing an implicit cstr() on the > pointer to attempt to coerce the value back to text and to display the > value > as a string. Thus it was displaying Chinese (and other odd) characters. > > By changing the GroupBy to a Max (I think anyway) the memo field text > reappeared. > > I have never actually seen, or found any way to see the actual pointer to > the memo field out in the memo area but it certainly appears that using a > groupby on that field caused the pointer data itself to be exposed as the > "value" of the memo. > > Cool huh? > > So if your ever seeing a pair of totally weird characters in a group by > query, see if the field is a memo with a group by under it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Wed Mar 9 03:10:23 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 9 Mar 2005 09:10:23 -0000 Subject: [AccessD] report grouping on the fly? Message-ID: <61F915314798D311A2F800A0C9C831880722564C@dibble.observatory.donnslaw.co.uk> Thanks for the responses, Marty, Don, Rocky and Gustav. We'll follow these links and ideas up. Roz -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: 08 March 2005 18:25 To: Access Developers discussion and problem solving Subject: Re: [AccessD] report grouping on the fly? Here is another approach to customizable reports; download and docs are at bottom of page from Armen Stein. http://www.jstreettech.com/Downloads.asp Roz Clarke wrote: >Dear all > >My colleague Tom and I are working on a reporting tool. The principles >are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite >astonishing amount of fiddle to get > >We are finding that the demand for bespoke report 'templates' (i.e. >pre-created reports that they can then set criteria against) is >outstripping our ability to provide them, because users constantly want >different sorting and grouping. > >Has anyone ever built anything that created group headers & footers on >the fly? I am trying to conceptualize it but it seems like a big task. > >Thinking aloud here - I can see that we need to limit the options >presented to the user. They will have little understanding of the data >or the principles of data interrogation. So we will need to determine >which grouping functions to make available and which report fields each >function can apply to. > >We will then need to create the appropriate report sections and >populate them with controls, nicely positioned, suitably formatted and >containing the correct data binding / grouping function. > >I think positioning them will turn out to be the hardest part; it's >such a visual task when you put total controls on manually. > >Any thoughts or advice would be welcome > >Cheers > >Roz > > >----------------------------------------------------------------------- >- > > >The contents of this message and any attachments are the property of >Donns Solicitors >and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without >our written consent. If you are not the addressee, please notify us immediately so that we >can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the >writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, >you should carry out your own virus check before opening any attachment. >Donns Solicitors does not accept any liability for any damage or loss which may be caused >by software viruses... > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From tom.bolton at donnslaw.co.uk Wed Mar 9 03:35:21 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 9 Mar 2005 09:35:21 -0000 Subject: [AccessD] report grouping on the fly? Message-ID: <61F915314798D311A2F800A0C9C831880731CA74@dibble.observatory.donnslaw.co.uk> Yep, thanks a lot guys. I'll let you know how we get on... I'm having a right 'Access Adventure' working for Roz, that's for sure! Cheers Tom -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: 09 March 2005 09:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] report grouping on the fly? Thanks for the responses, Marty, Don, Rocky and Gustav. We'll follow these links and ideas up. Roz -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: 08 March 2005 18:25 To: Access Developers discussion and problem solving Subject: Re: [AccessD] report grouping on the fly? Here is another approach to customizable reports; download and docs are at bottom of page from Armen Stein. http://www.jstreettech.com/Downloads.asp Roz Clarke wrote: >Dear all > >My colleague Tom and I are working on a reporting tool. The principles >are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite >astonishing amount of fiddle to get > >We are finding that the demand for bespoke report 'templates' (i.e. >pre-created reports that they can then set criteria against) is >outstripping our ability to provide them, because users constantly want >different sorting and grouping. > >Has anyone ever built anything that created group headers & footers on >the fly? I am trying to conceptualize it but it seems like a big task. > >Thinking aloud here - I can see that we need to limit the options >presented to the user. They will have little understanding of the data >or the principles of data interrogation. So we will need to determine >which grouping functions to make available and which report fields each >function can apply to. > >We will then need to create the appropriate report sections and >populate them with controls, nicely positioned, suitably formatted and >containing the correct data binding / grouping function. > >I think positioning them will turn out to be the hardest part; it's >such a visual task when you put total controls on manually. > >Any thoughts or advice would be welcome > >Cheers > >Roz > > >----------------------------------------------------------------------- >- > > >The contents of this message and any attachments are the property of >Donns Solicitors >and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without >our written consent. If you are not the addressee, please notify us immediately so that we >can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the >writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, >you should carry out your own virus check before opening any attachment. >Donns Solicitors does not accept any liability for any damage or loss which may be caused >by software viruses... > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From accessd666 at yahoo.com Wed Mar 9 03:43:02 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 9 Mar 2005 01:43:02 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <007801c523f9$582166a0$6b01a8c0@HAL9002> Message-ID: <20050309094302.37154.qmail@web31613.mail.mud.yahoo.com> I completely agree user should not mess around in the database. However this is a very clear demand. Users must have access to the queries to alter them at any time!! Thnx anyway. --- Rocky Smolin - Beach Access Software wrote: > Sander: > > I always take parameters from a form. Don't like to > let the users muck > around in the database container. So get the > parameter into the query I > make a > > Public Function GetParameterX > > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > End Function > > Then in the query under criteria I put > GetParameterX() and it fetches the > contents of the text box from the form when it runs. > > Probably not the most elegant solution but it works > and its easy. But you > have to run the query from the form. > > The users I write for prefer it. Almost none of > them would know how to run > a query from the database container and most don't > even know what a query > is. > > HTH > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Tuesday, March 08, 2005 6:33 AM > Subject: RE: [AccessD] Automating parameterized > action queries..... > > > >I also thought of that but I hoped their was a way > to > > fill the parameters per query with form input. > > > > That way i could make a form for the users in wich > > they can enter: > > - a new report > > - queries per report > > - parameters per query > > - parametertype per parameter (eg date, number, > etc) > > > > With this info I could, based on a report > selection > > build a form dynamicly. > > > > Well I have to look at this some more and let the > > customer decide. > > > > Regards, > > > > Sander > > > > --- Bobby Heid wrote: > >> Why not have two sets of queries, one set that > looks > >> to a form (this one is > >> called programmatically), and one set that > queries > >> the user for the > >> parameters? > >> > >> Bobby > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On > >> Behalf Of Sad Der > >> Sent: Tuesday, March 08, 2005 8:10 AM > >> To: Access Developers discussion and problem > solving > >> Subject: RE: [AccessD] Automating parameterized > >> action queries..... > >> > >> > >> You are correct. However the queries are not > >> executed > >> via from several forms but they are executed: > >> 1- via one form > >> 2- a user manually clicks it in the database > >> container. > >> > >> The process is as follows: > >> 1 - the reports (xls files) are stored in the > >> database > >> 2 - the queries that create the report are also > >> stored > >> in the database > >> 3 - the user selects a report > >> 4 - the necessary queries are executed one by one > >> > >> However, several times a week a manager requests > a > >> part of the report that is slightly different > from > >> the original. A user then > >> must have the change to quickly adjust the query > and > >> run it manually. > >> > >> HTH > >> > >> Sander > >> > >> > >> --- Bobby Heid wrote: > >> > If you are not wanting to encode a particular > form > >> > field because the query > >> > is called from several forms, might I suggest > that > >> > you create a new hidden > >> > form that contains fields for all of the fields > >> that > >> > are used as parameters. > >> > Then the queries can access these fields. > >> > > >> > You would need to set the fields on the form > >> before > >> > the queries were > >> > executed. > >> > > >> > Bobby > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] > On > >> > Behalf Of Sad Der > >> > Sent: Tuesday, March 08, 2005 3:15 AM > >> > To: Acces User Group > >> > Subject: [AccessD] Automating parameterized > action > >> queries..... > >> > > >> > > >> > Hi group, > >> > > >> > my story of the queries continues. I need to > run a > >> > set > >> > of action queries. This works fine. > >> > > >> > Several queries have parameters. So that means > the > >> > user has to watch the screen for a parameter to > >> > pop-up. Is it possible to add some parameter > >> fields > >> > in > >> > the form to fill the required > parameters...WITHOUT > >> > changing the query it self? > >> > > >> > So I have a parameters in my query: > >> > [Enter version:] > >> > [Enter startdate:] > >> > > >> > And I do not want to change these to: > >> forms!frmReport!txtVersion > >> > forms!frmReport!txtStartDate > >> > > >> > TIA > >> > > >> > Sander > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > >> > __________________________________________________ > >> Do You Yahoo!? > >> Tired of spam? Yahoo! Mail has the best spam > >> protection around > >> http://mail.yahoo.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > === message truncated === __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From accessd666 at yahoo.com Wed Mar 9 04:18:39 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 9 Mar 2005 02:18:39 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050309101839.19515.qmail@web31610.mail.mud.yahoo.com> Thnx Ken, No idea how I should implement it but I've got a 'lost hour' so I'll give it a shot. This is exactly what I need...i think :-) Regards, Sander --- Ken Ismert wrote: > Sander, > > There is a class-based approach: > > Define a class, CReportParms, with two variant > properties, Version and > StartDate: > > Private mVersion As Variant > Private mStartDate As Variant > > Property Get Version() As Variant > Version = mVersion > End Property > Property Let Version(VersionIn As Variant) > mVersion = VersionIn > End Property > > ' (Similar Get/Let for StartDate) > > Private Sub Class_Initialize() > mVersion = Null > mStartDate = Null > End Sub > > Declare it as global in one of your modules: > > Public gRptParms As New CReportParms > > Provide two global functions to use in your queries > in place of your > parameters: > > Public Function ParmVersion() As Variant > Parms = gRptParms.Version > End Function > Public Function ParmStartDate() As Variant > Parms = gRptParms.StartDate > End Function > > You can set these properties in your form before you > run your report: > > gRptParms.Version = txtVersion > gRptParms.StartDate = txtStartDate > > If you can calculate reasonable values for Version > and StartDate, you can do > so in the CReportParms Initialize event. > Alternately, you can prompt the > user in the class when the queries are run > standalone: > > Property Get Version() As Variant > Dim sVersion As String > If IsNull(mVersion) Then > sVersion = InputBox("Enter Version:") > If sVersion > "" Then > mVersion = CLng(sVersion) > End If > End If > Version = mVersion > End Property > > You could also have a third property, FormDriven, > that, when set to True, > doesn't prompt the user. Only your frmReport form > will set this property, > and clear it upon exit. That way, the user is always > prompted when running > the queries stand-alone. > > -Ken > > > Hi group, > > > > my story of the queries continues. I need to > > run a set of action queries. This works fine. > > > > Several queries have parameters. So that means > > the user has to watch the screen for a > > parameter to pop-up. Is it possible to add > > some parameter fields in the form to fill > > the required parameters...WITHOUT changing > > the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From cyx5 at cdc.gov Wed Mar 9 05:57:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 9 Mar 2005 06:57:14 -0500 Subject: [AccessD] Windows Key - ASCII Code - OT Message-ID: This is what I needed. Thank you. I was googled out on this one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, March 08, 2005 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Windows Key - ASCII Code - OT Here is how I do it The constant is VK_LWIN so it is hex 5B some keyboards have two windows buttons Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Sub OpenWindowsHelp() ' Open the Windows Help Windows - F1 ' ' You can use the same technique to programmatically "press" any other ' key, including Shift, Ctrl, Alt and keys combinations that can't be ' simulated through SendKeys 'vbKey constants partially definined in Access Help ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the F1 key keybd_event vbKeyF1, 0, 0, 0 keybd_event vbKeyF1, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Sub CloseAllWindows() ' Minimize all open windows Windows-M 'Const acaltMask ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the M key keybd_event vbKeyM, 0, 0, 0 keybd_event vbKeyM, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Nicholson, Karen wrote: >Maybe I should say, how do I program in Access, what is the shortcut, >like [page up], etc. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Tuesday, March 08, 2005 2:18 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Windows Key - ASCII Code - OT > > >Anyone know what the ASCII code is to invoke the functionality that is >provided by the Windows key (the little flying window) on the keyboard? > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Wed Mar 9 06:06:58 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 9 Mar 2005 04:06:58 -0800 (PST) Subject: [AccessD] Automating parameterized action queries.....SOLVED! In-Reply-To: 6667 Message-ID: <20050309120658.43480.qmail@web31609.mail.mud.yahoo.com> Ken, this works great! thnx a lot. Regards, Sander --- Sad Der wrote: > Thnx Ken, > > No idea how I should implement it but I've got a > 'lost > hour' so I'll give it a shot. > > This is exactly what I need...i think :-) > > Regards, > > Sander > > --- Ken Ismert wrote: > > Sander, > > > > There is a class-based approach: > > > > Define a class, CReportParms, with two variant > > properties, Version and > > StartDate: > > > > Private mVersion As Variant > > Private mStartDate As Variant > > > > Property Get Version() As Variant > > Version = mVersion > > End Property > > Property Let Version(VersionIn As Variant) > > mVersion = VersionIn > > End Property > > > > ' (Similar Get/Let for StartDate) > > > > Private Sub Class_Initialize() > > mVersion = Null > > mStartDate = Null > > End Sub > > > > Declare it as global in one of your modules: > > > > Public gRptParms As New CReportParms > > > > Provide two global functions to use in your > queries > > in place of your > > parameters: > > > > Public Function ParmVersion() As Variant > > Parms = gRptParms.Version > > End Function > > Public Function ParmStartDate() As Variant > > Parms = gRptParms.StartDate > > End Function > > > > You can set these properties in your form before > you > > run your report: > > > > gRptParms.Version = txtVersion > > gRptParms.StartDate = txtStartDate > > > > If you can calculate reasonable values for Version > > and StartDate, you can do > > so in the CReportParms Initialize event. > > Alternately, you can prompt the > > user in the class when the queries are run > > standalone: > > > > Property Get Version() As Variant > > Dim sVersion As String > > If IsNull(mVersion) Then > > sVersion = InputBox("Enter Version:") > > If sVersion > "" Then > > mVersion = CLng(sVersion) > > End If > > End If > > Version = mVersion > > End Property > > > > You could also have a third property, FormDriven, > > that, when set to True, > > doesn't prompt the user. Only your frmReport form > > will set this property, > > and clear it upon exit. That way, the user is > always > > prompted when running > > the queries stand-alone. > > > > -Ken > > > > > Hi group, > > > > > > my story of the queries continues. I need to > > > run a set of action queries. This works fine. > > > > > > Several queries have parameters. So that means > > > the user has to watch the screen for a > > > parameter to pop-up. Is it possible to add > > > some parameter fields in the form to fill > > > the required parameters...WITHOUT changing > > > the query it self? > > > > > > So I have a parameters in my query: > > > [Enter version:] > > > [Enter startdate:] > > > > > > And I do not want to change these to: > > > forms!frmReport!txtVersion > > > forms!frmReport!txtStartDate > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From jwcolby at colbyconsulting.com Wed Mar 9 06:26:31 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 09 Mar 2005 07:26:31 -0500 Subject: [AccessD] Learned something else new today In-Reply-To: <034601c52466$a73771e0$6b01a8c0@HAL9002> Message-ID: <002c01c524a3$39c66660$697aa8c0@ColbyM6805> No idea. Is that an Office thing or a Windows thing? I told him to always load the whole enchilada when installing Office because I was tired of not having the various pieces I needed to troubleshoot. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 09, 2005 12:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Learned something else new today They would have had to have the Asian language support loaded as well. Why did they do that? Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 7:57 PM Subject: [AccessD] Learned something else new today >I wrote an app for an insurance call center. The head tech cheese was >trying to get a bunch of report queries to work "easier" which were >written by a young lady they assigned that task. She had been pulling >a result set > with dozens of event records for each claim then "cutting and pasting" the > right ones into excel. JohnS had turned it into a group by and > successfully > caused it to pull just the result set he wanted. However a memo field was > displaying a pair of Chinese characters (literally). Very strange > looking, > and definitely not what we wanted to see. > > It turns out that he had a group by on that field. Can you guess what > it was doing (or my educated guess anyway)? It took me a few minutes > to figure it out!!! > > As you probably know, memo fields are not stored in the record, but > rather > a > (32 bit?) pointer to the memo is stored. The GroupBy was causing the memo > field to be evaluated literally, thus it was taking the POINTER and > displaying (and grouping by) that. I am also guessing that Access knew > that > a memo is supposed to be text so it was doing an implicit cstr() on the > pointer to attempt to coerce the value back to text and to display the > value > as a string. Thus it was displaying Chinese (and other odd) characters. > > By changing the GroupBy to a Max (I think anyway) the memo field text > reappeared. > > I have never actually seen, or found any way to see the actual pointer > to the memo field out in the memo area but it certainly appears that > using a groupby on that field caused the pointer data itself to be > exposed as the "value" of the memo. > > Cool huh? > > So if your ever seeing a pair of totally weird characters in a group > by query, see if the field is a memo with a group by under it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 9 09:19:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 9 Mar 2005 07:19:43 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050309094302.37154.qmail@web31613.mail.mud.yahoo.com> Message-ID: <009901c524bb$6beac740$6b01a8c0@HAL9002> Makes supporting a database pretty exciting, then, doesn't it? When it breaks, you just never know what you're going to find. So if they can handle modifying their own queries, can't they fill in the blank in the parameter prompt? Rocky ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 09, 2005 1:43 AM Subject: Re: [AccessD] Automating parameterized action queries..... >I completely agree user should not mess around in the > database. However this is a very clear demand. Users > must have access to the queries to alter them at any > time!! > > Thnx anyway. > --- Rocky Smolin - Beach Access Software > wrote: > >> Sander: >> >> I always take parameters from a form. Don't like to >> let the users muck >> around in the database container. So get the >> parameter into the query I >> make a >> >> Public Function GetParameterX >> >> > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter >> End Function >> >> Then in the query under criteria I put >> GetParameterX() and it fetches the >> contents of the text box from the form when it runs. >> >> Probably not the most elegant solution but it works >> and its easy. But you >> have to run the query from the form. >> >> The users I write for prefer it. Almost none of >> them would know how to run >> a query from the database container and most don't >> even know what a query >> is. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Sad Der" >> To: "Access Developers discussion and problem >> solving" >> >> Sent: Tuesday, March 08, 2005 6:33 AM >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> >I also thought of that but I hoped their was a way >> to >> > fill the parameters per query with form input. >> > >> > That way i could make a form for the users in wich >> > they can enter: >> > - a new report >> > - queries per report >> > - parameters per query >> > - parametertype per parameter (eg date, number, >> etc) >> > >> > With this info I could, based on a report >> selection >> > build a form dynamicly. >> > >> > Well I have to look at this some more and let the >> > customer decide. >> > >> > Regards, >> > >> > Sander >> > >> > --- Bobby Heid wrote: >> >> Why not have two sets of queries, one set that >> looks >> >> to a form (this one is >> >> called programmatically), and one set that >> queries >> >> the user for the >> >> parameters? >> >> >> >> Bobby >> >> >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On >> >> Behalf Of Sad Der >> >> Sent: Tuesday, March 08, 2005 8:10 AM >> >> To: Access Developers discussion and problem >> solving >> >> Subject: RE: [AccessD] Automating parameterized >> >> action queries..... >> >> >> >> >> >> You are correct. However the queries are not >> >> executed >> >> via from several forms but they are executed: >> >> 1- via one form >> >> 2- a user manually clicks it in the database >> >> container. >> >> >> >> The process is as follows: >> >> 1 - the reports (xls files) are stored in the >> >> database >> >> 2 - the queries that create the report are also >> >> stored >> >> in the database >> >> 3 - the user selects a report >> >> 4 - the necessary queries are executed one by one >> >> >> >> However, several times a week a manager requests >> a >> >> part of the report that is slightly different >> from >> >> the original. A user then >> >> must have the change to quickly adjust the query >> and >> >> run it manually. >> >> >> >> HTH >> >> >> >> Sander >> >> >> >> >> >> --- Bobby Heid wrote: >> >> > If you are not wanting to encode a particular >> form >> >> > field because the query >> >> > is called from several forms, might I suggest >> that >> >> > you create a new hidden >> >> > form that contains fields for all of the fields >> >> that >> >> > are used as parameters. >> >> > Then the queries can access these fields. >> >> > >> >> > You would need to set the fields on the form >> >> before >> >> > the queries were >> >> > executed. >> >> > >> >> > Bobby >> >> > >> >> > -----Original Message----- >> >> > From: accessd-bounces at databaseadvisors.com >> >> > [mailto:accessd-bounces at databaseadvisors.com] >> On >> >> > Behalf Of Sad Der >> >> > Sent: Tuesday, March 08, 2005 3:15 AM >> >> > To: Acces User Group >> >> > Subject: [AccessD] Automating parameterized >> action >> >> queries..... >> >> > >> >> > >> >> > Hi group, >> >> > >> >> > my story of the queries continues. I need to >> run a >> >> > set >> >> > of action queries. This works fine. >> >> > >> >> > Several queries have parameters. So that means >> the >> >> > user has to watch the screen for a parameter to >> >> > pop-up. Is it possible to add some parameter >> >> fields >> >> > in >> >> > the form to fill the required >> parameters...WITHOUT >> >> > changing the query it self? >> >> > >> >> > So I have a parameters in my query: >> >> > [Enter version:] >> >> > [Enter startdate:] >> >> > >> >> > And I do not want to change these to: >> >> forms!frmReport!txtVersion >> >> > forms!frmReport!txtStartDate >> >> > >> >> > TIA >> >> > >> >> > Sander >> >> > >> >> > -- >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> > >> >> >> >> >> __________________________________________________ >> >> Do You Yahoo!? >> >> Tired of spam? Yahoo! Mail has the best spam >> >> protection around >> >> http://mail.yahoo.com >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > === message truncated === > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Wed Mar 9 09:23:12 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 9 Mar 2005 07:23:12 -0800 Subject: [AccessD] Learned something else new today References: <002c01c524a3$39c66660$697aa8c0@ColbyM6805> Message-ID: <00a701c524bb$e8b6de30$6b01a8c0@HAL9002> It's Windows. Regional and Language options - language tab - just a check box and it installs. TO use it, though, you have to display in Unicode. Had to jump through this hoop for the Chinese version of the MRP system. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 09, 2005 4:26 AM Subject: RE: [AccessD] Learned something else new today > No idea. Is that an Office thing or a Windows thing? I told him to > always > load the whole enchilada when installing Office because I was tired of not > having the various pieces I needed to troubleshoot. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 09, 2005 12:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Learned something else new today > > > They would have had to have the Asian language support loaded as well. > Why > did they do that? > > Rocky > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 08, 2005 7:57 PM > Subject: [AccessD] Learned something else new today > > >>I wrote an app for an insurance call center. The head tech cheese was >>trying to get a bunch of report queries to work "easier" which were >>written by a young lady they assigned that task. She had been pulling >>a result set >> with dozens of event records for each claim then "cutting and pasting" >> the >> right ones into excel. JohnS had turned it into a group by and >> successfully >> caused it to pull just the result set he wanted. However a memo field >> was >> displaying a pair of Chinese characters (literally). Very strange >> looking, >> and definitely not what we wanted to see. >> >> It turns out that he had a group by on that field. Can you guess what >> it was doing (or my educated guess anyway)? It took me a few minutes >> to figure it out!!! >> >> As you probably know, memo fields are not stored in the record, but >> rather >> a >> (32 bit?) pointer to the memo is stored. The GroupBy was causing the >> memo >> field to be evaluated literally, thus it was taking the POINTER and >> displaying (and grouping by) that. I am also guessing that Access knew >> that >> a memo is supposed to be text so it was doing an implicit cstr() on the >> pointer to attempt to coerce the value back to text and to display the >> value >> as a string. Thus it was displaying Chinese (and other odd) characters. >> >> By changing the GroupBy to a Max (I think anyway) the memo field text >> reappeared. >> >> I have never actually seen, or found any way to see the actual pointer >> to the memo field out in the memo area but it certainly appears that >> using a groupby on that field caused the pointer data itself to be >> exposed as the "value" of the memo. >> >> Cool huh? >> >> So if your ever seeing a pair of totally weird characters in a group >> by query, see if the field is a memo with a group by under it. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Mar 9 09:45:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 09 Mar 2005 10:45:28 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <009901c524bb$6beac740$6b01a8c0@HAL9002> Message-ID: <003101c524bf$07e44100$697aa8c0@ColbyM6805> When I have users that need to run their own queries I set them up with a local (to their machine) front end, linked to all the necessary tables. They can then build queries and reports to their heart's content. It is important to know that they know what they are doing because they are "directly in the tables" with queries and can trash the db pretty easily. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 09, 2005 10:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating parameterized action queries..... Makes supporting a database pretty exciting, then, doesn't it? When it breaks, you just never know what you're going to find. So if they can handle modifying their own queries, can't they fill in the blank in the parameter prompt? Rocky ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 09, 2005 1:43 AM Subject: Re: [AccessD] Automating parameterized action queries..... >I completely agree user should not mess around in the database. >However this is a very clear demand. Users must have access to the >queries to alter them at any time!! > > Thnx anyway. > --- Rocky Smolin - Beach Access Software > wrote: > >> Sander: >> >> I always take parameters from a form. Don't like to >> let the users muck >> around in the database container. So get the >> parameter into the query I >> make a >> >> Public Function GetParameterX >> >> > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter >> End Function >> >> Then in the query under criteria I put >> GetParameterX() and it fetches the >> contents of the text box from the form when it runs. >> >> Probably not the most elegant solution but it works >> and its easy. But you >> have to run the query from the form. >> >> The users I write for prefer it. Almost none of >> them would know how to run >> a query from the database container and most don't >> even know what a query >> is. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Sad Der" >> To: "Access Developers discussion and problem >> solving" >> >> Sent: Tuesday, March 08, 2005 6:33 AM >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> >I also thought of that but I hoped their was a way >> to >> > fill the parameters per query with form input. >> > >> > That way i could make a form for the users in wich >> > they can enter: >> > - a new report >> > - queries per report >> > - parameters per query >> > - parametertype per parameter (eg date, number, >> etc) >> > >> > With this info I could, based on a report >> selection >> > build a form dynamicly. >> > >> > Well I have to look at this some more and let the >> > customer decide. >> > >> > Regards, >> > >> > Sander >> > >> > --- Bobby Heid wrote: >> >> Why not have two sets of queries, one set that >> looks >> >> to a form (this one is >> >> called programmatically), and one set that >> queries >> >> the user for the >> >> parameters? >> >> >> >> Bobby >> >> >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On >> >> Behalf Of Sad Der >> >> Sent: Tuesday, March 08, 2005 8:10 AM >> >> To: Access Developers discussion and problem >> solving >> >> Subject: RE: [AccessD] Automating parameterized >> >> action queries..... >> >> >> >> >> >> You are correct. However the queries are not >> >> executed >> >> via from several forms but they are executed: >> >> 1- via one form >> >> 2- a user manually clicks it in the database >> >> container. >> >> >> >> The process is as follows: >> >> 1 - the reports (xls files) are stored in the >> >> database >> >> 2 - the queries that create the report are also >> >> stored >> >> in the database >> >> 3 - the user selects a report >> >> 4 - the necessary queries are executed one by one >> >> >> >> However, several times a week a manager requests >> a >> >> part of the report that is slightly different >> from >> >> the original. A user then >> >> must have the change to quickly adjust the query >> and >> >> run it manually. >> >> >> >> HTH >> >> >> >> Sander >> >> >> >> >> >> --- Bobby Heid wrote: >> >> > If you are not wanting to encode a particular >> form >> >> > field because the query >> >> > is called from several forms, might I suggest >> that >> >> > you create a new hidden >> >> > form that contains fields for all of the fields >> >> that >> >> > are used as parameters. >> >> > Then the queries can access these fields. >> >> > >> >> > You would need to set the fields on the form >> >> before >> >> > the queries were >> >> > executed. >> >> > >> >> > Bobby >> >> > >> >> > -----Original Message----- >> >> > From: accessd-bounces at databaseadvisors.com >> >> > [mailto:accessd-bounces at databaseadvisors.com] >> On >> >> > Behalf Of Sad Der >> >> > Sent: Tuesday, March 08, 2005 3:15 AM >> >> > To: Acces User Group >> >> > Subject: [AccessD] Automating parameterized >> action >> >> queries..... >> >> > >> >> > >> >> > Hi group, >> >> > >> >> > my story of the queries continues. I need to >> run a >> >> > set >> >> > of action queries. This works fine. >> >> > >> >> > Several queries have parameters. So that means >> the >> >> > user has to watch the screen for a parameter to >> >> > pop-up. Is it possible to add some parameter >> >> fields >> >> > in >> >> > the form to fill the required >> parameters...WITHOUT >> >> > changing the query it self? >> >> > >> >> > So I have a parameters in my query: >> >> > [Enter version:] >> >> > [Enter startdate:] >> >> > >> >> > And I do not want to change these to: >> >> forms!frmReport!txtVersion >> >> > forms!frmReport!txtStartDate >> >> > >> >> > TIA >> >> > >> >> > Sander >> >> > >> >> > -- >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> > >> >> >> >> >> __________________________________________________ >> >> Do You Yahoo!? >> >> Tired of spam? Yahoo! Mail has the best spam >> >> protection around >> >> http://mail.yahoo.com >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > === message truncated === > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Wed Mar 9 10:51:09 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 09 Mar 2005 18:51:09 +0200 Subject: [AccessD] importing text files Message-ID: <5.1.0.14.2.20050309184550.034b19b8@pop5.actcom.net.il> Hi all, I am using Access2003, attempting to import a text file. When I was using Access2000, there I was able to import using file/get external data/import, and specified a txt file. Now *.txt,*.csv...etc doesn't appear on the dropdown box. Did this change in Access2003, or maybe this is also related to my listbox wizards problems that I have been having? Thanks Gershon From markamatte at hotmail.com Wed Mar 9 10:58:01 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 09 Mar 2005 16:58:01 +0000 Subject: [AccessD] importing text files In-Reply-To: <5.1.0.14.2.20050309184550.034b19b8@pop5.actcom.net.il> Message-ID: Gershon, I had a similar problem with A2K...and it has to do with the install...there are some options that have to be selected to have ALL file formats listed for import. Sorry, I don't remember the option name...I just remember having to run the install disk to change the properties. Thanks, Mark >From: handyman at actcom.co.il >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] importing text files >Date: Wed, 09 Mar 2005 18:51:09 +0200 > >Hi all, > >I am using Access2003, attempting to import a text file. When I was using >Access2000, there I was able to import using file/get external data/import, >and specified a txt file. Now *.txt,*.csv...etc doesn't appear on the >dropdown box. Did this change in Access2003, or maybe this is also related >to my listbox wizards problems that I have been having? > >Thanks > >Gershon > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Mar 9 11:01:26 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 9 Mar 2005 18:01:26 +0100 Subject: [AccessD] importing text files Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5876@stekelbes.ithelps.local> Txt etc is still there in A2K3. Probably same issue as your wizard rpob. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Wednesday, March 09, 2005 5:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] importing text files Hi all, I am using Access2003, attempting to import a text file. When I was using Access2000, there I was able to import using file/get external data/import, and specified a txt file. Now *.txt,*.csv...etc doesn't appear on the dropdown box. Did this change in Access2003, or maybe this is also related to my listbox wizards problems that I have been having? Thanks Gershon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Wed Mar 9 11:41:03 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 9 Mar 2005 11:41:03 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Hello, All In my app I'm archiving text files via VBA using the Winzip command line and the ShellWait function I got from Dev Ashish's web site. It works well, but I need to be able to validate that the zip succeeds before moving on to the next step in my code. I've been experimenting with a sample I found that uses the Windows Script Host. Passing my Winzip command line string to it causes the process to hang. (The same string passed to ShellWait works in a flash.) I tried it using a command line string for "Blat" to send a test email, and that worked as expected - no hang. A code sample is below. Am I overlooking something? Has anybody a better solution for this requirement? Thanks! Don Function GetErrorLevel() Dim wsShell As Object, Proc As Object, strCommand As String, strErrLevel As String Dim strZipFileName As String, strTargetFile as String, strWinzipPath as String strWinzipPath = "C:\Archive\Winzip\WZZIP" strZipFileName = "C:\Archive\TestZipFile.zip" strTargetFile = "C:\Data\DM02TEST.txt" strCommand = strWinzipPath & " -a " & """" & strZipFileName & """" & " " & """" & strTargetFile & """" 'Testing command line using ShellWait 'ShellWait strCommand, vbHide Set wsShell = CreateObject("wscript.shell") Set Proc = wsShell.Exec(strCommand) Do While Proc.Status = 0 DoEvents 'Yields execution so that the operating system can process other events Loop 'Use proc.ExitCode to check for returned %errorlevel% strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" & Proc.ExitCode MsgBox (strErrLevel) Set wsShell = Nothing Set Proc = Nothing End Function From andy at minstersystems.co.uk Wed Mar 9 12:36:47 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 9 Mar 2005 18:36:47 -0000 Subject: [AccessD] Archiving files with Winzip Command Line version In-Reply-To: Message-ID: <008901c524d6$f3484c10$b274d0d5@minster33c3r25> Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Wed Mar 9 12:55:54 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 09 Mar 2005 10:55:54 -0800 Subject: [AccessD] Windows Key - ASCII Code - OT References: Message-ID: <422F46BA.9020700@shaw.ca> Ahh they moved the list of Virtual Key Codes again http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/UserInput/VirtualKeyCodes.asp I believe these are also listed in VB6 Help files. There are intrinsic Access keyboard constants in help file or you can find in object browser like vbKeyCancel or vbKeyA but it is incomplete list and does not include odd keys like Hangul IME.or Windows Nicholson, Karen wrote: >This is what I needed. Thank you. I was googled out on this one. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, March 08, 2005 2:54 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Windows Key - ASCII Code - OT > > >Here is how I do it > The constant is VK_LWIN so it is hex 5B some keyboards have two >windows buttons > >Private Const VK_LWIN = &H5B 'Left window button >Private Const VK_RETURN = &HD 'ENTER key >Private Const VK_SHIFT = &H10 'SHIFT key >Private Const VK_CONTROL = &H11 'CTRL key >Private Const VK_MENU = &H12 'ALT key >Private Const VK_PAUSE = &H13 'PAUSE key >Private Const VK_CAPITAL = &H14 'CAPS LOCK key >Private Const VK_SNAPSHOT = &H2C 'Print Screen >Private Const VK_APPS = &H5D > 'Applications key on a Microsoft Natural Keyboard >'from http://support.microsoft.com/view/dev.asp?kb=242971 > >Const GW_HWNDFIRST = 0 >Const GW_HWNDNEXT = 2 >Private Const KEYEVENTF_KEYUP = &H2 > >Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ > ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As >Long) >Sub OpenWindowsHelp() >' Open the Windows Help Windows - F1 >' >' You can use the same technique to programmatically "press" any other >' key, including Shift, Ctrl, Alt and keys combinations that can't be >' simulated through SendKeys >'vbKey constants partially definined in Access Help > ' programmatically press the Windows key > keybd_event VK_LWIN, 0, 0, 0 > ' then press and then release the F1 key > keybd_event vbKeyF1, 0, 0, 0 > keybd_event vbKeyF1, 0, KEYEVENTF_KEYUP, 0 > ' and finally release the Windows Key > keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 >End Sub > >Sub CloseAllWindows() >' Minimize all open windows Windows-M >'Const acaltMask > ' programmatically press the Windows key > keybd_event VK_LWIN, 0, 0, 0 > ' then press and then release the M key > keybd_event vbKeyM, 0, 0, 0 > keybd_event vbKeyM, 0, KEYEVENTF_KEYUP, 0 > ' and finally release the Windows Key > keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 >End Sub > >Nicholson, Karen wrote: > > > >>Maybe I should say, how do I program in Access, what is the shortcut, >>like [page up], etc. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >>Karen >>Sent: Tuesday, March 08, 2005 2:18 PM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] Windows Key - ASCII Code - OT >> >> >>Anyone know what the ASCII code is to invoke the functionality that is >>provided by the Windows key (the little flying window) on the keyboard? >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From adtp at touchtelindia.net Wed Mar 9 12:56:46 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 10 Mar 2005 00:26:46 +0530 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca><016601c521e9$7ce02c90$6b01a8c0@HAL9002><01d901c5 225c$5c1590e0$6b01a8c0@HAL9002> <422BE8A5.6020401@shaw.ca> Message-ID: <00b501c524da$507b8570$5a1865cb@winxp> Rocky, The sub-routine given below should be able to get you the desired results. No need to set up any library reference to the remote db. The procedure will carry out background printing of target report located in the remote db. The user will not face any distraction as the remote db remains hidden throughout the process and is closed automatically after the report gets extracted. Best wishes, A.D.Tejpal -------------- ==================================== Private Sub P_OpenReportInRemoteDb(ByVal _ RepName As String, ByVal _ RemoteDbPath As String) Dim acp As Access.Application ' Create new instance of Access ' (This will remain hidden unless its visible property ' is set to True) Set acp = New Access.Application With acp .OpenCurrentDatabase RemoteDbPath .DoCmd.OpenReport RepName .Quit acQuitSaveAll End With Set acp = Nothing End Sub ==================================== ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Monday, March 07, 2005 11:07 Subject: Re: [AccessD] Contralling a second mdb from the first mdb Do you have a reference set to C:\Acessdat\xReports.mdb But this is where you may come a cropper on deployment, because the reference may not be correct. and cannot be modified in an mde It will search the library mdb first for the name.of the report also this command must execute from within a subroutine in the library mdb that has the report and you can call the subroutine name from the main mdb. DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview Rocky Smolin - Beach Access Software wrote: > Trying to run a report in a second database from the first database I > tried > > DoCmd.OpenReport > "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview > > > Where xReports is the name of the mdb with the report I'm trying to > run from an mdb called Forms.mdb, but the syntax is incorrect. > > Does anyone know the correct syntax? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > ----- Original Message ----- From: "Rocky Smolin - Beach Access > Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 5:11 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >> Marty: >> >> So far the code is: >> >> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >> "SELECT tUDGlobalMerge.* " & _ >> "FROM tUDGlobalMerge" >> >> >> This code is run from a database named Forms.mdb >> It deletes all the records in a table tUDGlobalMerge in the database >> named Reports. >> >> It then copies all the data from the table named tUDGlobalMerge in >> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can >> then be run. >> >> What client wants now is, from the database Forms.mdb, open >> Reports.mdb hidden (so it doesn't show in the screen), print Report >> and close Reports.mdb. >> >> Can it be done with DoCmd.OpenReport specifying the report as the >> database and report name in the reports collection? >> >> TIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> >> ----- Original Message ----- From: "MartyConnelly" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 2:17 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> I know of two ways but this depends on program flow, you are running >>> from one or the other mdb >>> 1. Use an MDA but I don't know all the ramifications of using an >>> MDA, there are exceptions like circular references >>> See MDH Developers Handbook on Developing wizards >>> or >>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>> >>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>> and VB6 runtime >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>> Dear List: >>>> >>>> Can you control all of the functions of a second mdb from the first >>>> mdb - start, open forms, run reports, etc.? >>>> >>>> TIA >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> http://www.e-z-mrp.com >>>> 858-259-4334 From donald.a.Mcgillivray at mail.sprint.com Wed Mar 9 13:02:43 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 9 Mar 2005 13:02:43 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 9 13:13:23 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 9 Mar 2005 11:13:23 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> <"01d901c5 225c$5c1590e0$6b01a8c0"@HAL9002> <422BE8A5.6020401@shaw.ca> <00b501c524da$507b8570$5a1865cb@winxp> Message-ID: <018101c524dc$111a79c0$6b01a8c0@HAL9002> That will work! Thank you. Rocky ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 09, 2005 10:56 AM Subject: Re: [AccessD] Contralling a second mdb from the first mdb Rocky, The sub-routine given below should be able to get you the desired results. No need to set up any library reference to the remote db. The procedure will carry out background printing of target report located in the remote db. The user will not face any distraction as the remote db remains hidden throughout the process and is closed automatically after the report gets extracted. Best wishes, A.D.Tejpal -------------- ==================================== Private Sub P_OpenReportInRemoteDb(ByVal _ RepName As String, ByVal _ RemoteDbPath As String) Dim acp As Access.Application ' Create new instance of Access ' (This will remain hidden unless its visible property ' is set to True) Set acp = New Access.Application With acp .OpenCurrentDatabase RemoteDbPath .DoCmd.OpenReport RepName .Quit acQuitSaveAll End With Set acp = Nothing End Sub ==================================== ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Monday, March 07, 2005 11:07 Subject: Re: [AccessD] Contralling a second mdb from the first mdb Do you have a reference set to C:\Acessdat\xReports.mdb But this is where you may come a cropper on deployment, because the reference may not be correct. and cannot be modified in an mde It will search the library mdb first for the name.of the report also this command must execute from within a subroutine in the library mdb that has the report and you can call the subroutine name from the main mdb. DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview Rocky Smolin - Beach Access Software wrote: > Trying to run a report in a second database from the first database I > tried > > DoCmd.OpenReport > "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview > > > Where xReports is the name of the mdb with the report I'm trying to > run from an mdb called Forms.mdb, but the syntax is incorrect. > > Does anyone know the correct syntax? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > ----- Original Message ----- From: "Rocky Smolin - Beach Access > Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 5:11 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >> Marty: >> >> So far the code is: >> >> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >> "SELECT tUDGlobalMerge.* " & _ >> "FROM tUDGlobalMerge" >> >> >> This code is run from a database named Forms.mdb >> It deletes all the records in a table tUDGlobalMerge in the database >> named Reports. >> >> It then copies all the data from the table named tUDGlobalMerge in >> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can >> then be run. >> >> What client wants now is, from the database Forms.mdb, open >> Reports.mdb hidden (so it doesn't show in the screen), print Report >> and close Reports.mdb. >> >> Can it be done with DoCmd.OpenReport specifying the report as the >> database and report name in the reports collection? >> >> TIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> >> ----- Original Message ----- From: "MartyConnelly" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 2:17 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> I know of two ways but this depends on program flow, you are running >>> from one or the other mdb >>> 1. Use an MDA but I don't know all the ramifications of using an >>> MDA, there are exceptions like circular references >>> See MDH Developers Handbook on Developing wizards >>> or >>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>> >>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>> and VB6 runtime >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>> Dear List: >>>> >>>> Can you control all of the functions of a second mdb from the first >>>> mdb - start, open forms, run reports, etc.? >>>> >>>> TIA >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> http://www.e-z-mrp.com >>>> 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Wed Mar 9 13:40:01 2005 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 9 Mar 2005 20:40:01 +0100 Subject: [AccessD] importing text files References: <5.1.0.14.2.20050309184550.034b19b8@pop5.actcom.net.il> Message-ID: <006701c524df$ca4fc6e0$fcc581d5@pedro> Hello Gershon, we had the same troubles after installing A2003 (the whole CD was installed) when importing textfiles. Also we couldn't rename the fieldnames with the wizard. After installing the newest servicepack the problem was gone. Pedro Janssen ----- Original Message ----- From: To: Sent: Wednesday, March 09, 2005 5:51 PM Subject: [AccessD] importing text files > Hi all, > > I am using Access2003, attempting to import a text file. When I was > using Access2000, there I was able to import using file/get external > data/import, and specified a txt file. Now *.txt,*.csv...etc doesn't > appear on the dropdown box. Did this change in Access2003, or maybe this > is also related to my listbox wizards problems that I have been having? > > Thanks > > Gershon > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Wed Mar 9 13:59:04 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 Mar 2005 11:59:04 -0800 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Why not unzip the archive to a temp folder, add the files you want and then rezip the whole thing? Charlotte Foust -----Original Message----- From: Mcgillivray, Don [ITS] [mailto:donald.a.Mcgillivray at mail.sprint.com] Sent: Wednesday, March 09, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Wed Mar 9 14:53:28 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 9 Mar 2005 14:53:28 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Sorry, can't do that either . . . Maybe I should more fully describe what this system is doing. Nutshell version (much detail excluded for the sake of clarity): The system monitors folders on three remote servers - West coast, Midwest, and East coast. Taking each server in turn, the system detects text files with specific characteristics, logs their appearance to a table of tracking records, FTPs them to a local server, and deletes the originals from the remote server. Data from the transferred files is then loaded to a temp table and a series of summaries is produced from the data, with the results being pushed into tables for each type of summary. When complete, the tracking record is updated to reflect the completion, and the transferred files are zipped to an archive named for the date they were archived (yyymmdd.zip). The name of the archive file is then written to the file's tracking record so the file can be easily retrieved if necessary. Then, the files are deleted from the local server. This system monitors the remote servers 24 x 7 and processes over 20,000 files per month, ranging in size from 0 bytes to 15 megabytes. Finished zip files range in size from 1 to 80 megabytes, with the average falling somewhere around 30. Needless to say, a given zip file may contain hundreds of large files by the end of the day, and the overhead of un-zipping and re-zipping each time I want to add a file would bring the rest of the system to its knees. The system has been functioning very well for the last six months, but yesterday a brief outage on the server that holds the archives illustrated the risk of not validating the successful completion of the zip stage. (All other destructive actions are deferred until the safety of the data has been verified.) Unless I can come up with a reliable way to validate a successful zip, I may have to content myself with testing for connectivity to the archive server before and after writing to it, assuming that whatever happens in between is probably OK. Any other idears out there? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 09, 2005 11:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Why not unzip the archive to a temp folder, add the files you want and then rezip the whole thing? Charlotte Foust -----Original Message----- From: Mcgillivray, Don [ITS] [mailto:donald.a.Mcgillivray at mail.sprint.com] Sent: Wednesday, March 09, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Mar 9 15:51:49 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 9 Mar 2005 16:51:49 -0500 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DAE@xlivmbx21.aig.com> "Needless to say, a given zip file may contain hundreds of large files by the end of the day, and the overhead of un-zipping and re-zipping each time I want to add a file would bring the rest of the system to its knees. The system has been functioning very well for the last six months, but yesterday a brief outage on the server that holds the archives illustrated the risk of not validating the successful completion of the zip stage. (All other destructive actions are deferred until the safety of the data has been verified.) " I believe that when you ask Winzip to 'add' files to an existing zip file is that it actually extracts all the existing files to a temporary folder, then it zips them all back up, including the additional files. That's when you see the 'Copying Zip File" message. So you really don't have any performance hit to contend with if you do this manually. Lambert From Gustav at cactus.dk Thu Mar 10 03:46:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 Mar 2005 10:46:34 +0100 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Hi Donald One method could be to replace the direct call of Winzip in the command line with a call of a batch file. This batch file should run Winzip and then create a log file: echo Winzip completed > winzip.log or similar. Then test for the existence of the log file; it will not be created before Winzip has finished. You may also wish to check out cab files in favour of zip file. If I recall correctly they could be faster at adding single files, indeed for extracting. /gustav >>> donald.a.Mcgillivray at mail.sprint.com 09-03-2005 21:53:28 >>> Sorry, can't do that either . . . Maybe I should more fully describe what this system is doing. Nutshell version (much detail excluded for the sake of clarity): The system monitors folders on three remote servers - West coast, Midwest, and East coast. Taking each server in turn, the system detects text files with specific characteristics, logs their appearance to a table of tracking records, FTPs them to a local server, and deletes the originals from the remote server. Data from the transferred files is then loaded to a temp table and a series of summaries is produced from the data, with the results being pushed into tables for each type of summary. When complete, the tracking record is updated to reflect the completion, and the transferred files are zipped to an archive named for the date they were archived (yyymmdd.zip). The name of the archive file is then written to the file's tracking record so the file can be easily retrieved if necessary. Then, the files are deleted from the local server. This system monitors the remote servers 24 x 7 and processes over 20,000 files per month, ranging in size from 0 bytes to 15 megabytes. Finished zip files range in size from 1 to 80 megabytes, with the average falling somewhere around 30. Needless to say, a given zip file may contain hundreds of large files by the end of the day, and the overhead of un-zipping and re-zipping each time I want to add a file would bring the rest of the system to its knees. The system has been functioning very well for the last six months, but yesterday a brief outage on the server that holds the archives illustrated the risk of not validating the successful completion of the zip stage. (All other destructive actions are deferred until the safety of the data has been verified.) Unless I can come up with a reliable way to validate a successful zip, I may have to content myself with testing for connectivity to the archive server before and after writing to it, assuming that whatever happens in between is probably OK. Any other idears out there? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 09, 2005 11:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Why not unzip the archive to a temp folder, add the files you want and then rezip the whole thing? Charlotte Foust -----Original Message----- From: Mcgillivray, Don [ITS] [mailto:donald.a.Mcgillivray at mail.sprint.com] Sent: Wednesday, March 09, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function From paul.hartland at fsmail.net Thu Mar 10 04:02:53 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 10 Mar 2005 11:02:53 +0100 (CET) Subject: [AccessD] Outlook & Redemption Message-ID: <25686323.1110448973444.JavaMail.www@wwinf3003> To all, Has anyone any experience is using Outlook Redemption with Outlook 2000, I have never used this before so am looking for some easy to follow sample code, if anyone has any. Thanks in advance for all your help on this.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From andy at minstersystems.co.uk Thu Mar 10 04:41:04 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 10 Mar 2005 11:41:04 +0100 Subject: [AccessD] Outlook & Redemption Message-ID: <20050310114102.4591B2C4246@smtp.nildram.co.uk> Paul Yes. What do you want? Just code for sending an email? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd Subject: [AccessD] Outlook & Redemption Date: 10/03/05 10:05 > > To all, > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I have never used this before so am looking for some easy to follow sample code, if anyone has any. > > Thanks in advance for all your help on this.... > > Paul Hartland > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From paul.hartland at fsmail.net Thu Mar 10 05:50:39 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 10 Mar 2005 12:50:39 +0100 (CET) Subject: [AccessD] Outlook & Redemption Message-ID: <19085725.1110455439744.JavaMail.www@wwinf3001> Andy, Yes please, just code for sending an email with an attachment Thanks Paul Message date : Mar 10 2005, 11:42 AM >From : "Andy Lacey" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Outlook & Redemption Paul Yes. What do you want? Just code for sending an email? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd Subject: [AccessD] Outlook & Redemption Date: 10/03/05 10:05 > > To all, > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I have never used this before so am looking for some easy to follow sample code, if anyone has any. > > Thanks in advance for all your help on this.... > > Paul Hartland > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From andy at minstersystems.co.uk Thu Mar 10 05:16:42 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 10 Mar 2005 12:16:42 +0100 Subject: [AccessD] Outlook & Redemption Message-ID: <20050310121640.440C42C4379@smtp.nildram.co.uk> Paul This should get you going. I've trimmed extra stuff (error handling, filling arrays, etc) to keep it small. You'll work out those bits I'm sure. So this is the bare bones. Don't forget the reference to the Outlook library will you? Function RedemptionSendMessage(blnDisplay As Boolean) Dim astrTo() As String Dim astrCC() As String Dim astrBCC() As String Dim astrAttach() As String Dim intCounter As Integer Dim strBody As String Dim strSubject As String Dim objOutlook As Outlook.Application Dim objOutlookAttach As Outlook.Attachment Dim objOutlookMsg As Outlook.MailItem Dim objSafeMailItem As Object Dim objRecipient As Object 'Create the Outlook session Set objOutlook = CreateObject("Outlook.Application") 'Create the message Set objOutlookMsg = objOutlook.CreateItem(olMailItem) 'Attachments For intCounter = 1 To UBound(astrAttach) Set objOutlookAttach = objOutlookMsg.Attachments.Add(astrAttach(intCounter)) Next 'Create Redemption object Set objSafeMailItem = CreateObject("Redemption.SafeMailItem") 'Clone Outlook message as Redemption object objSafeMailItem.Item = objOutlookMsg 'Add recipients, (To, CC and BCC) With objSafeMailItem For intCounter = 1 To UBound(astrTo) Set objRecipient = .Recipients.Add(astrTo(intCounter)) objRecipient.Type = olTo Next For intCounter = 1 To UBound(astrCC) Set objRecipient = .Recipients.Add(astrCC(intCounter)) objRecipient.Type = olCC Next For intCounter = 1 To UBound(astrBCC) Set objRecipient = .Recipients.Add(astrBCC(intCounter)) objRecipient.Type = olBCC Next .Recipients.ResolveAll 'Subject and body .Subject = strSubject .Body = strBody 'Either display in Outlook or just send If blnDisplay = True Then .Display Else .Save .Send End If End With Set objRecipient = Nothing Set objOutlookAttach = Nothing Set objOutlookMsg = Nothing Set objOutlook = Nothing Set objSafeMailItem = Nothing End Function HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Outlook & Redemption Date: 10/03/05 11:51 > > Andy, > > Yes please, just code for sending an email with an attachment > > Thanks > > Paul > > > > > > Message date : Mar 10 2005, 11:42 AM > >From : "Andy Lacey" > To : "Access Developers discussion and problem solving" > Copy to : > Subject : Re: [AccessD] Outlook & Redemption > Paul > Yes. What do you want? Just code for sending an email? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: accessd > Subject: [AccessD] Outlook & Redemption > Date: 10/03/05 10:05 > > > > > To all, > > > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I > have never used this before so am looking for some easy to follow sample > code, if anyone has any. > > > > Thanks in advance for all your help on this.... > > > > Paul Hartland > > > > -- > > > > Whatever you Wanadoo: > > http://www.wanadoo.co.uk/time/ > > > > This email has been checked for most known viruses - find out more at: > http://www.wanadoo.co.uk/help/id/7098.htm > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From paul.hartland at fsmail.net Thu Mar 10 06:21:56 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 10 Mar 2005 13:21:56 +0100 (CET) Subject: [AccessD] Outlook & Redemption Message-ID: <12794241.1110457316111.JavaMail.www@wwinf3001> Thanks Andy, will have a play as soon as I get some free time today or tomorrow Message date : Mar 10 2005, 12:16 PM >From : "Andy Lacey" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: Re: [AccessD] Outlook & Redemption Paul This should get you going. I've trimmed extra stuff (error handling, filling arrays, etc) to keep it small. You'll work out those bits I'm sure. So this is the bare bones. Don't forget the reference to the Outlook library will you? Function RedemptionSendMessage(blnDisplay As Boolean) Dim astrTo() As String Dim astrCC() As String Dim astrBCC() As String Dim astrAttach() As String Dim intCounter As Integer Dim strBody As String Dim strSubject As String Dim objOutlook As Outlook.Application Dim objOutlookAttach As Outlook.Attachment Dim objOutlookMsg As Outlook.MailItem Dim objSafeMailItem As Object Dim objRecipient As Object 'Create the Outlook session Set objOutlook = CreateObject("Outlook.Application") 'Create the message Set objOutlookMsg = objOutlook.CreateItem(olMailItem) 'Attachments For intCounter = 1 To UBound(astrAttach) Set objOutlookAttach = objOutlookMsg.Attachments.Add(astrAttach(intCounter)) Next 'Create Redemption object Set objSafeMailItem = CreateObject("Redemption.SafeMailItem") 'Clone Outlook message as Redemption object objSafeMailItem.Item = objOutlookMsg 'Add recipients, (To, CC and BCC) With objSafeMailItem For intCounter = 1 To UBound(astrTo) Set objRecipient = .Recipients.Add(astrTo(intCounter)) objRecipient.Type = olTo Next For intCounter = 1 To UBound(astrCC) Set objRecipient = .Recipients.Add(astrCC(intCounter)) objRecipient.Type = olCC Next For intCounter = 1 To UBound(astrBCC) Set objRecipient = .Recipients.Add(astrBCC(intCounter)) objRecipient.Type = olBCC Next .Recipients.ResolveAll 'Subject and body .Subject = strSubject .Body = strBody 'Either display in Outlook or just send If blnDisplay = True Then .Display Else .Save .Send End If End With Set objRecipient = Nothing Set objOutlookAttach = Nothing Set objOutlookMsg = Nothing Set objOutlook = Nothing Set objSafeMailItem = Nothing End Function HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Outlook & Redemption Date: 10/03/05 11:51 > > Andy, > > Yes please, just code for sending an email with an attachment > > Thanks > > Paul > > > > > > Message date : Mar 10 2005, 11:42 AM > >From : "Andy Lacey" > To : "Access Developers discussion and problem solving" > Copy to : > Subject : Re: [AccessD] Outlook & Redemption > Paul > Yes. What do you want? Just code for sending an email? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: accessd > Subject: [AccessD] Outlook & Redemption > Date: 10/03/05 10:05 > > > > > To all, > > > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I > have never used this before so am looking for some easy to follow sample > code, if anyone has any. > > > > Thanks in advance for all your help on this.... > > > > Paul Hartland > > > > -- > > > > Whatever you Wanadoo: > > http://www.wanadoo.co.uk/time/ > > > > This email has been checked for most known viruses - find out more at: > http://www.wanadoo.co.uk/help/id/7098.htm > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From bheid at appdevgrp.com Thu Mar 10 06:34:58 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 10 Mar 2005 07:34:58 -0500 Subject: [AccessD] Archiving files with Winzip Command Line version In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D345@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE896@ADGSERVER> I was under the impression that it was faster to add. When you add, it does not have to recompress the files that are already in the zip file. I think that it does copy all of the existing data to a new file, adds the new data to the file then copies it back over the original. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 09, 2005 4:52 PM To: 'Access Developers discussion and problem solving'; 'Mcgillivray, Don [ITS]' Subject: RE: [AccessD] Archiving files with Winzip Command Line version I believe that when you ask Winzip to 'add' files to an existing zip file is that it actually extracts all the existing files to a temporary folder, then it zips them all back up, including the additional files. That's when you see the 'Copying Zip File" message. So you really don't have any performance hit to contend with if you do this manually. Lambert From Lambert.Heenan at AIG.com Thu Mar 10 08:29:21 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 10 Mar 2005 09:29:21 -0500 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DB6@xlivmbx21.aig.com> It looks like your right. I just tested this by adding files to a large Zip and observing the contents of the Winzip working directory (and my Temp folder). All that happens is a single file appears (called _Z121234 or such like) and it grows to the size of the original Zip file then at the end of the append process it is deleted. So it seems like Winzip does not unzip and then rezip as I has assumed. Another demonstration of the old adage that " 'Assume' makes and ass out of u and me". :-) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid > Sent: Thursday, March 10, 2005 7:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Archiving files with Winzip Command Line > version > > I was under the impression that it was faster to add. When you add, it > does > not have to recompress the files that are already in the zip file. I > think > that it does copy all of the existing data to a new file, adds the new > data > to the file then copies it back over the original. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Wednesday, March 09, 2005 4:52 PM > To: 'Access Developers discussion and problem solving'; 'Mcgillivray, Don > [ITS]' > Subject: RE: [AccessD] Archiving files with Winzip Command Line version > > I believe that when you ask Winzip to 'add' files to an existing zip file > is > that it actually extracts all the existing files to a temporary folder, > then > it zips them all back up, including the additional files. That's when you > see the 'Copying Zip File" message. So you really don't have any > performance hit to contend with if you do this manually. > > Lambert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Mar 10 08:29:10 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 10 Mar 2005 09:29:10 -0500 Subject: [AccessD] Turn Off Up Down for Entire App Message-ID: Is there a way to apply keypreview=yes and apply turning the [pagedown] and [pageup] keys (code below) to my entire application as opposed to a form by form basis? This is strange. I created a function to call and placed =fnTurnOffUpDown() in the event for 'on key up' and 'on key down' and it does not work with that call. If I put the code in the event procedure, however, it does work. One more day and it is Friday.... What ever happened to the jokes that used to be posted on Friday? Select Case KeyCode Case 33, 34 KeyCode = 0 End Select From bchacc at san.rr.com Thu Mar 10 11:02:20 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 09:02:20 -0800 Subject: [AccessD] OT: Currency Display Message-ID: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Dear List: This is really a Windows question, I believe. I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. Does anyone know how to customize this setting so I can display RSh? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From jimdettman at earthlink.net Thu Mar 10 11:25:21 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 10 Mar 2005 12:25:21 -0500 Subject: [AccessD] OT: Currency Display In-Reply-To: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Message-ID: Rocky, You sure you need RSh? Swahili is Kenya's main language from what I remember, which gives you a S as the currency symbol, which is for shilling the official currency. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 10, 2005 12:02 PM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: Currency Display Dear List: This is really a Windows question, I believe. I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. Does anyone know how to customize this setting so I can display RSh? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Mar 10 11:28:07 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 10 Mar 2005 09:28:07 -0800 Subject: [AccessD] Turn Off Up Down for Entire App In-Reply-To: Message-ID: This is one of few times that it a macro should be used. AutoKeys macro should be able to take care of this, application wide. On another note... Q:Why did the Blond stare at the carton of Orange Juice? A:Because it said "Concentrate" ;) Q:Why did the blonde scale the chain-link fence? A: To see what was on the other side. Q: Why did the blonde keep a coat hanger in her back seat? A: In case she locks the keys in her car. David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Thursday, March 10, 2005 6:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] Turn Off Up Down for Entire App Is there a way to apply keypreview=yes and apply turning the [pagedown] and [pageup] keys (code below) to my entire application as opposed to a form by form basis? This is strange. I created a function to call and placed =fnTurnOffUpDown() in the event for 'on key up' and 'on key down' and it does not work with that call. If I put the code in the event procedure, however, it does work. One more day and it is Friday.... What ever happened to the jokes that used to be posted on Friday? Select Case KeyCode Case 33, 34 KeyCode = 0 End Select -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 10 11:26:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 12:26:28 -0500 Subject: [AccessD] Transfer complete? Message-ID: <001101c52596$4f688860$697aa8c0@ColbyM6805> How do you tell if a file transfer completes? I am working on a system where we send files to email addresses as attachments, and also FTP them to sites. We also receive Emails with attachments and may need to get them from FTP sites but that is another issue. The client is bring in a brand new software package at their end which gives me an opportunity to rewrite my end as well. I am developing a pair of classes - a transfer job and a transfer job supervisor - that can Email or FTP files from a directory location. The supervisor class of the whole system (which requests the documents) knows whether the file created is going to be emailed, FTPed or both and to where. As documents are created and stored on disk, records about the files are stored in a FileTransferJob table by this supervisor class along with the destination and type of transfer (Email or FTP). The TransferFile Supervisor then loads records from this table where the "TransferComplete" field is NULL, builds TransferFile class instances and saves them in a collection of files needing to be transmitted. Each TransferFile instance is then polled periodically telling it to perform the transfer. If the transfer completes successfully, the TransferFile instance updates it's associated record in the table and unloads itself from the supervisor's collection. The system sends New Claim Notices and Payment Requests (records) from my disability insurance call center software to the client insurer, and receives back from them claim numbers and check information. The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I am currently using a class (C)1998-99 Dev Ashish and Terry Kreft to do the FTP Transfer and I may be able to get feedback from the class on a variety of errors that may occur in their class - the remote site being down may be one of them. Unfortunately their class is poorly (not) documented so it is a problem trying to figure out how it works if something goes wrong. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Thu Mar 10 11:43:41 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 12:43:41 -0500 Subject: [AccessD] OT - Humor - a day early In-Reply-To: Message-ID: <001201c52598$b2ff9c40$697aa8c0@ColbyM6805> And of course... The blond is saying her evening prayers. "Please God let me win the lottery" The next day she does not win the lottery. The blond is saying her evening prayers. "Please, please God let me win the lottery" The next day she does not win the lottery. The blond is saying her evening prayers. "Please God, I REALLY need to win the lottery" The next day she does not win the lottery. The blond is saying her evening prayers. "Please God, I REALLY, REALLY, REAAAAAALLLLLY need to win the lottery" A voice from above - "Help me out here sweetheart, BUY A LOTTERY TICKET" John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ Q:Why did the Blond stare at the carton of Orange Juice? A:Because it said "Concentrate" ;) Q:Why did the blonde scale the chain-link fence? A: To see what was on the other side. Q: Why did the blonde keep a coat hanger in her back seat? A: In case she locks the keys in her car. David McAfee From cyx5 at cdc.gov Thu Mar 10 11:50:37 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 10 Mar 2005 12:50:37 -0500 Subject: [AccessD] Turn Off Up Down for Entire App Message-ID: So, have you seen the "BlondeStar" OnStar takeoff? I will send it to you off-line. The Blonde calling on-star for the locked keys syndrome. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, March 10, 2005 12:28 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Off Up Down for Entire App This is one of few times that it a macro should be used. AutoKeys macro should be able to take care of this, application wide. On another note... Q:Why did the Blond stare at the carton of Orange Juice? A:Because it said "Concentrate" ;) Q:Why did the blonde scale the chain-link fence? A: To see what was on the other side. Q: Why did the blonde keep a coat hanger in her back seat? A: In case she locks the keys in her car. David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Thursday, March 10, 2005 6:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] Turn Off Up Down for Entire App Is there a way to apply keypreview=yes and apply turning the [pagedown] and [pageup] keys (code below) to my entire application as opposed to a form by form basis? This is strange. I created a function to call and placed =fnTurnOffUpDown() in the event for 'on key up' and 'on key down' and it does not work with that call. If I put the code in the event procedure, however, it does work. One more day and it is Friday.... What ever happened to the jokes that used to be posted on Friday? Select Case KeyCode Case 33, 34 KeyCode = 0 End Select -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Mar 10 11:55:44 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 Mar 2005 09:55:44 -0800 Subject: [AccessD] OT: Currency Display References: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Message-ID: <42308A20.2030809@shaw.ca> You might get some hints here, the Turkish lira switched symbols a couple of months back and dropped 6 zeros http://office.microsoft.com/en-us/assistance/HA011597031033.aspx Rocky Smolin - Beach Access Software wrote: >Dear List: > >This is really a Windows question, I believe. > >I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. > >Does anyone know how to customize this setting so I can display RSh? > >MTIA, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Thu Mar 10 11:58:30 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 10 Mar 2005 12:58:30 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D4C7@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE89F@ADGSERVER> John, What if you had the receiving mail server reply that it got the e-mail? We had a system long ago where the client had an app that would mail in certain info. When the client e-mail was received at the main office, the e-mail was parsed and an "I got it" type of e-mail was sent back to the client with identifying info in it. When the client received this e-mail, it noted it in it's database. If the client did not receive the reply back in (I think) one hour, then it would resend the e-mail. I know that this was kind of kludgy, but it worked. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 10, 2005 12:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer complete? The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 10 11:58:01 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 Mar 2005 18:58:01 +0100 Subject: [AccessD] Transfer complete? Message-ID: Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 18:26:28 >>> How do you tell if a file transfer completes? From martyconnelly at shaw.ca Thu Mar 10 12:00:13 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 Mar 2005 10:00:13 -0800 Subject: [AccessD] OT: Currency Display References: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Message-ID: <42308B2D.2080607@shaw.ca> Or maybe a display format like #,00"RSh"; -#,00"RSh" Rocky Smolin - Beach Access Software wrote: >Dear List: > >This is really a Windows question, I believe. > >I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. > >Does anyone know how to customize this setting so I can display RSh? > >MTIA, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From dmcafee at pacbell.net Thu Mar 10 12:09:39 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 10 Mar 2005 10:09:39 -0800 Subject: [AccessD] Turn Off Up Down for Entire App In-Reply-To: Message-ID: Is there a video to go with it? I heard the audio, and it was great! David -----Original Message----- From: Nicholson, Karen So, have you seen the "BlondeStar" OnStar takeoff? I will send it to you off-line. The Blonde calling on-star for the locked keys syndrome. From jwcolby at colbyconsulting.com Thu Mar 10 12:09:06 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 13:09:06 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: Message-ID: <001301c5259c$4008c690$697aa8c0@ColbyM6805> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 18:26:28 >>> How do you tell if a file transfer completes? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Mar 10 12:12:54 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 10 Mar 2005 13:12:54 -0500 Subject: [AccessD] Turn Off Up Down for Entire App Message-ID: No video, just audio. You can google Blondestar and the site holding it will come up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, March 10, 2005 1:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Off Up Down for Entire App Is there a video to go with it? I heard the audio, and it was great! David -----Original Message----- From: Nicholson, Karen So, have you seen the "BlondeStar" OnStar takeoff? I will send it to you off-line. The Blonde calling on-star for the locked keys syndrome. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 10 12:17:57 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 Mar 2005 19:17:57 +0100 Subject: [AccessD] Transfer complete? Message-ID: Hi John OK. For the client e-mail thing I used the dll from http://www.marshallsoft.com/ Not the cheapest but it has worked without a glitch. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 19:09:06 >>> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav From scapistrant at symphonyinfo.com Thu Mar 10 12:21:42 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Thu, 10 Mar 2005 12:21:42 -0600 Subject: [AccessD] You Send It Message-ID: <855499653F55AD4190B242717DF132BC04EED4@dewey.Symphony.local> On a related note, has anyone tried www.YouSendIt.com? Sorry if it's been discussed previously. Its a free website service that allows anyone to send large files, avoiding the complications of email attachments, zipping, and ftp software. We have struggled for years trying to talk clients through how to send their big MDBs to us (for fixing, enhancing, uncorrupting, etc). As developers, we have the know-how to zip a file and load it to an ftp site, but most clients do not, and that 30 minutes you spend with them is a horrible waste. Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, March 10, 2005 12:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Transfer complete? John, What if you had the receiving mail server reply that it got the e-mail? We had a system long ago where the client had an app that would mail in certain info. When the client e-mail was received at the main office, the e-mail was parsed and an "I got it" type of e-mail was sent back to the client with identifying info in it. When the client received this e-mail, it noted it in it's database. If the client did not receive the reply back in (I think) one hour, then it would resend the e-mail. I know that this was kind of kludgy, but it worked. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 10, 2005 12:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer complete? The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 10 13:52:38 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 14:52:38 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: Message-ID: <001501c525aa$b9b14e00$697aa8c0@ColbyM6805> I just downloaded 3dFTP. Holy smoke batman, documentation! Ok a help file anyway. It sure looks good. I installed it an have code started already. Now I just need to read the api guide to see sample code. And the price is great, since I really only need a copy for my dev machine and a copy for the server at the client. Thanks again for sending that my way. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 1:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transfer complete? Hi John OK. For the client e-mail thing I used the dll from http://www.marshallsoft.com/ Not the cheapest but it has worked without a glitch. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 19:09:06 >>> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 10 15:09:56 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 13:09:56 -0800 Subject: [AccessD] OT: Currency Display References: Message-ID: <01b001c525b5$831c37a0$6601a8c0@HAL9002> That's what he says but I'll run the S by him to see if it will work. Rocky ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 9:25 AM Subject: RE: [AccessD] OT: Currency Display > Rocky, > > You sure you need RSh? > > Swahili is Kenya's main language from what I remember, which gives you a > S > as the currency symbol, which is for shilling the official currency. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, March 10, 2005 12:02 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] OT: Currency Display > > > Dear List: > > This is really a Windows question, I believe. > > I have a prospect in Kenya who needs the currency fields to display RSh > instead of $. In the regional and language settings there are several > selections for English, like Zimbabwe which displays Z$ for the currency > field. You can also customize the currency symbol but only $ and the euro > symbol are in my combo box. > > Does anyone know how to customize this setting so I can display RSh? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Thu Mar 10 15:12:44 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 13:12:44 -0800 Subject: [AccessD] OT: Currency Display References: <013101c52592$ec4cdb80$6601a8c0@HAL9002> <42308B2D.2080607@shaw.ca> Message-ID: <01c101c525b5$e74d5380$6601a8c0@HAL9002> What I may have to do is add a new option to my Preferences form - Currency symbol. Ack. Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 10:00 AM Subject: Re: [AccessD] OT: Currency Display > Or maybe a display format like > > #,00"RSh"; -#,00"RSh" > > Rocky Smolin - Beach Access Software wrote: > >>Dear List: >> >>This is really a Windows question, I believe. >>I have a prospect in Kenya who needs the currency fields to display RSh >>instead of $. In the regional and language settings there are several >>selections for English, like Zimbabwe which displays Z$ for the currency >>field. You can also customize the currency symbol but only $ and the euro >>symbol are in my combo box. >> >>Does anyone know how to customize this setting so I can display RSh? >> >>MTIA, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Thu Mar 10 15:46:34 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 10 Mar 2005 22:46:34 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B587D@stekelbes.ithelps.local> In the regional settings you can choose English sout Africa and you will have a R as prefix. If you really want RSh you can click on the buttom next to it (change?) and just type anything you want in curency symbol... However, this would be necesary on every computer. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 10, 2005 10:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display What I may have to do is add a new option to my Preferences form - Currency symbol. Ack. Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 10:00 AM Subject: Re: [AccessD] OT: Currency Display > Or maybe a display format like > > #,00"RSh"; -#,00"RSh" > > Rocky Smolin - Beach Access Software wrote: > >>Dear List: >> >>This is really a Windows question, I believe. >>I have a prospect in Kenya who needs the currency fields to display RSh >>instead of $. In the regional and language settings there are several >>selections for English, like Zimbabwe which displays Z$ for the currency >>field. You can also customize the currency symbol but only $ and the euro >>symbol are in my combo box. >> >>Does anyone know how to customize this setting so I can display RSh? >> >>MTIA, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Thu Mar 10 16:00:39 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Thu, 10 Mar 2005 16:00:39 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Thank you, Gustav. That approach would probably do the trick. I'll have a look at the cab option, too. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 1:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Archiving files with Winzip Command Line version Hi Donald One method could be to replace the direct call of Winzip in the command line with a call of a batch file. This batch file should run Winzip and then create a log file: echo Winzip completed > winzip.log or similar. Then test for the existence of the log file; it will not be created before Winzip has finished. You may also wish to check out cab files in favour of zip file. If I recall correctly they could be faster at adding single files, indeed for extracting. /gustav From robert at servicexp.com Thu Mar 10 16:36:54 2005 From: robert at servicexp.com (Robert Gracie) Date: Thu, 10 Mar 2005 17:36:54 -0500 Subject: [AccessD] TEST Message-ID: <3C6BD610FA11044CADFC8C13E6D5508F4E34@gbsserver.GBS.local> TEST From bchacc at san.rr.com Thu Mar 10 18:01:15 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 16:01:15 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B587D@stekelbes.ithelps.local> Message-ID: <024b01c525cd$71b1d390$6601a8c0@HAL9002> Erwin: The button next to the language selection is labeled Customize and opens a dialog box where you can select a currency symbol from a combo box, but that only shows R, $ and the euro symbol. No option on my system to input your own symbol. Do you have that option on your system? Thanks and Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 1:46 PM Subject: RE: [AccessD] OT: Currency Display > In the regional settings you can choose English sout Africa and you will > have a R as prefix. > If you really want RSh you can click on the buttom next to it (change?) > and just type anything you want in curency symbol... > However, this would be necesary on every computer. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 10, 2005 10:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > What I may have to do is add a new option to my Preferences form - > Currency symbol. Ack. > > Rocky > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 10:00 AM > Subject: Re: [AccessD] OT: Currency Display > > >> Or maybe a display format like >> >> #,00"RSh"; -#,00"RSh" >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>This is really a Windows question, I believe. >>>I have a prospect in Kenya who needs the currency fields to display > RSh >>>instead of $. In the regional and language settings there are several > >>>selections for English, like Zimbabwe which displays Z$ for the > currency >>>field. You can also customize the currency symbol but only $ and the > euro >>>symbol are in my combo box. >>> >>>Does anyone know how to customize this setting so I can display RSh? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Mar 10 20:55:05 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 11 Mar 2005 13:55:05 +1100 Subject: [AccessD] A2003: Runtime Error Type Mismatch Message-ID: <200503110255.j2B2t9lE022144@cooper.uws.edu.au> (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ From d.dick at uws.edu.au Thu Mar 10 22:36:13 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 11 Mar 2005 15:36:13 +1100 Subject: [AccessD] FW: A2003: Runtime Error Type Mismatch (SOLVED) Message-ID: <200503110436.j2B4aIlE003468@cooper.uws.edu.au> Hello all Got an answer from Sue Needed to replace the early binding item... Dim myAppt As Outlook.AppointmentItem With Dim myAppt As object See y'all Darren ORIGINAL MESSAGE: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ From accessd666 at yahoo.com Fri Mar 11 00:53:17 2005 From: accessd666 at yahoo.com (Sad Der) Date: Thu, 10 Mar 2005 22:53:17 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <003101c524bf$07e44100$697aa8c0@ColbyM6805> Message-ID: <20050311065317.55734.qmail@web31610.mail.mud.yahoo.com> You both have good points. I explained this to them and they understand the risks...if they do anything with it.... However, because the risk of users trashing the DB is so high this is a project in wich I do not take any responsible what so ever when anything crashes, data is incorrect etc. To avoid as much problems as possible in the future I created a lot of logging tables etc so I can see what tables were linked and wich queries run to create a certain Excel report. How many rows the report has etc. So, thnx a lot for the answers and discussion but now it's time to do some programming. ~Sander --- "John W. Colby" wrote: > When I have users that need to run their own queries > I set them up with a > local (to their machine) front end, linked to all > the necessary tables. > They can then build queries and reports to their > heart's content. It is > important to know that they know what they are doing > because they are > "directly in the tables" with queries and can trash > the db pretty easily. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 09, 2005 10:20 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > Makes supporting a database pretty exciting, then, > doesn't it? When it > breaks, you just never know what you're going to > find. > > So if they can handle modifying their own queries, > can't they fill in the > blank in the parameter prompt? > > Rocky > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Wednesday, March 09, 2005 1:43 AM > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > >I completely agree user should not mess around in > the database. > >However this is a very clear demand. Users must > have access to the > >queries to alter them at any time!! > > > > Thnx anyway. > > --- Rocky Smolin - Beach Access Software > > wrote: > > > >> Sander: > >> > >> I always take parameters from a form. Don't like > to > >> let the users muck > >> around in the database container. So get the > >> parameter into the query I > >> make a > >> > >> Public Function GetParameterX > >> > >> > > > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > >> End Function > >> > >> Then in the query under criteria I put > >> GetParameterX() and it fetches the > >> contents of the text box from the form when it > runs. > >> > >> Probably not the most elegant solution but it > works > >> and its easy. But you > >> have to run the query from the form. > >> > >> The users I write for prefer it. Almost none of > >> them would know how to run > >> a query from the database container and most > don't > >> even know what a query > >> is. > >> > >> HTH > >> > >> Rocky Smolin > >> Beach Access Software > >> http://www.e-z-mrp.com > >> 858-259-4334 > >> > >> ----- Original Message ----- > >> From: "Sad Der" > >> To: "Access Developers discussion and problem > >> solving" > >> > >> Sent: Tuesday, March 08, 2005 6:33 AM > >> Subject: RE: [AccessD] Automating parameterized > >> action queries..... > >> > >> > >> >I also thought of that but I hoped their was a > way > >> to > >> > fill the parameters per query with form input. > >> > > >> > That way i could make a form for the users in > wich > >> > they can enter: > >> > - a new report > >> > - queries per report > >> > - parameters per query > >> > - parametertype per parameter (eg date, number, > >> etc) > >> > > >> > With this info I could, based on a report > >> selection > >> > build a form dynamicly. > >> > > >> > Well I have to look at this some more and let > the > >> > customer decide. > >> > > >> > Regards, > >> > > >> > Sander > >> > > >> > --- Bobby Heid wrote: > >> >> Why not have two sets of queries, one set that > >> looks > >> >> to a form (this one is > >> >> called programmatically), and one set that > >> queries > >> >> the user for the > >> >> parameters? > >> >> > >> >> Bobby > >> >> > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [mailto:accessd-bounces at databaseadvisors.com] > On > >> >> Behalf Of Sad Der > >> >> Sent: Tuesday, March 08, 2005 8:10 AM > >> >> To: Access Developers discussion and problem > >> solving > >> >> Subject: RE: [AccessD] Automating > parameterized > >> >> action queries..... > >> >> > >> >> > >> >> You are correct. However the queries are not > >> >> executed > >> >> via from several forms but they are executed: > >> >> 1- via one form > >> >> 2- a user manually clicks it in the database > >> >> container. > >> >> > >> >> The process is as follows: > >> >> 1 - the reports (xls files) are stored in the > >> >> database > >> >> 2 - the queries that create the report are > also > >> >> stored > >> >> in the database > >> >> 3 - the user selects a report > >> >> 4 - the necessary queries are executed one by > one > >> >> > >> >> However, several times a week a manager > requests > >> a > >> >> part of the report that is slightly different > >> from > >> >> the original. A user then > >> >> must have the change to quickly adjust the > query > >> and > >> >> run it manually. > >> >> > >> >> HTH > >> >> > >> >> Sander > >> >> > >> >> > >> >> --- Bobby Heid wrote: > >> >> > If you are not wanting to encode a > particular > >> form > >> >> > field because the query > >> >> > is called from several forms, might I > suggest > >> that > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Erwin.Craps at ithelps.be Fri Mar 11 02:51:01 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 09:51:01 +0100 Subject: [AccessD] A2003: Runtime Error Type Mismatch Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5882@stekelbes.ithelps.local> I kown that one... Had same prob with E-mails... Not all items in your calender are necesary appointment items. Your code fails on one item in your calender that could be an another Outlook or customized type item. I had this with E-mails, the virus warnings but als incoming faxes where not an e-mail item. You should declare this way Dim myAppt As object But you will need to check each item to see if it is an appointment or not in your loop and do the appropriate thing with it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, March 11, 2005 3:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Runtime Error Type Mismatch (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 11 02:52:01 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 09:52:01 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5883@stekelbes.ithelps.local> I know But dont click on the combo box, just type any text you want in the field... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, March 11, 2005 1:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display Erwin: The button next to the language selection is labeled Customize and opens a dialog box where you can select a currency symbol from a combo box, but that only shows R, $ and the euro symbol. No option on my system to input your own symbol. Do you have that option on your system? Thanks and Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 1:46 PM Subject: RE: [AccessD] OT: Currency Display > In the regional settings you can choose English sout Africa and you will > have a R as prefix. > If you really want RSh you can click on the buttom next to it (change?) > and just type anything you want in curency symbol... > However, this would be necesary on every computer. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 10, 2005 10:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > What I may have to do is add a new option to my Preferences form - > Currency symbol. Ack. > > Rocky > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 10:00 AM > Subject: Re: [AccessD] OT: Currency Display > > >> Or maybe a display format like >> >> #,00"RSh"; -#,00"RSh" >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>This is really a Windows question, I believe. >>>I have a prospect in Kenya who needs the currency fields to display > RSh >>>instead of $. In the regional and language settings there are several > >>>selections for English, like Zimbabwe which displays Z$ for the > currency >>>field. You can also customize the currency symbol but only $ and the > euro >>>symbol are in my combo box. >>> >>>Does anyone know how to customize this setting so I can display RSh? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 11 02:54:09 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 09:54:09 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5884@stekelbes.ithelps.local> And yes I can type anything I want in that space. Always has been from W95 on... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Friday, March 11, 2005 9:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Currency Display I know But dont click on the combo box, just type any text you want in the field... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, March 11, 2005 1:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display Erwin: The button next to the language selection is labeled Customize and opens a dialog box where you can select a currency symbol from a combo box, but that only shows R, $ and the euro symbol. No option on my system to input your own symbol. Do you have that option on your system? Thanks and Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 1:46 PM Subject: RE: [AccessD] OT: Currency Display > In the regional settings you can choose English sout Africa and you will > have a R as prefix. > If you really want RSh you can click on the buttom next to it (change?) > and just type anything you want in curency symbol... > However, this would be necesary on every computer. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 10, 2005 10:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > What I may have to do is add a new option to my Preferences form - > Currency symbol. Ack. > > Rocky > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 10:00 AM > Subject: Re: [AccessD] OT: Currency Display > > >> Or maybe a display format like >> >> #,00"RSh"; -#,00"RSh" >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>This is really a Windows question, I believe. >>>I have a prospect in Kenya who needs the currency fields to display > RSh >>>instead of $. In the regional and language settings there are several > >>>selections for English, like Zimbabwe which displays Z$ for the > currency >>>field. You can also customize the currency symbol but only $ and the > euro >>>symbol are in my combo box. >>> >>>Does anyone know how to customize this setting so I can display RSh? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 11 03:03:30 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 10:03:30 +0100 Subject: [AccessD] FW: A2003: Runtime Error Type Mismatch (SOLVED) Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5886@stekelbes.ithelps.local> Darren, It's not an early binding issue.... (read my other post) It's a type issue. Not all items in an outlook folder are necesary from the same type. So indeed you need to change your declaration to object BUT You also need to check in your loop to only process the appointment items.... And/or to process the other items appropriatly. You code can still fail if you request a specific appointment property on a non-appointment item... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, March 11, 2005 5:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: A2003: Runtime Error Type Mismatch (SOLVED) Hello all Got an answer from Sue Needed to replace the early binding item... Dim myAppt As Outlook.AppointmentItem With Dim myAppt As object See y'all Darren ORIGINAL MESSAGE: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Fri Mar 11 03:36:05 2005 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 11 Mar 2005 01:36:05 -0800 (PST) Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: 6667 Message-ID: <20050311093605.74120.qmail@web31602.mail.mud.yahoo.com> Hi group, after almost 3 hours I give up. I'm using Ken's solution and it works great. I'm using for all my params....off course then I crashed into a F#$@ng date field. Can anybody tell me why code does not return a date? What am I missing? Module: mParams Option Compare Database Option Explicit Public oRptParam As cReportParams Public Function ParamVersion() As Variant 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If ParamVersion = oRptParam.Version If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function Public Function ParamNewBusinessDate() As Date 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If '???????????????????????????????????????????????????? '===> Somehow ParamNewBusinessDate stays 00:00:00???? '???????????????????????????????????????????????????? ParamNewBusinessDate = oRptParam.NewBusinessDate If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function CLASS cReportParams Option Compare Database Option Explicit Private mVersion As String Private mdtmNewBusinessDate As Variant 'This parameter checks if the query is run via a form! Private mFormDriven As Boolean Property Get Version() As String Dim strVersion As String If mFormDriven Then Version = mVersion Else If mVersion = "" Then strVersion = InputBox("Enter the version:") If strVersion > "" Then mVersion = strVersion End If Version = mVersion Else Version = mVersion End If End If End Property Property Let Version(VersionIn As String) mVersion = VersionIn End Property Property Get NewBusinessDate() As Variant Dim dtmNewBusinessDate As Date If mFormDriven Then NewBusinessDate = mdtmNewBusinessDate Else If mdtmNewBusinessDate = "00:00:00" Then 'I fill the InputBox with the value 22/02/2005 dtmNewBusinessDate = InputBox("Enter the new business date:") If Not dtmNewBusinessDate = "00:00:00" Then mdtmNewBusinessDate = dtmNewBusinessDate End If Else NewBusinessDate = mdtmNewBusinessDate End If End If End Property Property Let NewBusinessDate(NewBusinessDateIn As Variant) mdtmNewBusinessDate = NewBusinessDateIn End Property Property Let FormDriven(FormDrivenIN As Boolean) mFormDriven = FormDrivenIN End Property Property Get FormDriven() As Boolean FormDriven = mFormDriven End Property Private Sub Class_Initialize() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub Private Sub Class_Terminate() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub ----------------------------------------------------- If somebody needs more details....please ask! Thnx. Regards, Sander --- Ken Ismert wrote: > Sander, > > There is a class-based approach: > > Define a class, CReportParms, with two variant > properties, Version and > StartDate: > > Private mVersion As Variant > Private mStartDate As Variant > > Property Get Version() As Variant > Version = mVersion > End Property > Property Let Version(VersionIn As Variant) > mVersion = VersionIn > End Property > > ' (Similar Get/Let for StartDate) > > Private Sub Class_Initialize() > mVersion = Null > mStartDate = Null > End Sub > > Declare it as global in one of your modules: > > Public gRptParms As New CReportParms > > Provide two global functions to use in your queries > in place of your > parameters: > > Public Function ParmVersion() As Variant > Parms = gRptParms.Version > End Function > Public Function ParmStartDate() As Variant > Parms = gRptParms.StartDate > End Function > > You can set these properties in your form before you > run your report: > > gRptParms.Version = txtVersion > gRptParms.StartDate = txtStartDate > > If you can calculate reasonable values for Version > and StartDate, you can do > so in the CReportParms Initialize event. > Alternately, you can prompt the > user in the class when the queries are run > standalone: > > Property Get Version() As Variant > Dim sVersion As String > If IsNull(mVersion) Then > sVersion = InputBox("Enter Version:") > If sVersion > "" Then > mVersion = CLng(sVersion) > End If > End If > Version = mVersion > End Property > > You could also have a third property, FormDriven, > that, when set to True, > doesn't prompt the user. Only your frmReport form > will set this property, > and clear it upon exit. That way, the user is always > prompted when running > the queries stand-alone. > > -Ken > > > Hi group, > > > > my story of the queries continues. I need to > > run a set of action queries. This works fine. > > > > Several queries have parameters. So that means > > the user has to watch the screen for a > > parameter to pop-up. Is it possible to add > > some parameter fields in the form to fill > > the required parameters...WITHOUT changing > > the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Fri Mar 11 05:03:17 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Mar 2005 12:03:17 +0100 Subject: [AccessD] Transfer complete? Message-ID: Hi John Great. I've sent you off-line for inspiration the code I use for uploading. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 20:52:38 >>> I just downloaded 3dFTP. Holy smoke batman, documentation! Ok a help file anyway. It sure looks good. I installed it an have code started already. Now I just need to read the api guide to see sample code. And the price is great, since I really only need a copy for my dev machine and a copy for the server at the client. Thanks again for sending that my way. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 1:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transfer complete? Hi John OK. For the client e-mail thing I used the dll from http://www.marshallsoft.com/ Not the cheapest but it has worked without a glitch. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 19:09:06 >>> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav From jwcolby at colbyconsulting.com Fri Mar 11 05:50:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 11 Mar 2005 06:50:57 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <20050311065317.55734.qmail@web31610.mail.mud.yahoo.com> Message-ID: <001f01c52630$96653cf0$697aa8c0@ColbyM6805> BTW, you can create base queries, one for each table, which simply do a SELECT * FROM TBLX. Then open the properties for the query and make it a snapshot query. Now have them use those base queries instead of using the table directly. Because the base queries are snapshot queries, no data can be changed. If they go around those queries to use the tables all bets are off. You could of course use Access security to give them access to the queries but not the tables. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Friday, March 11, 2005 1:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries..... You both have good points. I explained this to them and they understand the risks...if they do anything with it.... However, because the risk of users trashing the DB is so high this is a project in wich I do not take any responsible what so ever when anything crashes, data is incorrect etc. To avoid as much problems as possible in the future I created a lot of logging tables etc so I can see what tables were linked and wich queries run to create a certain Excel report. How many rows the report has etc. So, thnx a lot for the answers and discussion but now it's time to do some programming. ~Sander --- "John W. Colby" wrote: > When I have users that need to run their own queries > I set them up with a > local (to their machine) front end, linked to all > the necessary tables. > They can then build queries and reports to their > heart's content. It is > important to know that they know what they are doing > because they are > "directly in the tables" with queries and can trash > the db pretty easily. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 09, 2005 10:20 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > Makes supporting a database pretty exciting, then, > doesn't it? When it > breaks, you just never know what you're going to > find. > > So if they can handle modifying their own queries, > can't they fill in the > blank in the parameter prompt? > > Rocky > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Wednesday, March 09, 2005 1:43 AM > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > >I completely agree user should not mess around in > the database. > >However this is a very clear demand. Users must > have access to the > >queries to alter them at any time!! > > > > Thnx anyway. > > --- Rocky Smolin - Beach Access Software wrote: > > > >> Sander: > >> > >> I always take parameters from a form. Don't like > to > >> let the users muck > >> around in the database container. So get the > >> parameter into the query I > >> make a > >> > >> Public Function GetParameterX > >> > >> > > > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > >> End Function > >> > >> Then in the query under criteria I put > >> GetParameterX() and it fetches the > >> contents of the text box from the form when it > runs. > >> > >> Probably not the most elegant solution but it > works > >> and its easy. But you > >> have to run the query from the form. > >> > >> The users I write for prefer it. Almost none of > >> them would know how to run > >> a query from the database container and most > don't > >> even know what a query > >> is. > >> > >> HTH > >> > >> Rocky Smolin > >> Beach Access Software > >> http://www.e-z-mrp.com > >> 858-259-4334 > >> > >> ----- Original Message ----- > >> From: "Sad Der" > >> To: "Access Developers discussion and problem > >> solving" > >> > >> Sent: Tuesday, March 08, 2005 6:33 AM > >> Subject: RE: [AccessD] Automating parameterized > >> action queries..... > >> > >> > >> >I also thought of that but I hoped their was a > way > >> to > >> > fill the parameters per query with form input. > >> > > >> > That way i could make a form for the users in > wich > >> > they can enter: > >> > - a new report > >> > - queries per report > >> > - parameters per query > >> > - parametertype per parameter (eg date, number, > >> etc) > >> > > >> > With this info I could, based on a report > >> selection > >> > build a form dynamicly. > >> > > >> > Well I have to look at this some more and let > the > >> > customer decide. > >> > > >> > Regards, > >> > > >> > Sander > >> > > >> > --- Bobby Heid wrote: > >> >> Why not have two sets of queries, one set that > >> looks > >> >> to a form (this one is > >> >> called programmatically), and one set that > >> queries > >> >> the user for the > >> >> parameters? > >> >> > >> >> Bobby > >> >> > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [mailto:accessd-bounces at databaseadvisors.com] > On > >> >> Behalf Of Sad Der > >> >> Sent: Tuesday, March 08, 2005 8:10 AM > >> >> To: Access Developers discussion and problem > >> solving > >> >> Subject: RE: [AccessD] Automating > parameterized > >> >> action queries..... > >> >> > >> >> > >> >> You are correct. However the queries are not > >> >> executed > >> >> via from several forms but they are executed: > >> >> 1- via one form > >> >> 2- a user manually clicks it in the database > >> >> container. > >> >> > >> >> The process is as follows: > >> >> 1 - the reports (xls files) are stored in the > >> >> database > >> >> 2 - the queries that create the report are > also > >> >> stored > >> >> in the database > >> >> 3 - the user selects a report > >> >> 4 - the necessary queries are executed one by > one > >> >> > >> >> However, several times a week a manager > requests > >> a > >> >> part of the report that is slightly different > >> from > >> >> the original. A user then > >> >> must have the change to quickly adjust the > query > >> and > >> >> run it manually. > >> >> > >> >> HTH > >> >> > >> >> Sander > >> >> > >> >> > >> >> --- Bobby Heid wrote: > >> >> > If you are not wanting to encode a > particular > >> form > >> >> > field because the query > >> >> > is called from several forms, might I > suggest > >> that > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Mar 11 06:17:31 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 11 Mar 2005 13:17:31 +0100 (CET) Subject: [AccessD] Mapping API's Message-ID: <8660631.1110543451613.JavaMail.www@wwinf3101> To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From bheid at appdevgrp.com Fri Mar 11 06:39:28 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 11 Mar 2005 07:39:28 -0500 Subject: [AccessD] Mapping API's In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D61A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE8A5@ADGSERVER> I have not done this, but something like Map Point may be what you are looking for. This is a Microsoft mapping solution. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, March 11, 2005 7:18 AM To: accessd Subject: [AccessD] Mapping API's To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland From jimdettman at earthlink.net Fri Mar 11 07:54:00 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 11 Mar 2005 08:54:00 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: <001101c52596$4f688860$697aa8c0@ColbyM6805> Message-ID: John, For e-mail, all you can be sure of is that the SMTP server your talking to got the e-mail and sent it. As for FTP, I log the "conversation" between the two servers to a text file. Once the file transfer is complete, I parse the text file for: "File Transfer Complete" Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, March 10, 2005 12:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer complete? How do you tell if a file transfer completes? I am working on a system where we send files to email addresses as attachments, and also FTP them to sites. We also receive Emails with attachments and may need to get them from FTP sites but that is another issue. The client is bring in a brand new software package at their end which gives me an opportunity to rewrite my end as well. I am developing a pair of classes - a transfer job and a transfer job supervisor - that can Email or FTP files from a directory location. The supervisor class of the whole system (which requests the documents) knows whether the file created is going to be emailed, FTPed or both and to where. As documents are created and stored on disk, records about the files are stored in a FileTransferJob table by this supervisor class along with the destination and type of transfer (Email or FTP). The TransferFile Supervisor then loads records from this table where the "TransferComplete" field is NULL, builds TransferFile class instances and saves them in a collection of files needing to be transmitted. Each TransferFile instance is then polled periodically telling it to perform the transfer. If the transfer completes successfully, the TransferFile instance updates it's associated record in the table and unloads itself from the supervisor's collection. The system sends New Claim Notices and Payment Requests (records) from my disability insurance call center software to the client insurer, and receives back from them claim numbers and check information. The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I am currently using a class (C)1998-99 Dev Ashish and Terry Kreft to do the FTP Transfer and I may be able to get feedback from the class on a variety of errors that may occur in their class - the remote site being down may be one of them. Unfortunately their class is poorly (not) documented so it is a problem trying to figure out how it works if something goes wrong. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Mar 11 08:11:48 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 11 Mar 2005 06:11:48 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B5883@stekelbes.ithelps.local> Message-ID: <004501c52644$4407f150$6601a8c0@HAL9002> Erwin: I can't believe it. It works! What a dope I feel like! Who'd have believed that they'd implement a not in list for that field? Anyway. Thanks. That solves a big problem. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Friday, March 11, 2005 12:52 AM Subject: RE: [AccessD] OT: Currency Display >I know > But dont click on the combo box, just type any text you want in the > field... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Friday, March 11, 2005 1:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > Erwin: > > The button next to the language selection is labeled Customize and opens > a dialog box where you can select a currency symbol from a combo box, > but that only shows R, $ and the euro symbol. No option on my system to > input your own symbol. Do you have that option on your system? > > Thanks and Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 1:46 PM > Subject: RE: [AccessD] OT: Currency Display > > >> In the regional settings you can choose English sout Africa and you > will >> have a R as prefix. >> If you really want RSh you can click on the buttom next to it > (change?) >> and just type anything you want in curency symbol... >> However, this would be necesary on every computer. >> >> Erwin >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Thursday, March 10, 2005 10:13 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Currency Display >> >> What I may have to do is add a new option to my Preferences form - >> Currency symbol. Ack. >> >> Rocky >> >> ----- Original Message ----- >> From: "MartyConnelly" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 10, 2005 10:00 AM >> Subject: Re: [AccessD] OT: Currency Display >> >> >>> Or maybe a display format like >>> >>> #,00"RSh"; -#,00"RSh" >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>>Dear List: >>>> >>>>This is really a Windows question, I believe. >>>>I have a prospect in Kenya who needs the currency fields to display >> RSh >>>>instead of $. In the regional and language settings there are > several >> >>>>selections for English, like Zimbabwe which displays Z$ for the >> currency >>>>field. You can also customize the currency symbol but only $ and the >> euro >>>>symbol are in my combo box. >>>> >>>>Does anyone know how to customize this setting so I can display RSh? >>>> >>>>MTIA, >>>> >>>>Rocky Smolin >>>>Beach Access Software >>>>http://www.e-z-mrp.com >>>>858-259-4334 >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Fri Mar 11 08:36:25 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 15:36:25 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B588C@stekelbes.ithelps.local> Had to do this many times in W95/98 with early EURO migrations.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, March 11, 2005 3:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display Erwin: I can't believe it. It works! What a dope I feel like! Who'd have believed that they'd implement a not in list for that field? Anyway. Thanks. That solves a big problem. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Friday, March 11, 2005 12:52 AM Subject: RE: [AccessD] OT: Currency Display >I know > But dont click on the combo box, just type any text you want in the > field... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Friday, March 11, 2005 1:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > Erwin: > > The button next to the language selection is labeled Customize and opens > a dialog box where you can select a currency symbol from a combo box, > but that only shows R, $ and the euro symbol. No option on my system to > input your own symbol. Do you have that option on your system? > > Thanks and Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 1:46 PM > Subject: RE: [AccessD] OT: Currency Display > > >> In the regional settings you can choose English sout Africa and you > will >> have a R as prefix. >> If you really want RSh you can click on the buttom next to it > (change?) >> and just type anything you want in curency symbol... >> However, this would be necesary on every computer. >> >> Erwin >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Thursday, March 10, 2005 10:13 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Currency Display >> >> What I may have to do is add a new option to my Preferences form - >> Currency symbol. Ack. >> >> Rocky >> >> ----- Original Message ----- >> From: "MartyConnelly" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 10, 2005 10:00 AM >> Subject: Re: [AccessD] OT: Currency Display >> >> >>> Or maybe a display format like >>> >>> #,00"RSh"; -#,00"RSh" >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>>Dear List: >>>> >>>>This is really a Windows question, I believe. >>>>I have a prospect in Kenya who needs the currency fields to display >> RSh >>>>instead of $. In the regional and language settings there are > several >> >>>>selections for English, like Zimbabwe which displays Z$ for the >> currency >>>>field. You can also customize the currency symbol but only $ and the >> euro >>>>symbol are in my combo box. >>>> >>>>Does anyone know how to customize this setting so I can display RSh? >>>> >>>>MTIA, >>>> >>>>Rocky Smolin >>>>Beach Access Software >>>>http://www.e-z-mrp.com >>>>858-259-4334 >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Fri Mar 11 08:47:23 2005 From: greggs at msn.com (Gregg) Date: Fri, 11 Mar 2005 08:47:23 -0600 Subject: [AccessD] Mapping API's References: <8660631.1110543451613.JavaMail.www@wwinf3101> Message-ID: MapPoint will find the closest employees and it interfaces well with Access. I have not tried automating the process in Access but it is probably your best bet for an easy solution. ----- Original Message ----- From: paul.hartland at fsmail.net To: accessd Sent: Friday, March 11, 2005 6:17 AM Subject: [AccessD] Mapping API's To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Mar 11 09:51:23 2005 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 11 Mar 2005 09:51:23 -0600 Subject: [AccessD] OT: Farmer John Message-ID: Farmer John Farmer John lived on a quiet rural highway. But, as time went by, the traffic slowly built up to an alarming level. The traffic was so heavy and so fast that his chickens were being run over at a rate of three to six a day. So one day Farmer John called the sheriff's office and said, "You've got to do something about all of these people driving so fast and killing all of my chickens." "What do you want me to do?" asked the sheriff. "I don't care, just do something about those crazy drivers!" So the next day he had the county workers go out and erected a sign that said: SLOW: SCHOOL CROSSING Three days later Farmer John called the sheriff and said, "You've got to do something about these drivers. The 'school crossing' sign seems to make them go even faster." So, again, the sheriff sends out the county workers and they put up a new sign: SLOW: CHILDREN AT PLAY. That really sped them up. So Farmer John called and called and called every day for three weeks. Finally, he asked the sheriff, "Your signs are doing no good. Can I put up my own sign?" The sheriff told him, "Sure thing, put up your own sign." He was going to let Farmer John do just about anything in order to get him to stop calling every day to complain. The sheriff got no more calls from Farmer John. Three weeks later, curiosity got the best of the sheriff and he decided to give Farmer John a call. "How's the problem with those drivers. Did you put up your sign?" "Oh, I sure did. And not one chicken has been killed since then. I've got to go. I'm very busy." He hung up the phone. The sheriff was really curious now and he thought to himself, "I'd better go out there and take a look at that sign... it might be something that WE could use to slow down drivers..." So the sheriff drove out to Farmer John's house, and his jaw dropped the moment he saw the sign. It was spray-painted on a sheet of wood: "NUDIST COLONY" *** Go slow and watch out for the chicks *** -- Gary Kjos garykjos at gmail.com From DWUTKA at marlow.com Fri Mar 11 10:38:07 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 11 Mar 2005 10:38:07 -0600 Subject: [AccessD] Mapping API's Message-ID: <123701F54509D9119A4F00D0B747349016D320@main2.marlow.com> Talk to Mike Mattys, he's very good with Access and Mappoint. Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Friday, March 11, 2005 6:18 AM To: accessd Subject: [AccessD] Mapping API's To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- 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 Mar 11 10:39:51 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 11 Mar 2005 11:39:51 -0500 Subject: [AccessD] Automating parameterized action queries..... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DD5@xlivmbx21.aig.com> If you want to use Access security to deny access to the tables (for writing) then you would also have to have all the other queries used by forms etc. be set up as RWOP (Run With Owners Permissions) so that the queries used for updating data will be able to do so. But then you are back to square one. How to prevent the users using the RWOP queries to gain access to the tables to change the data? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, March 11, 2005 6:51 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > BTW, you can create base queries, one for each table, which simply do a > SELECT * FROM TBLX. Then open the properties for the query and make it a > snapshot query. Now have them use those base queries instead of using the > table directly. Because the base queries are snapshot queries, no data > can > be changed. > > If they go around those queries to use the tables all bets are off. You > could of course use Access security to give them access to the queries but > not the tables. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > From andy at minstersystems.co.uk Fri Mar 11 09:40:31 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 11 Mar 2005 16:40:31 +0100 Subject: [AccessD] OT: Farmer John Message-ID: <20050311164029.44BC92BF3B2@smtp.nildram.co.uk> Hurray for the return of Friday Humour. And two in one week! -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: dba-OT , Access Developers discussion and problem solving Subject: [AccessD] OT: Farmer John Date: 11/03/05 15:52 > > Farmer John > > > Farmer John lived on a quiet rural highway. But, as time went by, > the traffic slowly built up to an alarming level. The traffic was so > heavy and so fast that his chickens were being run over at a rate of > three to six a day. > > So one day Farmer John called the sheriff's office and said, "You've > got to do something about all of these people driving so fast and > killing all of my chickens." > > "What do you want me to do?" asked the sheriff. "I don't care, just > do something about those crazy drivers!" > > So the next day he had the county workers go out and erected a sign > that said: SLOW: SCHOOL CROSSING Three days later Farmer John > called the sheriff and said, "You've got to do something about these > drivers. The 'school crossing' sign seems to make them go even faster." > > So, again, the sheriff sends out the county workers and they put up a > new sign: SLOW: CHILDREN AT PLAY. That really sped them up. > So Farmer John called and called and called every day for three weeks. > > Finally, he asked the sheriff, "Your signs are doing no good. Can I > put up my own sign?" > > The sheriff told him, "Sure thing, put up your own sign." He was > going to let Farmer John do just about anything in order to get him > to stop calling every day to complain. The sheriff got no more > calls from Farmer John. > > Three weeks later, curiosity got the best of the sheriff and he > decided to give Farmer John a call. "How's the problem with > those drivers. Did you put up your sign?" "Oh, I sure did. > And not one chicken has been killed since then. I've got to go. > I'm very busy." He hung up the phone. > > The sheriff was really curious now and he thought to himself, > "I'd better go out there and take a look at that sign... it might be > something that WE could use to slow down drivers..." > > So the sheriff drove out to Farmer John's house, and his jaw dropped > the moment he saw the sign. It was spray-painted on a sheet of wood: > > > > "NUDIST COLONY" > > *** Go slow and watch out for the chicks *** > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Fri Mar 11 10:52:24 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 11 Mar 2005 11:52:24 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DD5@xlivmbx21.aig.com> Message-ID: <002a01c5265a$b2fc2bb0$697aa8c0@ColbyM6805> Yes, but I was discussing a system where the user has their own FE just for building their own custom queries. Thus you set up no access to tables, plus read-only queries for all tables needed. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, March 11, 2005 11:40 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automating parameterized action queries..... If you want to use Access security to deny access to the tables (for writing) then you would also have to have all the other queries used by forms etc. be set up as RWOP (Run With Owners Permissions) so that the queries used for updating data will be able to do so. But then you are back to square one. How to prevent the users using the RWOP queries to gain access to the tables to change the data? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, March 11, 2005 6:51 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > BTW, you can create base queries, one for each table, which simply do > a SELECT * FROM TBLX. Then open the properties for the query and make > it a snapshot query. Now have them use those base queries instead of > using the table directly. Because the base queries are snapshot > queries, no data can be changed. > > If they go around those queries to use the tables all bets are off. > You could of course use Access security to give them access to the > queries but not the tables. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Mar 11 12:01:25 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 11 Mar 2005 13:01:25 -0500 Subject: [AccessD] OT - Drawing Viewers Message-ID: What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. From KIsmert at TexasSystems.com Fri Mar 11 12:20:59 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 11 Mar 2005 12:20:59 -0600 Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: <20050311093605.74120.qmail@web31602.mail.mud.yahoo.com> Message-ID: <014901c52667$13d54c80$2a3ca8c0@TEXASSYSTEMS.COM> Sander: Your problem is with your date delimiters: use #00:00:00# instead of "00:00:00". This, by the way, is Microsoft Day 0, which is 12/30/1899. You will have to change this segment of your code, as well: dtmNewBusinessDate = InputBox("Enter the new business date:") You will need something like: Dim sNewDate As String sNewDate = InputBox("Enter the new business date:") If IsDate(sNewDate) Then mdtmNewBusinessDate = CDate(sNewDate) End If Also, a suggestion: If you use: Public oRptParam As NEW cReportParams Then you can get rid of this business in your functions: If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If ... If blnDestroyRepParam Then Set oRptParam = Nothing End If The New keyword sets oRptParam to a new instance of cReportParams automatically on first reference. A single instance of the object will remain active until you exit or set it to nothing. This seems to be a good fit for your code here. I have used this technique for years in many Access programs with no ill effects. It is a documented and valid part of the VBA spec, and it has a place in your toolbox. -Ken -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Friday, March 11, 2005 3:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries.....DATE?! Hi group, after almost 3 hours I give up. I'm using Ken's solution and it works great. I'm using for all my params....off course then I crashed into a F#$@ng date field. Can anybody tell me why code does not return a date? What am I missing? Module: mParams Option Compare Database Option Explicit Public oRptParam As cReportParams Public Function ParamVersion() As Variant 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If ParamVersion = oRptParam.Version If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function Public Function ParamNewBusinessDate() As Date 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If '???????????????????????????????????????????????????? '===> Somehow ParamNewBusinessDate stays 00:00:00???? '???????????????????????????????????????????????????? ParamNewBusinessDate = oRptParam.NewBusinessDate If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function CLASS cReportParams Option Compare Database Option Explicit Private mVersion As String Private mdtmNewBusinessDate As Variant 'This parameter checks if the query is run via a form! Private mFormDriven As Boolean Property Get Version() As String Dim strVersion As String If mFormDriven Then Version = mVersion Else If mVersion = "" Then strVersion = InputBox("Enter the version:") If strVersion > "" Then mVersion = strVersion End If Version = mVersion Else Version = mVersion End If End If End Property Property Let Version(VersionIn As String) mVersion = VersionIn End Property Property Get NewBusinessDate() As Variant Dim dtmNewBusinessDate As Date If mFormDriven Then NewBusinessDate = mdtmNewBusinessDate Else If mdtmNewBusinessDate = "00:00:00" Then 'I fill the InputBox with the value 22/02/2005 dtmNewBusinessDate = InputBox("Enter the new business date:") If Not dtmNewBusinessDate = "00:00:00" Then mdtmNewBusinessDate = dtmNewBusinessDate End If Else NewBusinessDate = mdtmNewBusinessDate End If End If End Property Property Let NewBusinessDate(NewBusinessDateIn As Variant) mdtmNewBusinessDate = NewBusinessDateIn End Property Property Let FormDriven(FormDrivenIN As Boolean) mFormDriven = FormDrivenIN End Property Property Get FormDriven() As Boolean FormDriven = mFormDriven End Property Private Sub Class_Initialize() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub Private Sub Class_Terminate() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub ----------------------------------------------------- If somebody needs more details....please ask! Thnx. Regards, Sander --- Ken Ismert wrote: > Sander, > > There is a class-based approach: > > Define a class, CReportParms, with two variant > properties, Version and > StartDate: > > Private mVersion As Variant > Private mStartDate As Variant > > Property Get Version() As Variant > Version = mVersion > End Property > Property Let Version(VersionIn As Variant) > mVersion = VersionIn > End Property > > ' (Similar Get/Let for StartDate) > > Private Sub Class_Initialize() > mVersion = Null > mStartDate = Null > End Sub > > Declare it as global in one of your modules: > > Public gRptParms As New CReportParms > > Provide two global functions to use in your queries > in place of your > parameters: > > Public Function ParmVersion() As Variant > Parms = gRptParms.Version > End Function > Public Function ParmStartDate() As Variant > Parms = gRptParms.StartDate > End Function > > You can set these properties in your form before you > run your report: > > gRptParms.Version = txtVersion > gRptParms.StartDate = txtStartDate > > If you can calculate reasonable values for Version > and StartDate, you can do > so in the CReportParms Initialize event. > Alternately, you can prompt the > user in the class when the queries are run > standalone: > > Property Get Version() As Variant > Dim sVersion As String > If IsNull(mVersion) Then > sVersion = InputBox("Enter Version:") > If sVersion > "" Then > mVersion = CLng(sVersion) > End If > End If > Version = mVersion > End Property > > You could also have a third property, FormDriven, > that, when set to True, > doesn't prompt the user. Only your frmReport form > will set this property, > and clear it upon exit. That way, the user is always > prompted when running > the queries stand-alone. > > -Ken > > > Hi group, > > > > my story of the queries continues. I need to > > run a set of action queries. This works fine. > > > > Several queries have parameters. So that means > > the user has to watch the screen for a > > parameter to pop-up. Is it possible to add > > some parameter fields in the form to fill > > the required parameters...WITHOUT changing > > the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Lambert.Heenan at AIG.com Fri Mar 11 12:34:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 11 Mar 2005 13:34:56 -0500 Subject: [AccessD] Automating parameterized action queries..... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DD7@xlivmbx21.aig.com> Yes I realized that you were looking at giving the users a FE of their own to play with, but I have not figured out how you can give them R/O queries with no tables. Don't you need tables for the queries to work with? ( turns back to Access to play with an Idea !!!) Ah Hah! Now I see how to do this: You build a bunch of queries in the 'real' database, one for each table, and make them all SnapShot queries. Then import all of the queries to an empty database, open each of the queries and change the source database property from "(current)" to the path to the actual database BE. Now all the queries return read-only data, and the FE has no tables at all. Neat! However, the user's also now know where the real data is located (by reading the source database property), so what's going to stop them from linking directly to the tables ... Access user security. :-) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, March 11, 2005 11:52 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > Yes, but I was discussing a system where the user has their own FE just > for > building their own custom queries. Thus you set up no access to tables, > plus read-only queries for all tables needed. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, March 11, 2005 11:40 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > > If you want to use Access security to deny access to the tables (for > writing) then you would also have to have all the other queries used by > forms etc. be set up as RWOP (Run With Owners Permissions) so that the > queries used for updating data will be able to do so. But then you are > back > to square one. How to prevent the users using the RWOP queries to gain > access to the tables to change the data? > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > Sent: Friday, March 11, 2005 6:51 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Automating parameterized action queries..... > > > > BTW, you can create base queries, one for each table, which simply do > > a SELECT * FROM TBLX. Then open the properties for the query and make > > it a snapshot query. Now have them use those base queries instead of > > using the table directly. Because the base queries are snapshot > > queries, no data can be changed. > > > > If they go around those queries to use the tables all bets are off. > > You could of course use Access security to give them access to the > > queries but not the tables. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 11 12:52:07 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 Mar 2005 10:52:07 -0800 Subject: [AccessD] OT - Drawing Viewers Message-ID: I use Irfanview, and those two file types are not included in the list in 3.95. However, since I don't know what those file types *are*, I doubt that I will miss them. ;-> Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marcus at tsstech.com Fri Mar 11 13:14:17 2005 From: marcus at tsstech.com (Scott Marcus) Date: Fri, 11 Mar 2005 14:14:17 -0500 Subject: [AccessD] OT - Drawing Viewers Message-ID: You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 11 13:48:14 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 Mar 2005 11:48:14 -0800 Subject: [AccessD] OT - Drawing Viewers Message-ID: And you can't beat the price, since it's free. Charlotte Foust -----Original Message----- From: Scott Marcus [mailto:marcus at tsstech.com] Sent: Friday, March 11, 2005 11:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Drawing Viewers You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 11 14:09:42 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Mar 2005 21:09:42 +0100 Subject: [AccessD] OT - Drawing Viewers Message-ID: Hi Charlotte Well, read carefully - for corporate use Irfan requests a fee. I asked him how much and that is a modest EUR 10 (~USD 14), not much but not free: Ok, here the prices/infos: IrfanView pricing (in EURO, net): 1 to 10 users: 10.00 each 11 to 50 users: 9.00 each 51 to 100 users: 8.50 each /gustav >>> cfoust at infostatsystems.com 11-03-2005 20:48:14 >>> And you can't beat the price, since it's free. Charlotte Foust -----Original Message----- From: Scott Marcus [mailto:marcus at tsstech.com] Sent: Friday, March 11, 2005 11:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Drawing Viewers You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- From martyconnelly at shaw.ca Fri Mar 11 15:17:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 11 Mar 2005 13:17:41 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B588C@stekelbes.ithelps.local> Message-ID: <42320AF5.60600@shaw.ca> This is a lot easier to handle in VB.net http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationregioninfoclassisocurrencysymboltopic.asp with System.Globalization.RegionInfo Class CurrencySymbol ISOCurrencySymbol Here is a list of all the currency symbols three characters ISO 4217 Currency names and code elements http://www.iso.org/iso/en/prods-services/popstds/currencycodeslist.html?printable=true Erwin Craps - IT Helps wrote: >Had to do this many times in W95/98 with early EURO migrations.... > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >- Beach Access Software >Sent: Friday, March 11, 2005 3:12 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Currency Display > >Erwin: > >I can't believe it. It works! What a dope I feel like! Who'd have >believed that they'd implement a not in list for that field? > >Anyway. Thanks. That solves a big problem. > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > >----- Original Message ----- >From: "Erwin Craps - IT Helps" >To: "Access Developers discussion and problem solving" > >Sent: Friday, March 11, 2005 12:52 AM >Subject: RE: [AccessD] OT: Currency Display > > > > >>I know >>But dont click on the combo box, just type any text you want in the >>field... >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >Smolin > > >>- Beach Access Software >>Sent: Friday, March 11, 2005 1:01 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Currency Display >> >>Erwin: >> >>The button next to the language selection is labeled Customize and >> >> >opens > > >>a dialog box where you can select a currency symbol from a combo box, >>but that only shows R, $ and the euro symbol. No option on my system >> >> >to > > >>input your own symbol. Do you have that option on your system? >> >>Thanks and Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >>----- Original Message ----- >>From: "Erwin Craps - IT Helps" >>To: "Access Developers discussion and problem solving" >> >>Sent: Thursday, March 10, 2005 1:46 PM >>Subject: RE: [AccessD] OT: Currency Display >> >> >> >> >>>In the regional settings you can choose English sout Africa and you >>> >>> >>will >> >> >>>have a R as prefix. >>>If you really want RSh you can click on the buttom next to it >>> >>> >>(change?) >> >> >>>and just type anything you want in curency symbol... >>>However, this would be necesary on every computer. >>> >>>Erwin >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>> >>> >>Smolin >> >> >>>- Beach Access Software >>>Sent: Thursday, March 10, 2005 10:13 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] OT: Currency Display >>> >>>What I may have to do is add a new option to my Preferences form - >>>Currency symbol. Ack. >>> >>>Rocky >>> >>>----- Original Message ----- >>>From: "MartyConnelly" >>>To: "Access Developers discussion and problem solving" >>> >>>Sent: Thursday, March 10, 2005 10:00 AM >>>Subject: Re: [AccessD] OT: Currency Display >>> >>> >>> >>> >>>>Or maybe a display format like >>>> >>>>#,00"RSh"; -#,00"RSh" >>>> >>>>Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>>>Dear List: >>>>> >>>>>This is really a Windows question, I believe. >>>>>I have a prospect in Kenya who needs the currency fields to display >>>>> >>>>> >>>RSh >>> >>> >>>>>instead of $. In the regional and language settings there are >>>>> >>>>> >>several >> >> >>>>>selections for English, like Zimbabwe which displays Z$ for the >>>>> >>>>> >>>currency >>> >>> >>>>>field. You can also customize the currency symbol but only $ and >>>>> >>>>> >the > > >>>euro >>> >>> >>>>>symbol are in my combo box. >>>>> >>>>>Does anyone know how to customize this setting so I can display RSh? >>>>> >>>>>MTIA, >>>>> >>>>>Rocky Smolin >>>>>Beach Access Software >>>>>http://www.e-z-mrp.com >>>>>858-259-4334 >>>>> >>>>> >>>>> >>>>-- >>>>Marty Connelly >>>>Victoria, B.C. >>>>Canada >>>> >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Mar 11 16:26:21 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 11 Mar 2005 14:26:21 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B588C@stekelbes.ithelps.local> Message-ID: <42321B0D.7060303@shaw.ca> Here is another way via LCID to get a possible currency symbol Note difference in call to systemdefault and userdefault Mine is US for system but Canada for User If you want to get into the horrors , shudder, of say the thousand seperator symbols and differences in placement of - negative numbers for various currencies see Randy Birch's method http://vbnet.mvps.org/index.html?code/locale/index.html I notice if you choose Swahili which is Kenya's national language as opposed to English the Official language it uses an S as the currency symbol. But swahili is spoken in about 6 other countries Private Declare Function GetThreadLocale Lib "kernel32" () As Long Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long Declare Function GetUserDefaultLCID Lib "kernel32" () As Long Private Declare Function GetLocaleInfo Lib "kernel32" _ Alias "GetLocaleInfoA" _ (ByVal Locale As Long, _ ByVal LCType As Long, _ ByVal lpLCData As String, _ ByVal cchData As Long) As Long Const LOCALE_ILANGUAGE As Long = &H1 'language id Const LOCALE_SLANGUAGE As Long = &H2 'localized name of lang Const LOCALE_SENGLANGUAGE As Long = &H1001 'English name of lang Const LOCALE_SABBREVLANGNAME As Long = &H3 'abbreviated lang name Const LOCALE_SNATIVELANGNAME As Long = &H4 'native name of lang Const LOCALE_ICOUNTRY As Long = &H5 'country code Const LOCALE_SCOUNTRY As Long = &H6 'localized name of country Const LOCALE_SENGCOUNTRY As Long = &H1002 'English name of country Const LOCALE_SABBREVCTRYNAME As Long = &H7 'abbreviated country name Const LOCALE_SNATIVECTRYNAME As Long = &H8 'native name of country Const LOCALE_SINTLSYMBOL As Long = &H15 'intl monetary symbol Const LOCALE_SCURRENCY As Long = &H14 'local monetary symbol Const LOCALE_IDEFAULTLANGUAGE As Long = &H9 'def language id Const LOCALE_IDEFAULTCOUNTRY As Long = &HA 'def country code Const LOCALE_IDEFAULTCODEPAGE As Long = &HB 'def oem code page Const LOCALE_IDEFAULTANSICODEPAGE As Long = &H1004 'def ansi code page Const LOCALE_IDEFAULTMACCODEPAGE As Long = &H1011 'def mac code page Const LOCALE_IMEASURE As Long = &HD '0 = metric, 1 = US '#if(WINVER >= &H0400) Const LOCALE_SISO639LANGNAME As Long = &H59 'ISO abbreviated language name Const LOCALE_SISO3166CTRYNAME As Long = &H5A 'ISO abbreviated country name '#endif /* WINVER >= as long = &H0400 */ '#if(WINVER >= &H0500) Const LOCALE_SNATIVECURRNAME As Long = &H1008 'native name of currency Const LOCALE_IDEFAULTEBCDICCODEPAGE As Long = &H1012 'default ebcdic code Page Const LOCALE_SSORTNAME As Long = &H1013 'sort name '#endif /* WINVER >= &H0500 */ Dim LCID As Long Sub test() Debug.Print GetCurrencyName Debug.Print GetLanguageName Debug.Print GetCountryName Debug.Print GetCurrencySymbol Debug.Print GetLocalCurrencySymbol End Sub '-----------------------------?------------------------------?---------------- Public Function GetUserLocaleInfo(ByVal dwLocaleID As Long, ByVal dwLCType As Long) _ As String '-----------------------------?------------------------------?---------------- Dim sReturn As String Dim r As Long 'call the function passing the Locale type 'variable to retrieve the required size of 'the string buffer needed r = GetLocaleInfo(dwLocaleID, dwLCType, sReturn, Len(sReturn)) 'if successful.. If r Then 'pad the buffer with spaces sReturn = Space$(r) 'and call again passing the buffer r = GetLocaleInfo(dwLocaleID, dwLCType, sReturn, Len(sReturn)) 'if successful (r > 0) If r Then 'r holds the size of the string 'including the terminating null GetUserLocaleInfo = Left$(sReturn, r - 1) End If End If End Function '-----------------------------?------------------------------?---------------- Public Function GetLanguageName() '-----------------------------?------------------------------?---------------- LCID = GetSystemDefaultLCID() GetLanguageName = GetUserLocaleInfo(LCID, LOCALE_SENGLANGUAGE) End Function Public Function GetCurrencyName() '-----------------------------?------------------------------?---------------- LCID = GetSystemDefaultLCID() GetCurrencyName = GetUserLocaleInfo(LCID, LOCALE_SNATIVECURRNAME) End Function Public Function GetCountryName() '-----------------------------?------------------------------?--------------- 'LCID = GetSystemDefaultLCID() LCID = GetUserDefaultLCID() GetCountryName = GetUserLocaleInfo(LCID, LOCALE_SNATIVECTRYNAME) End Function Public Function GetCurrencySymbol() '-----------------------------?------------------------------?---------------- 'LCID = GetSystemDefaultLCID() LCID = GetUserDefaultLCID() GetCurrencySymbol = GetUserLocaleInfo(LCID, LOCALE_SINTLSYMBOL) End Function Public Function GetLocalCurrencySymbol() '-----------------------------?------------------------------?---------------- 'LCID = GetSystemDefaultLCID() LCID = GetUserDefaultLCID() GetLocalCurrencySymbol = GetUserLocaleInfo(LCID, LOCALE_SCURRENCY) End Function Erwin Craps - IT Helps wrote: >Had to do this many times in W95/98 with early EURO migrations.... > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >- Beach Access Software >Sent: Friday, March 11, 2005 3:12 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Currency Display > >Erwin: > >I can't believe it. It works! What a dope I feel like! Who'd have >believed that they'd implement a not in list for that field? > >Anyway. Thanks. That solves a big problem. > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > >----- Original Message ----- >From: "Erwin Craps - IT Helps" >To: "Access Developers discussion and problem solving" > >Sent: Friday, March 11, 2005 12:52 AM >Subject: RE: [AccessD] OT: Currency Display > > > > >>I know >>But dont click on the combo box, just type any text you want in the >>field... >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >Smolin > > >>- Beach Access Software >>Sent: Friday, March 11, 2005 1:01 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Currency Display >> >>Erwin: >> >>The button next to the language selection is labeled Customize and >> >> >opens > > >>a dialog box where you can select a currency symbol from a combo box, >>but that only shows R, $ and the euro symbol. No option on my system >> >> >to > > >>input your own symbol. Do you have that option on your system? >> >>Thanks and Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >>----- Original Message ----- >>From: "Erwin Craps - IT Helps" >>To: "Access Developers discussion and problem solving" >> >>Sent: Thursday, March 10, 2005 1:46 PM >>Subject: RE: [AccessD] OT: Currency Display >> >> >> >> >>>In the regional settings you can choose English sout Africa and you >>> >>> >>will >> >> >>>have a R as prefix. >>>If you really want RSh you can click on the buttom next to it >>> >>> >>(change?) >> >> >>>and just type anything you want in curency symbol... >>>However, this would be necesary on every computer. >>> >>>Erwin >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>> >>> >>Smolin >> >> >>>- Beach Access Software >>>Sent: Thursday, March 10, 2005 10:13 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] OT: Currency Display >>> >>>What I may have to do is add a new option to my Preferences form - >>>Currency symbol. Ack. >>> >>>Rocky >>> >>>----- Original Message ----- >>>From: "MartyConnelly" >>>To: "Access Developers discussion and problem solving" >>> >>>Sent: Thursday, March 10, 2005 10:00 AM >>>Subject: Re: [AccessD] OT: Currency Display >>> >>> >>> >>> >>>>Or maybe a display format like >>>> >>>>#,00"RSh"; -#,00"RSh" >>>> >>>>Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>>>Dear List: >>>>> >>>>>This is really a Windows question, I believe. >>>>>I have a prospect in Kenya who needs the currency fields to display >>>>> >>>>> >>>RSh >>> >>> >>>>>instead of $. In the regional and language settings there are >>>>> >>>>> >>several >> >> >>>>>selections for English, like Zimbabwe which displays Z$ for the >>>>> >>>>> >>>currency >>> >>> >>>>>field. You can also customize the currency symbol but only $ and >>>>> >>>>> >the > > >>>euro >>> >>> >>>>>symbol are in my combo box. >>>>> >>>>>Does anyone know how to customize this setting so I can display RSh? >>>>> >>>>>MTIA, >>>>> >>>>>Rocky Smolin >>>>>Beach Access Software >>>>>http://www.e-z-mrp.com >>>>>858-259-4334 >>>>> >>>>> >>>>> >>>>-- >>>>Marty Connelly >>>>Victoria, B.C. >>>>Canada >>>> >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Fri Mar 11 16:26:36 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Mar 2005 14:26:36 -0800 Subject: [AccessD] OT - Drawing Viewers In-Reply-To: Message-ID: <0ID70002HL0ADC@l-daemon> Hi Karen: There is a program that can be downloaded from Macromedia that scans pictures properties, once uploaded and can determine the size. I used it on a site, designed in cold-fusion, that would prompt a user to re- and re-send set their picture if it was too large. I can not remember the details but will look it up if it sounds like what you need. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 12 00:51:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Mar 2005 22:51:10 -0800 Subject: [AccessD] OT Is ther a way to certified, notorized or digital signed an email document? In-Reply-To: <42321B0D.7060303@shaw.ca> Message-ID: <0ID800H8W8D7F1@l-daemon> Hi All: I have run into a bit of an issue with a client and their Domain registration. I was called in after the company that held the DNS went broke and the client's site when off line. Fortunately, the company that handled the actual Domain registration was unaffected. Another twist to this tale is that the Administration contact person was not the actual site owner but a friend. The friend has since left town and has traveled back east and is no longer checking her emails...(She may have abandoned her email as it was through a Shaw a cable provider.) In order to update or relocate the site the request has to be validated through the Administration Contact person's email. See the reply upon requesting an email change from the administration of the Domain Registrar. I wish I could, but ICANN rules forbid us from doing that, and they could shut us down if we change domain details without a signed letter of authorization from the legal registrant :( The question is, is there a way to pass a certified, registered and possibly notarized legal document through email? Now this is a good security question. MTIA Jim From Gustav at cactus.dk Sat Mar 12 03:39:36 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 12 Mar 2005 10:39:36 +0100 Subject: [AccessD] OT Is ther a way to certified,notorized or digital signed an email document? Message-ID: Hi Jim Things happen and all we need to do here in such cases is to mail or fax this properly signed and confirmed letter of authorization to the registrar. Of course, if the registrar accepts digitally signed email, that could be uses as well if you have a digital signature issued by a certifier accepted by the registrar. /gustav >>> accessd at shaw.ca 12-03-2005 07:51:10 >>> Hi All: I have run into a bit of an issue with a client and their Domain registration. I was called in after the company that held the DNS went broke and the client's site when off line. Fortunately, the company that handled the actual Domain registration was unaffected. Another twist to this tale is that the Administration contact person was not the actual site owner but a friend. The friend has since left town and has traveled back east and is no longer checking her emails...(She may have abandoned her email as it was through a Shaw a cable provider.) In order to update or relocate the site the request has to be validated through the Administration Contact person's email. See the reply upon requesting an email change from the administration of the Domain Registrar. I wish I could, but ICANN rules forbid us from doing that, and they could shut us down if we change domain details without a signed letter of authorization from the legal registrant :( The question is, is there a way to pass a certified, registered and possibly notarized legal document through email? Now this is a good security question. MTIA Jim From ssharkins at bellsouth.net Sat Mar 12 07:53:17 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 12 Mar 2005 08:53:17 -0500 Subject: [AccessD] I know it's not Friday anymore, but... Message-ID: <20050312135318.NINP7187.imf18aec.mail.bellsouth.net@SUSANONE> http://www.clientcopia.com/top.php Susan H. From Gustav at cactus.dk Sat Mar 12 08:30:02 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 12 Mar 2005 15:30:02 +0100 Subject: [AccessD] I know it's not Friday anymore, but... Message-ID: Thanks Susan! My favorites are #18 and #4. /gustav >>> ssharkins at bellsouth.net 12-03-2005 14:53:17 >>> http://www.clientcopia.com/top.php Susan H. From andy at minstersystems.co.uk Sat Mar 12 08:37:17 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 12 Mar 2005 14:37:17 -0000 Subject: [AccessD] I know it's not Friday anymore, but... In-Reply-To: Message-ID: <004001c52710$fda3fd30$b274d0d5@minster33c3r25> I like 10. Surreal. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 12 March 2005 14:30 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] I know it's not Friday anymore, but... > > > Thanks Susan! > > My favorites are #18 and #4. > > /gustav > > >>> ssharkins at bellsouth.net 12-03-2005 14:53:17 >>> > http://www.clientcopia.com/top.php > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From accessd at shaw.ca Sat Mar 12 10:00:55 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 12 Mar 2005 08:00:55 -0800 Subject: [AccessD] I know it's not Friday anymore, but... In-Reply-To: <20050312135318.NINP7187.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <0ID80090EXTH29@l-daemon> Susan...Very funny. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, March 12, 2005 5:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] I know it's not Friday anymore, but... http://www.clientcopia.com/top.php Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 12 10:04:37 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 12 Mar 2005 08:04:37 -0800 Subject: [AccessD] OT Is ther a way to certified,notorized or digital signed an email document? In-Reply-To: Message-ID: <0ID8006CMXZMUG@l-daemon> Hi Gustav: I had forgotten about faxes. I will send off an email to the ISP and see what they will accept. Thanks for the info Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 12, 2005 1:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT Is ther a way to certified,notorized or digital signed an email document? Hi Jim Things happen and all we need to do here in such cases is to mail or fax this properly signed and confirmed letter of authorization to the registrar. Of course, if the registrar accepts digitally signed email, that could be uses as well if you have a digital signature issued by a certifier accepted by the registrar. /gustav >>> accessd at shaw.ca 12-03-2005 07:51:10 >>> Hi All: I have run into a bit of an issue with a client and their Domain registration. I was called in after the company that held the DNS went broke and the client's site when off line. Fortunately, the company that handled the actual Domain registration was unaffected. Another twist to this tale is that the Administration contact person was not the actual site owner but a friend. The friend has since left town and has traveled back east and is no longer checking her emails...(She may have abandoned her email as it was through a Shaw a cable provider.) In order to update or relocate the site the request has to be validated through the Administration Contact person's email. See the reply upon requesting an email change from the administration of the Domain Registrar. I wish I could, but ICANN rules forbid us from doing that, and they could shut us down if we change domain details without a signed letter of authorization from the legal registrant :( The question is, is there a way to pass a certified, registered and possibly notarized legal document through email? Now this is a good security question. MTIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Mar 12 10:07:43 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 12 Mar 2005 11:07:43 -0500 Subject: [AccessD] OT -- Word question Message-ID: <20050312160747.QYML14338.imf17aec.mail.bellsouth.net@SUSANONE> I'm looking for a macro that counts words on a single page and prints the results. Anyone have something I could adapt? Susan H. From scapistrant at symphonyinfo.com Sat Mar 12 12:19:31 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Sat, 12 Mar 2005 12:19:31 -0600 Subject: [AccessD] Listing open forms Message-ID: <855499653F55AD4190B242717DF132BC04EF2F@dewey.Symphony.local> Gang, I'm interested in displaying a list of open forms, allowing the user to toggle among currently open forms (but not any . Using the built in Windows menu is not an option because it exposes things I don't want the user messing with (e.g. Unhide...). I can alter the built in Windows menu to exclude unwanted items, but that is a global setting, affecting ALL Access apps. Option 1. Create a custom version of the WINDOWS menu on an Access menu bar. But I can't figure out how to reproduce the built in feature; its not a fixed "item" on the list with code I can copy. Also, how would I limit the objects to forms only? Option 2. Create a popup form, which can be called from any context, containing a listbox showing all open forms. This is my second choice, but acceptable if necessary. I assume it involves looping through the forms collection and applying an IsLoaded() function. Any tips or hints? Thanks. Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com From bchacc at san.rr.com Sat Mar 12 13:09:06 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 12 Mar 2005 11:09:06 -0800 Subject: [AccessD] Listing open forms References: <855499653F55AD4190B242717DF132BC04EF2F@dewey.Symphony.local> Message-ID: <00cf01c52736$f68d9bc0$6601a8c0@HAL9002> Steve: I think AllForms collection may be helpful. From the Access 2000 (usually totally bogus but in this case was actually some) Help: AllForms Collection Example The following example prints the name of each open AccessObject object in the AllForms collection. Sub AllForms() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject ' Search for open AccessObject objects in AllForms collection. For Each obj In dbs.AllForms If obj.IsLoaded = TRUE then ' Print name of obj. Debug.Print obj.Name End If Next obj End SubYou could use this to create a source for a combo box or a list box of all the loaded forms. I would use .Visible = True and False to hide and show the forms.HTHRocky SmolinBeach Access Softwarehttp://www.e-z-mrp.com858-259-4334----- Original Message ----- From: "Steve Capistrant" To: "Access Developers discussion and problem solving" Sent: Saturday, March 12, 2005 10:19 AM Subject: [AccessD] Listing open forms > Gang, > > I'm interested in displaying a list of open forms, allowing the user to > toggle among currently open forms (but not any . Using the built in > Windows menu is not an option because it exposes things I don't want the > user messing with (e.g. Unhide...). I can alter the built in Windows > menu to exclude unwanted items, but that is a global setting, affecting > ALL Access apps. > > Option 1. Create a custom version of the WINDOWS menu on an Access menu > bar. But I can't figure out how to reproduce the built in feature; its > not a fixed "item" on the list with code I can copy. Also, how would I > limit the objects to forms only? > > Option 2. Create a popup form, which can be called from any context, > containing a listbox showing all open forms. This is my second choice, > but acceptable if necessary. I assume it involves looping through the > forms collection and applying an IsLoaded() function. > > Any tips or hints? Thanks. > > Steve Capistrant > scapistrant at symphonyinfo.com > Symphony Information Services > 7308 Aspen Lane North, Suite 132 > Brooklyn Park, MN 55428 > 763-391-7400 > www.symphonyinfo.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kathryn at bassett.net Sat Mar 12 16:48:27 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sat, 12 Mar 2005 14:48:27 -0800 Subject: [AccessD] 2000 vs 97 - trim error Message-ID: <20050312224830.1B9153FC05@omta16.mta.everyone.net> Friend has Access97, and the data she's been using for a couple years now has been working fine. She received a new grouping of people, so I brought her 97 home, opened with 2k, imported and set up the new table (members), made a query and set up one of the reports. Everything working fine in 2k. Did the save to previous version, went to her house and put back on computer. Queries and forms work fine, but when I tried to do reports, the all give me this trim error. http://www.ourwebsite.org/storage/misc/trimerror1.jpg and here is what the design view looks like http://www.ourwebsite.org/storage/misc/trimerror2.jpg All the reports are similar, and give the same error, even though I never touched them. So it must be something about taking from 97 to 2k and back again that messed things up. What's wrong and how do I fix? If you need to see the actual mdb, I've zipped both versions and put them here: http://www.ourwebsite.org/storage/misc/pgch.zip Thanks, -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From martyconnelly at shaw.ca Sat Mar 12 18:17:31 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 16:17:31 -0800 Subject: [AccessD] OT -- Word question References: <20050312160747.QYML14338.imf17aec.mail.bellsouth.net@SUSANONE> Message-ID: <4233869B.9070206@shaw.ca> Don't know if you want from Word or a text file I suppose you could copy and paste a single page then run this macro Sub FullWordcount() 'intrinsic Word Count function does not count words in text boxes ' this also counts words in text boxes Dim Wordcount As Long Wordcount = ActiveDocument.BuiltInDocumentProperties(wdPropertyWords) For Each ashape In ActiveDocument.Shapes If ashape.TextFrame.HasText Then Wordcount = Wordcount + ashape.TextFrame.TextRange.ComputeStatistics(Statistic:= wdStatisticWords) End If Next ashape MsgBox ("The document has " & Wordcount & " words") End Sub This method counts words approximately in a text string using RegExp, need reference to Microsoft Script Regular Expressions 5.5 I haven't tested for all possibilities but should be within shooting distance on count. There are too many exceptions. Heck in France Marie-Claire is one word; two words in English Sub testwordcount2() WordCount2 ("How many words.. are there in this user's dummy,,, multi line " & _ vbCrLf & "string.Count them.") WordCount2 (" the quick lazy dog ""dumb fink""!// ," & _ vbCrLf & vbLf & " eat's the cat") End Sub Function WordCount2(ByVal strSearch As String) As Long 'This replace all delimeters (punctuations, spaces,etc) with a 'space, trim the result string and and then count words. This will also take 'care of the string ending with puncutation or spaces Dim strPattern As String Dim ss As String Dim matches As VBScript_RegExp_55.MatchCollection Dim count As Long Dim myRegExp As New VBScript_RegExp_55.RegExp ss = "" ' pattern we want to use for replacement of junk characters ' by " " 'strPattern = "[\.:;,\s']" ' this doesn't take care of quotes strPattern = "[\.:;,\s""]" Set myRegExp = New RegExp myRegExp.Pattern = strPattern myRegExp.Global = True ss = myRegExp.Replace(strSearch, " ") Debug.Print ss ss = Trim(ss) strPattern = "\s+" myRegExp.Pattern = strPattern myRegExp.Global = True Set matches = myRegExp.Execute(ss) count = matches.count Debug.Print count + 1 & " words found
" WordCount2 = count End Function Susan Harkins wrote: >I'm looking for a macro that counts words on a single page and prints the >results. Anyone have something I could adapt? > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sat Mar 12 18:23:30 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 16:23:30 -0800 Subject: [AccessD] OT -- Word question References: <20050312160747.QYML14338.imf17aec.mail.bellsouth.net@SUSANONE> Message-ID: <42338802.5010905@shaw.ca> Whilest footling around with regular expressions I came across this Generic method to call Regular expressions from within Access Queries by John Nurick [Microsoft Access MVP] One interesting point is destroying the object after running the query since it otherwise stays in memory. 'START OF CODE Function rgxReplace(Optional Target As Variant, _ Optional Pattern As String = "", _ Optional Replacement As String = "", _ Optional CaseSensitive As Boolean = False, _ Optional ReplaceAll As Boolean = True, _ Optional Multiline As Boolean = False, _ Optional FailOnError As Boolean = True, _ Optional Persist As Boolean = True) _ As Variant 'Regular expression replacement function suitable for use 'in VBA generally and in Access queries. '-- from John Nurick [Microsoft Access MVP] 'Takes a search string (Target), a regular expression '(Pattern), and a replacement string (Replacement). 'If a substring of Target matches Pattern, that substring 'is replaced by Replacement. (The substring can be the whole 'of Target.) 'CaseSensitive matches regardless of case 'but does not affect the case of Replacement. 'ReplaceAll controls whether all substrings 'that match Pattern are replaced or only the first. 'Multiline controls whether a Target containing 'newlines is parsed as one multiline string or a 'succession of one-line strings. 'Persist controls whether the compiled RegExp object 'remains in memory ready for the next call to the 'function or whether it is disposed of immediately. This 'means the function can be used in queries without having 'to create, compile, use and destroy 'a new RegExp object for each row being processed. 'But it also means that the object remains in memory 'after the query has run. To destroy the object and release 'the memory, call this function one last time with no arguments. ' 'Calling the function with different arguments (e.g. a new 'Pattern and/or Replacement) recompiles the RegExp object, so 'the function can be used in different queries. However there 'may be problems if two threads are calling the function at 'the same time. Const rgxPROC_NAME = "rgxReplace" Static oRE As Object 'Static declaration means we don't have to create 'and compile the RegExp object every time the function 'is called. On Error GoTo ErrHandler rgxReplace = Null 'Default return value 'NB: if FailOnError is false, returns Null on error If IsMissing(Target) Then 'This is the signal to dispose of oRE Set oRE = Nothing Exit Function 'with default value End If 'Create the RegExp object if necessary If oRE Is Nothing Then Set oRE = CreateObject("VBScript.Regexp") End If With oRE 'Check whether the current arguments (other than Target) 'are different from those stored in oRE, and update them '(thereby recompiling the regex) only if necessary. If CaseSensitive = .ignoreCase Then .ignoreCase = Not .ignoreCase End If If ReplaceAll <> .Global Then .Global = ReplaceAll End If If Multiline <> .Multiline Then .Multiline = Multiline End If If Pattern <> .Pattern Then .Pattern = Pattern End If 'Finally, do the replacement If IsNull(Target) Then rgxReplace = Null Else rgxReplace = .Replace(CStr(Target), Replacement) End If End With 'Tidy up and normal exit If Not Persist Then Set oRE = Nothing Exit Function ErrHandler: If FailOnError Then With Err Select Case .Number 'Replace the default "object-defined error" message Case 13: .Description = "Type mismatch, probably because " _ & "the ""Target"" argument could not be converted to a string" Case 5017: .Description = "Syntax error in regular expression" Case 5018: .Description = "Unexpected quantifier in regular expression" Case 5019: .Description = "Expected ']' in regular expression" Case 5020: .Description = "Expected ')' in regular expression" Case Else If oRE Is Nothing Then 'Failed to create Regexp object .Description = "Could not create VBScript.RegExp object. " & _ Err.Description Else 'Unexpected error .Description = rgxPROC_NAME & ": " & .Description End If End Select Set oRE = Nothing .Raise Err.Number, rgxPROC_NAME, _ rgxPROC_NAME & "(): " & .Description End With Else 'Fail silently Err.Clear Set oRE = Nothing End If End Function 'END OF CODE Susan Harkins wrote: >I'm looking for a macro that counts words on a single page and prints the >results. Anyone have something I could adapt? > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sat Mar 12 18:57:38 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 16:57:38 -0800 Subject: [AccessD] 2000 vs 97 - trim error References: <20050312224830.1B9153FC05@omta16.mta.everyone.net> Message-ID: <42339002.6070807@shaw.ca> I opened up the 97 version mdb, reports are okay on my machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 It could be Service Packs or did you remember to do a full recompile of 2000 before converting to 97 Kathryn Bassett wrote: >Friend has Access97, and the data she's been using for a couple years now has been working fine. She received a new grouping of people, so I brought her 97 home, opened with 2k, imported and set up the new table (members), made a query and set up one of the reports. Everything working fine in 2k. Did the save to previous version, went to her house and put back on computer. Queries and forms work fine, but when I tried to do reports, the all give me this trim error. >http://www.ourwebsite.org/storage/misc/trimerror1.jpg and here is what the design view looks like >http://www.ourwebsite.org/storage/misc/trimerror2.jpg > >All the reports are similar, and give the same error, even though I never touched them. So it must be something about taking from 97 to 2k and back again that messed things up. What's wrong and how do I fix? > >If you need to see the actual mdb, I've zipped both versions and put them here: >http://www.ourwebsite.org/storage/misc/pgch.zip > >Thanks, > >-- >Kathryn Rhinehart Bassett (Pasadena CA) >"Genealogy is my bag" "GH is my soap" >kathryn at bassett.net >http://bassett.net > > > -- Marty Connelly Victoria, B.C. Canada From ksklos at comcast.net Sat Mar 12 19:22:48 2005 From: ksklos at comcast.net (Susan Klos) Date: Sat, 12 Mar 2005 20:22:48 -0500 Subject: [AccessD] Strange date question Message-ID: I have a beginning date and an ending date in my events table. I need to find out how many days in any given month that one or more events happened. For example, Event 1 Beginning Date 1/3/05 Ending date 1/3/05 Event 2 Beginning Date 1/3/05 Ending date 1/4/05 Event 3 Beginning Date 1/3/05 Ending date 1/8/05 Event 4 Beginning Date 1/6/05 Ending date 1/7/05 Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 My query, function, module, whatever works needs to tell me: between 1/1/05 and 1/11/05 events happened on 6 days. I can not figure out how to disinclude events if they happened within the beginning and ending date of other events. From kathryn at bassett.net Sat Mar 12 23:01:18 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sat, 12 Mar 2005 21:01:18 -0800 Subject: [AccessD] 2000 vs 97 - trim error In-Reply-To: <42339002.6070807@shaw.ca> Message-ID: <20050313050122.5A81B3FC83@omta16.mta.everyone.net> No recompile because I didn't use any macros etc so didn't think about it. Too late to do it in 2k as she's now making changed in 97 version. So, what menu and command needs to be one on the 97 version to "compile" it? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: 12 Mar 2005 4:58 pm > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2000 vs 97 - trim error > > I opened up the 97 version mdb, reports are okay on my > machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 > It could be Service Packs or did you remember to do a full > recompile of 2000 before converting to 97 > > > Kathryn Bassett wrote: > > >Friend has Access97, and the data she's been using for a > couple years now has been working fine. She received a new > grouping of people, so I brought her 97 home, opened with 2k, > imported and set up the new table (members), made a query and > set up one of the reports. Everything working fine in 2k. Did > the save to previous version, went to her house and put back > on computer. Queries and forms work fine, but when I tried to > do reports, the all give me this trim error. > >http://www.ourwebsite.org/storage/misc/trimerror1.jpg and > here is what > >the design view looks like > >http://www.ourwebsite.org/storage/misc/trimerror2.jpg > > > >All the reports are similar, and give the same error, even > though I never touched them. So it must be something about > taking from 97 to 2k and back again that messed things up. > What's wrong and how do I fix? > > > >If you need to see the actual mdb, I've zipped both versions > and put them here: > >http://www.ourwebsite.org/storage/misc/pgch.zip > > > >Thanks, > > > >-- > >Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my > bag" "GH is my > >soap" > >kathryn at bassett.net > >http://bassett.net > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sun Mar 13 01:16:11 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 13 Mar 2005 07:16:11 -0000 Subject: [AccessD] 2000 vs 97 - trim error In-Reply-To: <20050313050122.5A81B3FC83@omta16.mta.everyone.net> Message-ID: <005801c5279c$896646d0$b274d0d5@minster33c3r25> Kathryn Sounds to me like References. It's just not finding the Trim function. If you pu, say, a Left function in one I'll bet you get the same. Check the References. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kathryn Bassett > Sent: 13 March 2005 05:01 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] 2000 vs 97 - trim error > > > No recompile because I didn't use any macros etc so didn't > think about it. Too late to do it in 2k as she's now making > changed in 97 version. So, what menu and command needs to be > one on the 97 version to "compile" it? > > -- > Kathryn Rhinehart Bassett (Pasadena CA) > "Genealogy is my bag" "GH is my soap" > kathryn at bassett.net > http://bassett.net > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: 12 Mar 2005 4:58 pm > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] 2000 vs 97 - trim error > > > > I opened up the 97 version mdb, reports are okay on my > > machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 > > It could be Service Packs or did you remember to do a full > > recompile of 2000 before converting to 97 > > > > > > Kathryn Bassett wrote: > > > > >Friend has Access97, and the data she's been using for a > > couple years now has been working fine. She received a new > > grouping of people, so I brought her 97 home, opened with 2k, > > imported and set up the new table (members), made a query and > > set up one of the reports. Everything working fine in 2k. Did > > the save to previous version, went to her house and put back > > on computer. Queries and forms work fine, but when I tried to > > do reports, the all give me this trim error. > > >http://www.ourwebsite.org/storage/misc/trimerror1.jpg and > > here is what > > >the design view looks like > > >http://www.ourwebsite.org/storage/misc/trimerror2.jpg > > > > > >All the reports are similar, and give the same error, even > > though I never touched them. So it must be something about > > taking from 97 to 2k and back again that messed things up. > > What's wrong and how do I fix? > > > > > >If you need to see the actual mdb, I've zipped both versions > > and put them here: > > >http://www.ourwebsite.org/storage/misc/pgch.zip > > > > > >Thanks, > > > > > >-- > > >Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my > > bag" "GH is my > > >soap" > > >kathryn at bassett.net > > >http://bassett.net > > > > > > > > > > > > > -- > > Marty Connelly > > Victoria, B.C. > > Canada > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Sun Mar 13 01:16:11 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 13 Mar 2005 07:16:11 -0000 Subject: [AccessD] Listing open forms In-Reply-To: <855499653F55AD4190B242717DF132BC04EF2F@dewey.Symphony.local> Message-ID: <005901c5279c$89d13da0$b274d0d5@minster33c3r25> Steve Unless they've changed things in later versions the Forms collection is only open forms in A97. This shows them: Dim frm As Form ' Enumerate Forms collection. For Each frm In Forms ' Print name of form. Debug.Print frm.Name Next frm -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Capistrant > Sent: 12 March 2005 18:20 > To: Access Developers discussion and problem solving > Subject: [AccessD] Listing open forms > > > Gang, > > I'm interested in displaying a list of open forms, allowing > the user to toggle among currently open forms (but not any . > Using the built in Windows menu is not an option because it > exposes things I don't want the > user messing with (e.g. Unhide...). I can alter the built in Windows > menu to exclude unwanted items, but that is a global setting, > affecting ALL Access apps. > > Option 1. Create a custom version of the WINDOWS menu on an > Access menu bar. But I can't figure out how to reproduce the > built in feature; its not a fixed "item" on the list with > code I can copy. Also, how would I limit the objects to forms only? > > Option 2. Create a popup form, which can be called from any > context, containing a listbox showing all open forms. This > is my second choice, but acceptable if necessary. I assume > it involves looping through the forms collection and applying > an IsLoaded() function. > > Any tips or hints? Thanks. > > Steve Capistrant > scapistrant at symphonyinfo.com > Symphony Information Services > 7308 Aspen Lane North, Suite 132 > Brooklyn Park, MN 55428 > 763-391-7400 > www.symphonyinfo.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Sun Mar 13 01:19:33 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 23:19:33 -0800 Subject: [AccessD] 2000 vs 97 - trim error References: <20050313050122.5A81B3FC83@omta16.mta.everyone.net> Message-ID: <4233E985.4080702@shaw.ca> Just open up the code behind a report, there maybe no code there but there is still p-code attached to the form like the trim statement and save and compile all. But the error may have been the uncompiled code in the 2000 version causing it during a convert. To test just hit CTRL -G from database window and in debug window type ?Access.Application.IsCompiled For gory details on P-Code and canonical text (source code) in compilations http://www.trigeminal.com/usenet/usenet004.asp?1033 You might have to use the command line /decompile method to get things sorted out This will remove all the compiled p-code from the mdb go to Run and type in cmd then type in appropriate version of this line below or cut and paste to paste in the cmd window use a right click "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "D:\FullPathTothe\Database.mdb" /decompile Or Check her menu -- > help--> about Microsoft Access to see if form says Microsoft (R) Access 97 SR-2 Kathryn Bassett wrote: >No recompile because I didn't use any macros etc so didn't think about it. Too late to do it in 2k as she's now making changed in 97 version. So, what menu and command needs to be one on the 97 version to "compile" it? > >-- >Kathryn Rhinehart Bassett (Pasadena CA) >"Genealogy is my bag" "GH is my soap" >kathryn at bassett.net >http://bassett.net > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>MartyConnelly >>Sent: 12 Mar 2005 4:58 pm >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] 2000 vs 97 - trim error >> >>I opened up the 97 version mdb, reports are okay on my >>machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 >>It could be Service Packs or did you remember to do a full >>recompile of 2000 before converting to 97 >> >> >>Kathryn Bassett wrote: >> >> >> >>>Friend has Access97, and the data she's been using for a >>> >>> >>couple years now has been working fine. She received a new >>grouping of people, so I brought her 97 home, opened with 2k, >>imported and set up the new table (members), made a query and >>set up one of the reports. Everything working fine in 2k. Did >>the save to previous version, went to her house and put back >>on computer. Queries and forms work fine, but when I tried to >>do reports, the all give me this trim error. >> >> >>>http://www.ourwebsite.org/storage/misc/trimerror1.jpg and >>> >>> >>here is what >> >> >>>the design view looks like >>>http://www.ourwebsite.org/storage/misc/trimerror2.jpg >>> >>>All the reports are similar, and give the same error, even >>> >>> >>though I never touched them. So it must be something about >>taking from 97 to 2k and back again that messed things up. >>What's wrong and how do I fix? >> >> >>>If you need to see the actual mdb, I've zipped both versions >>> >>> >>and put them here: >> >> >>>http://www.ourwebsite.org/storage/misc/pgch.zip >>> >>>Thanks, >>> >>>-- >>>Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my >>> >>> >>bag" "GH is my >> >> >>>soap" >>>kathryn at bassett.net >>>http://bassett.net >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sun Mar 13 01:29:14 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 23:29:14 -0800 Subject: [AccessD] 2000 vs 97 - trim error References: <005801c5279c$896646d0$b274d0d5@minster33c3r25> Message-ID: <4233EBCA.4080006@shaw.ca> You could be right; might be pointing at DAO 3.6 from 2000 and DAO 3.51 for 97 Or a missing newer version of ADO if running on Win 95 Andy Lacey wrote: >Kathryn >Sounds to me like References. It's just not finding the Trim function. If >you pu, say, a Left function in one I'll bet you get the same. Check the >References. > >-- Andy Lacey >http://www.minstersystems.co.uk > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Kathryn Bassett >>Sent: 13 March 2005 05:01 >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] 2000 vs 97 - trim error >> >> >>No recompile because I didn't use any macros etc so didn't >>think about it. Too late to do it in 2k as she's now making >>changed in 97 version. So, what menu and command needs to be >>one on the 97 version to "compile" it? >> >>-- >>Kathryn Rhinehart Bassett (Pasadena CA) >>"Genealogy is my bag" "GH is my soap" >>kathryn at bassett.net >>http://bassett.net >> >> >> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>MartyConnelly >>>Sent: 12 Mar 2005 4:58 pm >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] 2000 vs 97 - trim error >>> >>>I opened up the 97 version mdb, reports are okay on my >>>machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 >>>It could be Service Packs or did you remember to do a full >>>recompile of 2000 before converting to 97 >>> >>> >>>Kathryn Bassett wrote: >>> >>> >>> >>>>Friend has Access97, and the data she's been using for a >>>> >>>> >>>couple years now has been working fine. She received a new >>>grouping of people, so I brought her 97 home, opened with 2k, >>>imported and set up the new table (members), made a query and >>>set up one of the reports. Everything working fine in 2k. Did >>>the save to previous version, went to her house and put back >>>on computer. Queries and forms work fine, but when I tried to >>>do reports, the all give me this trim error. >>> >>> >>>>http://www.ourwebsite.org/storage/misc/trimerror1.jpg and >>>> >>>> >>>here is what >>> >>> >>>>the design view looks like >>>>http://www.ourwebsite.org/storage/misc/trimerror2.jpg >>>> >>>>All the reports are similar, and give the same error, even >>>> >>>> >>>though I never touched them. So it must be something about >>>taking from 97 to 2k and back again that messed things up. >>>What's wrong and how do I fix? >>> >>> >>>>If you need to see the actual mdb, I've zipped both versions >>>> >>>> >>>and put them here: >>> >>> >>>>http://www.ourwebsite.org/storage/misc/pgch.zip >>>> >>>>Thanks, >>>> >>>>-- >>>>Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my >>>> >>>> >>>bag" "GH is my >>> >>> >>>>soap" >>>>kathryn at bassett.net >>>>http://bassett.net >>>> >>>> >>>> >>>> >>>> >>>-- >>>Marty Connelly >>>Victoria, B.C. >>>Canada >>> >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From colin.spence at centrelink.gov.au Sun Mar 13 08:02:13 2005 From: colin.spence at centrelink.gov.au (colin.spence at centrelink.gov.au) Date: Mon, 14 Mar 2005 01:02:13 +1100 Subject: [AccessD] Colin Spence/NSO/CSDA is out of the office. Message-ID: I will be out of the office starting 10/03/2005 and will not return until 29/03/2005. I will respond to your message when I return on 29/3/05. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From d.dick at uws.edu.au Sun Mar 13 23:33:56 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 14 Mar 2005 16:33:56 +1100 Subject: [AccessD] A2003:File copy copies an older version Message-ID: <200503140534.j2E5Y2lE007177@cooper.uws.edu.au> Hello all I have a routine that copies a file (Latest version of My App) from a network location to folder on the Users PC Everything works well The first time I ran the routine, the whole process took a bit less than a minute "That'll do" I thought - in relation to speed The next time I ran the routine (and subsequent times since) it only takes a few seconds This sounds good in theory, but I think it is only copying a version from 'cache' So the problem is. The first time this routine was run, if version 1.00 is on the network drive then that version ends up in 'cache' and is copied each and every time I run the routine Even if I have manually copied Version 1.10 to the network then run the routine. Version 1.00 is still being copied to and dropped into the local folder ARRRGGHH What is this? I have never experienced this behaviour and defeats the purpose of having An auto updater in my apps Is anyone familiar with this or do they know a way around it? Many thanks in advance Darren From accessd666 at yahoo.com Mon Mar 14 00:57:56 2005 From: accessd666 at yahoo.com (Sad Der) Date: Sun, 13 Mar 2005 22:57:56 -0800 (PST) Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: <014901c52667$13d54c80$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <20050314065756.76358.qmail@web31607.mail.mud.yahoo.com> Ken, thnx again...but I found out why it didn't return anything. A real DOH! moment :-) Here's the code from my class: If Not dtmNewBusinessDate = "00:00:00" Then mdtmNewBusinessDate = dtmNewBusinessDate End If Else NewBusinessDate = mdtmNewBusinessDate End If The IF NOT statement should always be true. So the code in the IF THEN statement is always executed...but then it doesn't return the value!!!!! it only does it in the ELSE part. DOH! Thnx. Btw I cannot use the Public oRptParam As NEW cReportParams line. Because it is possible that multiple reports are run within the same instance of a form...meaning that the object isn't destroyed and the last value is automagicly used. Regards, Sander --- Ken Ismert wrote: > > Sander: > > Your problem is with your date delimiters: use > #00:00:00# instead of > "00:00:00". This, by the way, is Microsoft Day 0, > which is 12/30/1899. > > You will have to change this segment of your code, > as well: > dtmNewBusinessDate = InputBox("Enter the new > business date:") > > You will need something like: > Dim sNewDate As String > sNewDate = InputBox("Enter the new business > date:") > If IsDate(sNewDate) Then > mdtmNewBusinessDate = CDate(sNewDate) > End If > > Also, a suggestion: > > If you use: > Public oRptParam As NEW cReportParams > > Then you can get rid of this business in your > functions: > If oRptParam Is Nothing Then > Set oRptParam = New cReportParams > blnDestroyRepParam = True > Else > blnDestroyRepParam = False > End If > ... > If blnDestroyRepParam Then > Set oRptParam = Nothing > End If > > The New keyword sets oRptParam to a new instance of > cReportParams > automatically on first reference. A single instance > of the object will > remain active until you exit or set it to nothing. > This seems to be a good > fit for your code here. I have used this technique > for years in many Access > programs with no ill effects. It is a documented and > valid part of the VBA > spec, and it has a place in your toolbox. > > -Ken > > Property Get NewBusinessDate() As Variant > Dim dtmNewBusinessDate As Date > > If mFormDriven Then > NewBusinessDate = mdtmNewBusinessDate > Else > If mdtmNewBusinessDate = "00:00:00" Then > 'I fill the InputBox with the value 22/02/2005 > dtmNewBusinessDate = InputBox("Enter the > new > business date:") > If Not dtmNewBusinessDate = "00:00:00" Then > mdtmNewBusinessDate = dtmNewBusinessDate > End If > Else > NewBusinessDate = mdtmNewBusinessDate > End If > End If > End Property __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From Erwin.Craps at ithelps.be Mon Mar 14 04:37:53 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 11:37:53 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B589D@stekelbes.ithelps.local> Hi group Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Erwin.Craps at ithelps.be Mon Mar 14 04:45:23 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 11:45:23 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B589E@stekelbes.ithelps.local> (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Gustav at cactus.dk Mon Mar 14 05:19:57 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Mar 2005 12:19:57 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin A union is an option. However, you could also open a recordset in VBA with the list properly ordered, then walk through this while counting. The result could be written to a temp table (they are not that dangerous) or - if you have control of the table and its design - set a mark on the selected records for later filtering. /gustav >>> Erwin.Craps at ithelps.be 14-03-2005 11:45:23 >>> (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin From erbachs at gmail.com Mon Mar 14 06:37:28 2005 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 14 Mar 2005 06:37:28 -0600 Subject: [AccessD] Strange date question In-Reply-To: References: Message-ID: <39cb22f3050314043768cb1f43@mail.gmail.com> Susan, So, in your example, if an Event begins on 1/9 and runs to 1/14, then you want your query to DISinclude it, is that right? That is, the starting and ending dates of the events must fall within the given range. I only had one other question: the "answer" you gave for your example query was 6 days. Isn't it 8 days? Steve Erbach Neenah, WI On Sat, 12 Mar 2005 20:22:48 -0500, Susan Klos wrote: > I have a beginning date and an ending date in my events table. I need to > find out how many days in any given month that one or more events happened. > For example, > Event 1 Beginning Date 1/3/05 Ending date 1/3/05 > Event 2 Beginning Date 1/3/05 Ending date 1/4/05 > Event 3 Beginning Date 1/3/05 Ending date 1/8/05 > Event 4 Beginning Date 1/6/05 Ending date 1/7/05 > Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 > > My query, function, module, whatever works needs to tell me: > between 1/1/05 and 1/11/05 events happened on 6 days. > I can not figure out how to disinclude events if they happened within the > beginning and ending date of other events. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marcus at tsstech.com Mon Mar 14 06:41:30 2005 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 14 Mar 2005 07:41:30 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Would something like this work (at least it does on my computer)? SELECT B.TheatreID, B.Movie, B.Tickets FROM tblBoxoffice AS B WHERE B.id In (SELECT TOP 30 A.id FROM tblBoxoffice AS A WHERE A.TheatreID=B.TheatreID ORDER BY A.TICKETS DESC) ORDER BY B.TheatreID, B.Tickets DESC; Tables: tblBoxoffice id autonumber Movie Text Tickets Long TheatreID Long tblTheatre id autonumber Theatre Text Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Monday, March 14, 2005 5:38 AM To: accessd at databaseadvisors.com Subject: [AccessD] TOP 30 for multiple theaters. Hi group Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marcus at tsstech.com Mon Mar 14 06:53:57 2005 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 14 Mar 2005 07:53:57 -0500 Subject: [AccessD] Strange date question Message-ID: Do you really mean how many events occurred on a given day? Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Klos Sent: Saturday, March 12, 2005 8:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Strange date question I have a beginning date and an ending date in my events table. I need to find out how many days in any given month that one or more events happened. For example, Event 1 Beginning Date 1/3/05 Ending date 1/3/05 Event 2 Beginning Date 1/3/05 Ending date 1/4/05 Event 3 Beginning Date 1/3/05 Ending date 1/8/05 Event 4 Beginning Date 1/6/05 Ending date 1/7/05 Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 My query, function, module, whatever works needs to tell me: between 1/1/05 and 1/11/05 events happened on 6 days. I can not figure out how to disinclude events if they happened within the beginning and ending date of other events. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marklbreen at gmail.com Mon Mar 14 07:56:06 2005 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 14 Mar 2005 13:56:06 +0000 Subject: [AccessD] TOP 30 for multiple theaters. In-Reply-To: References: Message-ID: Hello Erwin and Scott, Nice one Scott, Erwin, I am presuming at you do not have an Oracle backend, but if you do, here is an alternative to Scott's elegant sql -- This is for Oracle 8i SELECT * FROM ( SELECT tabtype,tname,ROW_NUMBER() OVER ( PARTITION BY tabtype ORDER BY tname DESC ) Top3 FROM tab ) WHERE Top3 <= 3 This does the same thing really, you can see that it looks for a result set OVER a partition of data. A nice way to handle it. I do not think that Jet supports anything like this, but do you guys know any similiar MS SQL ways to do this? Mark On Mon, 14 Mar 2005 07:41:30 -0500, Scott Marcus wrote: > Would something like this work (at least it does on my computer)? > > SELECT B.TheatreID, B.Movie, B.Tickets > FROM tblBoxoffice AS B > WHERE B.id In (SELECT TOP 30 A.id > FROM tblBoxoffice AS A > WHERE A.TheatreID=B.TheatreID > ORDER BY A.TICKETS DESC) > ORDER BY B.TheatreID, B.Tickets DESC; > > Tables: > > tblBoxoffice > id autonumber > Movie Text > Tickets Long > TheatreID Long > > tblTheatre > id autonumber > Theatre Text > > Scott Marcus > TSS Technologies, Inc. > marcus at tsstech.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - > IT Helps > Sent: Monday, March 14, 2005 5:38 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] TOP 30 for multiple theaters. > > Hi group > > Is it posible, and how do I do this to create a query with the folowing > result. > > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Mon Mar 14 09:07:13 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 14 Mar 2005 07:07:13 -0800 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B589E@stekelbes.ithelps.local> Message-ID: <007601c528a7$80e7ede0$6601a8c0@HAL9002> Erwin: It looks like a job for a summation query grouping on theatre and movie, count on tickets, and sum on box office. But that's too obvious. What's different about your requirement that it won't work that way? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: Sent: Monday, March 14, 2005 2:45 AM Subject: [AccessD] TOP 30 for multiple theaters. (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 14 10:55:03 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 Mar 2005 08:55:03 -0800 Subject: [AccessD] OT - Drawing Viewers Message-ID: Ah, I use it at home, so it doesn't apply. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, March 11, 2005 12:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT - Drawing Viewers Hi Charlotte Well, read carefully - for corporate use Irfan requests a fee. I asked him how much and that is a modest EUR 10 (~USD 14), not much but not free: Ok, here the prices/infos: IrfanView pricing (in EURO, net): 1 to 10 users: 10.00 each 11 to 50 users: 9.00 each 51 to 100 users: 8.50 each /gustav >>> cfoust at infostatsystems.com 11-03-2005 20:48:14 >>> And you can't beat the price, since it's free. Charlotte Foust -----Original Message----- From: Scott Marcus [mailto:marcus at tsstech.com] Sent: Friday, March 11, 2005 11:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Drawing Viewers You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Mon Mar 14 11:32:22 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 14 Mar 2005 12:32:22 -0500 Subject: [AccessD] Resize/zoom form Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A194@mercury.tnco-inc.com> Hi All, (Access 2000) I have a user that recently got a new 17" LCD monitor. As those of you familiar with LCDs know, they are designed to have an optimum resolution. Well, at this optimum resolution, this user has a hard time reading the text on the forms in my Access database. Is there away to zoom or expanded a form and all of its contents so that she can read the form easier? I don't want to make this change for everyone, but if there was some way to allow users to specify their preference for this one access database, that would be great. Any ideas? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From bchacc at san.rr.com Mon Mar 14 11:44:32 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 14 Mar 2005 09:44:32 -0800 Subject: [AccessD] Resize/zoom form References: <0CC84C9461AE6445AD5A602001C41C4B05A194@mercury.tnco-inc.com> Message-ID: <015401c528bd$7ae539a0$6601a8c0@HAL9002> Joe: I use the form resizing routings in the ADH2000. They work pretty well and will resize the form to fit the full screen. Rocky ----- Original Message ----- From: "Joe Rojas" To: "'Access Developers discussion and problem solving'" Sent: Monday, March 14, 2005 9:32 AM Subject: [AccessD] Resize/zoom form > Hi All, > > (Access 2000) > I have a user that recently got a new 17" LCD monitor. As those of you > familiar with LCDs know, they are designed to have an optimum resolution. > > Well, at this optimum resolution, this user has a hard time reading the > text > on the forms in my Access database. > Is there away to zoom or expanded a form and all of its contents so that > she > can read the form easier? > I don't want to make this change for everyone, but if there was some way > to > allow users to specify their preference for this one access database, that > would be great. > > Any ideas? > > Thanks, > JR > > > > > This electronic transmission is strictly confidential to TNCO, Inc. and > intended solely for the addressee. It may contain information which is > covered by legal, professional, or other privileges. If you are not the > intended addressee, or someone authorized by the intended addressee to > receive transmissions on behalf of the addressee, you must not retain, > disclose in any form, copy, or take any action in reliance on this > transmission. If you have received this transmission in error, please > notify > the sender as soon as possible and destroy this message. While TNCO, Inc. > uses virus protection, the recipient should check this email and any > attachments for the presence of viruses. TNCO, Inc. accepts no liability > for > any damage caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Mon Mar 14 11:46:21 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 14 Mar 2005 11:46:21 -0600 Subject: [AccessD] Resize/zoom form In-Reply-To: <29573457.1110821718726.JavaMail.root@sniper14> Message-ID: <002401c528bd$bc2a35a0$123a11d8@DANWATERS> Joe, Changing the resolution on an LCD monitor isn't optimum, but it isn't bad either. If this user can't see your forms, then perhaps everything is too small? My laptop has an optimum resolution of 1200 X 1600, but I change it to 1024 X 768 for presentations. Beforehand I explain about the 'fuzziness' and everyone is OK after that. If you go to Display Properties - Settings Tab - Advanced button, there is an option to increase the font size from normal (96 dpi) to larger (120 dpi). This increases the font size while maintaining the screen resolution. It helps me a lot because my screen is 1600 X 1200 on a 15" screen. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Monday, March 14, 2005 11:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Resize/zoom form Hi All, (Access 2000) I have a user that recently got a new 17" LCD monitor. As those of you familiar with LCDs know, they are designed to have an optimum resolution. Well, at this optimum resolution, this user has a hard time reading the text on the forms in my Access database. Is there away to zoom or expanded a form and all of its contents so that she can read the form easier? I don't want to make this change for everyone, but if there was some way to allow users to specify their preference for this one access database, that would be great. Any ideas? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Mar 14 13:09:26 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 14 Mar 2005 11:09:26 -0800 Subject: [AccessD] Resize/zoom form References: <0CC84C9461AE6445AD5A602001C41C4B05A194@mercury.tnco-inc.com> Message-ID: <4235E166.6050903@shaw.ca> Probably the quickest way is you could use Peter De Baets Shrinker Stretcher Addin ,5 licenses for $35 Demo with nag screens available. http://www.peterssoftware.com/ss.htm However I believe the methods are written up in Getz's ADH book For just a field it's Sub cmdZoom_Click() Screen.PreviousControl.SetFocu?s RunCommand acCmdZoomBox End Sub Joe Rojas wrote: >Hi All, > >(Access 2000) >I have a user that recently got a new 17" LCD monitor. As those of you >familiar with LCDs know, they are designed to have an optimum resolution. > >Well, at this optimum resolution, this user has a hard time reading the text >on the forms in my Access database. >Is there away to zoom or expanded a form and all of its contents so that she >can read the form easier? >I don't want to make this change for everyone, but if there was some way to >allow users to specify their preference for this one access database, that >would be great. > >Any ideas? > >Thanks, >JR > > > > >This electronic transmission is strictly confidential to TNCO, Inc. and >intended solely for the addressee. It may contain information which is >covered by legal, professional, or other privileges. If you are not the >intended addressee, or someone authorized by the intended addressee to >receive transmissions on behalf of the addressee, you must not retain, >disclose in any form, copy, or take any action in reliance on this >transmission. If you have received this transmission in error, please notify >the sender as soon as possible and destroy this message. While TNCO, Inc. >uses virus protection, the recipient should check this email and any >attachments for the presence of viruses. TNCO, Inc. accepts no liability for >any damage caused by any virus transmitted by this email. > > -- Marty Connelly Victoria, B.C. Canada From KIsmert at TexasSystems.com Mon Mar 14 13:23:59 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 14 Mar 2005 13:23:59 -0600 Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: <20050314065756.76358.qmail@web31607.mail.mud.yahoo.com> Message-ID: <01c001c528cb$5fe989e0$2a3ca8c0@TEXASSYSTEMS.COM> Sander, On this line: If Not dtmNewBusinessDate = "00:00:00" Then A date is never equal to a string; they are incompatible data types. Yet the code does work because the VBA interpreter attempts an implicit conversion of the string into a date, in order to compare apples to apples. The problem is, you can put any string value in this comparison. While: If Not dtmNewBusinessDate = "hello" Then compiles correctly, it will give a type mismatch error at runtime. But, this line: If Not dtmNewBusinessDate = #hello# Then will give you a syntax error when you compile. Implicit conversions are tricky because they rely on (largely undocumented) rules for variable coercion, which may not always work the way you expect. They also assume the reader understands that what you are writing is equivalent to: If Not dtmNewBusinessDate = CDate("00:00:00") Then Rather, be explicit: If Not dtmNewBusinessDate = #00:00:00# Then Or, better yet: Public Const GDT_Day0 As Date = 0 ... If Not dtmNewBusinessDate = GDT_Day0 Then -Ken Reference: See "Variant Data Type" section in: http://support.microsoft.com/kb/q110264/ -Ken From Erwin.Craps at ithelps.be Mon Mar 14 15:51:45 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 22:51:45 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B3@stekelbes.ithelps.local> I need a summation TOP 30 per theatre... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: It looks like a job for a summation query grouping on theatre and movie, count on tickets, and sum on box office. But that's too obvious. What's different about your requirement that it won't work that way? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: Sent: Monday, March 14, 2005 2:45 AM Subject: [AccessD] TOP 30 for multiple theaters. (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Mar 14 15:52:52 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 22:52:52 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B4@stekelbes.ithelps.local> I'll take a look in to this tomorow. I also need a sum but I supose that no prob. Let you know. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Monday, March 14, 2005 1:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Would something like this work (at least it does on my computer)? SELECT B.TheatreID, B.Movie, B.Tickets FROM tblBoxoffice AS B WHERE B.id In (SELECT TOP 30 A.id FROM tblBoxoffice AS A WHERE A.TheatreID=B.TheatreID ORDER BY A.TICKETS DESC) ORDER BY B.TheatreID, B.Tickets DESC; Tables: tblBoxoffice id autonumber Movie Text Tickets Long TheatreID Long tblTheatre id autonumber Theatre Text Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Monday, March 14, 2005 5:38 AM To: accessd at databaseadvisors.com Subject: [AccessD] TOP 30 for multiple theaters. Hi group Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Mar 14 16:04:00 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 14 Mar 2005 14:04:00 -0800 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B58B3@stekelbes.ithelps.local> Message-ID: <024601c528e1$ba4ba740$6601a8c0@HAL9002> Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice > Movietheatre X, movie 02 , tickets, boxoffice > Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice > Movietheatre X, movie 30 , tickets, boxoffice > Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice > Movietheatre Y, movie ... , tickets, boxoffice > Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice > Movietheatre Z, movie 01, tickets, boxoffice > Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice > Movietheatre Z, movie 29 , tickets, boxoffice > Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Mon Mar 14 18:48:37 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 11:48:37 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs Message-ID: <000a01c528f8$b9b73800$8001a8c0@user> Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net From cfoust at infostatsystems.com Mon Mar 14 18:55:50 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 Mar 2005 16:55:50 -0800 Subject: [AccessD] Urgent - missing Outllok in Refs Message-ID: Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 14 19:09:56 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 15 Mar 2005 12:09:56 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs In-Reply-To: <000a01c528f8$b9b73800$8001a8c0@user> Message-ID: <200503150110.j2F1A3lE014919@cooper.uws.edu.au> Hi Kath Need to have Outlook installed The Missing reference is something like "Microsoft Outlook XX Object Library" Usually lurks around C:\Program Files\Microsoft Office\Office XX\msoutl.OLB Where XX is the version NUmber Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 11:49 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 19:10:54 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 12:10:54 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: Message-ID: <001601c528fb$d673c1e0$8001a8c0@user> Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 19:17:26 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 12:17:26 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: <200503150110.j2F1A3lE014919@cooper.uws.edu.au> Message-ID: <002a01c528fc$c09fb990$8001a8c0@user> No - I have found that Darren - but there's obviously more to it..... ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Tuesday, March 15, 2005 12:09 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Hi Kath Need to have Outlook installed The Missing reference is something like "Microsoft Outlook XX Object Library" Usually lurks around C:\Program Files\Microsoft Office\Office XX\msoutl.OLB Where XX is the version NUmber Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 11:49 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 14 19:20:01 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 Mar 2005 17:20:01 -0800 Subject: [AccessD] Urgent - missing Outllok in Refs Message-ID: Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 19:41:43 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 12:41:43 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: Message-ID: <003a01c52900$24e7b170$8001a8c0@user> OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 21:26:16 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 14:26:16 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: Message-ID: <009d01c5290e$bff25d60$8001a8c0@user> Charlotte- I've re-installed the CDO under Outlook install options and restarted the system. After trying a few other things as well - removing references and adding them again for Outlook I am still crashing with 'Automation error - the specified module cannot be found' on this line - Set nms = appOutlook.getnamespace ("MAPI") I have a little more background on this new PC: - PC was bought from Dell with Word and Powerpoint 2003 installed. - Office 2000 was then installed by another person. - Only now has the user tested our Access app with Outlook. Any tips? ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 14 21:36:17 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 15 Mar 2005 14:36:17 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs In-Reply-To: <003a01c52900$24e7b170$8001a8c0@user> Message-ID: <200503150336.j2F3aOlE024816@cooper.uws.edu.au> Hi Kath I posted to Outlook Dev mail group re this one and they want to know What is the error message? How are you instantiating the objOutlook? Can I see the code? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 21:42:41 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 14:42:41 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: <200503150336.j2F3aOlE024816@cooper.uws.edu.au> Message-ID: <00b001c52911$0a8e06b0$8001a8c0@user> Thanks Darren - code is below: Error is 'automation error - module not found' on line: Set nms = appOutlook.getnamespace ("MAPI") Kath Public Function ProcessMailMessagesInFolder() 'Adapted by K Pelletti from code from Helen Feddema 3-28-2002 Dim strerrormsg As String On Error GoTo Err_Handler Dim appOutlook As New Outlook.Application Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Dim myfld As Outlook.MAPIFolder 'itm declared as object because a folder can contain different 'types of objects Dim itm As Object Dim msg As Outlook.MailItem Dim strMessage As String Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim strsql As String Dim prj As Object Dim lngItemCount As Long Dim IntFolderNo As Integer Dim IntTotalNoFoldersInInbox As Integer Dim IntNoMailItems As Integer Dim BoolFolderFound As Boolean BoolFolderFound = False Set nms = appOutlook.GetNamespace("MAPI") 'CRASHES HERE Set fld = nms.GetDefaultFolder(olFolderInbox) IntFolderNo = 0 IntTotalNoFoldersInInbox = 0 IntNoMailItems = 0 IntTotalNoFoldersInInbox = fld.Folders.Count ' MsgBox ("Inbox has: " & fld.Folders.Count & "subfolders.") Do Until IntFolderNo = IntTotalNoFoldersInInbox ' Inner loop. IntFolderNo = IntFolderNo + 1 Set myfld = fld.Folders(IntFolderNo) If myfld.Name = "Customer Inquiries" Then BoolFolderFound = True IntNoMailItems = myfld.Items.Count ' MsgBox ("No messages is: " & IntNoMailItems) Exit Do End If Loop If BoolFolderFound = False Then MsgBox ("Unable to find the Customer Inquiries Folder in Outlook." & vbCrLf & vbCrLf & "(The folder should be a subfolder of inbox.)"), , "Hudsons Database" GoTo Normal_exit End If If myfld Is Nothing Then GoTo Err_Handler End If Debug.Print "Folder default item type: " & myfld.DefaultItemType If myfld.DefaultItemType <> olMailItem Then MsgBox "Folder does not contain mail messages; Exiting", , "Importing Mail" GoTo Normal_exit End If lngItemCount = myfld.Items.Count ' Debug.Print "Number of messages in folder: " _ ' & lngItemCount If lngItemCount = 0 Then MsgBox ("There are no mail messages in the Customer Inquiries folder."), , "Hudsons Database" GoTo Normal_exit End If 'Process items in selected folder strsql = "DELETE * FROM tblOutlookMail" DoCmd.SetWarnings False DoCmd.RunSQL strsql Set dbs = CurrentDb Set rst = dbs.OpenRecordset("tblOutlookMail") For Each itm In myfld.Items If itm.Class = olMail Then Set msg = itm With rst .AddNew !Subject = msg.Subject !Body = msg.Body !CC = msg.CC !BCC = msg.BCC !Sent = msg.SentOn !FromName = msg.SenderName .Update End With End If Next itm rst.Close Set prj = Application.CurrentProject If prj.AllForms("frmOutlookMail").IsLoaded = True Then Forms("frmOutlookMail").Requery Else DoCmd.OpenForm "frmOutlookMail", , , , , acDialog End If 'Forms("frmOutlookMail").SetFocus Normal_exit: ' MsgBox ("No of new mail messages: " & IntNoMailItems), , "Mail Import" Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" hCursor = CursorID RetVal = SetCursor(hCursor) Resume Normal_exit End Function ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Tuesday, March 15, 2005 2:36 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Hi Kath I posted to Outlook Dev mail group re this one and they want to know What is the error message? How are you instantiating the objOutlook? Can I see the code? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 23:37:42 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 16:37:42 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: <200503150336.j2F3aOlE024816@cooper.uws.edu.au> Message-ID: <001f01c52921$1c85fd90$8001a8c0@user> For now I have suggested to the client that their installations of Office be uninstalled, Windows uninstalled, Windows reinstalled, then Office 2000 reinstalled and we take it from there..... Charlotte was right that CDO wasn't installed but I think that the fact that there were multiple instances of Office installed (out of order) may have made it unfixable...? Kath ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Tuesday, March 15, 2005 2:36 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Hi Kath I posted to Outlook Dev mail group re this one and they want to know What is the error message? How are you instantiating the objOutlook? Can I see the code? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 03:14:28 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 10:14:28 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B6@stekelbes.ithelps.local> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice > Movietheatre X, movie 02 , tickets, boxoffice > Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice > Movietheatre X, movie 30 , tickets, boxoffice > Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice > Movietheatre Y, movie ... , tickets, boxoffice > Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice > Movietheatre Z, movie 01, tickets, boxoffice > Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice > Movietheatre Z, movie 29 , tickets, boxoffice > Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 15 03:51:24 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 10:51:24 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice > Movietheatre X, movie 02 , tickets, boxoffice > Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice > Movietheatre X, movie 30 , tickets, boxoffice > Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice > Movietheatre Y, movie ... , tickets, boxoffice > Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice > Movietheatre Z, movie 01, tickets, boxoffice > Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice > Movietheatre Z, movie 29 , tickets, boxoffice > Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 04:12:20 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 11:12:20 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B8@stekelbes.ithelps.local> You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Mar 15 04:24:30 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 15 Mar 2005 10:24:30 -0000 Subject: [AccessD] Rtf to text Message-ID: <200503151015.j2FAF1x00462@smarthost.yourcomms.net> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard From Gustav at cactus.dk Tue Mar 15 04:24:35 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 11:24:35 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin Ha, so you are stubborn too! OK, if it must be a query so be it. I think Scott's query is close but it seems like he needs some real data as you now provide for testing. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 11:12:20 >>> You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin From Gustav at cactus.dk Tue Mar 15 04:26:29 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 11:26:29 +0100 Subject: [AccessD] Rtf to text Message-ID: Hi Richard The Text property of the RichTextBox contains the clean text. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard -- From R.Griffiths at bury.gov.uk Tue Mar 15 04:43:25 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 15 Mar 2005 10:43:25 -0000 Subject: [AccessD] Rtf to text Message-ID: <200503151033.j2FAXux01989@smarthost.yourcomms.net> Hi The RichTextBox does not have a text property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 15 March 2005 10:26 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Rtf to text Hi Richard The Text property of the RichTextBox contains the clean text. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 15 05:59:13 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 12:59:13 +0100 Subject: [AccessD] Rtf to text Message-ID: Hi Richard It does: Property Text As String Member of RichTextLib.RichTextBox Returns/sets the text contained in an object. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:43:25 >>> Hi The RichTextBox does not have a text property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 15 March 2005 10:26 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Rtf to text Hi Richard The Text property of the RichTextBox contains the clean text. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard From marcus at tsstech.com Tue Mar 15 06:53:03 2005 From: marcus at tsstech.com (Scott Marcus) Date: Tue, 15 Mar 2005 07:53:03 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marcus at tsstech.com Tue Mar 15 06:57:34 2005 From: marcus at tsstech.com (Scott Marcus) Date: Tue, 15 Mar 2005 07:57:34 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 07:25:27 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 14:25:27 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58BB@stekelbes.ithelps.local> Humpf, me almost offended ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 08:28:36 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 15:28:36 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58BE@stekelbes.ithelps.local> Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 2:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Humpf, me almost offended ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Mar 15 15:48:33 2005 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 15 Mar 2005 15:48:33 (MET) Subject: [AccessD] error in A2003 Message-ID: <200503151448.j2FEmXB7010017@mailhostC.plex.net> Hello Group, the following code worked fine in A97. After conversion to A2003, the code itself doesn't give a compiling error, but the .bat that it is calling does give an error; the parameterisation isn't correct. When using the .bat file directly, it is working fine. Who can help. Pedro Janssen Option Compare Database Option Explicit Function label() On Error GoTo label_Err Beep If MsgBox("Wilt U een testlabel printen?", vbYesNoCancel, "Testlabel") = vbYes Then Call Shell("c:\command.com /c c:\label2.bat", 2) Else Exit Function End If label_Exit: Exit Function label_Err: MsgBox Error$ Resume label_Exit End Function From bchacc at san.rr.com Tue Mar 15 09:01:11 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 15 Mar 2005 07:01:11 -0800 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B58B8@stekelbes.ithelps.local> Message-ID: <005201c5296f$d38e1560$6501a8c0@HAL9002> Erwin: Would a possible solution, (not well thought through, and involving some code) be to start with a query (actually a SQL statement as the record source for a recordset) that returns all the theatre names - unique values. In code loop through this recordset creating a new query to return the top thirty films for each theatre. 22 theatres, 22 queries. Finally, create another query in code that UNIONs all of the theater queries as the record source for the report. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 15, 2005 2:12 AM Subject: RE: [AccessD] TOP 30 for multiple theaters. > You not nice to me, now I'm crying :-( > But I want to solve this with a query, sniff, sniff... > > I'm not getting there with your SQL code Scott. > > I only get the result of the first week (each record is one week) and > not the sum for a year or a specific timeframe. > I changed the SQL string so the sub query is a group/sum query but then > I get errors saying that I only can have one field as a result. > > I created a small database to download from here: > http://www.ithelps.be/temp/BO_testA2K.mdb > > > HISTO_YearCalender is the table containing the data. > > As a result I need a movie TOP 30 per theatre based on the box office > figures > Theatre = CUST_GID > Movie = Product_LID > Tickets= Tickets > BoxOffice=Turnover > > Like this: > CUST_GID 1 > Product_LID 1, SumOfTickets, SumOfTurnover > Product_LID ... > Product_LID 30, SumOfTickets, SumOfTurnover > CUST_GID ... > Product_LID 1, SumOfTickets, SumOfTurnover > Product_LID ... > Product_LID 30, SumOfTickets, SumOfTurnover > CUST_GID 999 > Product_LID 1, SumOfTickets, SumOfTurnover > Product_LID... > Product_LID 30, SumOfTickets, SumOfTurnover > > > Furthermover I need to be able to set year/week criteria > > Let the challenge begin.... > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Tuesday, March 15, 2005 10:51 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] TOP 30 for multiple theaters. > > Hi Erwin > > Should we call you Erwin the Chicken? > > As I also wrote - sometimes a temp table is the solution. Neither do I > like them, but here we are talking about 100 records! It's not a > million. > If you still wish to avoid that, create a temp database and put the > table there. Mr. Colby has ready code on his site for this. Creating a > temp database with a temp table properly indexed takes no more than a > split second. > > About the speed, if you open the temp database directly you can use Seek > on the table which is so fast that you hardly will believe it. > > /gustav > >>>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> > > Thank you for the compliment ;-) > > Well indeed, this could be easely resolved with code But this would > require a temp table and I don't like the use of temp tables. > I also believe that a good query is faster than code when performing a > 'mass' approach. > > And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB > to SQL server very soon and probably need some SQL knowledge lift... > > Erwin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 11:04 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > This is a really quick job with a bit of code ( I KNOW you're good at > that, > too) and a temp table. Queries are fun, especially the really tough > ones. > Like the NYT Crossword. You can spend all Sunday on it. Maybe it's > because I'm an old coder. But when the queries get this complicated, the > coding solution looks so much easier. > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Monday, March 14, 2005 1:51 PM > Subject: RE: [AccessD] TOP 30 for multiple theaters. > > >>I need a summation TOP 30 per theatre... >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Monday, March 14, 2005 4:07 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] TOP 30 for multiple theaters. >> >> Erwin: >> >> It looks like a job for a summation query grouping on theatre and > movie, >> count on tickets, and sum on box office. But that's too obvious. >> What's different about your requirement that it won't work that way? >> >> Rocky >> >> ----- Original Message ----- >> From: "Erwin Craps - IT Helps" >> To: >> Sent: Monday, March 14, 2005 2:45 AM >> Subject: [AccessD] TOP 30 for multiple theaters. >> >> >> (sorry for sending previous message not compleeted....) >> >> Hi group >> >> I need a query that results in a list for a specific year, > numerating >> all movietheaters and for each theatre a TOP 30 of movies. >> >> Is it posible, and how do I do this to create a query with the > folowing >> result. >> Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 >> , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice >> Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > >> , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice >> Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie >> ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > >> Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie >> 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice >> Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > >> 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice >> >> I see only the posiblilty to create a query for each theatre and use > a >> union query afterwards. >> Or by the use of a temp table, but I don't like using temp tables... >> >> The source table looks like this. >> >> movietheatre, year, week, movie, tickets, boxoffice >> >> >> thx >> >> >> >> >> >> Erwin Craps >> >> Zaakvoerder >> >> www.ithelps.be/onsgezin >> >> >> >> This E-mail is confidential, may be legally privileged, and is for > the >> intended recipient only. Access, disclosure, copying, distribution, > or >> reliance on any of it by anyone else is prohibited and may be a > criminal >> offence. Please delete if obtained in error and E-mail confirmation > to >> the sender. >> >> IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >> >> www.ithelps.be * www.boxoffice.be >> * www.stadleuven.be >> >> >> IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >> >> IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >> Info at ithelps.be >> >> Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >> Staff at boxoffice.be >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marcus at tsstech.com Tue Mar 15 10:52:51 2005 From: marcus at tsstech.com (Scott Marcus) Date: Tue, 15 Mar 2005 11:52:51 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Erwin, You could optimize the query runtime by adding indexes to relevant fields. That should improve the runtime tremendously. Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 9:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 2:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Humpf, me almost offended ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Mar 15 11:22:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 15 Mar 2005 12:22:56 -0500 Subject: [AccessD] error in A2003 Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E01@xlivmbx21.aig.com> Pedro, It would help us if you could show us what the error message is. The code as such looks ok, but I would suggest you make a change... It is never safe to assume that the command line processor is called 'command.com'. Nor can you safely assume that it will be located in the Root for drive C. However Environ("COMSPEC") will always return the correct location of the command line processor. Therefore you should get used to doing this... Dim strCommand as String strCommand = Environ("COMSPEC") call Shell(strCommand & " /c C:\label2.bat",vbMinimizedFocus) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: Tuesday, March 15, 2005 10:49 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] error in A2003 > > Hello Group, > > the following code worked fine in A97. After conversion to A2003, the code > itself doesn't give a compiling error, but the .bat that it is calling > does give an error; the parameterisation isn't correct. When using the > .bat file directly, it is working fine. > > Who can help. > > Pedro Janssen > > > > > Option Compare Database > Option Explicit > > Function label() > > On Error GoTo label_Err > > Beep > > If MsgBox("Wilt U een testlabel printen?", vbYesNoCancel, "Testlabel") > = vbYes Then > > Call Shell("c:\command.com /c c:\label2.bat", 2) > > Else > > Exit Function > > End If > > label_Exit: > > Exit Function > > > label_Err: > > MsgBox Error$ > > Resume label_Exit > > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 15 12:33:25 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 19:33:25 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin You didn't tell about website access. If that is the purpose, I would build a lookup table for that which I would recreate every night. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 15:28:36 >>> Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. From clh at christopherhawkins.com Tue Mar 15 13:11:22 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 12:11:22 -0700 Subject: [AccessD] Comparing two Access DBs? Message-ID: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas?and provide a report outlining the differences in the tables. Anybody remember this?? Even better, does anyone HAVE this tool still? -Christopher- From dejpolsys at hotmail.com Tue Mar 15 13:21:39 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 15 Mar 2005 14:21:39 -0500 Subject: [AccessD] Comparing two Access DBs? References: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Message-ID: Christopher http://www.fmsinc.com/ ..look at Total Access Detective ...relatively expensive for Access tools but it works exceptionally well ime. William Hindman ""Freedom of speech makes it much easier to spot the idiots." Jay Lessig ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, March 15, 2005 2:11 PM Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 15 13:35:31 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 15 Mar 2005 11:35:31 -0800 Subject: [AccessD] Comparing two Access DBs? References: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Message-ID: <046001c52996$26c70ea0$6501a8c0@HAL9002> Chris: http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDiff.html I've used this. It's pretty good. And free. (Anything free is always worth it.) Rocky ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, March 15, 2005 11:11 AM Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ldoering at symphonyinfo.com Tue Mar 15 13:38:00 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Tue, 15 Mar 2005 13:38:00 -0600 Subject: [AccessD] Comparing two Access DBs? In-Reply-To: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Message-ID: Christopher, Check the archives for MDBDiff. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas?and provide a report outlining the differences in the tables. Anybody remember this?? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 15 13:42:45 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 20:42:45 +0100 Subject: [AccessD] Comparing two Access DBs? Message-ID: Hi Christopher Could it be MdbDiff: http://www.matpie.drw.net/Downloads/ /gustav >>> clh at christopherhawkins.com 15-03-2005 20:11:22 >>> Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- From clh at christopherhawkins.com Tue Mar 15 14:43:42 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 13:43:42 -0700 Subject: [AccessD] Comparing two Access DBs? Message-ID: <9f444d7dd5e140328651445c305b5261@christopherhawkins.com> I think MDBDiff is it, Gustav.? I recall the tool being of the homemeade variety, not the professional software vendor variety like an FMS tool. Thanks, all! -Christopher Hawkins- ---------------------------------------- From: "Gustav Brock" Sent: Tuesday, March 15, 2005 12:47 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Comparing two Access DBs? Hi Christopher Could it be MdbDiff: http://www.matpie.drw.net/Downloads/ /gustav >>> clh at christopherhawkins.com 15-03-2005 20:11:22 >>> Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 15 14:53:48 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 13:53:48 -0700 Subject: [AccessD] Access FE & MSDE BE? Message-ID: I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- From Jdemarco at hudsonhealthplan.org Tue Mar 15 15:00:37 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 15 Mar 2005 16:00:37 -0500 Subject: [AccessD] Access FE & MSDE BE? Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2DCC@TTNEXCHCL2.hshhp.com> You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Erwin.Craps at ithelps.be Tue Mar 15 15:10:01 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 22:10:01 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58CE@stekelbes.ithelps.local> Well indeed, thats one more to build over night... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 7:33 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin You didn't tell about website access. If that is the purpose, I would build a lookup table for that which I would recreate every night. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 15:28:36 >>> Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 15:10:40 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 22:10:40 +0100 Subject: [AccessD] Comparing two Access DBs? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58CF@stekelbes.ithelps.local> FMS inc has this tool, use it all the time... Pretty expensive, but worth the money. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 8:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas?and provide a report outlining the differences in the tables. Anybody remember this?? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 15 17:44:45 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 16:44:45 -0700 Subject: [AccessD] Access FE & MSDE BE? Message-ID: <83d9b7532c454379a9fc977f39aecbed@christopherhawkins.com> 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -- 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 Mar 15 17:59:32 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 16 Mar 2005 12:59:32 +1300 Subject: [AccessD] Scatter Graph Message-ID: <6.2.1.2.0.20050316125239.03429690@mail.dalyn.co.nz> AccessXP I am having trouble getting the data source correct for a scatter graph. I have data in a table with the following fields - Series1X, Series1Y, Series2X, Series2Y. Using the Chart Wizard I can select the fields, and XY (scatter) chart. Where I get unstuck is in the "How do you want to lay out your data in the chart" screen. Does anyone have any examples of a scatter chart using two series that I could look at? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From cfoust at infostatsystems.com Tue Mar 15 18:01:07 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 15 Mar 2005 16:01:07 -0800 Subject: [AccessD] Access FE & MSDE BE? Message-ID: I thought the limit was on connections, not users. BTW, I've only worked with full SQL Server, so that isn't a smart aleck remark. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, March 15, 2005 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access FE & MSDE BE? 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 15 18:07:14 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 15 Mar 2005 19:07:14 -0500 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <83d9b7532c454379a9fc977f39aecbed@christopherhawkins.com> Message-ID: <000a01c529bc$1bc987f0$697aa8c0@ColbyM6805> The connection limit is 5 not 25 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 6:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access FE & MSDE BE? 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Tue Mar 15 18:34:10 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Wed, 16 Mar 2005 11:34:10 +1100 Subject: [AccessD] Date function for adding year based on current month and year Message-ID: Hi all, I have been virtually trouble free for a while but as usual I have been asked to do something I am not sure how to go about it. can someone please point me in the right direction. I have a form with a start and an End date on it. I need to restrict the end date in the following way. End Date -- should only accept the following 30th June except where start date is in May (and then it should only accept the second 30th June from the start date). Any suggestions appreciated including telling me where to RTFM. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From clh at christopherhawkins.com Tue Mar 15 19:07:09 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 18:07:09 -0700 Subject: [AccessD] Access FE & MSDE BE? Message-ID: Uh-oh.? I just read something that explicitly said 25.? Lemme go find a link... ---------------------------------------- From: "John W. Colby" Sent: Tuesday, March 15, 2005 5:10 PM To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Access FE & MSDE BE? The connection limit is 5 not 25 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 6:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access FE & MSDE BE? 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Mar 15 19:19:20 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 11:19:20 +1000 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <000a01c529bc$1bc987f0$697aa8c0@ColbyM6805> References: <83d9b7532c454379a9fc977f39aecbed@christopherhawkins.com> Message-ID: <42381638.18620.3FC35E3@stuart.lexacorp.com.pg> On 15 Mar 2005 at 19:07, John W. Colby wrote: > The connection limit is 5 not 25 > Specifically, five concurrent batch workloads or 25 concurrent connections for websites in MSDE2000 -- Stuart From dwaters at usinternet.com Tue Mar 15 19:26:23 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 15 Mar 2005 19:26:23 -0600 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <3239124.1110936140270.JavaMail.root@sniper17> Message-ID: <002001c529c7$2afbc160$123a11d8@DANWATERS> Is this correct? The 25 limit is not based on the number of people logged on, but on the number of client computers concurrently connecting to the MSDE BE. More can be logged on. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, March 15, 2005 7:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:07, John W. Colby wrote: > The connection limit is 5 not 25 > Specifically, five concurrent batch workloads or 25 concurrent connections for websites in MSDE2000 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Mar 15 19:29:42 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 15 Mar 2005 19:29:42 -0600 Subject: [AccessD] Scatter Graph In-Reply-To: <2859643.1110931374125.JavaMail.root@sniper23> Message-ID: <002101c529c7$a1b0b3b0$123a11d8@DANWATERS> Dave, A scattergraph only has one series. That series is made up of pairs of numbers: X and Y. So you need 2 columns, one for X and one for Y, where each data point is on one row. (Or transpose the rows and columns.) The rows do not need to be in any particular order. Good Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, March 15, 2005 6:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Scatter Graph AccessXP I am having trouble getting the data source correct for a scatter graph. I have data in a table with the following fields - Series1X, Series1Y, Series2X, Series2Y. Using the Chart Wizard I can select the fields, and XY (scatter) chart. Where I get unstuck is in the "How do you want to lay out your data in the chart" screen. Does anyone have any examples of a scatter chart using two series that I could look at? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Mar 15 19:38:51 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 16 Mar 2005 12:38:51 +1100 Subject: [AccessD] Date function for adding year based on current month andyear In-Reply-To: Message-ID: <200503160139.j2G1d0lE026925@cooper.uws.edu.au> Hi Connie Dunno if I read this right but Just check to see if start date is in May or not and add 2 years to a predefined date (or not) Private Sub txtStartDate_AfterUpdate() Dim dtMayDate As Date Dim dtNonMayDate As Date dtMayDate = Format("30/06/" & Year(Date) + 2, "dd/mm/yyyy") dtNonMayDate = Format("30/06/" & Year(Date), "dd/mm/yyyy") If Month(Me.txtStartDate) = 5 Then 'It's a May date Me.txtEndDate = dtMayDate Else Me.txtEndDate = dtNonMayDate End If End sub HTH See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, 16 March 2005 11:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date function for adding year based on current month andyear Hi all, I have been virtually trouble free for a while but as usual I have been asked to do something I am not sure how to go about it. can someone please point me in the right direction. I have a form with a start and an End date on it. I need to restrict the end date in the following way. End Date -- should only accept the following 30th June except where start date is in May (and then it should only accept the second 30th June from the start date). Any suggestions appreciated including telling me where to RTFM. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Mar 15 19:47:34 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 11:47:34 +1000 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <002001c529c7$2afbc160$123a11d8@DANWATERS> References: <3239124.1110936140270.JavaMail.root@sniper17> Message-ID: <42381CD6.3526.4160FEE@stuart.lexacorp.com.pg> On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on the > number of client computers concurrently connecting to the MSDE BE. More can > be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that?s ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart From stuart at lexacorp.com.pg Tue Mar 15 19:57:14 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 11:57:14 +1000 Subject: [AccessD] Date function for adding year based on current month and year In-Reply-To: Message-ID: <42381F1A.19501.41EEA88@stuart.lexacorp.com.pg> On 16 Mar 2005 at 11:34, connie.kamrowski at agric.nsw.go wrote: > > I have a form with a start and an End date on it. I need to restrict the > end date in the following way. > > End Date -- should only accept the following 30th June except where start > date is in May (and then it should only accept the second 30th June from > the start date). > > Any suggestions appreciated including telling me where to RTFM. > Why have them enter an End Date at all. Just calculate it in the Form.Before_Update EndYear = year(startdate) If Month(startdate) >4 then EndYear = EndYear + 1 EndDate = DateSerial(EndYear,6,30) -- Stuart From newsgrps at dalyn.co.nz Tue Mar 15 20:18:34 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 16 Mar 2005 15:18:34 +1300 Subject: [AccessD] Scatter Graph In-Reply-To: <002101c529c7$a1b0b3b0$123a11d8@DANWATERS> References: <2859643.1110931374125.JavaMail.root@sniper23> <002101c529c7$a1b0b3b0$123a11d8@DANWATERS> Message-ID: <6.2.1.2.0.20050316151036.03431430@mail.dalyn.co.nz> Thanks for the reply Dan. My client has two series of data he wants to show on the same graph. He has printed report examples of it being done. I am trying to find out how. David At 16/03/2005, you wrote: >Dave, > >A scattergraph only has one series. That series is made up of pairs of >numbers: X and Y. So you need 2 columns, one for X and one for Y, where >each data point is on one row. (Or transpose the rows and columns.) > >The rows do not need to be in any particular order. > >Good Luck! >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, March 15, 2005 6:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Scatter Graph > >AccessXP > >I am having trouble getting the data source correct for a scatter graph. I >have data in a table with the following fields - > >Series1X, Series1Y, Series2X, Series2Y. > >Using the Chart Wizard I can select the fields, and XY >(scatter) chart. Where I get unstuck is in the "How do you want to lay >out your data in the chart" screen. > >Does anyone have any examples of a scatter chart using two series that I >could look at? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (04) 478-7456 >Mobile 027-280-9348 From dwaters at usinternet.com Tue Mar 15 20:29:09 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 15 Mar 2005 20:29:09 -0600 Subject: [AccessD] Scatter Graph In-Reply-To: <1871545.1110939670296.JavaMail.root@sniper16> Message-ID: <002201c529cf$efaae290$123a11d8@DANWATERS> I was wondering if that's what your were doing. I did a quick try in Excel. You put your X values in a column (or row). Then all your Y values go into additional columns (or rows). So for two series you'll have 3 columns. MS Graph can probably do this - it seems to some of the same capabilities as Excel. Hope that helps! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, March 15, 2005 8:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Scatter Graph Thanks for the reply Dan. My client has two series of data he wants to show on the same graph. He has printed report examples of it being done. I am trying to find out how. David At 16/03/2005, you wrote: >Dave, > >A scattergraph only has one series. That series is made up of pairs of >numbers: X and Y. So you need 2 columns, one for X and one for Y, where >each data point is on one row. (Or transpose the rows and columns.) > >The rows do not need to be in any particular order. > >Good Luck! >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, March 15, 2005 6:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Scatter Graph > >AccessXP > >I am having trouble getting the data source correct for a scatter graph. I >have data in a table with the following fields - > >Series1X, Series1Y, Series2X, Series2Y. > >Using the Chart Wizard I can select the fields, and XY >(scatter) chart. Where I get unstuck is in the "How do you want to lay >out your data in the chart" screen. > >Does anyone have any examples of a scatter chart using two series that I >could look at? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (04) 478-7456 >Mobile 027-280-9348 -- 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 Mar 15 20:49:01 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 16 Mar 2005 15:49:01 +1300 Subject: [AccessD] Scatter Graph In-Reply-To: <002201c529cf$efaae290$123a11d8@DANWATERS> References: <1871545.1110939670296.JavaMail.root@sniper16> <002201c529cf$efaae290$123a11d8@DANWATERS> Message-ID: <6.2.1.2.0.20050316154650.03441b20@mail.dalyn.co.nz> Yes I discovered that. My only problem is that the x values are not the same between the two series. David At 16/03/2005, you wrote: >I was wondering if that's what your were doing. > >I did a quick try in Excel. You put your X values in a column (or row). >Then all your Y values go into additional columns (or rows). So for two >series you'll have 3 columns. > >MS Graph can probably do this - it seems to some of the same capabilities as >Excel. > >Hope that helps! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, March 15, 2005 8:19 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Scatter Graph > >Thanks for the reply Dan. > >My client has two series of data he wants to show on the same graph. He >has printed report examples of it being done. I am trying to find out how. > >David > >At 16/03/2005, you wrote: > >Dave, > > > >A scattergraph only has one series. That series is made up of pairs of > >numbers: X and Y. So you need 2 columns, one for X and one for Y, where > >each data point is on one row. (Or transpose the rows and columns.) > > > >The rows do not need to be in any particular order. > > > >Good Luck! > >Dan Waters > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson > >Sent: Tuesday, March 15, 2005 6:00 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Scatter Graph > > > >AccessXP > > > >I am having trouble getting the data source correct for a scatter graph. I > >have data in a table with the following fields - > > > >Series1X, Series1Y, Series2X, Series2Y. > > > >Using the Chart Wizard I can select the fields, and XY > >(scatter) chart. Where I get unstuck is in the "How do you want to lay > >out your data in the chart" screen. > > > >Does anyone have any examples of a scatter chart using two series that I > >could look at? > > > >Regards > > > >David Emerson > >Dalyn Software Ltd > >25 Cunliffe St, Churton Park > >Wellington, New Zealand > >Ph/Fax (04) 478-7456 > >Mobile 027-280-9348 From connie.kamrowski at agric.nsw.gov.au Tue Mar 15 20:58:41 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Wed, 16 Mar 2005 13:58:41 +1100 Subject: [AccessD] Date function for adding year based on current month and year Message-ID: Thanks Stuart, I checked with them and that was acceptable (isn't it funny how requirements change when you explain them). Thanks again for the help Connie Analyst/Programmer Information Technology NSW Department of Primary Industries Orange On 16 Mar 2005 at 11:34, connie.kamrowski at agric.nsw.go wrote: > > I have a form with a start and an End date on it. I need to restrict the > end date in the following way. > > End Date -- should only accept the following 30th June except where start > date is in May (and then it should only accept the second 30th June from > the start date). > > Any suggestions appreciated including telling me where to RTFM. > Why have them enter an End Date at all. Just calculate it in the Form.Before_Update EndYear = year(startdate) If Month(startdate) >4 then EndYear = EndYear + 1 EndDate = DateSerial(EndYear,6,30) -- Stuart This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From ksklos at comcast.net Tue Mar 15 20:59:05 2005 From: ksklos at comcast.net (Susan Klos) Date: Tue, 15 Mar 2005 21:59:05 -0500 Subject: [AccessD] Strange date question In-Reply-To: Message-ID: No! I think I could figure that out. How many days in the month had an event? i.e. between 1/3/ and 1/11, there were events on 6 days. Event 1, 2, 3 and 4 occurred between 1/3 and 1/8 and that would be 5 days. Event 5 occurred for 1 day 1/10 - 1/11. That would be 1 day. No events occurred between 1/7 and 1/10. So where there are 8 days when events could have occurred they only occurred on 6 of those 8 days. I thought about somehow placing the events on a calendar and counting only the days which were not null. But, I don't know how to do that. Any thoughts? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Scott Marcus Sent: Monday, March 14, 2005 7:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Strange date question Do you really mean how many events occurred on a given day? Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Klos Sent: Saturday, March 12, 2005 8:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Strange date question I have a beginning date and an ending date in my events table. I need to find out how many days in any given month that one or more events happened. For example, Event 1 Beginning Date 1/3/05 Ending date 1/3/05 Event 2 Beginning Date 1/3/05 Ending date 1/4/05 Event 3 Beginning Date 1/3/05 Ending date 1/8/05 Event 4 Beginning Date 1/6/05 Ending date 1/7/05 Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 My query, function, module, whatever works needs to tell me: between 1/1/05 and 1/11/05 events happened on 6 days. I can not figure out how to disinclude events if they happened within the beginning and ending date of other events. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Mar 15 22:00:15 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 14:00:15 +1000 Subject: [AccessD] Strange date question In-Reply-To: References: Message-ID: <42383BEF.1957.48F87E0@stuart.lexacorp.com.pg> On 15 Mar 2005 at 21:59, Susan Klos wrote: > No! I think I could figure that out. How many days in the month had an > event? i.e. between 1/3/ and 1/11, there were events on 6 days. Event 1, 2, > 3 and 4 occurred between 1/3 and 1/8 and that would be 5 days. Event 5 > occurred for 1 day 1/10 - 1/11. That would be 1 day. No events occurred > between 1/7 and 1/10. So where there are 8 days when events could have > occurred they only occurred on 6 of those 8 days. I thought about somehow > placing the events on a calendar and counting only the days which were not > null. But, I don't know how to do that. Any thoughts? > >Event 1 Beginning Date 1/3/05 Ending date 1/3/05 >Event 2 Beginning Date 1/3/05 Ending date 1/4/05 >Event 3 Beginning Date 1/3/05 Ending date 1/8/05 >Event 4 Beginning Date 1/6/05 Ending date 1/7/05 >Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 The way I read it, There were nine possible event days (3rd,4th,5th,6th,7th,8th,9th,10th,11th) Events 1 - 4 happend on six days (3rd,4th,5th,6th,7th,8th) Event 5 happened on two other days (10th and 11th) so there were eight days with events out of the 9 (the only day without an event was 9th. Anyhow, here's one solution. Step 1. Create temporary table tblTempDates with a single DateTime field called EventDate. Step 2 create a Form frmDates with two text boxes txtStartDate and txtEnddate and as button. Step 3: Create a query (paste this into the SQL view) called "qryEventDays" SELECT tblTempDates.EventDate FROM tblTempDates, tblEvents WHERE (((tblTempDates.EventDate) Between [begindate] And [enddate]) AND ((tblEvents.EndDate)>=[Forms]![frmDates]![txtStartDate]) AND ((tblEvents.BeginDate)<=[Forms]![frmDates]![txtENdDate])) GROUP BY tblTempDates.EventDate; Step 4: Put this code in the command button's On_click event in the form: Dim lngLoopcount as long Dim strSQL as string "Build the calendar for the period CurrentDb.Execute "Delete * from tblTempdates" For lngLoopcount = txtStartDate to txtEnddate strSQL = "INSERT INTO tblTempDates ( EventDate ) SELECT " & lngLoopcount CurrentDb.Execute strSQL Next 'Get the event days Msgbox "There were events on " & Dcount("*","qryEventDays") -- Stuart From mwp.reid at qub.ac.uk Wed Mar 16 03:14:23 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 16 Mar 2005 09:14:23 -0000 Subject: [AccessD] Access FE & MSDE BE? References: <3239124.1110936140270.JavaMail.root@sniper17> <42381CD6.3526.4160FEE@stuart.lexacorp.com.pg> Message-ID: <001401c52a08$8b717260$9111758f@aine> Have a look at the new version http://www.microsoft.com/sql/express/ Martin ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, March 16, 2005 1:47 AM Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on the > number of client computers concurrently connecting to the MSDE BE. More > can > be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that's ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 16 03:35:09 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 16 Mar 2005 10:35:09 +0100 Subject: [AccessD] Rtf to text Message-ID: Hi Richard Did you find out? /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard From pedro at plex.nl Wed Mar 16 10:53:12 2005 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 16 Mar 2005 10:53:12 (MET) Subject: [AccessD] conversion troubles Message-ID: <200503160953.j2G9rCur021532@mailhostC.plex.net> Hello group, i have problems when converting a code that was used in A2K to A2003 for merging access to word. In A2k i used: strTemplateDir = objWord.System.PrivateProfileString("", _ "HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Common\FileNew\LocalTemplates", _ "") & "\" strTemplateDir = strTemplateDir & "Pap0\" strLetter = strTemplateDir & "pap0Herhaling.dot" I can't find this key after making the Templatefolder "Pap0" and changing the file locations in word. After that i changed this part of the code into: strDocsPath = objWord.Options.DefaultFilePath(wdDocumentsPath) & "\" strTemplatePath = objWord.Options.DefaultFilePath(wdUserTemplatesPath) strWordTemplate = strTemplatePath & "\" & "pap0Herhaling.dot" Then i get an error: Error 5: Procedure call or argument is not valid I am sure that the fieldnames in access the and properties in the dot file are correct. I checked them twice, and they always worked before in A2k and in this part of the code or dot fiel nothing changed. I placed the pap0Herhaling.dot file in C:\Documents and Settings\PathPedro\Application Data\Microsoft\Sjablonen (Sjablonen is Dutch for Templates). I also tried the user template folder C:\Documents and Settings\PathPedro\Sjablonen Who can help me? Pedro Janssen From dwaters at usinternet.com Wed Mar 16 06:28:40 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 16 Mar 2005 06:28:40 -0600 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <22075695.1110965179487.JavaMail.root@sniper17> Message-ID: <000201c52a23$afa6e6e0$123a11d8@DANWATERS> The last I heard was that SQL 2005 (and Express) would not support Access Data Projects. Still True? If so, what would be the best way to use SQL Server Express 2005 as the BE for an application using Access FE's? Any Pros/Cons or comparisons with other BE's? I did read that SQL Server Express 2005 would support more concurrent connections than MSDE 2000. Dan Waters ProMation Systems www.promationsystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, March 16, 2005 3:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access FE & MSDE BE? Have a look at the new version http://www.microsoft.com/sql/express/ Martin ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, March 16, 2005 1:47 AM Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on the > number of client computers concurrently connecting to the MSDE BE. More > can > be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that's ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 06:49:16 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 07:49:16 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. From dwaters at usinternet.com Wed Mar 16 07:25:33 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 16 Mar 2005 07:25:33 -0600 Subject: [AccessD] MSO.DLL He-- In-Reply-To: <23762971.1110977937173.JavaMail.root@sniper17> Message-ID: <000801c52a2b$a1fb04b0$123a11d8@DANWATERS> Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 07:36:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 08:36:14 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 07:37:36 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 08:37:36 -0500 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <000201c52a23$afa6e6e0$123a11d8@DANWATERS> Message-ID: <001801c52a2d$5083ff90$697aa8c0@ColbyM6805> >I did read that SQL Server Express 2005 would support more concurrent connections than MSDE 2000. Where and how many more? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 7:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access FE & MSDE BE? The last I heard was that SQL 2005 (and Express) would not support Access Data Projects. Still True? If so, what would be the best way to use SQL Server Express 2005 as the BE for an application using Access FE's? Any Pros/Cons or comparisons with other BE's? I did read that SQL Server Express 2005 would support more concurrent connections than MSDE 2000. Dan Waters ProMation Systems www.promationsystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, March 16, 2005 3:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access FE & MSDE BE? Have a look at the new version http://www.microsoft.com/sql/express/ Martin ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, March 16, 2005 1:47 AM Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on > the number of client computers concurrently connecting to the MSDE BE. > More can be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that's ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Mar 15 15:20:23 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 15 Mar 2005 16:20:23 -0500 Subject: [AccessD] Access FE & MSDE BE? References: Message-ID: ..its SQL Server without the management tools and some built in connection restraints ...but if you're looking to go this way you might want to also take a look at MS' new SQL Express beta which will replace the MSDE in their scheme of things ...its easier to use imnsho. William Hindman ""Freedom of speech makes it much easier to spot the idiots." Jay Lessig ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, March 15, 2005 3:53 PM Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers. I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB? Any gotchas? Horror storeis? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 10:03:06 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 08:03:06 -0800 Subject: [AccessD] MSO.DLL He-- Message-ID: It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 10:24:48 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 11:24:48 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 10:35:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 11:35:43 -0500 Subject: [AccessD] OT: North Carolina Message-ID: <001a01c52a46$32b4bc70$697aa8c0@ColbyM6805> I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bchacc at san.rr.com Wed Mar 16 10:49:52 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 16 Mar 2005 08:49:52 -0800 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: <00bc01c52a48$2d241b00$6501a8c0@HAL9002> Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From jwcolby at colbyconsulting.com Wed Mar 16 11:10:10 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 12:10:10 -0500 Subject: [AccessD] Speed of 2000 vs 2003 In-Reply-To: <00bc01c52a48$2d241b00$6501a8c0@HAL9002> Message-ID: <001b01c52a4b$05b94970$697aa8c0@ColbyM6805> >Is the processing speed in Access 2003 any faster than 2000? ROTFLMAOBTC Have you EVER seen a Microsoft program get faster as they bloat it up? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 16, 2005 11:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Mar 16 11:15:20 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 16 Mar 2005 11:15:20 -0600 Subject: [AccessD] OT: North Carolina In-Reply-To: <18165904.1110991233644.JavaMail.root@sniper17> Message-ID: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> John, I lived in Norfolk VA for about 10 years (military). I left in 1987. Because I grew up in Minnesota, some things were memorable to me because of the contrast. Weather: If you are going to live within 30 miles of the coast, be prepared for high humidity year round - including winter. When you go outside in winter, your clothes offer little insulation because the humidity passes heat through your clothes so quickly. I was warmer in MN because I could dress for the weather. Roads: Some of the roads in the older cities are, as you might expect, lacking in planning. If you're coming from a modern city you'll notice. Houses: No Basements is the norm. This was a surprise to me since a basement doubles your square footage. But in that climate they have no frost so basements aren't needed. And if you're near the coast, they could be below sea level. On the other hand, people who've been there all their lives are surprised at what a basement is! Culture: A few folks may still have trouble letting go of the Civil War and the 'Southern Culture'. I hope I don't offend anyone with this but it was true when I was there. Best of Luck! Dan Waters www.ProMationSystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 16, 2005 10:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Mar 16 11:24:14 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 16 Mar 2005 22:54:14 +0530 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B58B8@stekelbes.ithelps.local> Message-ID: <009001c52a4d$097a8540$9d1865cb@winxp> Erwin, Query based solution will necessarily involve a totals query, which in turn becomes the source for the final select query. However, it is observed that any such query (using the totals query as a source) runs unacceptably slow. The solution lies in appending the output of totals query into a temporary table and using that table as the source for final query. The term temporary implies that data in this table is temporary. The table itself is permanent, like other regular tables. It is found that if the final select query is based upon a subquery using IN clause, the execution is extremely slow, even when using temp table as the source. On the other hand, if a subquery for getting running count of rank is used and all ranks per year per theatre lower than the desired one are filtered out, there is dramatic improvement in speed (the data in your sample db gets processed in less than a second). With the data in your sample db, query based solution for getting top five movies per theatre per year has been worked out (it can be easily modified to suit top 30 values). It is based upon following steps (a) Totals query (Q_Sales), grouping by year, theatre and movie, reflecting the sum of tickets sold and turnover (box office) (b) Append query (Q_App) transferring the output of (a) into temporary table T_Temp (after first clearing the temp table of any existing contents). (c) Select query (Q_TopFivePerYear) based upon T_Temp, showing top five movies (as per tickets sold) per year per theatre. If the top values are required to be as per turnover (instead of tickets sold), the query can be modified suitably. The code snippet given below displays the desired results on a form in datasheet view. Query Q_TopFivePerYear as per (c) above, serves as record source for this form. On your confirmation that you are in a position to successfully receive an attachment (for zipped mdb file), sample db demonstrating the solution can be sent to you. eMail address at which it is to be sent, may also please be indicated. Best wishes, A.D.Tejpal -------------- ==================================== Sub P_GetTopFivePerYear() CurrentDb.Execute "Delete * From T_Temp;" CurrentDb.Execute "Q_App" DoCmd.OpenForm "F_TopFivePerYear", acFormDS End Sub ==================================== ----- Original Message ----- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 15:42 Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin From cfoust at infostatsystems.com Wed Mar 16 11:31:18 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:31:18 -0800 Subject: [AccessD] MSO.DLL He-- Message-ID: You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 11:32:13 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:32:13 -0800 Subject: [AccessD] OT: North Carolina Message-ID: Getting fiddle-footed again hey, JC? ;-> Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 16, 2005 8:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 11:31:03 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 12:31:03 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> Message-ID: <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> Dan, You got to Norfolk just as I was leaving. I was on the USS Kennedy for 3.5 years from Jan 75 to June 78, and our home port was Norfolk. From everything I can find on the internet the area of NC up along the VA border is quite beautiful and lots of industry and jobs. I'm looking to live "out of town" but be near a big industrial area where I can build a client base, grow old, and die. Notice that retirement is not in there anywhere. ;-) I'm about to adopt my two foster children next month so it looks like I will never retire. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 12:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: North Carolina John, I lived in Norfolk VA for about 10 years (military). I left in 1987. Because I grew up in Minnesota, some things were memorable to me because of the contrast. Weather: If you are going to live within 30 miles of the coast, be prepared for high humidity year round - including winter. When you go outside in winter, your clothes offer little insulation because the humidity passes heat through your clothes so quickly. I was warmer in MN because I could dress for the weather. Roads: Some of the roads in the older cities are, as you might expect, lacking in planning. If you're coming from a modern city you'll notice. Houses: No Basements is the norm. This was a surprise to me since a basement doubles your square footage. But in that climate they have no frost so basements aren't needed. And if you're near the coast, they could be below sea level. On the other hand, people who've been there all their lives are surprised at what a basement is! Culture: A few folks may still have trouble letting go of the Civil War and the 'Southern Culture'. I hope I don't offend anyone with this but it was true when I was there. Best of Luck! Dan Waters www.ProMationSystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 16, 2005 10:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 11:33:43 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:33:43 -0800 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: Rocky, With two tables of over 2million records each, the processing speed will suck no matter what version you use. For heavens sake, go to SQL Server before the thing falls over and dies! Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 16, 2005 8:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 11:37:36 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 12:37:36 -0500 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: You tell him! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Speed of 2000 vs 2003 Rocky, With two tables of over 2million records each, the processing speed will suck no matter what version you use. For heavens sake, go to SQL Server before the thing falls over and dies! Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 16, 2005 8:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 11:40:24 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 12:40:24 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I have the full version of office 10, XP, installed. The ITSO installed just plain old Access 2003 for me, office 11. I am developing in XP. The Microsoft Office 10.0 is not in the references. I point to the location and it does not come on board. The one from the office 11 is there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Mar 16 11:45:46 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 16 Mar 2005 11:45:46 -0600 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: <123701F54509D9119A4F00D0B747349016D32E@main2.marlow.com> You need to go with local processing, which doesn't necessarily mean SQL Server. Using an Access (Jet) .mdb with a Web interface, where the .mdb resides on the webserver, allows for very fast data access/searching. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 16, 2005 10:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 11:49:23 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:49:23 -0800 Subject: [AccessD] MSO.DLL He-- Message-ID: Because that's the one you installed last. Have you tried a detect and repair on Access XP to see if that fixes it? What do you need the Office library for? You may be able to use something else as an alternative. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 9:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I have the full version of office 10, XP, installed. The ITSO installed just plain old Access 2003 for me, office 11. I am developing in XP. The Microsoft Office 10.0 is not in the references. I point to the location and it does not come on board. The one from the office 11 is there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 11:52:03 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 12:52:03 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: Message-ID: <002501c52a50$df96a7f0$697aa8c0@ColbyM6805> 8~) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: North Carolina Getting fiddle-footed again hey, JC? ;-> Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 16, 2005 8:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed Mar 16 12:02:38 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 16 Mar 2005 10:02:38 -0800 Subject: [AccessD] Speed of 2000 vs 2003 In-Reply-To: <123701F54509D9119A4F00D0B747349016D32E@main2.marlow.com> References: <123701F54509D9119A4F00D0B747349016D32E@main2.marlow.com> Message-ID: Rocky, If you are trying to avoid generating additional licensing fees for your customer, you can always push the mdb into MSDE or the newer Sql Server 2005 express which is acctually the best MSDE release to date because the governating process is off now, and you can run essentially all the queries you need at a time.. but it is restricted to 1 cpu. HTH On Wed, 16 Mar 2005 11:45:46 -0600, DWUTKA at marlow.com wrote: > You need to go with local processing, which doesn't necessarily mean SQL > Server. Using an Access (Jet) .mdb with a Web interface, where the .mdb > resides on the webserver, allows for very fast data access/searching. > > Drew > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, March 16, 2005 10:50 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Speed of 2000 vs 2003 > > Dear List: > > Is the processing speed in Access 2003 any faster than 2000? I have an mdb > with two tables of over 2,000,000 records each and I'm looking for a way to > speed up the queries without going to SQL. I have indexed all of the > relevant fields in the tables. > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From dmcafee at pacbell.net Wed Mar 16 12:05:01 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Wed, 16 Mar 2005 10:05:01 -0800 Subject: [AccessD] Date function for adding year based on current monthandyear In-Reply-To: <200503160139.j2G1d0lE026925@cooper.uws.edu.au> Message-ID: This reminds me of my boss at my last job: "I need a report for the last 12 months...February 1st, 2004 to Feb 28th 2005" "Uh, sir...that's 13 months" :) Anyway, are these just text boxes that a user is entering the both dates into, or are these fixed dates or a combination of the two? Can you automatically calculate the EndDate in the Start Date after event and fill it in for the user? such as: IF NOT ISNULL(me.txtStartDate) Me.txtEndDate = IIF(MONTH(me.txtStartDate)=5, CDATE("06/30/" &(YEAR(me.txtStartDate)+1)),CDATE("06/30/" & YEAR(me.txtStartDate)) ) END IF Or if you need do this in a query instead, simply take the IIF statement from above and place it in the query as the end date criteria. I formatted my date for US, you may have to change it around for use in Australia. I had to do something similar for my wife who originally asked to calculate a patients 90 day return date which changed to the Tuesday closest to the 90 (but not before). Then a new exception came up, if it is the 3rd Tuesday in the month, make that return date become a Thursday :S Dates are fun, because they always need to be modified to fit some weird requirement. HTH David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, 16 March 2005 11:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date function for adding year based on current month andyear Hi all, I have been virtually trouble free for a while but as usual I have been asked to do something I am not sure how to go about it. can someone please point me in the right direction. I have a form with a start and an End date on it. I need to restrict the end date in the following way. End Date -- should only accept the following 30th June except where start date is in May (and then it should only accept the second 30th June from the start date). Any suggestions appreciated including telling me where to RTFM. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange From cyx5 at cdc.gov Wed Mar 16 12:10:25 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 13:10:25 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I haven't tried the detect and repair... But this is the function. Public Function fcnBldFileSelect _ (strInitDir As String, strFileTitle As String, bolRepeat As Boolean, intDialogType) _ As String '****************************************************** '* Build File Select Dialog Box '* '* '* Purpose: This function creates a file dialog box '* that allows the user to select a single '* file. The default file type is ".mdb" '* However, the "All Files" option is also '* allowed. '* '* Notes: This function requires the loading of the '* Microsoft Office 10.0 Office Library. '* '* Call Line: '* strInitDir: String Variable containing the '* initial file path to search. '* strFileTitle: String Variable containing the '* text of both the file dialog '* title and the message box if '* a file MUST be selected. '* bolRepeat: Boolean Variable indicating '* whether a file MUST be chosen. '* intDialogType: Integer Variable containing a '* valid msoFileDialog Type '* '* Modifications: '* '****************************************************** 'Declare a variable as a FileDialog object Dim fdialog As Office.FileDialog 'Create a FileDialog object as a File Picker dialog box. Set fdialog = Application.FileDialog(intDialogType) 'Declare a variable to contain the path. Dim vrtSelectedItem As Variant FileLoop: With fdialog 'Allow user to make only one selection in the dialog box .AllowMultiSelect = False 'Set the path where the file dialog should initially start .InitialFileName = strInitDir 'Set the title string of the file dialog box .Title = strFileTitle If intDialogType = msoFileDialogFilePicker Then 'Clear out the current filters, and add our own. .Filters.Clear .Filters.Add "Access Databases", "*.MDB" .Filters.Add "All Files", "*.*" End If 'Use the Show method to display the File Picker dialog box and return the user's action. 'If the user presses the action button... If .Show = -1 Then 'Step through each string in the FileDialogSelectedItems collection. For Each vrtSelectedItem In .SelectedItems fcnBldFileSelect = vrtSelectedItem Next vrtSelectedItem 'If the user presses Cancel... Else fcnBldFileSelect = "False" End If End With 'Release the File Dialog variable. Set fdialog = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Because that's the one you installed last. Have you tried a detect and repair on Access XP to see if that fixes it? What do you need the Office library for? You may be able to use something else as an alternative. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 9:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I have the full version of office 10, XP, installed. The ITSO installed just plain old Access 2003 for me, office 11. I am developing in XP. The Microsoft Office 10.0 is not in the references. I point to the location and it does not come on board. The one from the office 11 is there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 16 13:19:09 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 16 Mar 2005 11:19:09 -0800 Subject: [AccessD] Speed of 2000 vs 2003 References: Message-ID: <00ff01c52a5d$084609a0$6501a8c0@HAL9002> I'm looking at MSDE as an interim step. The number of users will probably never be over 2-3. Right now, only 1. Rocky ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 16, 2005 9:33 AM Subject: RE: [AccessD] Speed of 2000 vs 2003 > Rocky, > > With two tables of over 2million records each, the processing speed will > suck no matter what version you use. For heavens sake, go to SQL Server > before the thing falls over and dies! > > Charlotte Foust > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, March 16, 2005 8:50 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Speed of 2000 vs 2003 > > > Dear List: > > Is the processing speed in Access 2003 any faster than 2000? I have an > mdb with two tables of over 2,000,000 records each and I'm looking for a > way to speed up the queries without going to SQL. I have indexed all of > the relevant fields in the tables. > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kwilliam at ashlandnet.com Wed Mar 16 14:55:29 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Wed, 16 Mar 2005 15:55:29 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <001a01c52a46$32b4bc70$697aa8c0@ColbyM6805> Message-ID: <000a01c52a6a$7d7a6380$64aba8c0@ashlandnet.com> My sister lives in Cary. It is a great area. I believe it was rated as one of the best areas in the country to live. Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 16, 2005 11:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Mar 16 16:29:43 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 16 Mar 2005 17:29:43 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <000a01c52a6a$7d7a6380$64aba8c0@ashlandnet.com> Message-ID: <20050316222939.GAJO5558.imf24aec.mail.bellsouth.net@SUSANONE> I love the western part of the state -- I have two friends that live there -- one near Grandfather Mountain. It's a beautiful, beautiful place. If you're interested, I could probably get some information on the area -- but you'd need to like the mountains. :) Susan H. My sister lives in Cary. It is a great area. I believe it was rated as one of the best areas in the country to live. From martyconnelly at shaw.ca Wed Mar 16 17:13:02 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 16 Mar 2005 15:13:02 -0800 Subject: [AccessD] Access FE & MSDE BE? References: <3239124.1110936140270.JavaMail.root@sniper17> <42381CD6.3526.4160FEE@stuart.lexacorp.com.pg> <001401c52a08$8b717260$9111758f@aine> Message-ID: <4238BD7E.6070608@shaw.ca> There is no connection limit on SQL Express 2005 (new MSDE name) There is a 4 gig limit I think. ADP's will only connect to SQL Express with a lot of limits on creating tables through ADP etc. ADP's will work as before if SQL Express is in initially installed with some sort of backwards compatibilty mode kludge A new EM was released in Jan or Dec for SQL Express. Here are some notes I have collected off the SQL 2005 Beta newsgroups http://communities.microsoft.com/newsgroups/default.asp? icp=sqlserver2005&slcid=us It seems to suggest that ADP is being downgraded after 2003 so I would not rush to use ADP's for future development. One reason is DMO has been totally replaced by SMO. Also for this reason you can't easily run SQL Server 2000 and 2005 on same machine, so don't go installing SQL 2005 Express on machines willy nilly without expecting MSDE to get clobbered. So I would install the Betas on a test development sysytem. There have been a freeware new Beta QA and EM for 2005 from MS released in the last month. Just remember they are still tinkering with the Beta and another release in June. Thinking about Access and SQL Server 2005? Might I suggest: "Plan to plan and test carefully too." http://lab.msdn.microsoft.com/express/sql/ http://www.tegels.org/qara/ There's been an interesting thread on the SQL Server Newsgroups about this topic. A developer was trying to create an ADP to work against express and got this message: You have connected to a version of SQL Server later than SQL Server 2000. The version of Visual Studio or Access that you are using was released before the version of SQL Server to which you are connected. For this reason, you might encounter problems. Mary Chipman from Microsoft posted this response: You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. The only support that is envisioned is that you will be able to connect an Access front-end to a SQLS 2005 back end if it is running in SQLS 2000 compatibility mode, so your forms, reports and other local Access objects should still run. There is no service pack or quick fix being planned as far as I know because of the amount of work it would entail. If you stop to think about it, it's pretty hard to see how accomodating new Yukon features like CLR assemblies and complex data types in the ADP designers could be achieved without a complete rewrite. That said, with Access 2003, I was able to connect up to an instance of SQL 2005 (not in 2000 compatibility mode) and work with data with SQL2000 compatible data types. I was also able to stick XML into an XML-typed (but not strongly-typed) column and have it work as expected. The bottom line here seems to be that ADPs aren't worth investing new work into today if you plan to go to SQL Server 2005 with them. However, my limited testing of Access 2003 as the Frontend and SQL Server 2005 as backend using linked tables seems to be okay. Time will tell, of course. microsoft.private.sqlserver2005.dataaccess http://communities.microsoft.com/newsgroups/default.asp? icp=sqlserver2005&slcid=us To amplify what Kent said, there are no plans for supporting designing SQL Server objects using Access ADPs either now or in the future. You can use Access to connect to a SQL Server 2005 database in 2000 compatibility mode, but there is no support for new 2005 functionality being planned. It is recommended that you use the client tools in SQL Server for creating new SQL Server objects. There is also support in Whidbey for creating SQL Server objects. posted on Friday, August 20, 2004 2:03 PM Feedback # re: Thinking about Access and SQL Server 2005? 8/22/2004 12:26 PM Rick Heiges This is good info! I have connected and used several tools with warning messages stating that it probably will not work from Access 2003. From some other threads in the newsgroups, it sounds like ADPs are being hung out to dry. I have mixed feelings about this. ADPs would allow someone with a bunch of Access programming background to leverage that knowledge to work with a SQL Server backend, but there are lots of reasons to not do this too. Access 2000 and SQL Server 2005: Just say no! If memory serves me right, I've talked before about the lack of support that SQL Server 2005 will provide for Access 2000 and my advice has been just say no! The primary reason for this is that the internals of SQL Server 2005 will be considerable different: just consider the XML type, for example. Access 2000 was geared toward SQL Server 7. There's been reports of some features of Access 2000 just not working as well as they should with SQL Server 2000. But I feel that Mary Chipman put it best recently in one of the SQL Server 2005 newsgroups. ...the Access upsizing wizard will only work with SQL Server 2000 editions. There are no plans at this time to rewrite it to work with SQLS 2005. You will also not have the capability to create or modify SQLS 2005 database objects in an Access project (ADP), only to use it as a front-end connected to a "finished" SQLS 2005 database running in SQLS 2000 compatibility mode. Microsoft Moving Away from ADPs in Access Kent Tegels quotes Mary Chipman (who wrote the book) in the SSXE newsgroup as saying that Microsoft are now recommending moving away from ADP based solutions. It looks like this may be an experiment that has not been completely successful which leaves those of us who have implemented these solutions with an interesting support problem going forward. Here is the quote: However, for new application development, ADPs aren't looking so promising, especially if you are thinking in the Yukon timeframe. A couple of problematical issues are complex data types and CLR assemblies. Tackling these head-on in the ADP UI graphical tools in the next version of Access is a daunting challenge, to say the least. ...and... FWIW, the Access team has moved away from recommending ADPs as a front-end to SQLS apps over the last year or so, based on several public talks given by team members at industry conferences. If you are contemplating new development with Access as a FE to a SQLS BE, you'll likely be ahead of the game with an efficiently-designed MDB/linked table solution rather than an ADP. FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc(basically anything that is not using .Net 2.0 or the new SQL Native Client)) http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx Martin Reid wrote: > Have a look at the new version > > http://www.microsoft.com/sql/express/ > > > Martin > > > > ----- Original Message ----- From: "Stuart McLachlan" > > To: "Access Developers discussion and problemsolving" > > Sent: Wednesday, March 16, 2005 1:47 AM > Subject: RE: [AccessD] Access FE & MSDE BE? > > > On 15 Mar 2005 at 19:26, Dan Waters wrote: > >> Is this correct? >> >> The 25 limit is not based on the number of people logged on, but on the >> number of client computers concurrently connecting to the MSDE BE. >> More can >> be logged on. >> > OK, I've just done it bit more searching. > > JC and I are both out of date with our 5. It's 8 in MSDE2000 > > http://msdn.microsoft.com/library/default.asp?url=/library/en- > us/dnmsde2kwrk/html/msde2000webapp.asp > > MSDE 2000 employs what is known as a concurrent Workload Governor. The > effect of the governor is to slow certain operations down by stalling > user > connections for a few milliseconds whenever there are more than eight > concurrent operations. Some system-generated events in the database > engine > count against this eight-operation limit, so the governor may kick in > even > when your application code requests fewer than eight operations. The > key is > concurrent operations, such as executing a query. This is not the same as > concurrent users. > > > The supposed 25 limit (which appears to be an approximation of how many > users before the slowdown becomes noticeable) comes from a number of > different places including: > http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx > > SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable > version of SQL Server. Third-party software developers can include it in > applications they build that use SQL Server to store data. MSDE is an > ideal > solution for: > Client applications that require an embedded database. > Basic websites that serve up to 25 concurrent users. > > > and http://www.microsoft.com/sql/msde/default.asp > > Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, > redistributable version of SQL Server that's ideal for client > applications > that require an embedded database, new developers learning how to build > data-driven applications, and Web sites serving up to 25 concurrent > users. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Mar 16 17:29:11 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 16 Mar 2005 15:29:11 -0800 Subject: [AccessD] Scatter Graph References: <6.2.1.2.0.20050316125239.03429690@mail.dalyn.co.nz> Message-ID: <4238C147.8010902@shaw.ca> Gerry Robinson has some MS graph samples http://www.vb123.com/toolshed/99_graphs/msgraph1.htm unfortunately you need to buy his Toolshed to find the secrets of scatterplots ;) http://www.vb123.com/toolshed/99_graphs/scatterplot.htm David Emerson wrote: > AccessXP > > I am having trouble getting the data source correct for a scatter > graph. I have data in a table with the following fields - > > Series1X, Series1Y, Series2X, Series2Y. > > Using the Chart Wizard I can select the fields, and XY (scatter) > chart. Where I get unstuck is in the "How do you want to lay out your > data in the chart" screen. > > Does anyone have any examples of a scatter chart using two series that > I could look at? > > Regards > > David Emerson > Dalyn Software Ltd > 25 Cunliffe St, Churton Park > Wellington, New Zealand > Ph/Fax (04) 478-7456 > Mobile 027-280-9348 -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Wed Mar 16 17:38:03 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 17 Mar 2005 10:38:03 +1100 Subject: [AccessD] A2003:Sending Mail in Outlook Failing Using Redemption Message-ID: <200503162338.j2GNcDlE015855@cooper.uws.edu.au> Cross Posted to Sue and Dmitry's list Hello all I am putting together some email code that gets all the records from a temp table, loops through all the email address in that temp table and sends an email to those persons using Outlook (11) and Using redemtion If I have say.5 Email address in the temp table and I run the code , The first 2 records from the temp table have emails created for them and the emails can be 'seen' in the 'Drafts' folder of Outlook (As Expected) but the code then fails on the 3rd (Regardless of the email address) with the following error Run-time Error '-2147418113(8000fff) Method Update Not Supported By Automation Object CONTINUE END DEBUG HELP When I click on Debug It highlighs the .Send line in the code below I didn't think I was updating anything ith the code below Any suggestions welcome Many thanks Darren Dim db As DAO.Database Dim sel_SQL As String Dim rs As DAO.Recordset Dim intRecordCount As Integer Dim strFirstName As String Dim gappOutlook As New Outlook.Application Dim msg Dim omsg sel_SQL = "SELECT * FROM [tmptblEmailAddresses]" Set db = CurrentDb() Set rs = db.OpenRecordset(sel_SQL) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs If (rs.EOF) Then MsgBox "There are no Persons who have registered an interest in this Activity/Event", vbInformation, "No Registrations" Else With msg While (Not (rs.EOF)) strFirstName = rs!FirstName .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtAttachment .Body = "Hi " & strFirstName & vbCrLf & vbCrLf & Me.txtBody '.Display .Send '<========DEBUG COMES HERE WHEN IT ERRORS rs.MoveNext Wend End With End If End With From kathryn at bassett.net Wed Mar 16 23:18:16 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 16 Mar 2005 21:18:16 -0800 Subject: Solution RE: [AccessD] 2000 vs 97 - trim error In-Reply-To: <4233EBCA.4080006@shaw.ca> Message-ID: <20050317051817.28D143FC8A@omta16.mta.everyone.net> Solution is that I talked her into upgrading. Since my husband works for school district, we can get the Office2003 Pro for $200 which she can afford. So now, (well, next week after installation) I won't have to worry about things breaking since I won't have to save to previous version. Hmm, I though I had 2003 myself, I guess I'll have to hunt for it and get it installed. BTW, I tried following your various instructions and it still gave me the trim error, so the solution we ae using is not a solution for if we kept on the way we are. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: 12 Mar 2005 11:20 pm > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2000 vs 97 - trim error > > Just open up the code behind a report, there maybe no code > there but there is still p-code attached to the form like the > trim statement and save and compile all. But the error may > have been the uncompiled code in the 2000 version causing it > during a convert. > To test just hit CTRL -G from database window and in debug > window type ?Access.Application.IsCompiled From d.dick at uws.edu.au Wed Mar 16 23:22:45 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 17 Mar 2005 16:22:45 +1100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: <200503170523.j2H5MtlE011440@cooper.uws.edu.au> Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With From andy at minstersystems.co.uk Thu Mar 17 01:36:07 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 17 Mar 2005 07:36:07 -0000 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: <200503170523.j2H5MtlE011440@cooper.uws.edu.au> Message-ID: <000401c52ac3$fbd55a60$b274d0d5@minster33c3r25> I'm not sure if this is it Darren but when I send a batch of emails I'd call this routine for each. In other words I'd be recreating (and Set'ing to Nothing) the Outlook and Redemption items each time. You could try that. Move the lines > Set omsg = gappOutlook.CreateItem(olMailItem) > Set msg = New Redemption.SafeMailItem > > msg.Item = omsg inside the loop. It might help. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: 17 March 2005 05:23 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A2003: Outlook not working using > redemption -DESPERATE > > > Hi all > 2nd Posting > I have now wasted a total of 6 and a half hours on this > It can't be that difficult - surely > > Can someone please help? > > Code below modified from my previous post > > I have references to Outlook 11 > I have references to Redemption > All that side of things is OK > I can send up to 2 emails before the code chokes > The email addresses are real, they work > > All I want this thing to do is > Create the message then send it - loop the recordset then > Create the message then send it - loop the recordset then... > > Simple > > Many thanks > > Darren > > > Dim db As DAO.Database > Dim selSQL As String > Dim rs As DAO.Recordset > > Dim gappOutlook As New Outlook.Application > Dim omsg > Dim msg > > Set db = CurrentDb() > selSQL = "Select tmp_tblEmailAddresses.* from > tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, > dbOpenSnapshot) > > Set omsg = gappOutlook.CreateItem(olMailItem) > Set msg = New Redemption.SafeMailItem > > msg.Item = omsg > > With rs > Do While Not .EOF > With msg > .To = rs!EmailAddress > .cc = Me.txtCC > .bcc = Me.txtBCC > .Subject = Me.txtSubject > .Attachments.Add Me.txtATTACH > .Body = Me.txtBody > '.Display ' shows it in the email client > before sending > .Send > End With > .MoveNext > Loop > End With > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Thu Mar 17 03:16:02 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 17 Mar 2005 10:16:02 +0100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58DF@stekelbes.ithelps.local> Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Mar 17 03:25:20 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 17 Mar 2005 10:25:20 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58E1@stekelbes.ithelps.local> Thank you You can send it to Erwin.Craps at ithelps.be Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Wednesday, March 16, 2005 6:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin, Query based solution will necessarily involve a totals query, which in turn becomes the source for the final select query. However, it is observed that any such query (using the totals query as a source) runs unacceptably slow. The solution lies in appending the output of totals query into a temporary table and using that table as the source for final query. The term temporary implies that data in this table is temporary. The table itself is permanent, like other regular tables. It is found that if the final select query is based upon a subquery using IN clause, the execution is extremely slow, even when using temp table as the source. On the other hand, if a subquery for getting running count of rank is used and all ranks per year per theatre lower than the desired one are filtered out, there is dramatic improvement in speed (the data in your sample db gets processed in less than a second). With the data in your sample db, query based solution for getting top five movies per theatre per year has been worked out (it can be easily modified to suit top 30 values). It is based upon following steps (a) Totals query (Q_Sales), grouping by year, theatre and movie, reflecting the sum of tickets sold and turnover (box office) (b) Append query (Q_App) transferring the output of (a) into temporary table T_Temp (after first clearing the temp table of any existing contents). (c) Select query (Q_TopFivePerYear) based upon T_Temp, showing top five movies (as per tickets sold) per year per theatre. If the top values are required to be as per turnover (instead of tickets sold), the query can be modified suitably. The code snippet given below displays the desired results on a form in datasheet view. Query Q_TopFivePerYear as per (c) above, serves as record source for this form. On your confirmation that you are in a position to successfully receive an attachment (for zipped mdb file), sample db demonstrating the solution can be sent to you. eMail address at which it is to be sent, may also please be indicated. Best wishes, A.D.Tejpal -------------- ==================================== Sub P_GetTopFivePerYear() CurrentDb.Execute "Delete * From T_Temp;" CurrentDb.Execute "Q_App" DoCmd.OpenForm "F_TopFivePerYear", acFormDS End Sub ==================================== ----- Original Message ----- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 15:42 Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Thu Mar 17 07:44:37 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Thu, 17 Mar 2005 14:44:37 +0100 Subject: [AccessD] OT: Word - Find and replace in the text box Message-ID: <000d01c52af7$7afc9730$0100a8c0@RazvojErvin> Hi, I'm doing some Word automation. There is a .doc file with my control names from the Access form, and in the .doc file these control names have to be replaced with control's values. E.g. In the .doc file is: My name is txtName . And the procedure ReplacePara replaces the text txtName to the text box value from Access. And in .doc file is: My name is Ervin. My problem is that the text txtName in the .doc file is in text box!, and the sub ReplacePara can't enter into text box(it works fine with "ordinary" text). How can I find and replace some text in text boxes? The backgound of a .doc file is an inserted picture(can't put it in watermark because it is too light) . TIA Ervin ' Private Sub ReplacePara(Header As String, Data As String) ObjWord.ActiveDocument.Content.Find.Execute FindText:=Header, _ ReplaceWith:=Data, Replace:=wdReplaceAll End Sub Private Sub DeletePara(Header As String, Keep As Boolean) 'Loop ensures that all occurences are replaced 'Forward and backward loops ensure that all occurences (ahead or behind) ' current cursor position are replaced With ObjWord.Selection.Find .ClearFormatting Do While .Execute(FindText:=Header, Forward:=True, _ Format:=True) = True If Keep = False Then Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) End If ObjWord.Selection.Delete Loop End With With ObjWord.Selection.Find .ClearFormatting Do While .Execute(FindText:=Header, Forward:=False, _ Format:=True) = True If Keep = False Then Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) End If ObjWord.Selection.Delete Loop End With End Sub Private Sub ChekControls() ' Use the Tag property of the control to decide which ones ' will be used for reporting Dim Ctrl As Control For Each Ctrl In Me.Form If IsNull(Ctrl.Value) Or Len(Trim(Ctrl.Value)) = 0 Then Call DeletePara(Ctrl.Name, False) Else Call ReplacePara(Ctrl.Name, Ctrl.Value) End If Next Ctrl End Sub From dba.email at gmail.com Thu Mar 17 10:23:56 2005 From: dba.email at gmail.com (Admin Sparky) Date: Thu, 17 Mar 2005 11:23:56 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> References: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> Message-ID: <5f2de24205031708236d7a0755@mail.gmail.com> Rocky, Some of us were stationed here, left, and came back...now living in Chesapeake, VA. Unfortunately I can only comment on the strip of NC from the area of Nags Head northward. Nice place to visit...in between hurricanes...:( I know that seems harsh and I don't mean to condemn people for choosing to live there. The entire Outer Banks really is a wonderful area if you can ignore the tourists and the occasional catastrophic storm. Mark M. On Wed, 16 Mar 2005 12:31:03 -0500, John W. Colby wrote: > Dan, > > You got to Norfolk just as I was leaving. I was on the USS Kennedy for 3.5 > years from Jan 75 to June 78, and our home port was Norfolk. From > everything I can find on the internet the area of NC up along the VA border > is quite beautiful and lots of industry and jobs. I'm looking to live "out > of town" but be near a big industrial area where I can build a client base, > grow old, and die. > > Notice that retirement is not in there anywhere. ;-) I'm about to adopt my > two foster children next month so it looks like I will never retire. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, March 16, 2005 12:15 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: North Carolina > > John, > > I lived in Norfolk VA for about 10 years (military). I left in 1987. > Because I grew up in Minnesota, some things were memorable to me because of > the contrast. > > Weather: If you are going to live within 30 miles of the coast, be prepared > for high humidity year round - including winter. When you go outside in > winter, your clothes offer little insulation because the humidity passes > heat through your clothes so quickly. I was warmer in MN because I could > dress for the weather. > > Roads: Some of the roads in the older cities are, as you might expect, > lacking in planning. If you're coming from a modern city you'll notice. > > Houses: No Basements is the norm. This was a surprise to me since a > basement doubles your square footage. But in that climate they have no > frost so basements aren't needed. And if you're near the coast, they could > be below sea level. On the other hand, people who've been there all their > lives are surprised at what a basement is! > > Culture: A few folks may still have trouble letting go of the Civil War and > the 'Southern Culture'. I hope I don't offend anyone with this but it was > true when I was there. > > Best of Luck! > Dan Waters > www.ProMationSystems.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Wednesday, March 16, 2005 10:36 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT: North Carolina > > I am looking at moving to North Carolina next summer (2006). If we have any > members in (or from) that area who would like to advise me on where to look > at living, where NOT to live etc, please email me off line. Any info would > be much appreciated. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Mar 17 10:58:56 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 Mar 2005 08:58:56 -0800 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 17 15:47:31 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 17 Mar 2005 13:47:31 -0800 Subject: [AccessD] OT: North Carolina References: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> <5f2de24205031708236d7a0755@mail.gmail.com> Message-ID: <022201c52b3a$ebd835c0$6501a8c0@HAL9002> We were there last summer for a family reunion. One of those big hoses on the beach that sleeps 20. Hurricane Alex blew in for a day with 70mph winds. It was wild. Rocky ----- Original Message ----- From: "Admin Sparky" To: "Access Developers discussion and problem solving" Sent: Thursday, March 17, 2005 8:23 AM Subject: Re: [AccessD] OT: North Carolina > Rocky, > > Some of us were stationed here, left, and came back...now living in > Chesapeake, VA. Unfortunately I can only comment on the strip of NC > from the area of Nags Head northward. Nice place to visit...in > between hurricanes...:( I know that seems harsh and I don't mean to > condemn people for choosing to live there. The entire Outer Banks > really is a wonderful area if you can ignore the tourists and the > occasional catastrophic storm. > > > Mark M. > > > > On Wed, 16 Mar 2005 12:31:03 -0500, John W. Colby > wrote: >> Dan, >> >> You got to Norfolk just as I was leaving. I was on the USS Kennedy for >> 3.5 >> years from Jan 75 to June 78, and our home port was Norfolk. From >> everything I can find on the internet the area of NC up along the VA >> border >> is quite beautiful and lots of industry and jobs. I'm looking to live >> "out >> of town" but be near a big industrial area where I can build a client >> base, >> grow old, and die. >> >> Notice that retirement is not in there anywhere. ;-) I'm about to adopt >> my >> two foster children next month so it looks like I will never retire. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Wednesday, March 16, 2005 12:15 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] OT: North Carolina >> >> John, >> >> I lived in Norfolk VA for about 10 years (military). I left in 1987. >> Because I grew up in Minnesota, some things were memorable to me because >> of >> the contrast. >> >> Weather: If you are going to live within 30 miles of the coast, be >> prepared >> for high humidity year round - including winter. When you go outside in >> winter, your clothes offer little insulation because the humidity passes >> heat through your clothes so quickly. I was warmer in MN because I could >> dress for the weather. >> >> Roads: Some of the roads in the older cities are, as you might expect, >> lacking in planning. If you're coming from a modern city you'll notice. >> >> Houses: No Basements is the norm. This was a surprise to me since a >> basement doubles your square footage. But in that climate they have no >> frost so basements aren't needed. And if you're near the coast, they >> could >> be below sea level. On the other hand, people who've been there all >> their >> lives are surprised at what a basement is! >> >> Culture: A few folks may still have trouble letting go of the Civil War >> and >> the 'Southern Culture'. I hope I don't offend anyone with this but it >> was >> true when I was there. >> >> Best of Luck! >> Dan Waters >> www.ProMationSystems.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Wednesday, March 16, 2005 10:36 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] OT: North Carolina >> >> I am looking at moving to North Carolina next summer (2006). If we have >> any >> members in (or from) that area who would like to advise me on where to >> look >> at living, where NOT to live etc, please email me off line. Any info >> would >> be much appreciated. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Mar 17 16:04:42 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 18 Mar 2005 09:04:42 +1100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: Message-ID: <200503172204.j2HM4rlE006727@cooper.uws.edu.au> Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 17 17:27:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 Mar 2005 15:27:11 -0800 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: I'm not sure I understand the question. It will create one email with all the To addresses, but each addressee will get an email showing all the To addresses, and I don't think you would want that. We use this in our applications when a report is being sent to a number of different email addresses. We certainly don't create an email for each, but we also don't send a hundred of them at once! An alternative would be to added the recipients to the BCC, which only shows the individual addressee their own address. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, March 17, 2005 2:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 17 18:45:25 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 18 Mar 2005 11:45:25 +1100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: Message-ID: <200503180045.j2I0jZlE013331@cooper.uws.edu.au> HI Charlotte Thanks for the reply This application potentially will be sending out multiples of hundreds (In one circumstance even thousands) of emails - No it's not spam :-)) So instead of using .To = rs!EmailAddress in the RS loop I can build a string of recipients by typing .Recipients.Add rs!EmailAddress somewhere in the RS loop Then at the end of the loop have something like .BCC = .recipients Is that right? So instead of sending multiple of hundreds, just send one with hundreds of BCC's Cool Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 10:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE I'm not sure I understand the question. It will create one email with all the To addresses, but each addressee will get an email showing all the To addresses, and I don't think you would want that. We use this in our applications when a report is being sent to a number of different email addresses. We certainly don't create an email for each, but we also don't send a hundred of them at once! An alternative would be to added the recipients to the BCC, which only shows the individual addressee their own address. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, March 17, 2005 2:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Thu Mar 17 19:27:57 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 17 Mar 2005 17:27:57 -0800 Subject: [AccessD] 2003 "permissions" Message-ID: <20050318012800.3BE3E3FC9C@omta16.mta.everyone.net> I just updated to Access 2004. Trying to open a database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? Another thing I get is the Security warning "This file may not be safe if it contains code that was intended to harm your computer. Do you want to open this file or cancel the operation?" How do I get it to NOT ask me that everytime I open it? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From stuart at lexacorp.com.pg Thu Mar 17 19:41:27 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 18 Mar 2005 11:41:27 +1000 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: <200503180045.j2I0jZlE013331@cooper.uws.edu.au> References: Message-ID: <423ABE67.10329.504FF69@stuart.lexacorp.com.pg> On 18 Mar 2005 at 11:45, Darren DICK wrote: > Is that right? > So instead of sending multiple of hundreds, just send one with hundreds of BCC's > Be careful - many mail servers have a limit of the number of recipients for a single message. This should be at least 100 according to the RFCs, but many ISPs are implementing a lower limit than this as an anti-spam measure. -- Stuart From jmoss111 at bellsouth.net Thu Mar 17 21:02:54 2005 From: jmoss111 at bellsouth.net (James Moss) Date: Thu, 17 Mar 2005 21:02:54 -0600 Subject: [AccessD] 2003 "permissions" In-Reply-To: <20050318012800.3BE3E3FC9C@omta16.mta.everyone.net> Message-ID: <20050318025715.SWPG12676.imf22aec.mail.bellsouth.net@jmoss3> The security warning can be disabled by clicking Tools|Macro|Security and set the security level to low. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Thursday, March 17, 2005 7:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] 2003 "permissions" I just updated to Access 2004. Trying to open a database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? Another thing I get is the Security warning "This file may not be safe if it contains code that was intended to harm your computer. Do you want to open this file or cancel the operation?" How do I get it to NOT ask me that everytime I open it? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Thu Mar 17 21:23:48 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 17 Mar 2005 19:23:48 -0800 Subject: [AccessD] 2003 "permissions" Thanks In-Reply-To: <20050318025715.SWPG12676.imf22aec.mail.bellsouth.net@jmoss3> Message-ID: <20050318032350.EF82F403BD@omta18.mta.everyone.net> I had been trying to find something in Tools|Security and didn't realize there was another Security area. Thanks. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Moss > Sent: 17 Mar 2005 7:03 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] 2003 "permissions" > > The security warning can be disabled by clicking > Tools|Macro|Security and set the security level to low. From kathryn at bassett.net Thu Mar 17 21:26:11 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 17 Mar 2005 19:26:11 -0800 Subject: [AccessD] 2003 "permissions" - the other part In-Reply-To: <20050318012800.3BE3E3FC9C@omta16.mta.everyone.net> Message-ID: <20050318032614.2846E3FC21@omta16.mta.everyone.net> James Moss answered the securities part of my query, now back to the original part which only affects one database. I just updated to Access 2003. Trying to open a specifc database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net From martyconnelly at shaw.ca Fri Mar 18 01:12:22 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 17 Mar 2005 23:12:22 -0800 Subject: [AccessD] 2003 "permissions" - the other part References: <20050318032614.2846E3FC21@omta16.mta.everyone.net> Message-ID: <423A7F56.9080702@shaw.ca> 1 the database could be corrupt, 2 or this implies that there is an mdw file and you don't have permission to use something. 3 Right-click the mdb file and mdw file if there is one in the Windows Explorer. Is it read-only? Is there a security warning that the file is blocked, with an unblock button? 4 Did you use an mdw file originally ie When you open the database, do you enter a username and password? if so you may have to point to the original mdw rather than the new one established by Access 2003 You can build a shortcut to the mdb to use that particular mdw file as well. The target for the shortcut would be something like this: "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\MyFolder\MyFile.mdb" /wrkgrp "C:\MyFolder\system.mdw" It could be a folder permision problem but unlikely if you truely installed to an admin account Kathryn Bassett wrote: >James Moss answered the securities part of my query, now back to the original part which only affects one database. > >I just updated to Access 2003. Trying to open a specifc database. Get: > >"You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." > >What the heck? I AM the administrator - what do I do (step by step please)? > >-- >Kathryn Rhinehart Bassett (Pasadena CA) >"Genealogy is my bag" "GH is my soap" >kathryn at bassett.net > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Fri Mar 18 01:23:16 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 18 Mar 2005 08:23:16 +0100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5903@stekelbes.ithelps.local> This is the code for dooing that Notice I also add customer company, last and first names, I find it more personal that if the display name is set correctly, but it's not obligated. Dim mItem As Outlook.MailItem '... Other code Set mRecip = mItem.Recipients.Add(rs.Fields("Company") & "-" & rs.Fields("Firstname") & " " & rs.Fields("surname") & " " & rs.Fields("Email")) mRecip.Type = olBCC mRecip.Resolve Set mRecip = Nothing As already said by stuart, keep in mind that the SMTP server that u use to relay your mails can have a maximum of x recipients (all in to, cc and bcc). If our company has an own SMTP server, ask your mail administrator. If u use the ISP SMTP server, ask your ISP. My ISP for example supports up to 999 recipients in 1 mail. Greetings Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, March 18, 2005 1:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE HI Charlotte Thanks for the reply This application potentially will be sending out multiples of hundreds (In one circumstance even thousands) of emails - No it's not spam :-)) So instead of using .To = rs!EmailAddress in the RS loop I can build a string of recipients by typing .Recipients.Add rs!EmailAddress somewhere in the RS loop Then at the end of the loop have something like .BCC = .recipients Is that right? So instead of sending multiple of hundreds, just send one with hundreds of BCC's Cool Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 10:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE I'm not sure I understand the question. It will create one email with all the To addresses, but each addressee will get an email showing all the To addresses, and I don't think you would want that. We use this in our applications when a report is being sent to a number of different email addresses. We certainly don't create an email for each, but we also don't send a hundred of them at once! An alternative would be to added the recipients to the BCC, which only shows the individual addressee their own address. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, March 17, 2005 2:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 18 01:31:26 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 18 Mar 2005 08:31:26 +0100 Subject: [AccessD] 2003 "permissions" - the other part Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5904@stekelbes.ithelps.local> When upgrading/installing A2K3 your MDW file get overwritten by the default one of Office 2K3. Or in case the MDW file was not in the default location, The MDW (workgroup) file path has been set to the default one. You will need to join the corrept MDW (workgroup) file before you will be able to do what you want to do. When it's overwritten you will need to restore from backup. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Friday, March 18, 2005 4:26 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] 2003 "permissions" - the other part James Moss answered the securities part of my query, now back to the original part which only affects one database. I just updated to Access 2003. Trying to open a specifc database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Mar 18 02:56:52 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 9:56:52 +0100 Subject: [AccessD] Outlook/Redemption Recipients Message-ID: <20050318095651.63143256C7B@smtp.nildram.co.uk> Apologies for changing the subject. I'm at work on webmail and don't have the originals to look at. Darren, This is code I use to add recipients to a Redemption message then send. the object names will be different from yours and you'll need to replace my For loop with your recordset loop. add this to your Dim's Dim objRecipient As Object then With objSafeMailItem For x = 1 To UBound(prmBCCArr) Set objRecipient = .Recipients.Add(prmBCCArr(x)) objRecipient.Type = olBCC Next .Recipients.ResolveAll Which allows you to designate the recipients as BCCs. I'd also agree that you can only expect to put so many recipients on one email, so you could have a loop within a loop counting to, say, 100 in the inner loop, then sending one email then go round again until EOF. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From viner at EUnet.yu Fri Mar 18 04:37:54 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Fri, 18 Mar 2005 11:37:54 +0100 Subject: [AccessD] OT: Word - Find and replace in the text box References: <000d01c52af7$7afc9730$0100a8c0@RazvojErvin> Message-ID: <001101c52ba7$7375cd00$0100a8c0@RazvojErvin> Hi, I just found a solution on http://word.mvps.org Sorry for increasing List traffic... Ervin PS Feel free to ask for the solution privately! ----- Original Message ----- From: "Ervin Brindza" To: Sent: Thursday, March 17, 2005 2:44 PM Subject: [AccessD] OT: Word - Find and replace in the text box > Hi, > I'm doing some Word automation. There is a .doc file with my control names from the Access form, and in the .doc file these control names have to be replaced with control's values. > E.g. In the .doc file is: > My name is txtName . And the procedure ReplacePara replaces the text txtName to the text box value from Access. And in .doc file is: My name is Ervin. My problem is that the text txtName in the .doc file is in text box!, and the sub ReplacePara can't enter into text box(it works fine with "ordinary" text). How can I find and replace some text in text boxes? The backgound of a .doc file is an inserted picture(can't put it in watermark because it is too light) . > TIA > Ervin > > > ' > Private Sub ReplacePara(Header As String, Data As String) > ObjWord.ActiveDocument.Content.Find.Execute FindText:=Header, _ > ReplaceWith:=Data, Replace:=wdReplaceAll > End Sub > > > Private Sub DeletePara(Header As String, Keep As Boolean) > > 'Loop ensures that all occurences are replaced > 'Forward and backward loops ensure that all occurences (ahead or behind) > ' current cursor position are replaced > > With ObjWord.Selection.Find > .ClearFormatting > Do While .Execute(FindText:=Header, Forward:=True, _ > Format:=True) = True > If Keep = False Then > Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) > End If > ObjWord.Selection.Delete > Loop > End With > > With ObjWord.Selection.Find > .ClearFormatting > Do While .Execute(FindText:=Header, Forward:=False, _ > Format:=True) = True > If Keep = False Then > Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) > End If > ObjWord.Selection.Delete > Loop > End With > > End Sub > > Private Sub ChekControls() > ' Use the Tag property of the control to decide which ones > ' will be used for reporting > > Dim Ctrl As Control > For Each Ctrl In Me.Form > > If IsNull(Ctrl.Value) Or Len(Trim(Ctrl.Value)) = 0 Then > Call DeletePara(Ctrl.Name, False) > Else > Call ReplacePara(Ctrl.Name, Ctrl.Value) > End If > Next Ctrl > End Sub > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Mar 18 06:19:32 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Mar 2005 13:19:32 +0100 (CET) Subject: [AccessD] Is one time between two other times Message-ID: <17068716.1111148372757.JavaMail.www@wwinf3003> To all, I can't seem to figure this out at all, I have a table of which one of the fields is a start time. I need to run a query to see if that time is between 07:00 and 19:00 or 19:00 and 07:00. Can any help me with this please. Thanks in advance for your help. Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From jwcolby at colbyconsulting.com Fri Mar 18 06:37:50 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 18 Mar 2005 07:37:50 -0500 Subject: [AccessD] Is one time between two other times In-Reply-To: <17068716.1111148372757.JavaMail.www@wwinf3003> Message-ID: <000801c52bb7$50497c90$697aa8c0@ColbyM6805> Option Compare Database Option Explicit '. '.========================================================================= '.Copyright : CColby Consulting 2001. All rights reserved. '.E-mail : jcolby at ColbyConsulting.com '.========================================================================= ' DO NOT DELETE THE COMMENTS ABOVE. All other comments in this module ' may be deleted from production code, but lines above must remain. '-------------------------------------------------------------------------- '.Description : '.Written By : John W. Colby '.Date Created : 06/08/2001 '.Rev. History : '.Comments : This module provides an "appointment collision" checking 'routine. Any two records with start and stop times and dates can be fed into 'this function to check for a collision. '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' '*+ custom constants declaration Private Const mcstrModuleName As String = "basCollisionCheck" Const DebugPrint = True '*- Custom constants declaration '*+ custom Variables declaration '*- custom Variables declaration ' 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict 'because it ends before the existing one starts (Et < Se) and 6 does not have a conflict 'since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision ' If IsNull(dtmSTNew) Or IsNull(dtmSTExist) Then ' ccApptCollision = False ' Exit Function ' End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew <= dtmETExist) And (dtmETNew >= dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: On Error Resume Next Exit Function Err_ccApptCollision: Select Case err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep msgbox err.description ' LogError mcstrModuleName, err.Number, err.Description, "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, March 18, 2005 7:20 AM To: accessd Subject: [AccessD] Is one time between two other times To all, I can't seem to figure this out at all, I have a table of which one of the fields is a start time. I need to run a query to see if that time is between 07:00 and 19:00 or 19:00 and 07:00. Can any help me with this please. Thanks in advance for your help. Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Mar 18 07:01:59 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 18 Mar 2005 13:01:59 -0000 Subject: [AccessD] Rtf to text Message-ID: <200503181252.j2ICqOx18007@smarthost.yourcomms.net> Hi Been out-of-office. No I could not find the property, maybe the version I am using is different. I did find a solution albeit long-winded (but effective). Created a ms access form with tb1 (standard text box with raw rtf stringed data), tb2 (rtf activex control) and tb3 (standard text box). Write a prog to move thru the underlying rs, for each record set focus on tb2, use sendkeys to highlight text and do a ctrl C to copy the data. Then set focus on tb3. Here sendkeys to ctl V to paste the data in did not work so I used a docmd to use the menubar to do a paste function into tb3. Et voila Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 March 2005 09:35 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Rtf to text Hi Richard Did you find out? /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Mar 18 09:11:21 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 18 Mar 2005 10:11:21 -0500 Subject: [AccessD] Reminder - Joke Day Message-ID: I need to laugh. Any good links, jokes permitted today. From john at winhaven.net Fri Mar 18 09:33:25 2005 From: john at winhaven.net (John Bartow) Date: Fri, 18 Mar 2005 09:33:25 -0600 Subject: [AccessD] Reminder - Joke Day In-Reply-To: Message-ID: OK Karen, here's one my sister sent me. NEW DRUGS FOR WOMEN D A M N I T O L Take 2 and the rest of the world can go to hell for up to 8 full hours. ST. M O M M A'S W O R T Plant extract that treats mom's depression by rendering preschoolers unconscious for up to two days. E M P T Y N E S T R O G E N Suppository that eliminates melancholy and loneliness by reminding you of how awful they were as teenagers and how you couldn't wait till they moved out. P E P T O B I M B O Liquid silicone drink for single women. Two full cups swallowed before an evening out increases breast size, decreases intelligence, and prevents conception. D U M B E R O L When taken with Peptobimbo, can cause dangerously low IQ, resulting in enjoyment of country music and pickup trucks. F L I P I T O R Increases life expectancy of commuters by controlling road rage and the urge to flip off other drivers. M E N I C I L L I N Potent anti-boy-otic for older women. Increases resistance to such lethal lines as, "You make me want to be a better person . Can we get naked now?" B U Y A G R A Injectable stimulant taken prior to shopping. Increases potency, duration, and credit limit of spending spree.. J A C K A S S P I R I N Relieves headache caused by a man who can't remember your birthday, anniversary or phone number. A N T I - T A L K S I D E N T! A spray carried in a purse or wallet to be used on anyone too eager to share their life stories with total strangers in elevators or on airplanes. N A G A M E T When administered to a husband, provides the same irritation level as nagging him all weekend, saving the wife the time and trouble of doing it herself. From cyx5 at cdc.gov Fri Mar 18 10:32:46 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 18 Mar 2005 11:32:46 -0500 Subject: [AccessD] Friday - OT - Actual Courtroom Questioning Message-ID: These are from a book called Disorder in the American Courts, and are things people actually said in court, word for word, taken down and now published by court reporters that had the torment of staying calm while these exchanges were actually taking place. Q: Are you sexually active? A: No, I just lie there. _______________________________ Q: What is your date of birth? A: July 15. Q: What year? A: Every year. ______________________________________ Q: What gear were you in at the moment of the impact? A: Gucci sweats and Reeboks. ______________________________________ Q: This myasthenia gravis, does it affect your memory at all? A: Yes. Q: And in what ways does it affect your memory? A: I forget. Q: You forget? Can you give us an example of something that you've forgotten? _____________________________________ Q: How old is your son, the one living with you? A: Thirty-eight or thirty-five, I can't remember which. Q: How long has he lived with you? A: Forty-five years. _____________________________________ Q: What was the first thing your husband said to you when he woke up that morning? A: He said, "Where a m I, Cathy?" Q: And why did that upset you? A: My name is Susan. ______________________________________ Q: Do you know if your daughter has ever been involved in voodoo or the occult? A: We both do. Q: Voodoo? A: We do. Q: You do? A: Yes, voodoo. ______________________________________ Q: Now doctor, isn't it true that when a person dies in his sleep, he doesn't know about it until the next morning? A: Did you actually pass the bar exam? ___________________________________ Q: The youngest son, the twenty-year-old, how old is he? _____________________________________ Q: Were you present when your picture was taken? ______________________________________ Q: So the date of conception (of the baby) was August 8th? A: Yes. Q: And what were you doing at that time? ______________________________________ Q: She had three children, right? A: Yes. Q: How many were boys? A: None. Q: Were there any girls? ______________________________________ Q: How was your first marriage terminated? A: By death. Q: And by whose death was it terminated? ______________________________________ Q: Can you describe the individual? A: He was about medium height and had a beard. Q: Was this a male, or a female? ______________________________________ These are from a book called Disorder in the American Courts, and are things people actually said in court, word for word, taken down and now published by court reporters that had the torment of staying calm while these exchanges were actually taking place. Q: Is your appearance here this morning pursuant to a deposition notice which I sent to your attorney? A: No, this is how I dress when I! go to work. ______________________________________ Q: Doctor, how many autopsies have you performed on dead people? A: All my autopsies are performed on dead people. ______________________________________ Q: ALL your responses MUST be oral, OK? What school did you go to? A: Oral. ______________________________________ Q: Do you recall the time that you examined the body? A: The autopsy started around 8:30 p.m. Q: And Mr. Dennington was dead at the time? A: No, he was sitting on the table wondering why I was doing an autopsy. ______________________________________ Q: Are you qualified to give a urine sample? ______________________________________ Q: Doctor, before you performed the autopsy, did you check for a pulse? A: No. Q: Did you check for blood pressure? A: No. Q: Did you check for breathing?! A: No. Q: So, then it is possible that the patient was alive when you began the autopsy?A: No. Q: How can you be so sure, Doctor? A: Because his brain was sitting on my desk in a jar. Q: But could the patient have still been alive, nevertheless? A: Yes, it is possible that he could have been alive and practicing law somewhere From accessd at shaw.ca Fri Mar 18 10:39:38 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 18 Mar 2005 08:39:38 -0800 Subject: [AccessD] Reminder - Joke Day In-Reply-To: Message-ID: <0IDK00D3E3NGRJ@l-daemon> Hi Karen: A Few Stupid Client Quotes 1.) While working on an email-based support desk for an ISP, I received an email from a client who was having difficulty using her browser. I requested that she "paste the error message into an email" So that I knew exactly what the error was. She then proceeded to print it out, cut around the error message, glue it on to another piece of paper, scan it and send it as an attachment. And she wasn't trying to be funny. 2.) I work at a call center, tech support. User error of the Day: customer: "My printer isn't printing!" me: "have you turned it on?" customer: "no.." Customer: "its still not printing, do I have to do anything else?" me: "Have you installed the software?" customer: "software? eeh.. What do you mean?" me: "you have to install the software that came along on a CD. go find the CD and the manual that also came with the printer." customer hangs up and calls back ten minutes later. Customer: "now I found the CD!" so I help her install it. The printer made printer sounds and sounds all right, except.. Customer: "It's still not printing!" me: "it sounds like the paper feed is struggling. Did you give it paper at all?" customer: "paper?" 3.) Sys-admin: I will remote control to your machine, save everything; I may need to reboot your computer. User: Ok ... let me do that now. The user took over 5 minutes and I didn't know what she was doing until I remote control to her machine. She was opening every document, clicking on FILE > SAVE and then closing it just to open another one and do the same thing. Sys-admin: What are you doing? Confused User: You told me to save everything. 4.) I received a call from the help desk stating that the CEO's administrative assistant had crashed her machine and all of her files were stored locally because she did not trust the file shares. They were unable to get the machine up and asked if I could please come by and look at it. I stop by and I also was unable to get her machine to boot. It was a truly horrible screen of death. She explained that while working on her documents the machine "just blue screened" So... I boot from a Linux disk, mount her hard drive. I then turn to her and ask, "What exactly were you doing when the machine crashed?? She responded that she was organizing her files. And she was.... she had one folder labeled exe, another labeled dll, etc... 5.) Political correctness has gone too far. Don't believe me, here's proof. Client: I want to make sure our website isn't offensive to any people group. Can you guys make sure not to use any racial slurs or words that sound like racial slurs? Me: Sure, that shouldn't be a problem. Client: And, can we make a left handed version of the site? One of my kids is left handed and he loves that store where everything is for Lefty's. Me: How do you mean? Client: Well, maybe just post a disclaimer that this site is lefty-friendly. Then just make sure everything is on both sides of the screen, ya know, a menu on the right AND on the left. Me: Sure, I guess we can work that in, anything else? Client: And maybe we shouldn't have sound, because then deaf people would feel left out. Me: Ok.... That sounds fine. (Thinking: not that they would know, they're deaf) Client: Oh wait; do you have a sign language font? You could just do that. Me: No, there isn't a sign language font(confused), most deaf people can read, sir. Client: Yeah, but they can't hear. I mean, I want music, but it has to be deaf person friendly too, right? Just put up a subtitle that says "music playing" like it does on TV. Me: I have a feeling that will just make the deaf person feel ... Client: Oh how would you know, you're not deaf. I don't want to get sued. He got what he wanted, no racial slurs, a menu on both sides of the website, and subtitles. That's just too much folks. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, March 18, 2005 7:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] Reminder - Joke Day I need to laugh. Any good links, jokes permitted today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Mar 18 10:49:52 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Mar 2005 17:49:52 +0100 (CET) Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: <19746650.1111164592837.JavaMail.www@wwinf3002> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Gustav at cactus.dk Fri Mar 18 10:59:35 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 18 Mar 2005 17:59:35 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland From andy at minstersystems.co.uk Fri Mar 18 10:01:25 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 17:01:25 +0100 Subject: [AccessD] Reminder - Joke Day Message-ID: <20050318170122.143CE250FE0@smtp.nildram.co.uk> You know this one I'm sure. I may even have heard of it from the list. http://www.ghostplace.com/forum/topic.asp?TOPIC_ID=8196 -- Andy Lacey http://www.minstersystems.co.uk > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Friday, March 18, 2005 7:11 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Reminder - Joke Day > > I need to laugh. Any good links, jokes permitted today. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Fri Mar 18 11:50:47 2005 From: john at winhaven.net (John Bartow) Date: Fri, 18 Mar 2005 11:50:47 -0600 Subject: [AccessD] Reminder - Joke Day In-Reply-To: <20050318170122.143CE250FE0@smtp.nildram.co.uk> Message-ID: :o) Those kinds of jokes are always good for the laundry! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, March 18, 2005 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reminder - Joke Day You know this one I'm sure. I may even have heard of it from the list. http://www.ghostplace.com/forum/topic.asp?TOPIC_ID=8196 -- Andy Lacey http://www.minstersystems.co.uk > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Friday, March 18, 2005 7:11 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Reminder - Joke Day > > I need to laugh. Any good links, jokes permitted today. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Fri Mar 18 13:51:36 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 18 Mar 2005 15:51:36 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee9041202115974503750@mail.gmail.com> References: <3bf43ee9041202115974503750@mail.gmail.com> Message-ID: <3bf43ee905031811512173560c@mail.gmail.com> Hello Is there anyway to pack a linked dbf file programatically within Access 97? When I delete records in a dbf table using my .mdb app the records are still appearing in my ArcGIS software but not from the mdb app. A packing solution is needed. I hope it is available. Thanks BL From bchacc at san.rr.com Fri Mar 18 14:15:10 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 18 Mar 2005 12:15:10 -0800 Subject: [AccessD] Calling a routine in a sub form Message-ID: <001b01c52bf7$2faf6ef0$6501a8c0@HAL9002> Dear List: I can never remember how this syntax goes. I want to call a routine in a subform from a main form. It's actually in the after update event of a combo box. I want to set the focus to the first occurrence of the selected record in the sub-form to whatever the user selects in the combo box on the main form. So the routine in the subform does the RecodsetClone.FindFirst/Bookmark thing. Any help appreciated. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From cfoust at infostatsystems.com Fri Mar 18 15:17:22 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 18 Mar 2005 13:17:22 -0800 Subject: [AccessD] packing a dbf from within Access 97 Message-ID: There is no "pack" command for an Access database, which is what I assume the "dbf" file in question to be. When you delete records, they are gone immediately. If the records are still appearing in your ArcGIS application, then it doesn't sound like the fault is with Access, but with refreshing the links the ArcGIS software is holding. Charlotte Foust -----Original Message----- From: Boogie Loogie [mailto:boogieloogie at gmail.com] Sent: Friday, March 18, 2005 11:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] packing a dbf from within Access 97 Hello Is there anyway to pack a linked dbf file programatically within Access 97? When I delete records in a dbf table using my .mdb app the records are still appearing in my ArcGIS software but not from the mdb app. A packing solution is needed. I hope it is available. Thanks BL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 18 15:18:44 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 18 Mar 2005 13:18:44 -0800 Subject: [AccessD] Calling a routine in a sub form Message-ID: Rocky, the routine being called has to be a public method of the subform. Then you can call it like this: Call Me.SubformControl.Form.MyMethod() Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, March 18, 2005 12:15 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Calling a routine in a sub form Dear List: I can never remember how this syntax goes. I want to call a routine in a subform from a main form. It's actually in the after update event of a combo box. I want to set the focus to the first occurrence of the selected record in the sub-form to whatever the user selects in the combo box on the main form. So the routine in the subform does the RecodsetClone.FindFirst/Bookmark thing. Any help appreciated. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Mar 18 15:33:25 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 18 Mar 2005 13:33:25 -0800 Subject: [AccessD] Calling a routine in a sub form References: Message-ID: <005c01c52c02$1e5d87d0$6501a8c0@HAL9002> Charlotte: Wonderful! It was the Public in the subform module that I was missing. Thanks and regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, March 18, 2005 1:18 PM Subject: RE: [AccessD] Calling a routine in a sub form > Rocky, the routine being called has to be a public method of the > subform. Then you can call it like this: > > Call Me.SubformControl.Form.MyMethod() > > Charlotte Foust > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, March 18, 2005 12:15 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Calling a routine in a sub form > > > Dear List: > > I can never remember how this syntax goes. I want to call a routine in > a subform from a main form. It's actually in the after update event of > a combo box. I want to set the focus to the first occurrence of the > selected record in the sub-form to whatever the user selects in the > combo box on the main form. So the routine in the subform does the > RecodsetClone.FindFirst/Bookmark thing. > > Any help appreciated. > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 18 16:09:36 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 22:09:36 -0000 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee905031811512173560c@mail.gmail.com> Message-ID: <000201c52c07$2c153df0$b274d0d5@minster33c3r25> Hi BL Presumably if you're using a dbf you have Clipper, Foxpro or something which maintains it. Couldn't you write a small EXE in one of those and Shell to it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Boogie Loogie > Sent: 18 March 2005 19:52 > To: Access Developers discussion and problem solving > Subject: [AccessD] packing a dbf from within Access 97 > > > Hello > > Is there anyway to pack a linked dbf file programatically > within Access 97? When I delete records in a dbf table using > my .mdb app the records are still appearing in my ArcGIS > software but not from the mdb app. > > A packing solution is needed. I hope it is available. > > Thanks > > BL > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From boogieloogie at gmail.com Fri Mar 18 16:12:47 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 18 Mar 2005 18:12:47 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: References: Message-ID: <3bf43ee905031814124abfafe8@mail.gmail.com> Actually when using access to delete records from a dbf file they are infact not deleted. They are only marked for delete. Access recognizes that files that are marked as deleted, flagged if you will, should not appear. Other programs need the dbf packed, thus a true delete, or else the records will display. Not really the fault of either software...just the way the manufacturers handled the situation when developing. Oh well I will try and write my own utility to see what I can come up with. Thanks anyway. BL On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust wrote: > There is no "pack" command for an Access database, which is what I > assume the "dbf" file in question to be. When you delete records, they > are gone immediately. If the records are still appearing in your ArcGIS > application, then it doesn't sound like the fault is with Access, but > with refreshing the links the ArcGIS software is holding. > > Charlotte Foust > > > -----Original Message----- > From: Boogie Loogie [mailto:boogieloogie at gmail.com] > Sent: Friday, March 18, 2005 11:52 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] packing a dbf from within Access 97 > > Hello > > Is there anyway to pack a linked dbf file programatically within Access > 97? When I delete records in a dbf table using my .mdb app the records > are still appearing in my ArcGIS software but not from the mdb app. > > A packing solution is needed. I hope it is available. > > Thanks > > BL > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 18 16:41:36 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 22:41:36 -0000 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee905031814124abfafe8@mail.gmail.com> Message-ID: <000001c52c0b$a4b820c0$b274d0d5@minster33c3r25> The other thing you need to cater for BL (and I'm probably teaching my grandmother to suck eggs, as we say) is that any indexes on the dbf must be open so they get reindexed. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Boogie Loogie > Sent: 18 March 2005 22:13 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] packing a dbf from within Access 97 > > > Actually when using access to delete records from a dbf file > they are infact not deleted. They are only marked for delete. > Access recognizes that files that are marked as deleted, > flagged if you will, should not appear. Other programs need > the dbf packed, thus a true delete, or else the records will > display. Not really the fault of either software...just the > way the manufacturers handled the situation when developing. > > Oh well I will try and write my own utility to see what I can > come up with. > > Thanks anyway. > > BL > > > On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust > wrote: > > There is no "pack" command for an Access database, which is what I > > assume the "dbf" file in question to be. When you delete records, > > they are gone immediately. If the records are still > appearing in your > > ArcGIS application, then it doesn't sound like the fault is with > > Access, but with refreshing the links the ArcGIS software > is holding. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: Boogie Loogie [mailto:boogieloogie at gmail.com] > > Sent: Friday, March 18, 2005 11:52 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] packing a dbf from within Access 97 > > > > Hello > > > > Is there anyway to pack a linked dbf file programatically within > > Access 97? When I delete records in a dbf table using my > .mdb app the > > records are still appearing in my ArcGIS software but not > from the mdb > > app. > > > > A packing solution is needed. I hope it is available. > > > > Thanks > > > > BL > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri Mar 18 16:48:46 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 18 Mar 2005 14:48:46 -0800 Subject: [AccessD] packing a dbf from within Access 97 Message-ID: Ah, it's been so long since I had to deal with a true dbf file, that I forget there really are such things. I'm sorry to say that I think that's your only real alternative. Charlotte Foust -----Original Message----- From: Boogie Loogie [mailto:boogieloogie at gmail.com] Sent: Friday, March 18, 2005 2:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] packing a dbf from within Access 97 Actually when using access to delete records from a dbf file they are infact not deleted. They are only marked for delete. Access recognizes that files that are marked as deleted, flagged if you will, should not appear. Other programs need the dbf packed, thus a true delete, or else the records will display. Not really the fault of either software...just the way the manufacturers handled the situation when developing. Oh well I will try and write my own utility to see what I can come up with. Thanks anyway. BL On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust wrote: > There is no "pack" command for an Access database, which is what I > assume the "dbf" file in question to be. When you delete records, > they are gone immediately. If the records are still appearing in your > ArcGIS application, then it doesn't sound like the fault is with > Access, but with refreshing the links the ArcGIS software is holding. > > Charlotte Foust > > > -----Original Message----- > From: Boogie Loogie [mailto:boogieloogie at gmail.com] > Sent: Friday, March 18, 2005 11:52 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] packing a dbf from within Access 97 > > Hello > > Is there anyway to pack a linked dbf file programatically within > Access 97? When I delete records in a dbf table using my .mdb app the > records are still appearing in my ArcGIS software but not from the mdb > app. > > A packing solution is needed. I hope it is available. > > Thanks > > BL > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 18 17:18:37 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 Mar 2005 09:18:37 +1000 Subject: [AccessD] Reminder - Joke Day In-Reply-To: Message-ID: <423BEE6D.6012.9A89746@stuart.lexacorp.com.pg> On 18 Mar 2005 at 10:11, Nicholson, Karen wrote: > I need to laugh. Any good links, jokes permitted today. > -- Here's an amazing piece of art that should keep you amused for a while. http://www.eviltree.de/zoomquilt/zoom.htm -- Stuart From martyconnelly at shaw.ca Fri Mar 18 17:22:54 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 18 Mar 2005 15:22:54 -0800 Subject: [AccessD] packing a dbf from within Access 97 References: <3bf43ee905031814124abfafe8@mail.gmail.com> Message-ID: <423B62CE.6070700@shaw.ca> Well you could pack dbf files from VBA if you have a copy of DBASE something like Shell (dbase mypack.prg" where prg file has pack and table name options. or The solutions below here is to export the table to new dbf and break the link then rename dbf file either in code or after exiting access Test this on copies.. DoCmd.TransferDatabase acExport, "dBase 5.0", "C:\mydir\",,"TableName", "mynewfile.dbf" The deleted records should then be removed. There are caveats with shape dbf files http://support.esri.com/index.cfm?fa=listserve.messageShow&m=13020 Boogie Loogie wrote: >Actually when using access to delete records from a dbf file they are >infact not deleted. They are only marked for delete. Access recognizes >that files that are marked as deleted, flagged if you will, should not >appear. Other programs need the dbf packed, thus a true delete, or >else the records will display. Not really the fault of either >software...just the way the manufacturers handled the situation when >developing. > >Oh well I will try and write my own utility to see what I can come up with. > >Thanks anyway. > >BL > > >On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust > wrote: > > >>There is no "pack" command for an Access database, which is what I >>assume the "dbf" file in question to be. When you delete records, they >>are gone immediately. If the records are still appearing in your ArcGIS >>application, then it doesn't sound like the fault is with Access, but >>with refreshing the links the ArcGIS software is holding. >> >>Charlotte Foust >> >> >>-----Original Message----- >>From: Boogie Loogie [mailto:boogieloogie at gmail.com] >>Sent: Friday, March 18, 2005 11:52 AM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] packing a dbf from within Access 97 >> >>Hello >> >>Is there anyway to pack a linked dbf file programatically within Access >>97? When I delete records in a dbf table using my .mdb app the records >>are still appearing in my ArcGIS software but not from the mdb app. >> >>A packing solution is needed. I hope it is available. >> >>Thanks >> >>BL >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Fri Mar 18 17:25:59 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 Mar 2005 09:25:59 +1000 Subject: [AccessD] Is one time between two other times In-Reply-To: <17068716.1111148372757.JavaMail.www@wwinf3003> Message-ID: <423BF027.6011.9AF55E6@stuart.lexacorp.com.pg> On 18 Mar 2005 at 13:19, paul.hartland at fsmail.net wrote: > To all, I can't seem to figure this out at all, I have a table of which > one of the fields is a start time. I need to run a query to see if that > time is between 07:00 and 19:00 Times are stored as the fractional part of a DateTime so just check whether the fractional part is > 7 / 24 and < 19 / 24 >or 19:00 and 07:00. > 19 / 24 or < 7 / 24 In sert equal signs as necessary to handle your desired boundary conditions (ie exactly 07:0 or 19:0)-- Stuart From Gustav at cactus.dk Sat Mar 19 03:58:56 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 19 Mar 2005 10:58:56 +0100 Subject: [AccessD] packing a dbf from within Access 97 Message-ID: Hi Boogie Loogie (?) Further to this I would say it may not even be needed to relink the table - it just has to be closed before you initiate the rewrite of the table. Do check, though, that indices are rebuilt correctly. /gustav >>> martyconnelly at shaw.ca 03/19 12:22 am >>> The solutions below here is to export the table to new dbf and break the link then rename dbf file either in code or after exiting access Test this on copies.. DoCmd.TransferDatabase acExport, "dBase 5.0", "C:\mydir\",,"TableName", "mynewfile.dbf" The deleted records should then be removed. There are caveats with shape dbf files http://support.esri.com/index.cfm?fa=listserve.messageShow&m=13020 Boogie Loogie wrote: >Actually when using access to delete records from a dbf file they are >infact not deleted. They are only marked for delete. Access recognizes >that files that are marked as deleted, flagged if you will, should not >appear. Other programs need the dbf packed, thus a true delete, or >else the records will display. Not really the fault of either >software...just the way the manufacturers handled the situation when >developing. > >Oh well I will try and write my own utility to see what I can come up with. From Gustav at cactus.dk Sat Mar 19 04:05:23 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 19 Mar 2005 11:05:23 +0100 Subject: [AccessD] Is one time between two other times Message-ID: Hi Paul and Stuart Why not use this for filtering: Hour(DateAdd("h", -7, [StartTime])) <= 12 /gustav >>> stuart at lexacorp.com.pg 03/19 12:25 am >>> On 18 Mar 2005 at 13:19, paul.hartland at fsmail.net wrote: > To all, I can't seem to figure this out at all, I have a table of which > one of the fields is a start time. I need to run a query to see if that > time is between 07:00 and 19:00 Times are stored as the fractional part of a DateTime so just check whether the fractional part is > 7 / 24 and < 19 / 24 >or 19:00 and 07:00. > 19 / 24 or < 7 / 24 In sert equal signs as necessary to handle your desired boundary conditions (ie exactly 07:0 or 19:0)-- Stuart From bchacc at san.rr.com Sat Mar 19 13:23:16 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 19 Mar 2005 11:23:16 -0800 Subject: [AccessD] Running a report in an external database Message-ID: <00b401c52cb9$1a6696f0$6501a8c0@HAL9002> Dear List: Per your instructions I added code to a client's db to run a report in an external mdb and it works just fine: Private Sub cmdPrintMemo2Set_Click() DoCmd.SetWarnings False DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ "IN 'C:\ACESSDAT\Reports.mdb' " & _ "SELECT tUDGlobalMerge.* " & _ "FROM tUDGlobalMerge" 'Open Reports.mdb hidden, print Report and close that mdb. Dim acc As Access.Application Set acc = CreateObject("access.application") acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal acc.CloseCurrentDatabase Set acc = Nothing End Sub Now I get an email from him with the following message: ******************************************** I have had a problem with the code you sent me. When I run it (that is, have Forms.mdb print the report in Report.mdb), my computer will no longer open an access program by double clicking a mdb, either shortcut or regular, until I reboot. In other words, I have the mdb I run my practice with. I have a short cut to open it on my desktop. Once I have run the Forms.mdb, clicking on the short cut on my desktop, exploring to where the mdb actually resides and double clicking on that, all get nothing. From the start button, I CAN open an instance of MS Access and then once it is open, open an mdb, but other than that, its as if I had unregistered all the mdbs. ???? Seems to me that there's an object open somewhere. If I went to the processes tab of the task manager I'll bet I'd see more than one instance of msaccess. ******************************************* Anyway, any hints as to how to solve this one? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From mastercafe at ctv.es Sat Mar 19 14:36:34 2005 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 19 Mar 2005 21:36:34 +0100 Subject: [AccessD] Running a report in an external database In-Reply-To: <00b401c52cb9$1a6696f0$6501a8c0@HAL9002> Message-ID: <002e01c52cc3$57dc08d0$0500a8c0@masterserv> We use a routine to Open a Remote report. We only have sometimes problems when close the MDB remote if you have Close and Compact, then the file could be convert to db1.mdb We check the state of this file before open. Normally we put an MDB with all reports external to MDE application, and make CONFIG.MDB to put parameters to all type reports (Printer, Top, Bottom, Format to export -xls-snp-txt-rtf-etc...) Function fOpenRemoteReport(StrMDB As String, StrReport As String, Optional linkCriteria As String, Optional intView As Variant) As Boolean Dim objAccess As Access.Application Dim lngRet As Long Dim agrega As String Dim origendatos As String agrega = StrReport origendatos = "Select * from ConfigFtra" On Error GoTo fOpenRemoteReport_Err If IsMissing(intView) Then intView = acNormal If IsMissing(linkCriteria) Then linkCriteria = "" If Len(Dir(StrMDB)) > 0 Then Set objAccess = New Access.Application With objAccess lngRet = apiSetForegroundWindow(.hWndAccessApp) lngRet = apiShowWindow(.hWndAccessApp, SW_HIDE) 'ANTES ESTABA EN EL EJEMPLO COMO NORMAL 'la primera no suele operar y repetimos la accion lngRet = apiShowWindow(.hWndAccessApp, SW_HIDE) .OpenCurrentDatabase StrMDB .DoCmd.OpenReport StrReport, intView, , linkCriteria 'Do While Len(.CurrentDb.Name) > 0 ' DoEvents 'Loop End With Else MsgBox "Archivo de facturas modelos no encontrado" & vbCrLf & "revise la configuraci?n del terminal." & vbCrLf & "Archivo= " & StrMDB, vbInformation + vbOKOnly, "GESTION DOCUMENTOS EXTERNOS" End If fOpenRemoteReport_Exit: On Error Resume Next objAccess.Quit Set objAccess = Nothing Exit Function fOpenRemoteReport_Err: fOpenRemoteReport = False Select Case Err.Number Case 7866: MsgBox "La base de datos esta abierta por otro usuario en modo exclusivo", vbCritical + vbOKOnly, "STEEL REPORT" Case 2103: MsgBox "El informe " & StrReport & " no se encuentra en la base de datos", vbCritical + vbOKOnly, "STEEL REPORT" Case 7952: fOpenRemoteReport = True Case Else: MsgBox "Error N?" & Err.Number & " - " & Err.Description, vbCritical + vbOKOnly, "STEEL REPORT" End Select Resume fOpenRemoteReport_Exit End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: s?bado, 19 de marzo de 2005 20:23 To: AccessD at databaseadvisors.com Subject: [AccessD] Running a report in an external database Dear List: Per your instructions I added code to a client's db to run a report in an external mdb and it works just fine: Private Sub cmdPrintMemo2Set_Click() DoCmd.SetWarnings False DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ "IN 'C:\ACESSDAT\Reports.mdb' " & _ "SELECT tUDGlobalMerge.* " & _ "FROM tUDGlobalMerge" 'Open Reports.mdb hidden, print Report and close that mdb. Dim acc As Access.Application Set acc = CreateObject("access.application") acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal acc.CloseCurrentDatabase Set acc = Nothing End Sub Now I get an email from him with the following message: ******************************************** I have had a problem with the code you sent me. When I run it (that is, have Forms.mdb print the report in Report.mdb), my computer will no longer open an access program by double clicking a mdb, either shortcut or regular, until I reboot. In other words, I have the mdb I run my practice with. I have a short cut to open it on my desktop. Once I have run the Forms.mdb, clicking on the short cut on my desktop, exploring to where the mdb actually resides and double clicking on that, all get nothing. From the start button, I CAN open an instance of MS Access and then once it is open, open an mdb, but other than that, its as if I had unregistered all the mdbs. ???? Seems to me that there's an object open somewhere. If I went to the processes tab of the task manager I'll bet I'd see more than one instance of msaccess. ******************************************* Anyway, any hints as to how to solve this one? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- 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 Mar 19 17:03:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Mar 2005 09:03:17 +1000 Subject: [AccessD] Running a report in an external database In-Reply-To: <00b401c52cb9$1a6696f0$6501a8c0@HAL9002> Message-ID: <423D3C55.22468.EC0D785@stuart.lexacorp.com.pg> On 19 Mar 2005 at 11:23, Rocky Smolin - Beach Access S wrote: > > 'Open Reports.mdb hidden, print Report and close that mdb. > > Dim acc As Access.Application > Set acc = CreateObject("access.application") > acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") > acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal > acc.CloseCurrentDatabase > Set acc = Nothing You have told the hidden Access Application to close its current database, but not to close itself, so you still have a hidden instance of Access with no open database. Try acc.Quit instead of acc.CloseCurrentDatabase. -- Stuart From bchacc at san.rr.com Sat Mar 19 18:25:37 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 19 Mar 2005 16:25:37 -0800 Subject: [AccessD] Running a report in an external database References: <423D3C55.22468.EC0D785@stuart.lexacorp.com.pg> Message-ID: <012801c52ce3$56f67d40$6501a8c0@HAL9002> Stuart: That did it. Thanks. Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Saturday, March 19, 2005 3:03 PM Subject: Re: [AccessD] Running a report in an external database > On 19 Mar 2005 at 11:23, Rocky Smolin - Beach Access S wrote: > >> >> 'Open Reports.mdb hidden, print Report and close that mdb. >> >> Dim acc As Access.Application >> Set acc = CreateObject("access.application") >> acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") >> acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal >> acc.CloseCurrentDatabase >> Set acc = Nothing > > You have told the hidden Access Application to close its current database, > but not to close itself, so you still have a hidden instance of Access > with > no open database. > > Try acc.Quit instead of acc.CloseCurrentDatabase. > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Sat Mar 19 19:41:30 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 19 Mar 2005 20:41:30 -0500 Subject: [AccessD] Geography revisited Message-ID: <423CD4CA.6010600@rogers.com> I don't have to solve the world's address problems, but I do have to solve some of them. USA and CDN I have under control. Other nations of interest include basically everyone in the EU. I'm hoping for answers from people either from each nation or from people with knowledge of same. 1. What corresponds to states/provinces in Ireland, England, Scotland, Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland (I know it's cantons in the last, but I don't know their names). 2. Some countries, I know, place the street name before the street number. Can we define this arrangement more precisely (by nation)? 3. Not immediately relevant, but is Singapore a city-state or part of China or what? TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 From stuart at lexacorp.com.pg Sat Mar 19 22:18:18 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Mar 2005 14:18:18 +1000 Subject: [AccessD] Geography revisited In-Reply-To: <423CD4CA.6010600@rogers.com> Message-ID: <423D862A.21083.FE13C22@stuart.lexacorp.com.pg> On 19 Mar 2005 at 20:41, Arthur Fuller wrote: > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > Singapore is a long way from China and has never been part of it. Geographically, it is part of the Malay Peninsula, forming the southern tip of the peninsula and bordering on Indonesia to the south. Colonised in early the 1800s by Britain; Singapore, along with Penang and Malacca were part of the "Straits Settlements" and were governed from India. In the 1860s, the Straits Settlements became a separate Crown Colony. Throughout the 1800s there was a large influx of of Chinese and Indians which has resulted in today's mix of ethnic groups - today it is about 75% Chinese, 15% Malay and 7% Indian. (It has four "official languages", Chinese, Malay, Tamil and English with Malay being designated the "national language") After WW2, Singapore became a British Colony in its own right in 1946, it became self governing in 1959. In 1963 it merged with Malaya, Sarawak and Sabah to become part of Malaysia but later split away and became an independent nation in 1965. -- Stuart From Gustav at cactus.dk Sun Mar 20 02:22:51 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 20 Mar 2005 09:22:51 +0100 Subject: [AccessD] Geography revisited Message-ID: Hi Arthur This was an easy one: http://www.admin.ch/ch/e/schweiz/kantone/ By the way, how are you storing the address formatting information? In some systematic way like expressions or sets of formulas for the format, or do you simply record country by country what it should be? /gustav >>> artful at rogers.com 03/20 2:41 am >>> I don't have to solve the world's address problems, but I do have to solve some of them. USA and CDN I have under control. Other nations of interest include basically everyone in the EU. I'm hoping for answers from people either from each nation or from people with knowledge of same. 1. What corresponds to states/provinces in Ireland, England, Scotland, Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland (I know it's cantons in the last, but I don't know their names). 2. Some countries, I know, place the street name before the street number. Can we define this arrangement more precisely (by nation)? 3. Not immediately relevant, but is Singapore a city-state or part of China or what? TIA, Arthur From martyconnelly at shaw.ca Sun Mar 20 02:36:38 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 20 Mar 2005 00:36:38 -0800 Subject: [AccessD] Geography revisited References: <423CD4CA.6010600@rogers.com> Message-ID: <423D3616.4070701@shaw.ca> Here is a site for mail addresses The whole thing is on CD for 750 Swiss Francs, otherwise you will have to pick off the countries one at time via PDF files from URL below. UPU S42 Standard on International Postal Address Components and Templates I don't know why the changed their name from the old International Postal Union to the Universal Postal Union maybe there are secret mail drops for Betelgeuse and Rigel. There is supposed to be something called the Universal POST*CODE database on this site somewhere but the pdfs will give you each countries basic standard God knows what they do with arondissements in Paris. http://www.upu.int/post_code/en/postal_addressing_systems_member_countries.shtml For example here is Singapore standard. http://www.upu.int/post_code/en/countries/SGP.pdf Arthur Fuller wrote: > I don't have to solve the world's address problems, but I do have to > solve some of them. USA and CDN I have under control. Other nations of > interest include basically everyone in the EU. I'm hoping for answers > from people either from each nation or from people with knowledge of > same. > > 1. What corresponds to states/provinces in Ireland, England, Scotland, > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, > Switzerland (I know it's cantons in the last, but I don't know their > names). > > 2. Some countries, I know, place the street name before the street > number. Can we define this arrangement more precisely (by nation)? > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > > TIA, > Arthur > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Sun Mar 20 04:17:02 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 20 Mar 2005 10:17:02 -0000 Subject: [AccessD] Geography revisited In-Reply-To: <423CD4CA.6010600@rogers.com> Message-ID: <000901c52d35$f5f18550$b274d0d5@minster33c3r25> Arthur, England, Wales, Scotland and Ireland have counties as their main geographic unit. The street number follows the street name. Also the postcode (your zip) comes at the end of the address (but before country if sending from abroad), which is not true elsewhere, hence Mr Bloggs 1 High St Little Place Mytown Unpronounceableshire UT6 7YOY As for Singapore, were you perhaps thinking of Hong Kong? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Arthur Fuller > Sent: 20 March 2005 01:42 > To: Access Developers discussion and problem solving > Subject: [AccessD] Geography revisited > > > I don't have to solve the world's address problems, but I do have to > solve some of them. USA and CDN I have under control. Other > nations of > interest include basically everyone in the EU. I'm hoping for answers > from people either from each nation or from people with > knowledge of same. > > 1. What corresponds to states/provinces in Ireland, England, > Scotland, > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, > Switzerland > (I know it's cantons in the last, but I don't know their names). > > 2. Some countries, I know, place the street name before the street > number. Can we define this arrangement more precisely (by nation)? > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > > TIA, > Arthur > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From spikee at oatlandspark.org.uk Sun Mar 20 04:57:16 2005 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Sun, 20 Mar 2005 10:57:16 -0000 Subject: [AccessD] Geography revisited In-Reply-To: <000901c52d35$f5f18550$b274d0d5@minster33c3r25> Message-ID: Good day Arthur, Just to follow on from what Andy has written about the postal address formatting in the UK. I think Andy meant to write "The street number _precedes" the street name". Some addresses may have a house name instead of, or as well as, a street number. ie "Bramwell" 1 Portmore Park Road Major cities often have their own "county" name which is the same as the city name ie London, Manchester,..... Best regards! Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: 20 March 2005 10:17 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Geography revisited Arthur, England, Wales, Scotland and Ireland have counties as their main geographic unit. The street number follows the street name. Also the postcode (your zip) comes at the end of the address (but before country if sending from abroad), which is not true elsewhere, hence Mr Bloggs 1 High St Little Place Mytown Unpronounceableshire UT6 7YOY As for Singapore, were you perhaps thinking of Hong Kong? -- Andy Lacey http://www.minstersystems.co.uk From andy at minstersystems.co.uk Sun Mar 20 05:50:32 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 20 Mar 2005 11:50:32 -0000 Subject: [AccessD] Geography revisited In-Reply-To: Message-ID: <000001c52d43$05c7b500$b274d0d5@minster33c3r25> Doh! I did. Thanks Chris. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Chris Foote (Spike) > Sent: 20 March 2005 10:57 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Geography revisited > > > > Good day Arthur, > > Just to follow on from what Andy has written about the postal > address formatting in the UK. > > I think Andy meant to write "The street number _precedes" the > street name". > > Some addresses may have a house name instead of, or as well > as, a street number. > > ie "Bramwell" > 1 Portmore Park Road > > > Major cities often have their own "county" name which is the > same as the city name ie London, Manchester,..... > > Best regards! > > Chris Foote > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: 20 March 2005 10:17 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Geography revisited > > > Arthur, England, Wales, Scotland and Ireland have counties as > their main geographic unit. The street number follows the > street name. Also the postcode (your zip) comes at the end of > the address (but before country if sending from abroad), > which is not true elsewhere, hence > > Mr Bloggs > 1 High St > Little Place > Mytown > Unpronounceableshire > UT6 7YOY > > > As for Singapore, were you perhaps thinking of Hong Kong? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bchacc at san.rr.com Sun Mar 20 12:33:53 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 20 Mar 2005 10:33:53 -0800 Subject: [AccessD] Digital Signature Message-ID: <00e201c52d7b$5e9445d0$6501a8c0@HAL9002> Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From pedro at plex.nl Sun Mar 20 13:22:27 2005 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 20 Mar 2005 20:22:27 +0100 Subject: [AccessD] Geography revisited References: <423CD4CA.6010600@rogers.com> Message-ID: <002101c52d82$28bc13a0$f5c581d5@pedro> Hello Arthur, in the Netherlands, we write our adress as below. If you need the names of provinces or places, just let me know. Pedro Janssen Mr. Test Teststraat 15 1515 AA TestCity ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Sunday, March 20, 2005 2:41 AM Subject: [AccessD] Geography revisited > I don't have to solve the world's address problems, but I do have to > solve some of them. USA and CDN I have under control. Other nations of > interest include basically everyone in the EU. I'm hoping for answers > from people either from each nation or from people with knowledge of same. > > 1. What corresponds to states/provinces in Ireland, England, Scotland, > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland > (I know it's cantons in the last, but I don't know their names). > > 2. Some countries, I know, place the street name before the street > number. Can we define this arrangement more precisely (by nation)? > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > > TIA, > Arthur > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From lembit.soobik at t-online.de Sun Mar 20 13:36:11 2005 From: lembit.soobik at t-online.de (Lembit Soobik) Date: Sun, 20 Mar 2005 20:36:11 +0100 Subject: [AccessD] Geography revisited References: <423CD4CA.6010600@rogers.com> <423D3616.4070701@shaw.ca> Message-ID: <011101c52d84$13457820$0800a8c0@s856> Arthur, in addition to the below mentioned URL, states/provinces in Germany dont go in the postal address the zip code takes care of everything. Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, March 20, 2005 9:36 AM Subject: Re: [AccessD] Geography revisited > Here is a site for mail addresses > The whole thing is on CD for 750 Swiss Francs, otherwise you will have to > pick off the countries > one at time via PDF files from URL below. > UPU S42 Standard on International Postal Address Components and Templates > > I don't know why the changed their name from the old International Postal > Union > to the Universal Postal Union maybe there are secret mail drops for > Betelgeuse and Rigel. > > There is supposed to be something called the Universal POST*CODE database > on this > site somewhere but the pdfs will give you each countries basic standard > God knows what they do with arondissements in Paris. > > http://www.upu.int/post_code/en/postal_addressing_systems_member_countries.shtml > > For example here is Singapore standard. > http://www.upu.int/post_code/en/countries/SGP.pdf > > > > > Arthur Fuller wrote: > >> I don't have to solve the world's address problems, but I do have to >> solve some of them. USA and CDN I have under control. Other nations of >> interest include basically everyone in the EU. I'm hoping for answers >> from people either from each nation or from people with knowledge of >> same. >> >> 1. What corresponds to states/provinces in Ireland, England, Scotland, >> Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland >> (I know it's cantons in the last, but I don't know their names). >> >> 2. Some countries, I know, place the street name before the street >> number. Can we define this arrangement more precisely (by nation)? >> >> 3. Not immediately relevant, but is Singapore a city-state or part of >> China or what? >> >> TIA, >> Arthur >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18.03.2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18.03.2005 From bchacc at san.rr.com Sun Mar 20 13:42:07 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 20 Mar 2005 11:42:07 -0800 Subject: [AccessD] Digital Signature References: <00e201c52d7b$5e9445d0$6501a8c0@HAL9002> Message-ID: <012101c52d84$e68d2570$6501a8c0@HAL9002> Just got a screen shot of the error message. IT says Microsoft Access cannot open (path and name of mdb) due to security restrictions. Security settings restrict access to the file because it is not digitally signed. So two questions - 1) is there a security setting he can change in his A2K3 to allow him to open the file (seems easiest) or 2) should I digitally sign this file (assuming I can figure out how). MTIA again Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Sunday, March 20, 2005 10:33 AM Subject: [AccessD] Digital Signature Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sun Mar 20 14:28:03 2005 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 20 Mar 2005 21:28:03 +0100 Subject: [AccessD] Digital Signature References: <00e201c52d7b$5e9445d0$6501a8c0@HAL9002> <012101c52d84$e68d2570$6501a8c0@HAL9002> Message-ID: <005401c52d8b$520e9a80$f5c581d5@pedro> Hello Rocky, make your own digital signature certificate. Open de database. On the security warning. Go to certificate. Install your own signed certificate. Check; always trust this certificate. Greetings Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Sunday, March 20, 2005 8:42 PM Subject: Re: [AccessD] Digital Signature > Just got a screen shot of the error message. IT says Microsoft Access > cannot open (path and name of mdb) due to security restrictions. > > Security settings restrict access to the file because it is not digitally > signed. > > So two questions - 1) is there a security setting he can change in his A2K3 > to allow him to open the file (seems easiest) or 2) should I digitally sign > this file (assuming I can figure out how). > > MTIA again > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Sunday, March 20, 2005 10:33 AM > Subject: [AccessD] Digital Signature > > > Dear List: > > I converted an app from 2000 to 2003. When I send it to my partner, it says > it requires a digital signature and won't open. Is there a quick fix for > this? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From kathryn at bassett.net Sun Mar 20 14:43:41 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sun, 20 Mar 2005 12:43:41 -0800 Subject: [AccessD] 2003 "permissions" - the other part In-Reply-To: <423A7F56.9080702@shaw.ca> Message-ID: <20050320204346.180204007F@omta18.mta.everyone.net> Erwin Craps said: > When upgrading/installing A2K3 your MDW file get overwritten > by the default one of Office 2K3. > Or in case the MDW file was not in the default location, The MDW > (workgroup) file path has been set to the default one. > You will need to join the corrept MDW (workgroup) file before > you will be able to do what you want to do. > When it's overwritten you will need to restore from backup. I've not a clue what you said. I don't know what a workgroup is, and I don't know what MDW is. I have only an MDB. However,... MartyConnelly said: > 1 the database could be corrupt, > 2 or this implies that there is an mdw file and you don't > have permission to use something. > 3 Right-click the mdb file and mdw file if there is one in > the Windows Explorer. I had despaired because of what Erwin said about restoring from backup, because my nightly backup had already been done, so it would also be corrupted. But when I got to this point, I noticed that at the same date/time, there was ABC.bak as well as my ABC.mdb - so I renamed the .bak to filename.mdb and opened it and it worked fine! So I deleted the corrupt one, and renamed filename.mdb to ABC.mdb and I'm back in business (ABC is Altadena Baptist Church, not the tv network). So, now that my problem is solved, would you explain (in real simple terms) what the workgroup is/does? Is it something I should be doing that I've never done before? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From Erwin.Craps at ithelps.be Sun Mar 20 16:18:43 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sun, 20 Mar 2005 23:18:43 +0100 Subject: [AccessD] 2003 "permissions" - the other part Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B591D@stekelbes.ithelps.local> A workgroup file (an MDW file) is a file that access uses for Access security at object level. It contain all users and passwords you would create when using Access security. It is always present but by default u use the administrator account with no password so at that moment it is transparent for the user. If your database is secured with Access Security then overwriting this file, or joining another workgroup, or opening the database on another computer, would block your access to that database or to certain object depending how the security was set. There is a bug?!, I would call it that way, in A2K3 maybe also A2K2 that overwrites the workgroup file when it is maintained in the default location when reinstalling/repairing. This way you lose all your users and passwords from that file and could lock you out of any secured database. When using Access security the workgroup file should be place on the fileserver (in my opinion). But in my opinion Access security should never be used due to to the fact that it can be easely broken by some cheap passwordfinder tool. I can only be used to make changes or deletes somewhat more diffucult. For example my splashscreen form and my license text in one specific module are always protected. There have been some thread here that explain how to protect your mdb with access security but I dont know if somenone had proven to be unbreakable (if such a thing exists). To conclude. If you don't now what access security is, and don't want to loose time, then just forget about it. But that's my opnion. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Sunday, March 20, 2005 9:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] 2003 "permissions" - the other part Erwin Craps said: > When upgrading/installing A2K3 your MDW file get overwritten by the > default one of Office 2K3. > Or in case the MDW file was not in the default location, The MDW > (workgroup) file path has been set to the default one. > You will need to join the corrept MDW (workgroup) file before you will > be able to do what you want to do. > When it's overwritten you will need to restore from backup. I've not a clue what you said. I don't know what a workgroup is, and I don't know what MDW is. I have only an MDB. However,... MartyConnelly said: > 1 the database could be corrupt, > 2 or this implies that there is an mdw file and you don't have > permission to use something. > 3 Right-click the mdb file and mdw file if there is one in the > Windows Explorer. I had despaired because of what Erwin said about restoring from backup, because my nightly backup had already been done, so it would also be corrupted. But when I got to this point, I noticed that at the same date/time, there was ABC.bak as well as my ABC.mdb - so I renamed the .bak to filename.mdb and opened it and it worked fine! So I deleted the corrupt one, and renamed filename.mdb to ABC.mdb and I'm back in business (ABC is Altadena Baptist Church, not the tv network). So, now that my problem is solved, would you explain (in real simple terms) what the workgroup is/does? Is it something I should be doing that I've never done before? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Sun Mar 20 16:29:12 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sun, 20 Mar 2005 14:29:12 -0800 Subject: [AccessD] 2003 "permissions" - the other part In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B591D@stekelbes.ithelps.local> Message-ID: <20050320222917.6C533402BC@omta18.mta.everyone.net> Erwin explained: > A workgroup file (an MDW file) is a file that access uses for > Access security at object level. the rest Thanks Erwin. I followed most of that, and you are right, I have no need of any security stuff in Access. It's all my stuff, or a couple databases I maintain for clients (indiviual people, not companies). I think I now know what happened to mess things up. One of the earliest message I got when I opened the database when I first updated had some type of security message (didn't write it down) and I played around with trying to follow what it was talking about. I did do *something* that had to do with securty. But I forgot about that between the time I opened the first mdb (the ABC one) and successfully opening the other databases I was using. Anyway, that seems to explain why I could open the rest and not ABC - whatever I did must have locked up *only* the ABC file. So thanks all, I can file away this thread now. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From Gustav at cactus.dk Mon Mar 21 02:20:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 09:20:05 +0100 Subject: [AccessD] Digital Signature Message-ID: Hi Rocky Look up the recent thread (February) on: CAcert: Code signing certificates. Digital Certificates /gustav >>> bchacc at san.rr.com 03/20 7:33 pm >>> Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From paul.hartland at isharp.co.uk Mon Mar 21 05:10:31 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Mon, 21 Mar 2005 11:10:31 -0000 Subject: [AccessD] Running Access Query With Parameters From VB6 In-Reply-To: Message-ID: It works on all my other queries, just not this one....I have five query names in strQueries(), three of which I pass date parameters to, this is the only one not working -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 March 2005 17:00 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 21 05:24:47 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 12:24:47 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul You may need to reveal to us what is returned ... /gustav >>> paul.hartland at isharp.co.uk 03/21 12:10 pm >>> It works on all my other queries, just not this one....I have five query names in strQueries(), three of which I pass date parameters to, this is the only one not working -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 March 2005 17:00 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland From paul.hartland at fsmail.net Mon Mar 21 05:26:33 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Mar 2005 12:26:33 +0100 (CET) Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: <7522198.1111404393557.JavaMail.www@wwinf3101> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Message date : Mar 21 2005, 11:25 AM >From : "Gustav Brock" To : accessd at databaseadvisors.com Copy to : Subject : RE: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You may need to reveal to us what is returned ... /gustav >>> paul.hartland at isharp.co.uk 03/21 12:10 pm >>> It works on all my other queries, just not this one....I have five query names in strQueries(), three of which I pass date parameters to, this is the only one not working -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 March 2005 17:00 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Gustav at cactus.dk Mon Mar 21 05:41:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 12:41:34 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul It is the result of this expression we need: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" /gustav >>> paul.hartland at fsmail.net 03/21 12:26 pm >>> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE From paul.hartland at fsmail.net Mon Mar 21 05:51:29 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Mar 2005 12:51:29 +0100 (CET) Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: <24716718.1111405889334.JavaMail.www@wwinf3101> it evaluates to strSQL = qryKPI_SickDays_By_Region_By Month3 '01/01/05', '31/01/05' which is inside Set rsKPIData = OpenDataConn.Execute(strSQL) Message date : Mar 21 2005, 11:42 AM >From : "Gustav Brock" To : accessd at databaseadvisors.com Copy to : Subject : Re: RE: [AccessD] Running Access Query With Parameters From VB6 Hi Paul It is the result of this expression we need: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" /gustav >>> paul.hartland at fsmail.net 03/21 12:26 pm >>> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Gustav at cactus.dk Mon Mar 21 06:05:58 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 13:05:58 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul That's what I guessed. If you copy and paste qryKPI_SickDays_By_Region_By Month3 '01/01/05', '31/01/05' into an empty query in SQL desing view, you'll see it have no idea what to do with it. You will need to revise your code to generate some SQL code. /gustav >>> paul.hartland at fsmail.net 03/21 12:51 pm >>> it evaluates to strSQL = qryKPI_SickDays_By_Region_By Month3 '01/01/05', '31/01/05' which is inside Set rsKPIData = OpenDataConn.Execute(strSQL) Message date : Mar 21 2005, 11:42 AM >From : "Gustav Brock" To : accessd at databaseadvisors.com Copy to : Subject : Re: RE: [AccessD] Running Access Query With Parameters From VB6 Hi Paul It is the result of this expression we need: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" /gustav >>> paul.hartland at fsmail.net 03/21 12:26 pm >>> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE From stuart at lexacorp.com.pg Mon Mar 21 06:33:40 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 21 Mar 2005 22:33:40 +1000 Subject: [AccessD] Running Access Query With Parameters From VB6 In-Reply-To: <7522198.1111404393557.JavaMail.www@wwinf3101> Message-ID: <423F4BC4.16022.18E4DD2@stuart.lexacorp.com.pg> > > In my VB application I have a connection to the database inside a > funtion > called OpenDataConn and use the following code (dtKPIStart and > dtKPIFinish > are the start and end dates). > strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & > dtKPIFinish & > "'" > Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I > the > following error message: > > Run-time error '-2147217900 > Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', > 'SELECT' or > 'UPDATE > Do a Msgbox StrSQL before the Set....and post the result. -- Stuart From vrm at tim-cms.com Mon Mar 21 08:26:46 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Mon, 21 Mar 2005 15:26:46 +0100 Subject: [AccessD] Digital Signature In-Reply-To: Message-ID: <200503210927531.SM01108@ORSLAPTOP> -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: maandag 21 maart 2005 9:20 Aan: accessd at databaseadvisors.com Onderwerp: Re: [AccessD] Digital Signature Hi Rocky Look up the recent thread (February) on: CAcert: Code signing certificates. Digital Certificates /gustav >>> bchacc at san.rr.com 03/20 7:33 pm >>> Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Mon Mar 21 09:03:25 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 21 Mar 2005 11:03:25 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <000201c52c07$2c153df0$b274d0d5@minster33c3r25> References: <3bf43ee905031811512173560c@mail.gmail.com> <000201c52c07$2c153df0$b274d0d5@minster33c3r25> Message-ID: <3bf43ee9050321070323e07cdc@mail.gmail.com> On Fri, 18 Mar 2005 22:09:36 -0000, Andy Lacey wrote: > Hi BL > Presumably if you're using a dbf you have Clipper, Foxpro or something which > maintains it. Couldn't you write a small EXE in one of those and Shell to > it? > > -- Andy Lacey > http://www.minstersystems.co.uk Actually I do not have that. The GIS and GPS software I use read and write shapefiles...a native format. A shapefile has numerous ( for lack of a better term) subfiles one of which is a dbf. Anyway stay tuned I am working on a utility with Access. I will post it here when I am done. Cheers BL From kwilliam at ashlandnet.com Mon Mar 21 09:42:51 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Mon, 21 Mar 2005 10:42:51 -0500 Subject: [AccessD] Pocket PC Access Message-ID: <000b01c52e2c$a4240570$64aba8c0@ashlandnet.com> Does anyone have a recommendation for a Pocket PC database application? Preferably one that I can develop an application (complete with decent forms) on the desktop, and download to my Pocket PC? Any advice would be greatly appreciated. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 From markamatte at hotmail.com Mon Mar 21 09:46:17 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 21 Mar 2005 15:46:17 +0000 Subject: [AccessD] OT: North Carolina Message-ID: John, Until now, I have never lived in one area for more than 3 years...since birth. I'm currently in Greensboro, NC and just crossed year number 4. This is probable not my final destination, but it has been the longest stay. Greensboro is in the center of the state...and as far as I'm concerned...its a great location: 3 hours to the beach...2 hours to the mountains...at least 6 lakes within 2 hours. You are more than welcome to come for a visit if you wanted to check out the major cities(or smaller ones). >From Greensboro: Charlotte 1.5 hours Raleigh Durham 1.5 hours Winston Salem 20 minutes High Point 15 minutes Wilmington 3 hours Asheville 3 hours Anyway, you can use my place as a staging area if you wanted. Good luck with the move. Mark A. Matte >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] OT: North Carolina >Date: Wed, 16 Mar 2005 11:35:43 -0500 > >I am looking at moving to North Carolina next summer (2006). If we have >any >members in (or from) that area who would like to advise me on where to look >at living, where NOT to live etc, please email me off line. Any info would >be much appreciated. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Mon Mar 21 10:21:48 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 21 Mar 2005 12:21:48 -0400 Subject: [AccessD] Pocket PC Access In-Reply-To: <000b01c52e2c$a4240570$64aba8c0@ashlandnet.com> References: <000b01c52e2c$a4240570$64aba8c0@ashlandnet.com> Message-ID: <3bf43ee9050321082175e434ef@mail.gmail.com> On Mon, 21 Mar 2005 10:42:51 -0500, Keith Williamson wrote: > Does anyone have a recommendation for a Pocket PC database application? > Preferably one that I can develop an application (complete with decent > forms) on the desktop, and download to my Pocket PC? Any advice would be > greatly appreciated. > > Regards, > > Keith E. Williamson > Ashland Equipment, Inc > phone # (410) 273-1856 > fax # (410) 273-1859 > An excellent freebie package XSForms and XS Designer from grandasoft Check it out at: http://www.grandasoft.com/ There are ton of pay ones too - go to www.devbuzz.com but grandasoft is quite powerful. Quite frankly I do not know how they can offer their product aux gratis...but hey don't look the ole gift horse in the mouth. HTH BL From kwilliam at ashlandnet.com Mon Mar 21 10:42:02 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Mon, 21 Mar 2005 11:42:02 -0500 Subject: [AccessD] Pocket PC Access In-Reply-To: <3bf43ee9050321082175e434ef@mail.gmail.com> Message-ID: <001301c52e34$e91965a0$64aba8c0@ashlandnet.com> This looks very interesting. I will try this out. THANKS!!! Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie Sent: Monday, March 21, 2005 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Pocket PC Access On Mon, 21 Mar 2005 10:42:51 -0500, Keith Williamson wrote: > Does anyone have a recommendation for a Pocket PC database > application? Preferably one that I can develop an application > (complete with decent > forms) on the desktop, and download to my Pocket PC? Any advice would be > greatly appreciated. > > Regards, > > Keith E. Williamson > Ashland Equipment, Inc > phone # (410) 273-1856 > fax # (410) 273-1859 > An excellent freebie package XSForms and XS Designer from grandasoft Check it out at: http://www.grandasoft.com/ There are ton of pay ones too - go to www.devbuzz.com but grandasoft is quite powerful. Quite frankly I do not know how they can offer their product aux gratis...but hey don't look the ole gift horse in the mouth. HTH BL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Mon Mar 21 12:28:50 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 22 Mar 2005 06:28:50 +1200 Subject: [AccessD] Scatter Graph Message-ID: <6.2.1.2.0.20050322062844.0348e230@mail.dalyn.co.nz> Thanks for the input. I purchased the Toolshed, and while it didn't directly have the answer, Garry was able to answer it for me. :-) The solution is to create a union query which combines the x values into one column and has the y values in separate rows. Eg X Yellow Green Blue 2.3 1.5 2.8 4.4 3.2 3.3 3.1 3.4 David At 17/03/2005, you wrote: >Gerry Robinson has some MS graph samples >http://www.vb123.com/toolshed/99_graphs/msgraph1.htm >unfortunately you need to buy his Toolshed to find the secrets of >scatterplots ;) >http://www.vb123.com/toolshed/99_graphs/scatterplot.htm > > >David Emerson wrote: > >>AccessXP >> >>I am having trouble getting the data source correct for a scatter >>graph. I have data in a table with the following fields - >> >>Series1X, Series1Y, Series2X, Series2Y. >> >>Using the Chart Wizard I can select the fields, and XY (scatter) >>chart. Where I get unstuck is in the "How do you want to lay out your >>data in the chart" screen. >> >>Does anyone have any examples of a scatter chart using two series that I >>could look at? >> >>Regards >> >>David Emerson >>Dalyn Software Ltd >>25 Cunliffe St, Churton Park >>Wellington, New Zealand >>Ph/Fax (04) 478-7456 >>Mobile 027-280-9348 > > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Mon Mar 21 12:48:33 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 21 Mar 2005 12:48:33 -0600 Subject: [AccessD] Re: Geography revisited In-Reply-To: <200503211800.j2LI0Di23463@databaseadvisors.com> Message-ID: <5.1.0.14.2.20050321124541.013c0388@pop3.highstream.net> Arthur, While it was not in your list, Russia is this: Postal Code Country Republic City Street House Number - apartment number Last Name First Name Country (in Latin Letters) Robert At 12:00 PM 3/21/2005 -0600, you wrote: >From: "Arthur Fuller" >To: "Access Developers discussion and problem solving" > >Sent: Sunday, March 20, 2005 2:41 AM >Subject: [AccessD] Geography revisited > > > > I don't have to solve the world's address problems, but I do have to > > solve some of them. USA and CDN I have under control. Other nations of > > interest include basically everyone in the EU. I'm hoping for answers > > from people either from each nation or from people with knowledge of same. > > > > 1. What corresponds to states/provinces in Ireland, England, Scotland, > > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland > > (I know it's cantons in the last, but I don't know their names). > > > > 2. Some countries, I know, place the street name before the street > > number. Can we define this arrangement more precisely (by nation)? > > > > 3. Not immediately relevant, but is Singapore a city-state or part of > > China or what? > > > > TIA, > > Arthur From Lambert.Heenan at AIG.com Mon Mar 21 12:48:44 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 21 Mar 2005 13:48:44 -0500 Subject: [AccessD] RE: ActiveX Component can't create object (Run-time error 429) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E66@xlivmbx21.aig.com> Try registering it with RegSvr32.exe? Lambert > -----Original Message----- > From: Microsoft Access Database Discussion List > [SMTP:ACCESS-L at PEACH.EASE.LSOFT.COM] On Behalf Of Anne Smith > Sent: Monday, March 21, 2005 1:43 PM > To: ACCESS-L at PEACH.EASE.LSOFT.COM > Subject: ActiveX Component can't create object (Run-time error 429) > > If I copy the file msinet.ocx to the user's machine, it still does not > work. > Is there anything else that needs to be done to run the code below? Do > I > need to reboot the machine or logout? Is there anything else that needs > to > be installed? > > Set INet = CreateObject("InetCtls.Inet") > > -------------------------------------------------------------------------- > The ACCESS-L list is hosted on a Windows(R) 2000 Server running L-Soft > international's LISTSERV(R) software. For subscription/signoff info > and archives, see http://peach.ease.lsoft.com/archives/access-l.html . > COPYRIGHT INFO: > http://peach.ease.lsoft.com/scripts/wa.exe?SHOWTPL=COPYRIGHT&L=ACCESS-L From boogieloogie at gmail.com Mon Mar 21 13:27:37 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 21 Mar 2005 15:27:37 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee9050321070323e07cdc@mail.gmail.com> References: <3bf43ee905031811512173560c@mail.gmail.com> <000201c52c07$2c153df0$b274d0d5@minster33c3r25> <3bf43ee9050321070323e07cdc@mail.gmail.com> Message-ID: <3bf43ee905032111274cb99a50@mail.gmail.com> On Mon, 21 Mar 2005 11:03:25 -0400, Boogie Loogie wrote: > On Fri, 18 Mar 2005 22:09:36 -0000, Andy Lacey > wrote: > > Hi BL > > Presumably if you're using a dbf you have Clipper, Foxpro or something which > > maintains it. Couldn't you write a small EXE in one of those and Shell to > > it? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > Actually I do not have that. The GIS and GPS software I use read and > write shapefiles...a native format. A shapefile has numerous ( for > lack of a better term) subfiles one of which is a dbf. > > Anyway stay tuned I am working on a utility with Access. I will post > it here when I am done. > > Cheers > > BL > FOR ACCESS 97: Ok I have a rough draft of a packing utility. Some of the code came from M$ web site and some from Experts-Exchange. Opinions, improvements are welcomed. Basically the code replaces the dbf with a new table with all of the 'junk' removed. It appears to be working for me in my inital tests. STEP 1: In a new form create a combobox called cboTables STEP 2: in the rowsource of cboTables place the following: SELECT MsysObjects.Name FROM MsysObjects WHERE (((Left([Name],1))<>'~') AND ((Left([Name],4))<>'Msys') AND ((MsysObjects.Type)=6)); STEP 3: Place a command button on the same form as cboTables and place this code behind it: Private Sub Command2_Click() On Error GoTo Packman Dim db As Database Set db = CurrentDb() If IsNull(Me!cboTables) Then Beep MsgBox "Select a table", vbInformation Me!cboTables.SetFocus Exit Sub End If Call rackempackem(db, Me!cboTables) Exit Sub Packman: MsgBox Error$ Exit Sub PackEnd: End Sub STEP 4: Create a new module with the following: Function tInstrRev(string1 As String, string2 As String) Dim tPos As Long tPos = InStr(1, string1, string2) While InStr(tPos + 1, string1, string2) <> 0 tPos = InStr(tPos + 1, string1, string2) Wend tInstrRev = tPos End Function STEP 5: Create a new module with the following: Public Sub rackempackem(db As Database, tblname As String) Const MB_YESNO = 4 ' Yes and No buttons Const MB_ICONEXCLAMATION = 48 ' Warning message Const IDYES = 6 ' Yes button pressed Dim dbdir As String, tmp As String 'Temp variables Dim i As Integer, ret As Integer 'Counter and return value of MsgBox Dim tdf As TableDef Dim flags As Integer 'Flags for MsgBox ReDim idxs(0) As New Index 'Holds indexes On Error GoTo PackErr flags = MB_YESNO Or MB_ICONEXCLAMATION ret = MsgBox("Do you want to pack " & tblname & ".dbf?", flags) If ret = IDYES Then dbdir = Left$(db.Name, tInstrRev(db.Name, "\")) 'Hold database directory 'Delete the temp file if it exists. If Dir$(dbdir & "p_a_c_k.*") <> "" Then Kill dbdir & "p_a_c_k.*" End If For Each tdf In db.TableDefs If tdf.Name = "p_a_c_k" Then db.Execute "DROP TABLE p_a_c_k;" End If Next 'Store the indexes. For i = 0 To db.TableDefs(tblname).Indexes.Count - 1 ReDim Preserve idxs(i + 1) idxs(i).Name = db.TableDefs(tblname).Indexes(i).Name idxs(i).Fields = db.TableDefs(tblname).Indexes(i).Fields idxs(i).Primary = db.TableDefs(tblname).Indexes(i).Primary idxs(i).Unique = db.TableDefs(tblname).Indexes(i).Unique Next 'Create the new table without the deleted records. db.Execute "Select * into [p_a_c_k] from " & tblname 'Delete the current table. 'delete all records db.Execute "DELETE *.* from " & tblname db.TableDefs.Delete tblname 'Rename the DBF file and any memo files. tmp = Dir$(dbdir & "p_a_c_k.*") Do While tmp <> "" 'Rename with the correct file extension; this should be on one line. Name dbdir & tmp As dbdir & tblname & Right$(tmp, Len(tmp) - InStr(tmp, ".") + 1) tmp = Dir$ Loop 'Refresh the tabledefs and add the indexes to the new table. db.TableDefs.Refresh For i = 0 To UBound(idxs) - 1 db.TableDefs(tblname).Indexes.Append idxs(i) Next MsgBox "'" & tblname & "' .dbf successfully Packed!", MB_ICONEXCLAMATION DoCmd.TransferDatabase acExport, "dBase 5.0", "C:\GIS\SILVI\", acTable, "P_A_C_K", tblname 'change path to suit your needs 'db.Execute "DROP TABLE P_A_C_K;" 'optional DoCmd.TransferDatabase acLink, "dBase 5.0", "C:\GIS\SILVI\", acTable, tblname, tblname 'change path to suit your needs End If RefreshDatabaseWindow Exit Sub PackErr: MsgBox Error$ Exit Sub PackEnd: End Sub Hopefully this is useful to someone. From KP at sdsonline.net Mon Mar 21 18:26:27 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 22 Mar 2005 11:26:27 +1100 Subject: [AccessD] Free plug for dropload.com Message-ID: <005001c52e75$ca00d270$8001a8c0@user> Just a quick plug for a site that has been quite useful to me over the last 12 months - http://www.dropload.com This is *Free* and allows you to post a file up to 100MB at their site. You just enter an email address for the file recipient and the file name and your recipient will receive an email with a link to allow them to download. Nice and simple. Kath From d.dick at uws.edu.au Mon Mar 21 20:00:57 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 13:00:57 +1100 Subject: [AccessD] A2203: Determine if a folder exists Message-ID: <200503220201.j2M218lE029919@cooper.uws.edu.au> Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren From mikedorism at adelphia.net Mon Mar 21 20:13:57 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 21 Mar 2005 21:13:57 -0500 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220201.j2M218lE029919@cooper.uws.edu.au> Message-ID: <000001c52e84$d04b8c60$0b08a845@hargrove.internal> If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 20:59:45 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 13:59:45 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e84$d04b8c60$0b08a845@hargrove.internal> Message-ID: <200503220259.j2M2xulE009837@cooper.uws.edu.au> Hi Doris it's so simple when you see it Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 21:15:41 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 14:15:41 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e84$d04b8c60$0b08a845@hargrove.internal> Message-ID: <200503220315.j2M3FrlE028252@cooper.uws.edu.au> Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Mar 21 21:29:10 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 21 Mar 2005 22:29:10 -0500 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220315.j2M3FrlE028252@cooper.uws.edu.au> Message-ID: <000101c52e8f$53ded280$0b08a845@hargrove.internal> Through in a DoEvents somewhere to allow the system time to process the request...particularly if working with network folders.... Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 10:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Mar 21 21:31:06 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 21 Mar 2005 22:31:06 -0500 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220315.j2M3FrlE028252@cooper.uws.edu.au> Message-ID: <000201c52e8f$97136980$0b08a845@hargrove.internal> Another suggestion might be to switch over to FileSystemObject which provides much more robust properties than the simple DIR statement. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 10:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 21 21:32:46 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 21 Mar 2005 21:32:46 -0600 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <17108824.1111461886211.JavaMail.root@sniper19> Message-ID: <000001c52e8f$d1396dd0$123a11d8@danwaters> Darren, FileSystemObjects has a method to tell you if a folder exists. You'll need to set a reference to scrrun.dll. Dan Waters President ProMation Systems, Inc. 763-780-2496 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 21:57:49 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 14:57:49 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e8f$d1396dd0$123a11d8@danwaters> Message-ID: <200503220358.j2M3w1lE013322@cooper.uws.edu.au> Thanks Dan and Doris I was originally using FSO but could not find a FolderExist Method I found plenty else like...date created, attributes etc I was going to see if I got a return on one of those and then Assume, if I did get a return, that the folder Exists and go from there I'll go back and have another look Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, 22 March 2005 2:33 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Darren, FileSystemObjects has a method to tell you if a folder exists. You'll need to set a reference to scrrun.dll. Dan Waters President ProMation Systems, Inc. 763-780-2496 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 22:05:25 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 15:05:25 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e8f$d1396dd0$123a11d8@danwaters> Message-ID: <200503220405.j2M45blE021057@cooper.uws.edu.au> Hi all Found the folder exist method Still no go I tried the following code and even if the folder existed or not I kept getting false (NOT EXIST) Dim fs Set fs = CreateObject("Scripting.FileSystemObject") If fs.FolderExists(Me.txtFolderPath) = True Then MsgBox "EXIST" ElseIf fs.FolderExists(Me.txtFolderPath) = False Then MsgBox "NOT EXIST" End If -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, 22 March 2005 2:33 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Darren, FileSystemObjects has a method to tell you if a folder exists. You'll need to set a reference to scrrun.dll. Dan Waters President ProMation Systems, Inc. 763-780-2496 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Mon Mar 21 22:16:20 2005 From: demulling at centurytel.net (Demulling Family) Date: Mon, 21 Mar 2005 22:16:20 -0600 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220358.j2M3w1lE013322@cooper.uws.edu.au> References: <200503220358.j2M3w1lE013322@cooper.uws.edu.au> Message-ID: <423F9C14.9020506@centurytel.net> You could always use the APIs Private Declare Function PathIsDirectory Lib "shlwapi.dll" Alias "PathIsDirectoryA" (ByVal pszPath As String) As Long Private Declare Function PathIsDirectoryEmpty Lib "shlwapi.dll" Alias "PathIsDirectoryEmptyA" (ByVal pszPath As String) -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 3/21/2005 From d.dick at uws.edu.au Mon Mar 21 22:19:24 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 15:19:24 +1100 Subject: [AccessD] A2203: Determine if a folder exists - SOLVED Message-ID: <200503220419.j2M4JalE007214@cooper.uws.edu.au> This Works - WooHoo Dim fs Dim x as integer Set fs = CreateObject("Scripting.FileSystemObject") x = fs.FolderExists(Me.txtFolderPath) If x = -1 Then MsgBox "Folder Exists" ElseIf x = 0 Then MsgBox "Folder doesn't Exist" End If So.for some reason I couldn't include the line fs.FolderExists(Me.txtFolderPath) Inside an if statement. But if I Dim'd X as an integer and Attached the line fs.FolderExists(Me.txtFolderPath) To the X then I could test the result value I am grateful, but does andyone know why?? Have a great day Many thanks to Dan and Doris See ya Darren From jmhla at earthlink.net Mon Mar 21 22:58:03 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 21 Mar 2005 20:58:03 -0800 Subject: [AccessD] Need code help again Please x posted Message-ID: <000001c52e9b$bb4d6fb0$6701a8c0@laptop1> I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe From connie.kamrowski at agric.nsw.gov.au Mon Mar 21 23:19:09 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Tue, 22 Mar 2005 16:19:09 +1100 Subject: [AccessD] Re: Compare first letter of String Message-ID: I have three sets of Strings to represent Authority Number they begin with one of three letters A, L or P. I need to limit access to the reports to the corresponding letter. ie For the Approval Certificate I only want the Authorities with A at the start to be able to open this form. I will put the limitation on the button to open the Certificate but I am not sure how to do this, do I use the LEFT$ Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From d.dick at uws.edu.au Mon Mar 21 23:33:54 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 16:33:54 +1100 Subject: [AccessD] Re: Compare first letter of String In-Reply-To: Message-ID: <200503220534.j2M5Y6lE023941@cooper.uws.edu.au> Hi Connie Try something like If left(YourString,1) = "A" then 'Do the stuff that only A's can do ElseIf left(YourString,1) = "L" then 'Do the stuff that only L's can do ElseIf left(YourString,1) = "P" then 'Do the stuff that only P's can do Else Msgbox "Unknown Auth. Number" end if HTH Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Tuesday, 22 March 2005 4:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Compare first letter of String I have three sets of Strings to represent Authority Number they begin with one of three letters A, L or P. I need to limit access to the reports to the corresponding letter. ie For the Approval Certificate I only want the Authorities with A at the start to be able to open this form. I will put the limitation on the button to open the Certificate but I am not sure how to do this, do I use the LEFT$ Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 23:41:30 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 16:41:30 +1100 Subject: [AccessD] Need code help again Please x posted In-Reply-To: <000001c52e9b$bb4d6fb0$6701a8c0@laptop1> Message-ID: <200503220541.j2M5fhlE001418@cooper.uws.edu.au> Hi Joe At first glance... You have 3 lines at the end of your code that goes like this... Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False That is where ChkAllPieces is being 're-set' To avoid this make sure there is an "exit sub" before this if certain criteria are met Otherwise the code is processed from top to bottom, without 'skipping', and will eventually process the line Me.ChkAllPieces.Value = 0 if you haven't told it to exit. So make sure you exit the sub before that line if you don't want Me.ChkAllPieces to = 0 IE After you make 'em click OK after warning them put in Exit Sub Directly after Case vbOK Eg Select Case lngRetval Case vbOK End sub End Select Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 22 March 2005 3:58 PM To: 'Access Developers discussion and problem solving'; ACCESS-L Subject: [AccessD] Need code help again Please x posted I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Mar 21 23:50:17 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 22 Mar 2005 06:50:17 +0100 Subject: [AccessD] Re: Compare first letter of String Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B592D@stekelbes.ithelps.local> Or use "select case" for better readability. I also always use ucase or lcase just in case.... Select case ucase(left(YourString,1)) case "A" 'A stuff case "B" 'B stuff case "C" 'C stuff Case else 'else stuff End select -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, March 22, 2005 6:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Compare first letter of String Hi Connie Try something like If left(YourString,1) = "A" then 'Do the stuff that only A's can do ElseIf left(YourString,1) = "L" then 'Do the stuff that only L's can do ElseIf left(YourString,1) = "P" then 'Do the stuff that only P's can do Else Msgbox "Unknown Auth. Number" end if HTH Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Tuesday, 22 March 2005 4:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Compare first letter of String I have three sets of Strings to represent Authority Number they begin with one of three letters A, L or P. I need to limit access to the reports to the corresponding letter. ie For the Approval Certificate I only want the Authorities with A at the start to be able to open this form. I will put the limitation on the button to open the Certificate but I am not sure how to do this, do I use the LEFT$ Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Mon Mar 21 23:56:06 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 21 Mar 2005 21:56:06 -0800 Subject: [AccessD] Need code help again Please x posted In-Reply-To: <200503220541.j2M5fhlE001418@cooper.uws.edu.au> Message-ID: <200503220555.j2M5tui13822@databaseadvisors.com> I want to reset the values if the message box triggers. If no message box then no reset. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Need code help again Please x posted Hi Joe At first glance... You have 3 lines at the end of your code that goes like this... Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False That is where ChkAllPieces is being 're-set' To avoid this make sure there is an "exit sub" before this if certain criteria are met Otherwise the code is processed from top to bottom, without 'skipping', and will eventually process the line Me.ChkAllPieces.Value = 0 if you haven't told it to exit. So make sure you exit the sub before that line if you don't want Me.ChkAllPieces to = 0 IE After you make 'em click OK after warning them put in Exit Sub Directly after Case vbOK Eg Select Case lngRetval Case vbOK End sub End Select Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 22 March 2005 3:58 PM To: 'Access Developers discussion and problem solving'; ACCESS-L Subject: [AccessD] Need code help again Please x posted I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 22 00:01:26 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 21 Mar 2005 22:01:26 -0800 Subject: [AccessD] Need code help again Please x posted In-Reply-To: <200503220541.j2M5fhlE001418@cooper.uws.edu.au> Message-ID: <200503220601.j2M61Fi15331@databaseadvisors.com> Ok I moved the reset inside the IF and life is better. Do not know if it is good but it is better Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Need code help again Please x posted Hi Joe At first glance... You have 3 lines at the end of your code that goes like this... Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False That is where ChkAllPieces is being 're-set' To avoid this make sure there is an "exit sub" before this if certain criteria are met Otherwise the code is processed from top to bottom, without 'skipping', and will eventually process the line Me.ChkAllPieces.Value = 0 if you haven't told it to exit. So make sure you exit the sub before that line if you don't want Me.ChkAllPieces to = 0 IE After you make 'em click OK after warning them put in Exit Sub Directly after Case vbOK Eg Select Case lngRetval Case vbOK End sub End Select Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 22 March 2005 3:58 PM To: 'Access Developers discussion and problem solving'; ACCESS-L Subject: [AccessD] Need code help again Please x posted I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Tue Mar 22 03:51:24 2005 From: lists at theopg.com (MarkH) Date: Tue, 22 Mar 2005 09:51:24 -0000 Subject: [AccessD] A2203: Determine if a folder exists - SOLVED In-Reply-To: <200503220419.j2M4JalE007214@cooper.uws.edu.au> Message-ID: <000401c52ec4$b720e060$b20b6bd5@netboxxp> Not sure what the problem was / is but this worked for me first time, no probs... Probably worth testing there is a value in txtFolderPath Private Sub Command0_Click() Dim fs Dim x As Integer Set fs = CreateObject("Scripting.FileSystemObject") If fs.FolderExists(Me.Text1) Then MsgBox "Folder Exists" ElseIf x = 0 Then MsgBox "Folder doesn't Exist" End If End Sub Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.859 / Virus Database: 585 - Release Date: 14/02/2005 From Lambert.Heenan at AIG.com Tue Mar 22 08:37:12 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 22 Mar 2005 09:37:12 -0500 Subject: [AccessD] A2203: Determine if a folder exists Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E76@xlivmbx21.aig.com> So many replies! So many differing approaches! So many references that need to be set! Not if you use this simple, effecting, all VBA solution... Function isDirectory(sDir As String) As Boolean On Error Resume Next isDirectory = (GetAttr(sDir) And vbDirectory) <> 0 If Err.Number <> 0 Then isDirectory = False On Error GoTo 0 End Function Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, March 21, 2005 9:01 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A2203: Determine if a folder exists > > Hello all > This should be simple but it's causing me pain > I have a folder (It does exist) > C:\SomeFolder\SomeSubFolder\TheDestination > > If I type the following code and 'run' it > > If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then > MsgBox "Folder Doesn't Exist" > Else > MsgBox "Folder exists" > End If > > It still tells me the folder doesn't exist even though it does > > What is a 'proper' way to tell if a folder exists > > Many thanks in advance > > Darren > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 22 12:19:15 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 22 Mar 2005 11:19:15 -0700 Subject: [AccessD] No column-wrapping on 2-column reports ? Message-ID: Hello all! I have an Access report that has been formatted with 2 columns. Each record has about 10 fields that take up maybe 3 vertical inches of space.? Some of the fields have CanGrow set to true, which means that some records are very "short" in a vertical sense, and others are "tall". Here's my problem; records do not appear to be wrapping from one column to another.? This is not a problem on pages with a bunch of "short" records, but it is on pages that have (for example) one "short" record and one "tall" record.? Instead of starting below the short record and wrapping from the bottom of the left-hand column to the top of the right-hand column, the "tall" record just starts at the top of the right-hand column, leaving a lot of space under the "short" record in the left-hand column. Is anyone aware of a way to make records wrap from one column to the other? -C- From cfoust at infostatsystems.com Tue Mar 22 12:29:02 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 22 Mar 2005 10:29:02 -0800 Subject: [AccessD] No column-wrapping on 2-column reports ? Message-ID: A field can't grow and wrap into the next column, to the whole field or whole record, depending on your keep together settings will get moved. As far as I recall, Access reports have always worked this way, which can make creating directories an interesting exercise. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, March 22, 2005 10:19 AM To: accessd at databaseadvisors.com Subject: [AccessD] No column-wrapping on 2-column reports ? Hello all! I have an Access report that has been formatted with 2 columns. Each record has about 10 fields that take up maybe 3 vertical inches of space.? Some of the fields have CanGrow set to true, which means that some records are very "short" in a vertical sense, and others are "tall". Here's my problem; records do not appear to be wrapping from one column to another.? This is not a problem on pages with a bunch of "short" records, but it is on pages that have (for example) one "short" record and one "tall" record.? Instead of starting below the short record and wrapping from the bottom of the left-hand column to the top of the right-hand column, the "tall" record just starts at the top of the right-hand column, leaving a lot of space under the "short" record in the left-hand column. Is anyone aware of a way to make records wrap from one column to the other? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 22 13:09:53 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 22 Mar 2005 12:09:53 -0700 Subject: [AccessD] No column-wrapping on 2-column reports ? Message-ID: <5c4da486385f45969e11542f201d11e3@christopherhawkins.com> Interesting is one word for it.? ;) I've opted to go with Word mail merge for this particular directory.? My clients will complain, but as we all know - the developer knows best!? ;) -C- ---------------------------------------- From: "Charlotte Foust" Sent: Tuesday, March 22, 2005 11:31 AM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] No column-wrapping on 2-column reports ? A field can't grow and wrap into the next column, to the whole field or whole record, depending on your keep together settings will get moved. As far as I recall, Access reports have always worked this way, which can make creating directories an interesting exercise. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, March 22, 2005 10:19 AM To: accessd at databaseadvisors.com Subject: [AccessD] No column-wrapping on 2-column reports ? Hello all! I have an Access report that has been formatted with 2 columns. Each record has about 10 fields that take up maybe 3 vertical inches of space.? Some of the fields have CanGrow set to true, which means that some records are very "short" in a vertical sense, and others are "tall". Here's my problem; records do not appear to be wrapping from one column to another.? This is not a problem on pages with a bunch of "short" records, but it is on pages that have (for example) one "short" record and one "tall" record.? Instead of starting below the short record and wrapping from the bottom of the left-hand column to the top of the right-hand column, the "tall" record just starts at the top of the right-hand column, leaving a lot of space under the "short" record in the left-hand column. Is anyone aware of a way to make records wrap from one column to the other? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 22 23:12:58 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 22 Mar 2005 21:12:58 -0800 Subject: [AccessD] Is there a preferred style Message-ID: <000501c52f66$fb36f620$6701a8c0@laptop1> Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub From jwcolby at colbyconsulting.com Tue Mar 22 23:29:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 00:29:49 -0500 Subject: [AccessD] Is there a preferred style In-Reply-To: <000501c52f66$fb36f620$6701a8c0@laptop1> Message-ID: <002701c52f69$55347560$697aa8c0@ColbyM6805> The second. The nesting will prevent running the next tests if the first test passes. It is only an issue however if it is in code that runs continuously and the time difference will add up. Or... Where several different answers can be happening at the same time and the last should win. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is there a preferred style Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub -- 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 Mar 22 23:34:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 23 Mar 2005 15:34:17 +1000 Subject: [AccessD] Is there a preferred style In-Reply-To: <000501c52f66$fb36f620$6701a8c0@laptop1> Message-ID: <42418C79.13450.765D45@stuart.lexacorp.com.pg> On 22 Mar 2005 at 21:12, Joe Hecht wrote: > Working alone is the pits. > > I have three tests to set the value of a text box. What is considered to be > good coding practice? > I try to avoid nesting "If"s, they can get very messy. Assuming the cases are mutually exclusive, I find this sort of thing much easier to follow: Select Case Switch(TestOne = True, 1, TestTwo = True, 2, TestThree = True, 3) Case 1 dosomething Case 2 dosomethingelse Case 3 doathirdthing Case Else MsgBox "Nothing is true" End Select If they are not mutually exclusive, you could use a bitmask Flag = 0 If testOne = true then flag = flag +1 If testTwo = true then flag = flag +2 If testThree = true then flag = flag +4 Select Case flag Case 0 'Nothing is true Case 1 'testone is true Case 2 'testtwo is true Case 3 'testone and testtwo are true ....... -- Stuart From jmhla at earthlink.net Wed Mar 23 00:03:00 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 22 Mar 2005 22:03:00 -0800 Subject: [AccessD] Is there a preferred style In-Reply-To: <42418C79.13450.765D45@stuart.lexacorp.com.pg> Message-ID: <000001c52f6d$f8978ef0$6701a8c0@laptop1> Did not even think of select case. Thanks for reminder -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, March 22, 2005 9:34 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Is there a preferred style On 22 Mar 2005 at 21:12, Joe Hecht wrote: > Working alone is the pits. > > I have three tests to set the value of a text box. What is considered to be > good coding practice? > I try to avoid nesting "If"s, they can get very messy. Assuming the cases are mutually exclusive, I find this sort of thing much easier to follow: Select Case Switch(TestOne = True, 1, TestTwo = True, 2, TestThree = True, 3) Case 1 dosomething Case 2 dosomethingelse Case 3 doathirdthing Case Else MsgBox "Nothing is true" End Select If they are not mutually exclusive, you could use a bitmask Flag = 0 If testOne = true then flag = flag +1 If testTwo = true then flag = flag +2 If testThree = true then flag = flag +4 Select Case flag Case 0 'Nothing is true Case 1 'testone is true Case 2 'testtwo is true Case 3 'testone and testtwo are true ....... -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 23 00:08:50 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 22 Mar 2005 22:08:50 -0800 Subject: [AccessD] Is there a preferred style In-Reply-To: <000501c52f66$fb36f620$6701a8c0@laptop1> Message-ID: <0IDS00878JQLA5@l-daemon> Hi Joe: The way I would do it is to create the whole test in one group with the most likely 'true' at the top and the rest in descending order like: if test one is true then do something elseif test two is true then do something elseif test three is true then do something 'else ' ' do something endif I always like to have an else at the bottom of statement if there is even the slightest chance the code will fail over if some value gets through. That is only necessary if that is what is required. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, March 22, 2005 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is there a preferred style Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Mar 23 06:05:51 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 23 Mar 2005 07:05:51 -0500 Subject: [AccessD] Is there a preferred style In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B44316@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE92E@ADGSERVER> I agree with John. The second version can stop unnecessary comparisons being made. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 23, 2005 12:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is there a preferred style The second. The nesting will prevent running the next tests if the first test passes. It is only an issue however if it is in code that runs continuously and the time difference will add up. Or... Where several different answers can be happening at the same time and the last should win. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is there a preferred style Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub From Rich_Lavsa at pghcorning.com Wed Mar 23 07:27:25 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 23 Mar 2005 08:27:25 -0500 Subject: [AccessD] Normalize Pivot Table Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03ABEA@goexchange2.pghcorning.com> Hello all, I was just curious if anyone out there has ever written any code (ADO or DAO) to Normalize a Pivot or Crosstab data table. Reason: I get a data matrix that looks like a pivot table. The matrix is set up with formula's in excel so its easy for the outside company to update the entire matrix and email the updated matrix to our users. Problem is getting the updated data into a normalized state so it can be used in the database. I did try UNTOOLS (http://www.CleanDataSystems.com) which works great for a 1 time conversion, however I need this to be an automated approach where the user simply has to copy the file to a specified directory then push a button in the application to update the database. Yesterday I had a very clear vision of how I'd write the code but this morning my brain isn't working too clearly. Any help would be greatly appreciated Thanks, Rich From andy at minstersystems.co.uk Wed Mar 23 07:19:18 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 14:19:18 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323141916.1368825E46F@smtp.nildram.co.uk> Hi all Never used TS but may be doing so soon. I could use some advice from those of you who've done it. If I have an A97 application which I wanted to make available to a home user via TS would you expect there to be any code changes necessary? The FE links to a single BE, which is located on a Novell server - is that an issue? Can TS be setup so that all drive mappings are the same as a desktop's? The app emails via Outlook - will that just run as normal? Ah but we now use Redemption - so I guess Redemption would need loading on the TS server. Anyone done that? And we send faxes using Zetafax. I don't imagine anyone knows the answer to that one, but is it 100% reliable to say that if an app works on a W2000 workstation it will work just the same under TS? Any help much appreciated as ever. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Wed Mar 23 08:41:12 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 23 Mar 2005 15:41:12 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: Hi Andy If this is for a single user you could just use remote control. Or - for a setup like Termincal Server but at a fraction of the license cost - study here: http://www.thinsoftinc.com/products_winconserver_info.html /gustav >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> Hi all Never used TS but may be doing so soon. I could use some advice from those of you who've done it. If I have an A97 application which I wanted to make available to a home user via TS would you expect there to be any code changes necessary? The FE links to a single BE, which is located on a Novell server - is that an issue? Can TS be setup so that all drive mappings are the same as a desktop's? The app emails via Outlook - will that just run as normal? Ah but we now use Redemption - so I guess Redemption would need loading on the TS server. Anyone done that? And we send faxes using Zetafax. I don't imagine anyone knows the answer to that one, but is it 100% reliable to say that if an app works on a W2000 workstation it will work just the same under TS? From vrm at tim-cms.com Wed Mar 23 08:57:13 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Wed, 23 Mar 2005 15:57:13 +0100 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323141916.1368825E46F@smtp.nildram.co.uk> Message-ID: <200503230958796.SM02656@ORSLAPTOP> Hi Andy, I use TS over the internet in combination with ADSL and cable connections a lot with my customers. Finally get rid of pc-nowwhere, thightvnc,etc. What you have to do is a client install of your application on the TS. If your TS is an domainserver all drivemappings will be as usual conform the loginscript because users are authenticated by the domain controller. If not you have to be sure that the TS has the same drivemappings that are necessary for your app. What type of fileserver you are running does not matter. Outlook and PRINTING are difficult. If your TS is in a domain the domain profile will be used on the TS and also outlook is working ok. But this depends on the installation and architecture of your network. Printing is to the local available printers. Keep in mind local meens local for the TS and so mostly not on you own location. I did not have any code changes to my A97, A2k apps using TS and am using redemption also with my clients. No problemo As fax solution we use Winfax and Castell fax the both work well within TS My experience is that a app which works on windows NT and higher works well on TS. The main thing you have to get focussed on is that a TS session is a client session on the server so ALL software needed to run you app on the normal clients have to be installed on your TS server. Kind regards Marcel Vreuls ____________________________________________________________________________ ___________________________ From andy at minstersystems.co.uk Wed Mar 23 07:58:41 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 14:58:41 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323145839.1CAAD257659@smtp.nildram.co.uk> Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those > of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user > via TS would you expect there to be any code changes necessary? The FE > links > to a single BE, which is located on a Novell server - is that an issue? > Can > TS be setup so that all drive mappings are the same as a desktop's? The > app > emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone > knows the answer to that one, but is it 100% reliable to say that if an > app > works on a W2000 workstation it will work just the same under TS? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 08:08:07 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:08:07 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323150804.8398B257639@smtp.nildram.co.uk> Terrific Marcel. Just what I wanted to hear. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 14:55 > > Hi Andy, > > I use TS over the internet in combination with ADSL and cable connections a > lot with my customers. Finally get rid of pc-nowwhere, thightvnc,etc. > > What you have to do is a client install of your application on the TS. > > If your TS is an domainserver all drivemappings will be as usual conform the > loginscript because users are authenticated by the domain controller. If not > you have to be sure that the TS has the same drivemappings that are > necessary for your app. What type of fileserver you are running does not > matter. > > Outlook and PRINTING are difficult. If your TS is in a domain the domain > profile will be used on the TS and also outlook is working ok. But this > depends on the installation and architecture of your network. Printing is to > the local available printers. Keep in mind local meens local for the TS and > so mostly not on you own location. > > I did not have any code changes to my A97, A2k apps using TS and am using > redemption also with my clients. No problemo > As fax solution we use Winfax and Castell fax the both work well within TS > > My experience is that a app which works on windows NT and higher works well > on TS. The main thing you have to get focussed on is that a TS session is a > client session on the server so ALL software needed to run you app on the > normal clients have to be installed on your TS server. > > > > Kind regards > > Marcel Vreuls > > ____________________________________________________________________________ > ___________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 08:11:30 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:11:30 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323151128.11BB2256FC9@smtp.nildram.co.uk> Thinking about the printing. Presumably the user logging-in on TS has a separate profile from the user logging-in when in the office. If so then could we define his/her printer at home somehow as a network printer then set that as the TS profile's default printer? Would that work? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 14:55 > > Hi Andy, > > I use TS over the internet in combination with ADSL and cable connections a > lot with my customers. Finally get rid of pc-nowwhere, thightvnc,etc. > > What you have to do is a client install of your application on the TS. > > If your TS is an domainserver all drivemappings will be as usual conform the > loginscript because users are authenticated by the domain controller. If not > you have to be sure that the TS has the same drivemappings that are > necessary for your app. What type of fileserver you are running does not > matter. > > Outlook and PRINTING are difficult. If your TS is in a domain the domain > profile will be used on the TS and also outlook is working ok. But this > depends on the installation and architecture of your network. Printing is to > the local available printers. Keep in mind local meens local for the TS and > so mostly not on you own location. > > I did not have any code changes to my A97, A2k apps using TS and am using > redemption also with my clients. No problemo > As fax solution we use Winfax and Castell fax the both work well within TS > > My experience is that a app which works on windows NT and higher works well > on TS. The main thing you have to get focussed on is that a TS session is a > client session on the server so ALL software needed to run you app on the > normal clients have to be installed on your TS server. > > > > Kind regards > > Marcel Vreuls > > ____________________________________________________________________________ > ___________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From tom.bolton at donnslaw.co.uk Wed Mar 23 09:14:10 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 23 Mar 2005 15:14:10 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAA5@dibble.observatory.donnslaw.co.uk> Hi Andy I've been building a complex Access app on TS (Win 2k) for Roz for some months now. It's a reporting tool that connects to either Informix (boo) or SQL Server (yay). Here are some of the problems I've come across: -- FE and BE in my case needed to be split as user info (saved queries etc.) is stored in Access and we have ~12 'production' terminal servers. These are load-balanced and users are kicked onto any one of them at random. If no split, then the user needs to be on the same server they were on when they saved their data. -- Anything that dynamically alters queries etc. needs to make a copy of these first to avoid locking issues. These are the biggies, otherwise everything seems to work/connect just as in a normal client/server situation. If you have specific questions I'd be more than happy to answer them as best I can. HTH Tom -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 23 March 2005 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access & Terminal Services Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From vrm at tim-cms.com Wed Mar 23 09:24:10 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Wed, 23 Mar 2005 16:24:10 +0100 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323151128.11BB2256FC9@smtp.nildram.co.uk> Message-ID: <200503231025890.SM01212@ORSLAPTOP> Andy, This could work. You have some configuration to do at home and in the office. On the TS you have to create a printer as \\ipadreshome\printername Then at home (and perhaps the company firewall as well) you have to open the firewall for incoming printbatches and route it to correct PC with shared printer. This needs some testing and setting up but it works, slowly but works. You could get problems with -timeouts. I have a batch file which pings the remote printer every 10 minutes to keep the session alive -disconnected printers because the internet is down or remote computer is rebooted. Take the time to test and configure. I costed me about 1 day to set one printer up. Kind regards Marcel Vreuls From andy at minstersystems.co.uk Wed Mar 23 08:23:11 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:23:11 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323152309.4B651257669@smtp.nildram.co.uk> Thanks Tom I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that you must mean dynamically altering queries in the BE. Am I right? Surely queries in the FE are ok. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:14 > Hi Andy > > I've been building a complex Access app on TS (Win 2k) for Roz for some > months now. It's a reporting tool that connects to either Informix (boo) or > SQL Server (yay). > > Here are some of the problems I've come across: > > -- FE and BE in my case needed to be split as user info (saved queries etc.) > is stored in Access and we have ~12 'production' terminal servers. These > are load-balanced and users are kicked onto any one of them at random. If > no split, then the user needs to be on the same server they were on when > they saved their data. > > -- Anything that dynamically alters queries etc. needs to make a copy of > these first to avoid locking issues. > > These are the biggies, otherwise everything seems to work/connect just as in > a normal client/server situation. If you have specific questions I'd be > more than happy to answer them as best I can. > > HTH > Tom > > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 13:59 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > Thanks Gustav, but the boss here is likely to want to go the TS route. We > have Remote Control working nicely for him from home, but for lesser > mortals, of whom there could be several, he doesn't want to have > workstations dotted around which have to left on and not used by other > workers, and other considerations. So I think TS would be right, but the > question is whether everything that my app does (as outlined below) will > work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if you > went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From nkling at co.montgomery.ny.us Wed Mar 23 09:27:07 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Wed, 23 Mar 2005 10:27:07 -0500 Subject: [AccessD] Access & Terminal Services Message-ID: <30BC111F638EB54082001A7E7282FE41114D0C@elmo.co.montgomery.ny.us> When you install W2000 server you have a choice as to whether you want Terminal Services to be in Application mode or Remote Administration mode. In Remote Administration mode you are limited to two concurrent users and it is licensed for two clients. In application mode you have (I believe) unlimited concurrent log ons, but each client must have it's own license. Win2K and XP come with a terminal services license; prior OSs do not and you have to pay. W2003 server comes with Remote Administration mode by default. To change to Application mode you install Terminal Services Server. Hope that helps, Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access & Terminal Services Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those > of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user > via TS would you expect there to be any code changes necessary? The FE > links > to a single BE, which is located on a Novell server - is that an issue? > Can > TS be setup so that all drive mappings are the same as a desktop's? The > app > emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone > knows the answer to that one, but is it 100% reliable to say that if an > app > works on a W2000 workstation it will work just the same under TS? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Wed Mar 23 09:42:27 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 23 Mar 2005 15:42:27 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880722574A@dibble.observatory.donnslaw.co.uk> Hi Andy Queries in the FE are only OK if you have 1 user per TS or you make a copy of your FE per user - we have up to 30 users per server and at the moment they are all accessing a single FE install on each server, so the FE is shared. We're considering going the FE-per-user route as we're going to have to start making run-time changes to report objects any time now. On our setup it's not straight forward but if you're starting small and working up it should be OK for you. Roz -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 23 March 2005 14:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Thanks Tom I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that you must mean dynamically altering queries in the BE. Am I right? Surely queries in the FE are ok. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:14 > Hi Andy > > I've been building a complex Access app on TS (Win 2k) for Roz for > some months now. It's a reporting tool that connects to either > Informix (boo) or > SQL Server (yay). > > Here are some of the problems I've come across: > > -- FE and BE in my case needed to be split as user info (saved queries etc.) > is stored in Access and we have ~12 'production' terminal servers. > These are load-balanced and users are kicked onto any one of them at > random. If no split, then the user needs to be on the same server > they were on when they saved their data. > > -- Anything that dynamically alters queries etc. needs to make a copy > of these first to avoid locking issues. > > These are the biggies, otherwise everything seems to work/connect just > as in > a normal client/server situation. If you have specific questions I'd > be more than happy to answer them as best I can. > > HTH > Tom > > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 13:59 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > Thanks Gustav, but the boss here is likely to want to go the TS route. > We have Remote Control working nicely for him from home, but for > lesser mortals, of whom there could be several, he doesn't want to > have workstations dotted around which have to left on and not used by > other workers, and other considerations. So I think TS would be right, > but the question is whether everything that my app does (as outlined > below) will work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if > you went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > > > > > The contents of this message and any attachments are the property of > Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail > to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message > are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any > attachment. Donns Solicitors does not accept any liability for any > damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From andy at minstersystems.co.uk Wed Mar 23 08:43:12 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:43:12 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323154309.527422546BC@smtp.nildram.co.uk> Thanks Neal. So, just to clarify, if we have TS running in Application server mode on a W2000 server, and clients coming on are all W2K Pro, then we need no other licenses (except for app'n software of course)? I started to look this up on the MS website but when I came across a White Paper on TS licensing I folded. I just want simple answers not a bloody disseration. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:29 > > When you install W2000 server you have a choice as to whether you want Terminal Services to be in Application mode or Remote Administration mode. In Remote Administration mode you are limited to two concurrent users and it is licensed for two clients. In application mode you have (I believe) unlimited concurrent log ons, but each client must have it's own license. Win2K and XP come with a terminal services license; prior OSs do not and you have to pay. > > W2003 server comes with Remote Administration mode by default. To change to Application mode you install Terminal Services Server. > > Hope that helps, > Neal > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 8:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > > Thanks Gustav, but the boss here is likely to want to go the TS route. We > have Remote Control working nicely for him from home, but for lesser > mortals, of whom there could be several, he doesn't want to have > workstations dotted around which have to left on and not used by other > workers, and other considerations. So I think TS would be right, but the > question is whether everything that my app does (as outlined below) will > work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if you > went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: Re: [AccessD] Access & Terminal Services > Date: 23/03/05 14:42 > > > > > Hi Andy > > > > If this is for a single user you could just use remote control. > > Or - for a setup like Termincal Server but at a fraction of the license > > cost - study here: > > > > http://www.thinsoftinc.com/products_winconserver_info.html > > > > /gustav > > > > &gt;&gt;&gt; andy at minstersystems.co.uk 03/23 2:19 pm &gt;&gt;&gt; > > Hi all > > > > Never used TS but may be doing so soon. I could use some advice from > > those > > of you who've done it. > > > > If I have an A97 application which I wanted to make available to a home > > user > > via TS would you expect there to be any code changes necessary? The FE > > links > > to a single BE, which is located on a Novell server - is that an issue? > > Can > > TS be setup so that all drive mappings are the same as a desktop's? The > > app > > emails via Outlook - will that just run as normal? Ah but we now use > > Redemption - so I guess Redemption would need loading on the TS > > server. > > Anyone done that? And we send faxes using Zetafax. I don't imagine > > anyone > > knows the answer to that one, but is it 100% reliable to say that if an > > app > > works on a W2000 workstation it will work just the same under TS? > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From accessd at shaw.ca Wed Mar 23 09:44:54 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 23 Mar 2005 07:44:54 -0800 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323145839.1CAAD257659@smtp.nildram.co.uk> Message-ID: <0IDT00B8FAEP1J@l-daemon> Hi Andy: TS should be part of Window2000 Server but it is an option the can be selected during installing and it has to be configured. There should four free licenses (W2K adv.) after that you will have to purchase more. (Not sure of the cost etc.) You can check to see if it got installed at start > Programs > Administration Tools > Terminal Service Configuration .... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access & Terminal Services Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those > of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user > via TS would you expect there to be any code changes necessary? The FE > links > to a single BE, which is located on a Novell server - is that an issue? > Can > TS be setup so that all drive mappings are the same as a desktop's? The > app > emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone > knows the answer to that one, but is it 100% reliable to say that if an > app > works on a W2000 workstation it will work just the same under TS? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nkling at co.montgomery.ny.us Wed Mar 23 09:51:45 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Wed, 23 Mar 2005 10:51:45 -0500 Subject: [AccessD] Access & Terminal Services Message-ID: <30BC111F638EB54082001A7E7282FE4107F1E9@elmo.co.montgomery.ny.us> Your summation is correct as I understand it. I ran it by our network admin and he agrees. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 9:43 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Thanks Neal. So, just to clarify, if we have TS running in Application server mode on a W2000 server, and clients coming on are all W2K Pro, then we need no other licenses (except for app'n software of course)? I started to look this up on the MS website but when I came across a White Paper on TS licensing I folded. I just want simple answers not a bloody disseration. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:29 > > When you install W2000 server you have a choice as to whether you want Terminal Services to be in Application mode or Remote Administration mode. In Remote Administration mode you are limited to two concurrent users and it is licensed for two clients. In application mode you have (I believe) unlimited concurrent log ons, but each client must have it's own license. Win2K and XP come with a terminal services license; prior OSs do not and you have to pay. > > W2003 server comes with Remote Administration mode by default. To change to Application mode you install Terminal Services Server. > > Hope that helps, > Neal > From andy at minstersystems.co.uk Wed Mar 23 08:55:28 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:55:28 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323155526.36D9E25E070@smtp.nildram.co.uk> Hi Roz, My ignorance here is total, so please bear with me. I envisaged that each user would be totally separate on TS, and hence would have a separate FE. Are you saying that's a choice I need to be careful to make at some point when setting-up? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:42 > Hi Andy > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > of your FE per user - we have up to 30 users per server and at the moment > they are all accessing a single FE install on each server, so the FE is > shared. > > We're considering going the FE-per-user route as we're going to have to > start making run-time changes to report objects any time now. On our setup > it's not straight forward but if you're starting small and working up it > should be OK for you. > > Roz > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:23 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Thanks Tom > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that > you must mean dynamically altering queries in the BE. Am I right? Surely > queries in the FE are ok. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:14 > > > Hi Andy > > > > I've been building a complex Access app on TS (Win 2k) for Roz for > > some months now. It's a reporting tool that connects to either > > Informix (boo) > or > > SQL Server (yay). > > > > Here are some of the problems I've come across: > > > > -- FE and BE in my case needed to be split as user info (saved queries > etc.) > > is stored in Access and we have ~12 'production' terminal servers. > > These are load-balanced and users are kicked onto any one of them at > > random. If no split, then the user needs to be on the same server > > they were on when they saved their data. > > > > -- Anything that dynamically alters queries etc. needs to make a copy > > of these first to avoid locking issues. > > > > These are the biggies, otherwise everything seems to work/connect just > > as > in > > a normal client/server situation. If you have specific questions I'd > > be more than happy to answer them as best I can. > > > > HTH > > Tom > > > > > > > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 13:59 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access &amp; Terminal Services > > > > Thanks Gustav, but the boss here is likely to want to go the TS route. > > We have Remote Control working nicely for him from home, but for > > lesser mortals, of whom there could be several, he doesn't want to > > have workstations dotted around which have to left on and not used by > > other workers, and other considerations. So I think TS would be right, > > but the question is whether everything that my app does (as outlined > > below) will work unaltered under TS. > > > > BTW what's the license cost implication of TS? Must be considerable if > > you went for an alternative. I thought it was part of W2000 server. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > The contents of this message and any attachments are the property of > > Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail > > to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message > > are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any > > attachment. Donns Solicitors does not accept any liability for any > > damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 08:57:32 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:57:32 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323155729.810712566ED@smtp.nildram.co.uk> Hi Jim. Yes that helps. Four may well be ok. And I can't check anything just yet because this is all strategy planning at the moment. We don't even have W2000 Server yet! -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:45 > > Hi Andy: > > TS should be part of Window2000 Server but it is an option the can be > selected during installing and it has to be configured. There should four > free licenses (W2K adv.) after that you will have to purchase more. (Not > sure of the cost etc.) You can check to see if it got installed at start > > Programs > Administration Tools > Terminal Service Configuration .... > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 5:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > Thanks Gustav, but the boss here is likely to want to go the TS route. We > have Remote Control working nicely for him from home, but for lesser > mortals, of whom there could be several, he doesn't want to have > workstations dotted around which have to left on and not used by other > workers, and other considerations. So I think TS would be right, but the > question is whether everything that my app does (as outlined below) will > work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if you > went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: Re: [AccessD] Access & Terminal Services > Date: 23/03/05 14:42 > > > > > Hi Andy > > > > If this is for a single user you could just use remote control. > > Or - for a setup like Termincal Server but at a fraction of the license > > cost - study here: > > > > http://www.thinsoftinc.com/products_winconserver_info.html > > > > /gustav > > > > &gt;&gt;&gt; andy at minstersystems.co.uk 03/23 2:19 pm &gt;&gt;&gt; > > Hi all > > > > Never used TS but may be doing so soon. I could use some advice from > > those > > of you who've done it. > > > > If I have an A97 application which I wanted to make available to a home > > user > > via TS would you expect there to be any code changes necessary? The FE > > links > > to a single BE, which is located on a Novell server - is that an issue? > > Can > > TS be setup so that all drive mappings are the same as a desktop's? The > > app > > emails via Outlook - will that just run as normal? Ah but we now use > > Redemption - so I guess Redemption would need loading on the TS > > server. > > Anyone done that? And we send faxes using Zetafax. I don't imagine > > anyone > > knows the answer to that one, but is it 100% reliable to say that if an > > app > > works on a W2000 workstation it will work just the same under TS? > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 09:03:55 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:03:55 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323160352.DD51D250B30@smtp.nildram.co.uk> Great, thanks again Neal. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:53 > > Your summation is correct as I understand it. I ran it by our network admin and he agrees. > > Neal > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 9:43 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Thanks Neal. So, just to clarify, if we have TS running in Application > server mode on a W2000 server, and clients coming on are all W2K Pro, then > we need no other licenses (except for app'n software of course)? I started > to look this up on the MS website but when I came across a White Paper on TS > licensing I folded. I just want simple answers not a bloody disseration. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:29 > > > > > When you install W2000 server you have a choice as to whether you want > Terminal Services to be in Application mode or Remote Administration mode. > In Remote Administration mode you are limited to two concurrent users and it > is licensed for two clients. In application mode you have (I believe) > unlimited concurrent log ons, but each client must have it's own license. > Win2K and XP come with a terminal services license; prior OSs do not and you > have to pay. > > > > W2003 server comes with Remote Administration mode by default. To change > to Application mode you install Terminal Services Server. > > > > Hope that helps, > > Neal > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From tom.bolton at donnslaw.co.uk Wed Mar 23 10:13:02 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 23 Mar 2005 16:13:02 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAAA@dibble.observatory.donnslaw.co.uk> Hi Andy What Roz is saying is that if there are three users on a terminal server, and each of the three opens your Access app, they are using the same one. If (on a non-TS network) you had your app stored on a network drive, and three users opened it simultaneously, it would be exactly the same. If one of the users (whether on TS or normal network) altered one of the FE objects (querydef, table) you would have locking issues. It is best, then, to make a copy of that object in your FE and alter the copy. This is what I've had to do. Unfortunately, altering a report puts the FE into exclusive lock so this is unachievable with TS unless each user has a copy of the FE. HTH - sorry, I was about to explain myself better but got caught up and R. beat me to it. Cheers Tom -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 23 March 2005 14:55 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Hi Roz, My ignorance here is total, so please bear with me. I envisaged that each user would be totally separate on TS, and hence would have a separate FE. Are you saying that's a choice I need to be careful to make at some point when setting-up? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:42 > Hi Andy > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > of your FE per user - we have up to 30 users per server and at the moment > they are all accessing a single FE install on each server, so the FE is > shared. > > We're considering going the FE-per-user route as we're going to have to > start making run-time changes to report objects any time now. On our setup > it's not straight forward but if you're starting small and working up it > should be OK for you. > > Roz > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:23 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Thanks Tom > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that > you must mean dynamically altering queries in the BE. Am I right? Surely > queries in the FE are ok. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:14 > > > Hi Andy > > > > I've been building a complex Access app on TS (Win 2k) for Roz for > > some months now. It's a reporting tool that connects to either > > Informix (boo) > or > > SQL Server (yay). > > > > Here are some of the problems I've come across: > > > > -- FE and BE in my case needed to be split as user info (saved queries > etc.) > > is stored in Access and we have ~12 'production' terminal servers. > > These are load-balanced and users are kicked onto any one of them at > > random. If no split, then the user needs to be on the same server > > they were on when they saved their data. > > > > -- Anything that dynamically alters queries etc. needs to make a copy > > of these first to avoid locking issues. > > > > These are the biggies, otherwise everything seems to work/connect just > > as > in > > a normal client/server situation. If you have specific questions I'd > > be more than happy to answer them as best I can. > > > > HTH > > Tom > > > > > > > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 13:59 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access &amp; Terminal Services > > > > Thanks Gustav, but the boss here is likely to want to go the TS route. > > We have Remote Control working nicely for him from home, but for > > lesser mortals, of whom there could be several, he doesn't want to > > have workstations dotted around which have to left on and not used by > > other workers, and other considerations. So I think TS would be right, > > but the question is whether everything that my app does (as outlined > > below) will work unaltered under TS. > > > > BTW what's the license cost implication of TS? Must be considerable if > > you went for an alternative. I thought it was part of W2000 server. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > The contents of this message and any attachments are the property of > > Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail > > to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message > > are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any > > attachment. Donns Solicitors does not accept any liability for any > > damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From andy at minstersystems.co.uk Wed Mar 23 09:21:33 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:21:33 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323162130.918C1252958@smtp.nildram.co.uk> Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 16:15 > Hi Andy > > What Roz is saying is that if there are three users on a terminal server, > and each of the three opens your Access app, they are using the same one. > If (on a non-TS network) you had your app stored on a network drive, and > three users opened it simultaneously, it would be exactly the same. > > If one of the users (whether on TS or normal network) altered one of the FE > objects (querydef, table) you would have locking issues. It is best, then, > to make a copy of that object in your FE and alter the copy. This is what > I've had to do. Unfortunately, altering a report puts the FE into exclusive > lock so this is unachievable with TS unless each user has a copy of the FE. > > HTH - sorry, I was about to explain myself better but got caught up and R. > beat me to it. > > Cheers > Tom > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:55 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > Hi Roz, > My ignorance here is total, so please bear with me. I envisaged that each > user would be totally separate on TS, and hence would have a separate FE. > Are you saying that's a choice I need to be careful to make at some point > when setting-up? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:42 > > > Hi Andy > > > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > > of your FE per user - we have up to 30 users per server and at the moment > > they are all accessing a single FE install on each server, so the FE is > > shared. > > > > We're considering going the FE-per-user route as we're going to have to > > start making run-time changes to report objects any time now. On our setup > > it's not straight forward but if you're starting small and working up it > > should be OK for you. > > > > Roz > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 14:23 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Access &amp; Terminal Services > > > > > > Thanks Tom > > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought > that > > you must mean dynamically altering queries in the BE. Am I right? Surely > > queries in the FE are ok. > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > &lt;accessd at databaseadvisors.com&gt; > > To: 'Access Developers discussion and problem solving' > > &lt;accessd at databaseadvisors.com&gt; > > Subject: RE: [AccessD] Access &amp; Terminal Services > > Date: 23/03/05 15:14 > > > > &gt; Hi Andy > > &gt; > > &gt; I've been building a complex Access app on TS (Win 2k) for Roz for > > &gt; some months now. It's a reporting tool that connects to either > > &gt; Informix (boo) > > or > > &gt; SQL Server (yay). > > &gt; > > &gt; Here are some of the problems I've come across: > > &gt; > > &gt; -- FE and BE in my case needed to be split as user info (saved > queries > > etc.) > > &gt; is stored in Access and we have ~12 'production' terminal servers. > > &gt; These are load-balanced and users are kicked onto any one of them at > > &gt; random. If no split, then the user needs to be on the same server > > &gt; they were on when they saved their data. > > &gt; > > &gt; -- Anything that dynamically alters queries etc. needs to make a > copy > > &gt; of these first to avoid locking issues. > > &gt; > > &gt; These are the biggies, otherwise everything seems to work/connect > just > > &gt; as > > in > > &gt; a normal client/server situation. If you have specific questions I'd > > &gt; be more than happy to answer them as best I can. > > &gt; > > &gt; HTH > > &gt; Tom > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -----Original Message----- > > &gt; From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > &gt; Sent: 23 March 2005 13:59 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] Access &amp;amp; Terminal Services > > &gt; > > &gt; Thanks Gustav, but the boss here is likely to want to go the TS > route. > > &gt; We have Remote Control working nicely for him from home, but for > > &gt; lesser mortals, of whom there could be several, he doesn't want to > > &gt; have workstations dotted around which have to left on and not used by > > &gt; other workers, and other considerations. So I think TS would be > right, > > &gt; but the question is whether everything that my app does (as outlined > > &gt; below) will work unaltered under TS. > > &gt; > > &gt; BTW what's the license cost implication of TS? Must be considerable > if > > &gt; you went for an alternative. I thought it was part of W2000 server. > > &gt; > > &gt; -- > > &gt; Andy Lacey > > &gt; http://www.minstersystems.co.uk > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; The contents of this message and any attachments are the property of > > &gt; Donns > > Solicitors > > &gt; and are intended for the confidential use of the named recipient > only. > > They may be legally > > &gt; privileged and should not be communicated to, or relied upon, by any > > other party without > > &gt; our written consent. If you are not the addressee, please notify us > > immediately so that we > > &gt; can make arrangements for its return. You should not show this > e-mail > > &gt; to > > any person or > > &gt; take copies as you may be committing a criminal or civil offence for > > which you may be > > &gt; liable. The statement and opinions expressed in this e-mail message > > &gt; are > > those of the > > &gt; writer, and do not necessarily represent that of Donns Solicitors. > > Although any files attached > > &gt; to this e-mail will have been checked with virus protection software > > prior to transmission, > > &gt; you should carry out your own virus check before opening any > > &gt; attachment. Donns Solicitors does not accept any liability for any > > &gt; damage or loss > > which may be caused > > &gt; by software viruses... > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > The contents of this message and any attachments are the property of Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any attachment. > > Donns Solicitors does not accept any liability for any damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From nkling at co.montgomery.ny.us Wed Mar 23 10:23:33 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Wed, 23 Mar 2005 11:23:33 -0500 Subject: [AccessD] Access & Terminal Services Message-ID: <30BC111F638EB54082001A7E7282FE4107F1EA@elmo.co.montgomery.ny.us> That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk From tom.bolton at donnslaw.co.uk Wed Mar 23 10:32:26 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 23 Mar 2005 16:32:26 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAAC@dibble.observatory.donnslaw.co.uk> Yep, I would. I'm going to have to, in fact. ;-) It's just that we have 150+ users on 12 servers, you can see where it gets sticky but thankfully only a handful will be using this particular app... -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 23 March 2005 16:24 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From vrm at tim-cms.com Wed Mar 23 10:36:39 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Wed, 23 Mar 2005 17:36:39 +0100 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323162130.918C1252958@smtp.nildram.co.uk> Message-ID: <200503231137796.SM02916@ORSLAPTOP> Andy, Put the FE on the users homedir and let it start from there. Kind regards Marcel Vreuls From roz.clarke at donnslaw.co.uk Wed Mar 23 10:41:08 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 23 Mar 2005 16:41:08 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880722574C@dibble.observatory.donnslaw.co.uk> Yup, exactly, sorry we alarmed you. You then just have to update your FE the usual way. For us the consideration is the number of users but it won't be an issue for you. -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 23 March 2005 16:24 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From roz.clarke at donnslaw.co.uk Wed Mar 23 10:41:36 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 23 Mar 2005 16:41:36 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880722574D@dibble.observatory.donnslaw.co.uk> For now a handful Tom... tomorrow, the world. -----Original Message----- From: Tom Bolton [mailto:tom.bolton at donnslaw.co.uk] Sent: 23 March 2005 16:32 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Yep, I would. I'm going to have to, in fact. ;-) It's just that we have 150+ users on 12 servers, you can see where it gets sticky but thankfully only a handful will be using this particular app... -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 23 March 2005 16:24 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From bchacc at san.rr.com Wed Mar 23 10:47:28 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 08:47:28 -0800 Subject: [AccessD] Counting Users Message-ID: <018401c52fc8$00741760$6601a8c0@HAL9002> Dear List: What is the simplest way to count the number of users logged in to a back end mdb? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From BarbaraRyan at cox.net Wed Mar 23 10:49:30 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 23 Mar 2005 11:49:30 -0500 Subject: [AccessD] Replicated .mdb and SQL Server Message-ID: <00e001c52fc8$4874b560$0a00a8c0@cx470148a> I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". Thanks, Barb Ryan From andy at minstersystems.co.uk Wed Mar 23 09:54:18 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:54:18 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323165415.C026225582E@smtp.nildram.co.uk> :-) Rather you than me Tom. How do you cope with such a tough boss? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 16:42 > For now a handful Tom... tomorrow, the world. > > -----Original Message----- > From: Tom Bolton [mailto:tom.bolton at donnslaw.co.uk] > Sent: 23 March 2005 16:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Access & Terminal Services > > > Yep, I would. I'm going to have to, in fact. ;-) > > It's just that we have 150+ users on 12 servers, you can see where it gets > sticky but thankfully only a handful will be using this particular app... > > > > -----Original Message----- > From: Neal Kling [mailto:nkling at co.montgomery.ny.us] > Sent: 23 March 2005 16:24 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > That's exactly what they're saying is one of the options. Do it that way. > > Neal > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:22 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Ouch, ouch, ouch. My optimism has just gone out the window. My Access app > relies heavily on the FE being dynamic and personal to the user - all sorts > of queries being created/updated, temp tables etc. Couldn't contemplate a > rewrite. How can I get round this? What's to stop me creating a folder on > the server for each user, putting a copy of the FE in each, and having each > run their own? I don't have the foggiest idea what I mean when I say "each > run their own" in the context of TS, but does that work? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 09:55:43 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:55:43 +0100 Subject: [AccessD] Counting Users Message-ID: <20050323165540.BB1B8255539@smtp.nildram.co.uk> I'd suggest modifying JC's C2DBShowUsers code to just count not display. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Date: 23/03/05 16:48 > > Dear List: > > What is the simplest way to count the number of users logged in to a back end mdb? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Wed Mar 23 11:12:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 12:12:11 -0500 Subject: [AccessD] Counting Users In-Reply-To: <018401c52fc8$00741760$6601a8c0@HAL9002> Message-ID: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Rocky, >What is the simplest way to count the number of users logged in to a back end mdb? Walk around to the chairs and tap the users on the head, raising a finger for each head tapped. If you run out of fingers, start using your toes. Of course if you have more than 20 users, or you are missing fingers or toes, then you will need to have an assistant follow you around to store the counts for the additional heads. This works well for user counts up to about 100 or so, whereupon the trail of assistants becomes too long to manage effectively. They begin stopping to chat with friends and stuff and you lose as many as 20 user counts every time that happens. If you find that happening, I discovered that you can buy these pet collars attached to spring loaded reels of line. Just hook up your counting assistants so they can never lag too far behind. A similar method, a bit more disruptive, is to go around tapping heads, but instead of raising fingers, having each user join in a line behind you, thus by the time you tap the last user's head, you will have a long line of users which you can now just go down the line drawing a little mark on a paper for each one. It looks something like IIII\IIII\IIII\ etc. I hope that I have provided some ideas of how to do user counts. Even if you don't use my methods, perhaps I have sparked some ideas that you will find effective. Good luck in your counting, and please don't hesitate to ask further questions if you didn't understand any of the above. Respectfully, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 11:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Dear List: What is the simplest way to count the number of users logged in to a back end mdb? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 23 11:13:19 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 12:13:19 -0500 Subject: [AccessD] Counting Users In-Reply-To: <20050323165540.BB1B8255539@smtp.nildram.co.uk> Message-ID: <007a01c52fcb$9c1c63e0$697aa8c0@ColbyM6805> DAMN! Now why didn't I think of that? Sorry Rocky, please ignore my last post. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users I'd suggest modifying JC's C2DBShowUsers code to just count not display. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Date: 23/03/05 16:48 > > Dear List: > > What is the simplest way to count the number of users logged in to a > back end mdb? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 23 11:27:34 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 09:27:34 -0800 Subject: [AccessD] Counting Users References: <007a01c52fcb$9c1c63e0$697aa8c0@ColbyM6805> Message-ID: <01fe01c52fcd$99e12f00$6601a8c0@HAL9002> JC: I liked your first solution better. Low-tech. Effective. And no batteries required. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 23, 2005 9:13 AM Subject: RE: [AccessD] Counting Users > DAMN! Now why didn't I think of that? > > Sorry Rocky, please ignore my last post. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > I'd suggest modifying JC's C2DBShowUsers code to just count not display. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > Date: 23/03/05 16:48 > >> >> Dear List: >> >> What is the simplest way to count the number of users logged in to a >> back > end mdb? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Wed Mar 23 11:32:43 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 09:32:43 -0800 Subject: [AccessD] Counting Users In-Reply-To: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Message-ID: <000001c52fce$52a79510$6701a8c0@laptop1> Cold Cute -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 23, 2005 9:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Rocky, >What is the simplest way to count the number of users logged in to a back end mdb? Walk around to the chairs and tap the users on the head, raising a finger for each head tapped. If you run out of fingers, start using your toes. Of course if you have more than 20 users, or you are missing fingers or toes, then you will need to have an assistant follow you around to store the counts for the additional heads. This works well for user counts up to about 100 or so, whereupon the trail of assistants becomes too long to manage effectively. They begin stopping to chat with friends and stuff and you lose as many as 20 user counts every time that happens. If you find that happening, I discovered that you can buy these pet collars attached to spring loaded reels of line. Just hook up your counting assistants so they can never lag too far behind. A similar method, a bit more disruptive, is to go around tapping heads, but instead of raising fingers, having each user join in a line behind you, thus by the time you tap the last user's head, you will have a long line of users which you can now just go down the line drawing a little mark on a paper for each one. It looks something like IIII\IIII\IIII\ etc. I hope that I have provided some ideas of how to do user counts. Even if you don't use my methods, perhaps I have sparked some ideas that you will find effective. Good luck in your counting, and please don't hesitate to ask further questions if you didn't understand any of the above. Respectfully, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 11:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Dear List: What is the simplest way to count the number of users logged in to a back end mdb? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 23 11:50:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 12:50:11 -0500 Subject: [AccessD] Counting Users In-Reply-To: <01fe01c52fcd$99e12f00$6601a8c0@HAL9002> Message-ID: <007b01c52fd0$c2827600$697aa8c0@ColbyM6805> Rocky, I think in this day of ever present technology we tend to forget about the good old ways that we used to do things. How many of us have to have a PIM to store our phone numbers and things? My father just write the numbers in ball point pen on his hand or up and down his arm. The only problem he ever had with that system was one time he took a shower by accident and lost all of his numbers. Simple, effective and if you avoid water you just never lose your info. The old ways were often times superior to all our wonderful technology. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users JC: I liked your first solution better. Low-tech. Effective. And no batteries required. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 23, 2005 9:13 AM Subject: RE: [AccessD] Counting Users > DAMN! Now why didn't I think of that? > > Sorry Rocky, please ignore my last post. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > I'd suggest modifying JC's C2DBShowUsers code to just count not > display. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > Date: 23/03/05 16:48 > >> >> Dear List: >> >> What is the simplest way to count the number of users logged in to a >> back > end mdb? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 11:53:35 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 09:53:35 -0800 Subject: [AccessD] data source problem Message-ID: <000001c52fd1$3d5ecae0$6701a8c0@laptop1> I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe From GregSmith at starband.net Wed Mar 23 11:54:35 2005 From: GregSmith at starband.net (GregSmith at starband.net) Date: Wed, 23 Mar 2005 12:54:35 -0500 (EST) Subject: [AccessD] Not in List ... or Not? In-Reply-To: <018401c52fc8$00741760$6601a8c0@HAL9002> References: <018401c52fc8$00741760$6601a8c0@HAL9002> Message-ID: <65304.65.118.249.214.1111600475.squirrel@cetus.email.starband.net> Hi everyone! Hope everyone is having a good day. This may be just the way it is, but I still have to ask. Access 2003. I have a combo box, Value List, I typed in the list, Limit to List. Default value is set to one of the items in the list. List cannot be added to. My list has four(4) items in it. So, why can I enter a BLANK in it? A Blank is NOT one of my items in the list. Last time I checked, when one says "limit to list", you should only be able to put in what's in the list. Period. End of sentence. Nothing else. Zip, zero, nada, nothin'. I know I can check the field on exit to make sure it has something in it other than a blank (since the limit to list DOESN'T frickin' work right on blanks...), but I have about a gazillion other events happening with focusing and it hoses them up when it tries to go back. Is this just one of those Access quirks or am I missing something? TIA! Greg Smith gregsmith(no spam)@starband.net From cyx5 at cdc.gov Wed Mar 23 11:59:56 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 23 Mar 2005 12:59:56 -0500 Subject: [AccessD] data source problem Message-ID: iif -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] data source problem I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 12:04:07 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 10:04:07 -0800 Subject: [AccessD] data source problem In-Reply-To: Message-ID: <000a01c52fd2$b5b4f4a0$6701a8c0@laptop1> Thanks Karen -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 23, 2005 10:00 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] data source problem iif -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] data source problem I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Mar 23 12:08:29 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 18:08:29 -0000 Subject: [AccessD] Counting Users In-Reply-To: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Message-ID: <006201c52fd3$516ed4b0$b274d0d5@minster33c3r25> ROTFL. Love it. Why didn't I think of that? Not a lateral thinker you see. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: 23 March 2005 17:12 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Counting Users > > > Rocky, > > >What is the simplest way to count the number of users logged in to a > >back > end mdb? > > Walk around to the chairs and tap the users on the head, > raising a finger for each head tapped. If you run out of > fingers, start using your toes. Of course if you have more > than 20 users, or you are missing fingers or toes, then you > will need to have an assistant follow you around to store the > counts for the additional heads. This works well for user > counts up to about 100 or so, whereupon the trail of > assistants becomes too long to manage effectively. They > begin stopping to chat with friends and stuff and you lose as > many as 20 user counts every time that happens. > > If you find that happening, I discovered that you can buy > these pet collars attached to spring loaded reels of line. > Just hook up your counting assistants so they can never lag > too far behind. > > A similar method, a bit more disruptive, is to go around > tapping heads, but instead of raising fingers, having each > user join in a line behind you, thus by the time you tap the > last user's head, you will have a long line of users which > you can now just go down the line drawing a little mark on a > paper for each one. It looks something like IIII\IIII\IIII\ etc. > > I hope that I have provided some ideas of how to do user > counts. Even if you don't use my methods, perhaps I have > sparked some ideas that you will find effective. > > Good luck in your counting, and please don't hesitate to ask > further questions if you didn't understand any of the above. > > Respectfully, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Wednesday, March 23, 2005 11:47 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > > > Dear List: > > What is the simplest way to count the number of users logged > in to a back end mdb? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Mar 23 12:09:55 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 18:09:55 -0000 Subject: [AccessD] Access & Terminal Services In-Reply-To: <61F915314798D311A2F800A0C9C831880722574D@dibble.observatory.donnslaw.co.uk> Message-ID: <006a01c52fd3$84be0de0$b274d0d5@minster33c3r25> Thanks to everyone for your help on this. You, as always, are the biz. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke > Sent: 23 March 2005 16:42 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Access & Terminal Services > > > For now a handful Tom... tomorrow, the world. > > -----Original Message----- > From: Tom Bolton [mailto:tom.bolton at donnslaw.co.uk] > Sent: 23 March 2005 16:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Access & Terminal Services > > > Yep, I would. I'm going to have to, in fact. ;-) > > It's just that we have 150+ users on 12 servers, you can see > where it gets sticky but thankfully only a handful will be > using this particular app... > > > > -----Original Message----- > From: Neal Kling [mailto:nkling at co.montgomery.ny.us] > Sent: 23 March 2005 16:24 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > That's exactly what they're saying is one of the options. Do > it that way. > > Neal > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:22 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Ouch, ouch, ouch. My optimism has just gone out the window. > My Access app relies heavily on the FE being dynamic and > personal to the user - all sorts of queries being > created/updated, temp tables etc. Couldn't contemplate a > rewrite. How can I get round this? What's to stop me creating > a folder on the server for each user, putting a copy of the > FE in each, and having each run their own? I don't have the > foggiest idea what I mean when I say "each run their own" in > the context of TS, but does that work? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Mar 23 12:28:48 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 23 Mar 2005 19:28:48 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: Hi Andy > If I have an A97 application which I wanted to make available to > a home user via TS .. So "a" is not "one"? How many? The Thinsoft solution runs off a WinXP workstation for a max of 21 users. As no Win2003 server license is needed, you can hook up a workstation, download the trial and test it out without spending a single pound. At more users there is a break even at some point where a Win2003 server becomes cheaper than Thinsoft. They work the same way so you can move your setup from Thinsoft to TS with only minor modifications. /gustav >>> andy at minstersystems.co.uk 03/23 2:58 pm >>> Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user via TS would you expect there to be any code changes necessary? The FE > links to a single BE, which is located on a Novell server - is that an issue? > Can TS be setup so that all drive mappings are the same as a desktop's? The > app emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone knows the answer to that one, but is it 100% reliable to say that if an > app works on a W2000 workstation it will work just the same under TS? From accessd at shaw.ca Wed Mar 23 12:35:42 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 23 Mar 2005 10:35:42 -0800 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323162130.918C1252958@smtp.nildram.co.uk> Message-ID: <0IDT00M11IBE89@l-daemon> Hi Andy: That should work fine. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 7:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 16:15 > Hi Andy > > What Roz is saying is that if there are three users on a terminal server, > and each of the three opens your Access app, they are using the same one. > If (on a non-TS network) you had your app stored on a network drive, and > three users opened it simultaneously, it would be exactly the same. > > If one of the users (whether on TS or normal network) altered one of the FE > objects (querydef, table) you would have locking issues. It is best, then, > to make a copy of that object in your FE and alter the copy. This is what > I've had to do. Unfortunately, altering a report puts the FE into exclusive > lock so this is unachievable with TS unless each user has a copy of the FE. > > HTH - sorry, I was about to explain myself better but got caught up and R. > beat me to it. > > Cheers > Tom > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:55 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > Hi Roz, > My ignorance here is total, so please bear with me. I envisaged that each > user would be totally separate on TS, and hence would have a separate FE. > Are you saying that's a choice I need to be careful to make at some point > when setting-up? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:42 > > > Hi Andy > > > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > > of your FE per user - we have up to 30 users per server and at the moment > > they are all accessing a single FE install on each server, so the FE is > > shared. > > > > We're considering going the FE-per-user route as we're going to have to > > start making run-time changes to report objects any time now. On our setup > > it's not straight forward but if you're starting small and working up it > > should be OK for you. > > > > Roz > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 14:23 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Access &amp; Terminal Services > > > > > > Thanks Tom > > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought > that > > you must mean dynamically altering queries in the BE. Am I right? Surely > > queries in the FE are ok. > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > &lt;accessd at databaseadvisors.com&gt; > > To: 'Access Developers discussion and problem solving' > > &lt;accessd at databaseadvisors.com&gt; > > Subject: RE: [AccessD] Access &amp; Terminal Services > > Date: 23/03/05 15:14 > > > > &gt; Hi Andy > > &gt; > > &gt; I've been building a complex Access app on TS (Win 2k) for Roz for > > &gt; some months now. It's a reporting tool that connects to either > > &gt; Informix (boo) > > or > > &gt; SQL Server (yay). > > &gt; > > &gt; Here are some of the problems I've come across: > > &gt; > > &gt; -- FE and BE in my case needed to be split as user info (saved > queries > > etc.) > > &gt; is stored in Access and we have ~12 'production' terminal servers. > > &gt; These are load-balanced and users are kicked onto any one of them at > > &gt; random. If no split, then the user needs to be on the same server > > &gt; they were on when they saved their data. > > &gt; > > &gt; -- Anything that dynamically alters queries etc. needs to make a > copy > > &gt; of these first to avoid locking issues. > > &gt; > > &gt; These are the biggies, otherwise everything seems to work/connect > just > > &gt; as > > in > > &gt; a normal client/server situation. If you have specific questions I'd > > &gt; be more than happy to answer them as best I can. > > &gt; > > &gt; HTH > > &gt; Tom > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -----Original Message----- > > &gt; From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > &gt; Sent: 23 March 2005 13:59 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] Access &amp;amp; Terminal Services > > &gt; > > &gt; Thanks Gustav, but the boss here is likely to want to go the TS > route. > > &gt; We have Remote Control working nicely for him from home, but for > > &gt; lesser mortals, of whom there could be several, he doesn't want to > > &gt; have workstations dotted around which have to left on and not used by > > &gt; other workers, and other considerations. So I think TS would be > right, > > &gt; but the question is whether everything that my app does (as outlined > > &gt; below) will work unaltered under TS. > > &gt; > > &gt; BTW what's the license cost implication of TS? Must be considerable > if > > &gt; you went for an alternative. I thought it was part of W2000 server. > > &gt; > > &gt; -- > > &gt; Andy Lacey > > &gt; http://www.minstersystems.co.uk > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; The contents of this message and any attachments are the property of > > &gt; Donns > > Solicitors > > &gt; and are intended for the confidential use of the named recipient > only. > > They may be legally > > &gt; privileged and should not be communicated to, or relied upon, by any > > other party without > > &gt; our written consent. If you are not the addressee, please notify us > > immediately so that we > > &gt; can make arrangements for its return. You should not show this > e-mail > > &gt; to > > any person or > > &gt; take copies as you may be committing a criminal or civil offence for > > which you may be > > &gt; liable. The statement and opinions expressed in this e-mail message > > &gt; are > > those of the > > &gt; writer, and do not necessarily represent that of Donns Solicitors. > > Although any files attached > > &gt; to this e-mail will have been checked with virus protection software > > prior to transmission, > > &gt; you should carry out your own virus check before opening any > > &gt; attachment. Donns Solicitors does not accept any liability for any > > &gt; damage or loss > > which may be caused > > &gt; by software viruses... > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > The contents of this message and any attachments are the property of Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any attachment. > > Donns Solicitors does not accept any liability for any damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 23 12:36:49 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 23 Mar 2005 10:36:49 -0800 Subject: [AccessD] Counting Users Message-ID: ROTFL Yes, but the old ways didn't always SMELL as good! Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 23, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Rocky, I think in this day of ever present technology we tend to forget about the good old ways that we used to do things. How many of us have to have a PIM to store our phone numbers and things? My father just write the numbers in ball point pen on his hand or up and down his arm. The only problem he ever had with that system was one time he took a shower by accident and lost all of his numbers. Simple, effective and if you avoid water you just never lose your info. The old ways were often times superior to all our wonderful technology. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users JC: I liked your first solution better. Low-tech. Effective. And no batteries required. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 23, 2005 9:13 AM Subject: RE: [AccessD] Counting Users > DAMN! Now why didn't I think of that? > > Sorry Rocky, please ignore my last post. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > I'd suggest modifying JC's C2DBShowUsers code to just count not > display. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > Date: 23/03/05 16:48 > >> >> Dear List: >> >> What is the simplest way to count the number of users logged in to a >> back > end mdb? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 12:53:38 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 10:53:38 -0800 Subject: [AccessD] More data source issues Message-ID: <000001c52fd9$a0b93c30$6701a8c0@laptop1> Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe From cfoust at infostatsystems.com Wed Mar 23 13:02:07 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 23 Mar 2005 11:02:07 -0800 Subject: [AccessD] More data source issues Message-ID: If SmplesizeAll is a checkbox, why not test for True instead of <> 0? If you have your checkbox set up with no default value, which allows it to be Null, which is not zero but also not true. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, March 23, 2005 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 23 13:08:22 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 23 Mar 2005 14:08:22 -0500 Subject: [AccessD] More data source issues Message-ID: Why are you mixing evaluating samplesizeall and then smplsizepieces? Apparently smplesizepieces is true. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 1:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 23 13:11:18 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 11:11:18 -0800 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <025201c52fdc$180b9510$6601a8c0@HAL9002> ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: dba-tech Sent: Wednesday, March 23, 2005 7:19 AM Subject: Windows Printer Sharing Question I am implementing my new machine - Hal9004. It came with Win XP Home. My current development machine is Hal9002 with WIN XP Pro. The backup development machine is Hal9001 - Windows 2000. Hal9001 has the shared printer hooked to it. When I start Hal9001 it prompts me for user name and password to which I simply press enter. User name is Administrator with no password. Hal9002 has no problem printing through Hal9001. But the new box - Hal9004 requires that I connect to Hal9001 before it will 'see' the printer. I go to network neighborhood on Hal9004, click on Hal9001's shared drive C, put in the user name Administrator and no password, and everything's fine - I can print from Hal9004 through the network printer on Hal9001. Of course, this is a PITA and I'd like Hal9004 to see the network printer without having to do this connecting trick just like it's older brother Hal9002.. BTW, all the drives are shared. Any ideas how to fix this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From jmhla at earthlink.net Wed Mar 23 13:24:21 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 11:24:21 -0800 Subject: [AccessD] More data source issues In-Reply-To: Message-ID: <000201c52fdd$ead96200$6701a8c0@laptop1> There are three possible responsonses Some pieces All pieces No Pieces If the first 2 are false or 0 then No Samples is the correct reply -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 23, 2005 11:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] More data source issues Why are you mixing evaluating samplesizeall and then smplsizepieces? Apparently smplesizepieces is true. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 1:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 13:25:05 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 11:25:05 -0800 Subject: [AccessD] More data source issues In-Reply-To: Message-ID: <000301c52fde$04d832d0$6701a8c0@laptop1> Will go look at null issue. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 23, 2005 11:02 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] More data source issues If SmplesizeAll is a checkbox, why not test for True instead of <> 0? If you have your checkbox set up with no default value, which allows it to be Null, which is not zero but also not true. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, March 23, 2005 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 23 13:28:36 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 23 Mar 2005 11:28:36 -0800 Subject: [AccessD] Windows Printer Sharing Question Message-ID: Sorry, Dave. But I can't permit you to do that. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 23, 2005 11:11 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Windows Printer Sharing Question ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: dba-tech Sent: Wednesday, March 23, 2005 7:19 AM Subject: Windows Printer Sharing Question I am implementing my new machine - Hal9004. It came with Win XP Home. My current development machine is Hal9002 with WIN XP Pro. The backup development machine is Hal9001 - Windows 2000. Hal9001 has the shared printer hooked to it. When I start Hal9001 it prompts me for user name and password to which I simply press enter. User name is Administrator with no password. Hal9002 has no problem printing through Hal9001. But the new box - Hal9004 requires that I connect to Hal9001 before it will 'see' the printer. I go to network neighborhood on Hal9004, click on Hal9001's shared drive C, put in the user name Administrator and no password, and everything's fine - I can print from Hal9004 through the network printer on Hal9001. Of course, this is a PITA and I'd like Hal9004 to see the network printer without having to do this connecting trick just like it's older brother Hal9002.. BTW, all the drives are shared. Any ideas how to fix this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 13:44:34 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 11:44:34 -0800 Subject: [AccessD] More data source issues In-Reply-To: Message-ID: <000001c52fe0$be4c5320$6701a8c0@laptop1> I changed my tables and IIF as Charlotte suggested but I am still not getting what I want. Any thoughts If SmplesizeAll is a checkbox, why not test for True instead of <> 0? If you have your checkbox set up with no default value, which allows it to be Null, which is not zero but also not true. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, March 23, 2005 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]=True ,"All Pieces", If([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Mar 23 14:26:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 23 Mar 2005 15:26:56 -0500 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E95@xlivmbx21.aig.com> Leaving aside the issue of an administrator account with no password (!!!??)... Do ALL the accounts on all the machines have the same password, or lack :-) ? i.e. does user "A" have the same password on all machines in the network? Do all the machines belong to the same workgroup? (I'm assuming we are talking Peer To Peer networking here). Checked the firewall? I lack of the hassle is because the new box has XP home and not XP pro. Here are a few links to check up on http://www.practicallynetworked.com/sharing/xp/addxp.htm http://www.wown.info/j_helmig/guidshrh.htm http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare.m spx Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 23, 2005 2:11 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Windows Printer Sharing Question > > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: dba-tech > Sent: Wednesday, March 23, 2005 7:19 AM > Subject: Windows Printer Sharing Question > > > I am implementing my new machine - Hal9004. It came with Win XP Home. > > My current development machine is Hal9002 with WIN XP Pro. > The backup development machine is Hal9001 - Windows 2000. > Hal9001 has the shared printer hooked to it. > > When I start Hal9001 it prompts me for user name and password to which I > simply press enter. User name is Administrator with no password. > > Hal9002 has no problem printing through Hal9001. > > But the new box - Hal9004 requires that I connect to Hal9001 before it > will 'see' the printer. I go to network neighborhood on Hal9004, click on > Hal9001's shared drive C, put in the user name Administrator and no > password, and everything's fine - I can print from Hal9004 through the > network printer on Hal9001. > > Of course, this is a PITA and I'd like Hal9004 to see the network printer > without having to do this connecting trick just like it's older brother > Hal9002.. > > BTW, all the drives are shared. > > Any ideas how to fix this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 23 14:50:12 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 12:50:12 -0800 Subject: [AccessD] Windows Printer Sharing Question References: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E95@xlivmbx21.aig.com> Message-ID: <028901c52fe9$e90a77f0$6601a8c0@HAL9002> Heenan: The only account on the three machines that gets prompted is Administrator on Hal9001. And that one, as I say, doesn't have a password. They all belong to the same workgroup. I'll check you links to see if they can enlighten me. But, as I say, the XP Pro machine doesn't have any problem printing to the network printer without connecting to the printer's computer first. (Yes, BTW, peer-to-peer) Regards, is ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'Rocky Smolin - Beach Access Software'" Sent: Wednesday, March 23, 2005 12:26 PM Subject: RE: [AccessD] Windows Printer Sharing Question > Leaving aside the issue of an administrator account with no password > (!!!??)... > > Do ALL the accounts on all the machines have the same password, or lack > :-) > ? i.e. does user "A" have the same password on all machines in the > network? > > Do all the machines belong to the same workgroup? (I'm assuming we are > talking Peer To Peer networking here). > > Checked the firewall? > > I lack of the hassle is because the new box has XP home and not XP pro. > Here > are a few links to check up on > > http://www.practicallynetworked.com/sharing/xp/addxp.htm > http://www.wown.info/j_helmig/guidshrh.htm > http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare.m > spx > > Lambert > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >> Beach Access Software >> Sent: Wednesday, March 23, 2005 2:11 PM >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Windows Printer Sharing Question >> >> >> ----- Original Message ----- >> From: Rocky Smolin - Beach Access Software >> To: dba-tech >> Sent: Wednesday, March 23, 2005 7:19 AM >> Subject: Windows Printer Sharing Question >> >> >> I am implementing my new machine - Hal9004. It came with Win XP Home. >> >> My current development machine is Hal9002 with WIN XP Pro. >> The backup development machine is Hal9001 - Windows 2000. >> Hal9001 has the shared printer hooked to it. >> >> When I start Hal9001 it prompts me for user name and password to which I >> simply press enter. User name is Administrator with no password. >> >> Hal9002 has no problem printing through Hal9001. >> >> But the new box - Hal9004 requires that I connect to Hal9001 before it >> will 'see' the printer. I go to network neighborhood on Hal9004, click >> on >> Hal9001's shared drive C, put in the user name Administrator and no >> password, and everything's fine - I can print from Hal9004 through the >> network printer on Hal9001. >> >> Of course, this is a PITA and I'd like Hal9004 to see the network printer >> without having to do this connecting trick just like it's older brother >> Hal9002.. >> >> BTW, all the drives are shared. >> >> Any ideas how to fix this? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Wed Mar 23 16:07:42 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 24 Mar 2005 08:07:42 +1000 Subject: [AccessD] More data source issues In-Reply-To: <000201c52fdd$ead96200$6701a8c0@laptop1> References: Message-ID: <4242754E.16731.3821695@stuart.lexacorp.com.pg> On 23 Mar 2005 at 11:24, Joe Hecht wrote: > There are three possible responsonses > > Some pieces > All pieces > No Pieces > > If the first 2 are false or 0 then No Samples is the correct reply > Why not put three option buttons in a frame? -- Stuart From stuart at lexacorp.com.pg Wed Mar 23 16:12:00 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 24 Mar 2005 08:12:00 +1000 Subject: [AccessD] Not in List ... or Not? In-Reply-To: <65304.65.118.249.214.1111600475.squirrel@cetus.email.starband.net> References: <018401c52fc8$00741760$6601a8c0@HAL9002> Message-ID: <42427650.10205.3860665@stuart.lexacorp.com.pg> On 23 Mar 2005 at 12:54, GregSmith at starband.net wrote: > My list has four(4) items in it. > > So, why can I enter a BLANK in it? A Blank is NOT one of my items in the > list. Last time I checked, when one says "limit to list", you should only > be able to put in what's in the list. Period. End of sentence. Nothing > else. Zip, zero, nada, nothin'. > > I know I can check the field on exit to make sure it has something in it > other than a blank (since the limit to list DOESN'T frickin' work right on > blanks...), but I have about a gazillion other events happening with > focusing and it hoses them up when it tries to go back. > How about setting a Validation Rule of "NOT NULL" -- Stuart From lmrazek at lcm-res.com Wed Mar 23 16:16:18 2005 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 23 Mar 2005 16:16:18 -0600 Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E95@xlivmbx21.aig.com> Message-ID: <200503231716182.SM01596@hplaptop> Hi: I'm currently having a bit of problem creating a Crosstab query for a twelve month period, with the period starting from a user-selected value. Thus, if user selects a date in June 2004, I want the report to display data from June-2004 to May 2005 ... My current code is below. (I want to have static headings so I can bind the query to a report). TRANSFORM Sum(qryMonthlyProduction.SumOfBags) AS SumOfSumOfBags SELECT qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift, Sum(qryMonthlyProduction.SumOfBags) AS [Total Of SumOfBags] FROM qryMonthlyProduction GROUP BY qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift ORDER BY "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriteria]! [txtWeek])) PIVOT "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriteria]! [txtWeek])); When I run this, it displays the fields in the following order (I'd like the months to be arranged in order): Production Facility - ProductionLine - Shift - Total of SumOfBags - Month0 - Month1 - Month10 - Month11 - Month2 - Month3 ... Month9 Any hints? Thanks in advance! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From donald.a.Mcgillivray at mail.sprint.com Wed Mar 23 16:56:06 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 23 Mar 2005 16:56:06 -0600 Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" Message-ID: Larry, You need to zero pad your month numbers so they'll sort properly when appended to the "Month" text. Try wrapping the portions of your statement that return that number in the "Format" function. Something like: Format(datediff(yada yada), "00") Hope this helps. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, March 23, 2005 2:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" Hi: I'm currently having a bit of problem creating a Crosstab query for a twelve month period, with the period starting from a user-selected value. Thus, if user selects a date in June 2004, I want the report to display data from June-2004 to May 2005 ... My current code is below. (I want to have static headings so I can bind the query to a report). TRANSFORM Sum(qryMonthlyProduction.SumOfBags) AS SumOfSumOfBags SELECT qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift, Sum(qryMonthlyProduction.SumOfBags) AS [Total Of SumOfBags] FROM qryMonthlyProduction GROUP BY qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift ORDER BY "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])) PIVOT "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])); When I run this, it displays the fields in the following order (I'd like the months to be arranged in order): Production Facility - ProductionLine - Shift - Total of SumOfBags - Month0 - Month1 - Month10 - Month11 - Month2 - Month3 ... Month9 Any hints? Thanks in advance! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 16:59:18 2005 From: jmhla at earthlink.net (jmhla at earthlink.net) Date: Wed, 23 Mar 2005 14:59:18 -0800 (GMT-08:00) Subject: [AccessD] More data source issues Message-ID: <5877295.1111618758945.JavaMail.root@louie.psp.pas.earthlink.net> they need to be able to put in some number if only part of the shipment is tested. Thanks -----Original Message----- From: Stuart McLachlan Sent: Mar 23, 2005 2:07 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] More data source issues On 23 Mar 2005 at 11:24, Joe Hecht wrote: > There are three possible responsonses > > Some pieces > All pieces > No Pieces > > If the first 2 are false or 0 then No Samples is the correct reply > Why not put three option buttons in a frame? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Wed Mar 23 17:23:00 2005 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 23 Mar 2005 17:23:00 -0600 Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" In-Reply-To: Message-ID: <200503231823855.SM01596@hplaptop> Thanks Don: Just found another workaround - I added a field calculating the interval to my query ("qryMonthlyProduction") that accepts the user parameters. I can then use the interval value in the crosstab ... And it works! Thanks again! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Don [ITS] Sent: Wednesday, March 23, 2005 4:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CrossTab Query - 12 Month "sliding scale" Larry, You need to zero pad your month numbers so they'll sort properly when appended to the "Month" text. Try wrapping the portions of your statement that return that number in the "Format" function. Something like: Format(datediff(yada yada), "00") Hope this helps. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, March 23, 2005 2:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" Hi: I'm currently having a bit of problem creating a Crosstab query for a twelve month period, with the period starting from a user-selected value. Thus, if user selects a date in June 2004, I want the report to display data from June-2004 to May 2005 ... My current code is below. (I want to have static headings so I can bind the query to a report). TRANSFORM Sum(qryMonthlyProduction.SumOfBags) AS SumOfSumOfBags SELECT qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift, Sum(qryMonthlyProduction.SumOfBags) AS [Total Of SumOfBags] FROM qryMonthlyProduction GROUP BY qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift ORDER BY "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])) PIVOT "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])); When I run this, it displays the fields in the following order (I'd like the months to be arranged in order): Production Facility - ProductionLine - Shift - Total of SumOfBags - Month0 - Month1 - Month10 - Month11 - Month2 - Month3 ... Month9 Any hints? Thanks in advance! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Wed Mar 23 23:59:36 2005 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Thu, 24 Mar 2005 00:59:36 -0500 Subject: [AccessD] Not in List ... or Not? In-Reply-To: <65304.65.118.249.214.1111600475.squirrel@cetus.email.starband.net> Message-ID: <20050324055935.DDAO7277.mta10.adelphia.net@DG1P2N21> Greg Do you have the REQUIRED value set to YES? Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Wednesday, March 23, 2005 12:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] Not in List ... or Not? Hi everyone! Hope everyone is having a good day. This may be just the way it is, but I still have to ask. Access 2003. I have a combo box, Value List, I typed in the list, Limit to List. Default value is set to one of the items in the list. List cannot be added to. My list has four(4) items in it. So, why can I enter a BLANK in it? A Blank is NOT one of my items in the list. Last time I checked, when one says "limit to list", you should only be able to put in what's in the list. Period. End of sentence. Nothing else. Zip, zero, nada, nothin'. I know I can check the field on exit to make sure it has something in it other than a blank (since the limit to list DOESN'T frickin' work right on blanks...), but I have about a gazillion other events happening with focusing and it hoses them up when it tries to go back. Is this just one of those Access quirks or am I missing something? TIA! Greg Smith gregsmith(no spam)@starband.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Mar 24 00:11:20 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 23 Mar 2005 22:11:20 -0800 Subject: [AccessD] Counting Users References: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Message-ID: <42425A08.8080206@shaw.ca> Pretty Poor. A good Assembler programmer can count up to 1024 without taking her shoes off. Although people do look at you with an odd smile when you get to 132 or Hex 84 John W. Colby wrote: >Rocky, > > > >>What is the simplest way to count the number of users logged in to a back >> >> >end mdb? > >Walk around to the chairs and tap the users on the head, raising a finger >for each head tapped. If you run out of fingers, start using your toes. Of >course if you have more than 20 users, or you are missing fingers or toes, >then you will need to have an assistant follow you around to store the >counts for the additional heads. This works well for user counts up to >about 100 or so, whereupon the trail of assistants becomes too long to >manage effectively. They begin stopping to chat with friends and stuff and >you lose as many as 20 user counts every time that happens. > >If you find that happening, I discovered that you can buy these pet collars >attached to spring loaded reels of line. Just hook up your counting >assistants so they can never lag too far behind. > >A similar method, a bit more disruptive, is to go around tapping heads, but >instead of raising fingers, having each user join in a line behind you, thus >by the time you tap the last user's head, you will have a long line of users >which you can now just go down the line drawing a little mark on a paper for >each one. It looks something like IIII\IIII\IIII\ etc. > >I hope that I have provided some ideas of how to do user counts. Even if >you don't use my methods, perhaps I have sparked some ideas that you will >find effective. > >Good luck in your counting, and please don't hesitate to ask further >questions if you didn't understand any of the above. > >Respectfully, > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >Beach Access Software >Sent: Wednesday, March 23, 2005 11:47 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] Counting Users > > >Dear List: > >What is the simplest way to count the number of users logged in to a back >end mdb? > >MTIA > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Thu Mar 24 01:01:13 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 23:01:13 -0800 Subject: [AccessD] I do not understand this Message-ID: <000401c5303f$454e7610$6701a8c0@laptop1> I built the following code using the autocomplete in the VB editor. Why can't Access find the smpleSizeAll in the code? Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub From paul.hartland at fsmail.net Thu Mar 24 01:58:21 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 24 Mar 2005 08:58:21 +0100 (CET) Subject: [AccessD] data source problem Message-ID: <13522317.1111651101813.JavaMail.www@wwinf3103> shouldn't it be IIF and not IF Message date : Mar 23 2005, 05:54 PM >From : "Joe Hecht" To : "'Access Developers discussion and problem solving'" Copy to : Subject : [AccessD] data source problem I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Chris.Foote at uk.thalesgroup.com Thu Mar 24 02:59:18 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 24 Mar 2005 08:59:18 -0000 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C645@ntscxch1.int.rdel.co.uk> LOL! Chris Foote > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, March 23, 2005 7:29 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Windows Printer Sharing Question > > > Sorry, Dave. But I can't permit you to do that. > > Charlotte Foust > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, March 23, 2005 11:11 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Windows Printer Sharing Question > > > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: dba-tech > Sent: Wednesday, March 23, 2005 7:19 AM > Subject: Windows Printer Sharing Question > > > I am implementing my new machine - Hal9004. It came with Win XP Home. > > My current development machine is Hal9002 with WIN XP Pro. --------------(snip)--------- From Gustav at cactus.dk Thu Mar 24 03:21:24 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 24 Mar 2005 10:21:24 +0100 Subject: [AccessD] I do not understand this Message-ID: Hi J It sure can. But apply proper indenting to get the code readable and at once you'll see why it apparently didn't: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else Me.txtSmplSize = "SizeAll Value is False" If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub Perhaps this is what you had in mind: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" ElseIf Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End Sub /gustav >>> jmhla at earthlink.net 03/24 8:01 am >>> I built the following code using the autocomplete in the VB editor. Why can't Access find the smpleSizeAll in the code? Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub From andy at minstersystems.co.uk Thu Mar 24 02:38:14 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 9:38:14 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050324093812.BDE952572B9@smtp.nildram.co.uk> Sorry, one more question on licensing. If you have a 25-user license for W2000 server and User A sometimes comes into the office and sometimes runs from home through TS, am I right in thinking they have to be defined to the server as two separate users, and therefore take 2 seats? Which makes me think about Exchange/Outlook. They'd want to see the same mail from both points. If the answer to the question above is 'yes' then can two users share a mailbox? And if they can, is that one Exchange license or two? Sorry, these are horrible questions of detail, but I'm going to need to know. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From R.Griffiths at bury.gov.uk Thu Mar 24 05:56:24 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 24 Mar 2005 11:56:24 -0000 Subject: [AccessD] Memo field - export data Message-ID: <200503241146.j2OBkex17316@smarthost.yourcomms.net> Hi Under pressure to get a job done!!! 1. Have a table (from paradox) inA97. 2. Trying to export to text file 3. One of the fields is a memo field - field may contain 10, 20, 30000 characters of data. 4. Export does not copy out all this data (only 500 or chars) so........... 5. Have written code to print line into a text file (open/write etc) but this crashes when I come to a record where the field contains large amount of data as above. I am missing something? Do I need another approach (appendchunk?) or are my problems related to dodgy/corrupt data. Many thanks in advance Richard From tom.bolton at donnslaw.co.uk Thu Mar 24 06:03:26 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 24 Mar 2005 12:03:26 -0000 Subject: [AccessD] RE: A2k2 treeview scroll to selected node? Message-ID: <61F915314798D311A2F800A0C9C831880731CAAF@dibble.observatory.donnslaw.co.uk> Hi all Here's a good one... I have a treeview on a form that contains a node for each user; there are enough of these to force the treeview control into having a vertical scrollbar. When the app starts, the treeview defaults to the current user's node which sometimes is down at the bottom out of sight. Can I programatically get the control to scroll down a bit so the user can see their folder straight away even if it's down the bottom? MTIA and happy Easter! Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From CSPELL at jhuccp.org Thu Mar 24 06:13:33 2005 From: CSPELL at jhuccp.org (CYNTHIA SPELL) Date: Thu, 24 Mar 2005 07:13:33 -0500 Subject: [AccessD] Normalize Pivot Table Message-ID: I'm interested in doing something similar. I didn't see any responses. Did I miss something? Cindy >>> Rich_Lavsa at pghcorning.com 03/23/05 08:27AM >>> Hello all, I was just curious if anyone out there has ever written any code (ADO or DAO) to Normalize a Pivot or Crosstab data table. Reason: I get a data matrix that looks like a pivot table. The matrix is set up with formula's in excel so its easy for the outside company to update the entire matrix and email the updated matrix to our users. Problem is getting the updated data into a normalized state so it can be used in the database. I did try UNTOOLS (http://www.CleanDataSystems.com) which works great for a 1 time conversion, however I need this to be an automated approach where the user simply has to copy the file to a specified directory then push a button in the application to update the database. Yesterday I had a very clear vision of how I'd write the code but this morning my brain isn't working too clearly. Any help would be greatly appreciated Thanks, Rich -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 24 08:08:06 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 24 Mar 2005 08:08:06 -0600 Subject: [AccessD] Memo field - export data In-Reply-To: <200503241146.j2OBkex17316@smarthost.yourcomms.net> References: <200503241146.j2OBkex17316@smarthost.yourcomms.net> Message-ID: Does the data display properly in a Paradox report? Perhaps you could create a report to display the memo data along with some key info to use to hook it back to the underlying data and then print that report to a FILE. Then you can read that text file in as data and parse through the info and put the peices back together. Maybe. ;-) If nothing else, seeing if the data can be read for a report would tell you if the data structure itself is corrupt or intact. To set up the print to text printer driver see this; http://support.mfm.com/support/std_procedures/xpgenericprinter.html Or do a web search on "windows generic text only printer" and you will find lots of info on it. Good luck with your project. On Thu, 24 Mar 2005 11:56:24 -0000, Griffiths, Richard wrote: > Hi > > Under pressure to get a job done!!! > > 1. Have a table (from paradox) inA97. > 2. Trying to export to text file > 3. One of the fields is a memo field - field may contain 10, 20, 30000 > characters of data. > 4. Export does not copy out all this data (only 500 or chars) > so........... > 5. Have written code to print line into a text file (open/write etc) but > this crashes when I come to a record where the field contains large > amount of data as above. > > I am missing something? Do I need another approach (appendchunk?) or > are my problems related to dodgy/corrupt data. > > Many thanks in advance > > Richard > -- Gary Kjos garykjos at gmail.com From R.Griffiths at bury.gov.uk Thu Mar 24 08:25:49 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 24 Mar 2005 14:25:49 -0000 Subject: [AccessD] Memo field - export data Message-ID: <200503241416.j2OEG5x24799@smarthost.yourcomms.net> The data displays okay in A97 - its only the export bit that does not work. I now have a solution - I imported the A97 db into SQLServer and exported it from there. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 24 March 2005 14:08 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo field - export data Does the data display properly in a Paradox report? Perhaps you could create a report to display the memo data along with some key info to use to hook it back to the underlying data and then print that report to a FILE. Then you can read that text file in as data and parse through the info and put the peices back together. Maybe. ;-) If nothing else, seeing if the data can be read for a report would tell you if the data structure itself is corrupt or intact. To set up the print to text printer driver see this; http://support.mfm.com/support/std_procedures/xpgenericprinter.html Or do a web search on "windows generic text only printer" and you will find lots of info on it. Good luck with your project. On Thu, 24 Mar 2005 11:56:24 -0000, Griffiths, Richard wrote: > Hi > > Under pressure to get a job done!!! > > 1. Have a table (from paradox) inA97. > 2. Trying to export to text file > 3. One of the fields is a memo field - field may contain 10, 20, 30000 > characters of data. 4. Export does not copy out all this data (only > 500 or chars) so........... > 5. Have written code to print line into a text file (open/write etc) but > this crashes when I come to a record where the field contains large > amount of data as above. > > I am missing something? Do I need another approach (appendchunk?) or > are my problems related to dodgy/corrupt data. > > Many thanks in advance > > Richard > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 24 08:42:47 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 24 Mar 2005 15:42:47 +0100 Subject: [AccessD] I do not understand this Message-ID: Hi Joe I had a look again, I hadn't noticed this is a report. Could it happen that SmpleSizePieces is both a field and a textbox? Can SmpleSizePieces contain an empty string? Try this: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = "Samples: " & Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub /gustav >>> jmhla at earthlink.net 03/24 8:01 am >>> I built the following code using the autocomplete in the VB editor. Why can't Access find the smpleSizeAll in the code? Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub From andy at minstersystems.co.uk Thu Mar 24 07:48:22 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 14:48:22 +0100 Subject: [AccessD] I do not understand this Message-ID: <20050324144819.9F38E24D5D5@smtp.nildram.co.uk> Or could it be that smpleSizeAll is only in the Report's source data and not an actual control? For a report it needs to be on the report even if hidden. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] I do not understand this Date: 24/03/05 14:44 > > Hi Joe > > I had a look again, I hadn't noticed this is a report. > Could it happen that SmpleSizePieces is both a field and a textbox? > Can SmpleSizePieces contain an empty string? > > Try this: > > Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) > If Me.SmpleSizeAll.Value = True Then > Me.txtSmplSize = "All Pieces" > Else > If Me.SmpleSizePieces.Value <> 0 Then > Me.txtSmplSize = "Samples: " & Me.SmpleSizePieces > Else > Me.txtSmplSize = "No Samples Needed" > End If > End If > End Sub > > /gustav > > >>> jmhla at earthlink.net 03/24 8:01 am >>> > I built the following code using the autocomplete in the VB editor. > Why > can't Access find the smpleSizeAll in the code? > > Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) > If Me.SmpleSizeAll.Value = True Then > Me.txtSmplSize = "All Pieces" > Else > If Me.SmpleSizePieces.Value <> 0 Then > Me.txtSmplSize = Me.SmpleSizePieces > Else > Me.txtSmplSize = "No Samples Needed" > End If > End If > > > End Sub > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Thu Mar 24 09:02:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 24 Mar 2005 10:02:13 -0500 Subject: [AccessD] Counting Users In-Reply-To: <42425A08.8080206@shaw.ca> Message-ID: <001301c53082$798afa00$697aa8c0@ColbyM6805> LOL, you know your are right of course. Using a similar system where you count in binary on the fingers you can get 2^10 (1024) just on the fingers. Hey Rocky, you still with us here? Marty points out that you can count more users than Jet can handle on your own fingers so never mind the counting assistants. And yes, I was smiling too as I hit one particular count. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, March 24, 2005 1:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users Pretty Poor. A good Assembler programmer can count up to 1024 without taking her shoes off. Although people do look at you with an odd smile when you get to 132 or Hex 84 John W. Colby wrote: >Rocky, > > > >>What is the simplest way to count the number of users logged in to a >>back >> >> >end mdb? > >Walk around to the chairs and tap the users on the head, raising a >finger for each head tapped. If you run out of fingers, start using >your toes. Of course if you have more than 20 users, or you are >missing fingers or toes, then you will need to have an assistant follow >you around to store the counts for the additional heads. This works >well for user counts up to about 100 or so, whereupon the trail of >assistants becomes too long to manage effectively. They begin stopping >to chat with friends and stuff and you lose as many as 20 user counts every time that happens. > >If you find that happening, I discovered that you can buy these pet >collars attached to spring loaded reels of line. Just hook up your >counting assistants so they can never lag too far behind. > >A similar method, a bit more disruptive, is to go around tapping heads, >but instead of raising fingers, having each user join in a line behind >you, thus by the time you tap the last user's head, you will have a >long line of users which you can now just go down the line drawing a >little mark on a paper for each one. It looks something like IIII\IIII\IIII\ etc. > >I hope that I have provided some ideas of how to do user counts. Even >if you don't use my methods, perhaps I have sparked some ideas that you >will find effective. > >Good luck in your counting, and please don't hesitate to ask further >questions if you didn't understand any of the above. > >Respectfully, > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >- Beach Access Software >Sent: Wednesday, March 23, 2005 11:47 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] Counting Users > > >Dear List: > >What is the simplest way to count the number of users logged in to a >back end mdb? > >MTIA > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Thu Mar 24 09:07:12 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Thu, 24 Mar 2005 10:07:12 -0500 Subject: [AccessD] Normalize Pivot Table Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03ABEF@goexchange2.pghcorning.com> No responses but I did whip something up this morning which works. As I'm new to ADO as opposed to DAO, I'm not sure I'm taking the most efficient method however given the size of my table to import it will be well under a second. Its basic and gets the job done for my situation. So far this is what I have, it's a work in progress.. But in the right direction. Right now it takes the table (in the current database, and normalizes the data but simply displays it in the Immediate window. I will add a second RS and have it add each record to a table. In reality it will look to an external data source, but that's easy enough to change. Sub NormalizeCrosstab(pivTblName As String) Dim rs As ADODB.Recordset Dim i As Long Set rs = New ADODB.Recordset rs.Open "[" & pivTblName & "]", CurrentProject.Connection, adOpenStatic, adLockOptimistic rs.MoveFirst 'Go through Recordset row by row Do Until rs.EOF = True 'for each row make normalized entry from each field For i = 1 To rs.Fields.Count - 1 Step 1 'send results to immediate window Debug.Print rs.Fields(0), rs.Fields(i).Name, rs.Fields(i) Next i rs.MoveNext Loop rs.Close Set rs = Nothing End Sub In the long run I would like the the sub routine taking in parameters such as PivotTableName, Which column to start at, ColumnName of Crosstab header values, Columnname of Value, and the name of the table to put the results in) Would like to make this a utility that can be placed in any database and use quickly simply by passing along a few parameters. If anyone has any criticism or ideas to add please feel free.. Thanks, Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of CYNTHIA SPELL Sent: Thursday, March 24, 2005 7:14 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Normalize Pivot Table I'm interested in doing something similar. I didn't see any responses. Did I miss something? Cindy >>> Rich_Lavsa at pghcorning.com 03/23/05 08:27AM >>> Hello all, I was just curious if anyone out there has ever written any code (ADO or DAO) to Normalize a Pivot or Crosstab data table. Reason: I get a data matrix that looks like a pivot table. The matrix is set up with formula's in excel so its easy for the outside company to update the entire matrix and email the updated matrix to our users. Problem is getting the updated data into a normalized state so it can be used in the database. I did try UNTOOLS (http://www.CleanDataSystems.com) which works great for a 1 time conversion, however I need this to be an automated approach where the user simply has to copy the file to a specified directory then push a button in the application to update the database. Yesterday I had a very clear vision of how I'd write the code but this morning my brain isn't working too clearly. Any help would be greatly appreciated Thanks, Rich -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Mar 24 09:10:30 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 24 Mar 2005 10:10:30 -0500 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E9B@xlivmbx21.aig.com> I think that may be the problem then. In Peer-To-Peer networks, all the accounts on all the machines must have the same password. To put that more clearly: "Administrator" must have the same password on each machine, "Jo User" must have the same password on each machine, etc. etc. Lambert (Heenan is my last name) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 23, 2005 3:50 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Windows Printer Sharing Question > > Heenan: > > The only account on the three machines that gets prompted is Administrator > > on Hal9001. And that one, as I say, doesn't have a password. > > They all belong to the same workgroup. > > I'll check you links to see if they can enlighten me. But, as I say, the > XP > Pro machine doesn't have any problem printing to the network printer > without > connecting to the printer's computer first. > > (Yes, BTW, peer-to-peer) > > Regards, > > is > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'Rocky Smolin - Beach Access Software'" > > Sent: Wednesday, March 23, 2005 12:26 PM > Subject: RE: [AccessD] Windows Printer Sharing Question > > > > Leaving aside the issue of an administrator account with no password > > (!!!??)... > > > > Do ALL the accounts on all the machines have the same password, or lack > > :-) > > ? i.e. does user "A" have the same password on all machines in the > > network? > > > > Do all the machines belong to the same workgroup? (I'm assuming we are > > talking Peer To Peer networking here). > > > > Checked the firewall? > > > > I lack of the hassle is because the new box has XP home and not XP pro. > > Here > > are a few links to check up on > > > > http://www.practicallynetworked.com/sharing/xp/addxp.htm > > http://www.wown.info/j_helmig/guidshrh.htm > > > http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare > .m > > spx > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > >> Beach Access Software > >> Sent: Wednesday, March 23, 2005 2:11 PM > >> To: AccessD at databaseadvisors.com > >> Subject: [AccessD] Windows Printer Sharing Question > >> > >> > >> ----- Original Message ----- > >> From: Rocky Smolin - Beach Access Software > >> To: dba-tech > >> Sent: Wednesday, March 23, 2005 7:19 AM > >> Subject: Windows Printer Sharing Question > >> > >> > >> I am implementing my new machine - Hal9004. It came with Win XP Home. > >> > >> My current development machine is Hal9002 with WIN XP Pro. > >> The backup development machine is Hal9001 - Windows 2000. > >> Hal9001 has the shared printer hooked to it. > >> > >> When I start Hal9001 it prompts me for user name and password to which > I > >> simply press enter. User name is Administrator with no password. > >> > >> Hal9002 has no problem printing through Hal9001. > >> > >> But the new box - Hal9004 requires that I connect to Hal9001 before it > >> will 'see' the printer. I go to network neighborhood on Hal9004, click > > >> on > >> Hal9001's shared drive C, put in the user name Administrator and no > >> password, and everything's fine - I can print from Hal9004 through the > >> network printer on Hal9001. > >> > >> Of course, this is a PITA and I'd like Hal9004 to see the network > printer > >> without having to do this connecting trick just like it's older brother > >> Hal9002.. > >> > >> BTW, all the drives are shared. > >> > >> Any ideas how to fix this? > >> > >> MTIA, > >> > >> Rocky Smolin > >> Beach Access Software > >> http://www.e-z-mrp.com > >> 858-259-4334 > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 24 09:25:25 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:25:25 -0800 Subject: [AccessD] Counting Users References: <001301c53082$798afa00$697aa8c0@ColbyM6805> Message-ID: <00a101c53085$b3e57470$6f01a8c0@HAL9004> (Deep sigh). This is almost as bad as the smart aleck responses I got to my question about the network computer. Just because I name my computers HAL9000, HAL9001, HAL9002, etc... At least on this one you all threw me a bone. I'm still trying to figure out the other one. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 24, 2005 7:02 AM Subject: RE: [AccessD] Counting Users > LOL, you know your are right of course. Using a similar system where you > count in binary on the fingers you can get 2^10 (1024) just on the > fingers. > > Hey Rocky, you still with us here? Marty points out that you can count > more > users than Jet can handle on your own fingers so never mind the counting > assistants. > > And yes, I was smiling too as I hit one particular count. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Thursday, March 24, 2005 1:11 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > Pretty Poor. A good Assembler programmer can count up to 1024 without > taking her shoes off. > Although people do look at you with an odd smile when you get to 132 or > Hex 84 > > John W. Colby wrote: > >>Rocky, >> >> >> >>>What is the simplest way to count the number of users logged in to a >>>back >>> >>> >>end mdb? >> >>Walk around to the chairs and tap the users on the head, raising a >>finger for each head tapped. If you run out of fingers, start using >>your toes. Of course if you have more than 20 users, or you are >>missing fingers or toes, then you will need to have an assistant follow >>you around to store the counts for the additional heads. This works >>well for user counts up to about 100 or so, whereupon the trail of >>assistants becomes too long to manage effectively. They begin stopping >>to chat with friends and stuff and you lose as many as 20 user counts >>every > time that happens. >> >>If you find that happening, I discovered that you can buy these pet >>collars attached to spring loaded reels of line. Just hook up your >>counting assistants so they can never lag too far behind. >> >>A similar method, a bit more disruptive, is to go around tapping heads, >>but instead of raising fingers, having each user join in a line behind >>you, thus by the time you tap the last user's head, you will have a >>long line of users which you can now just go down the line drawing a >>little mark on a paper for each one. It looks something like > IIII\IIII\IIII\ etc. >> >>I hope that I have provided some ideas of how to do user counts. Even >>if you don't use my methods, perhaps I have sparked some ideas that you >>will find effective. >> >>Good luck in your counting, and please don't hesitate to ask further >>questions if you didn't understand any of the above. >> >>Respectfully, >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>- Beach Access Software >>Sent: Wednesday, March 23, 2005 11:47 AM >>To: AccessD at databaseadvisors.com >>Subject: [AccessD] Counting Users >> >> >>Dear List: >> >>What is the simplest way to count the number of users logged in to a >>back end mdb? >> >>MTIA >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Thu Mar 24 09:26:35 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 24 Mar 2005 07:26:35 -0800 Subject: [AccessD] I do not understand this In-Reply-To: <20050324144819.9F38E24D5D5@smtp.nildram.co.uk> Message-ID: <200503241526.j2OFQWi15077@databaseadvisors.com> Andy and AD I think found the problem I think. They are source data and not controls. Will fix that and try again. Thanks Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, March 24, 2005 5:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I do not understand this Or could it be that smpleSizeAll is only in the Report's source data and not an actual control? For a report it needs to be on the report even if hidden. -- Andy Lacey http://www.minstersystems.co.uk e: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 24 09:30:42 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:30:42 -0800 Subject: [AccessD] Windows Printer Sharing Question References: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E9B@xlivmbx21.aig.com> Message-ID: <00b701c53086$7128d720$6f01a8c0@HAL9004> Lambert (sorry, missed the comma): Curiously, I do not have the problem on HAL9002 which is WINXP Pro. It connects just fine to the printer on HAL9001. I just sent a post about this wondering if I upgrade HAL9004 to WINXP Pro would that solve the problem? What do you think? TIA, Rocky ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'Rocky Smolin - Beach Access Software'" Sent: Thursday, March 24, 2005 7:10 AM Subject: RE: [AccessD] Windows Printer Sharing Question >I think that may be the problem then. In Peer-To-Peer networks, all the > accounts on all the machines must have the same password. To put that more > clearly: "Administrator" must have the same password on each machine, "Jo > User" must have the same password on each machine, etc. etc. > > Lambert (Heenan is my last name) > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >> Beach Access Software >> Sent: Wednesday, March 23, 2005 3:50 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> Heenan: >> >> The only account on the three machines that gets prompted is >> Administrator >> >> on Hal9001. And that one, as I say, doesn't have a password. >> >> They all belong to the same workgroup. >> >> I'll check you links to see if they can enlighten me. But, as I say, the >> XP >> Pro machine doesn't have any problem printing to the network printer >> without >> connecting to the printer's computer first. >> >> (Yes, BTW, peer-to-peer) >> >> Regards, >> >> is >> >> ----- Original Message ----- >> From: "Heenan, Lambert" >> To: "'Access Developers discussion and problem solving'" >> ; "'Rocky Smolin - Beach Access Software'" >> >> Sent: Wednesday, March 23, 2005 12:26 PM >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> > Leaving aside the issue of an administrator account with no password >> > (!!!??)... >> > >> > Do ALL the accounts on all the machines have the same password, or lack >> > :-) >> > ? i.e. does user "A" have the same password on all machines in the >> > network? >> > >> > Do all the machines belong to the same workgroup? (I'm assuming we are >> > talking Peer To Peer networking here). >> > >> > Checked the firewall? >> > >> > I lack of the hassle is because the new box has XP home and not XP pro. >> > Here >> > are a few links to check up on >> > >> > http://www.practicallynetworked.com/sharing/xp/addxp.htm >> > http://www.wown.info/j_helmig/guidshrh.htm >> > >> http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare >> .m >> > spx >> > >> > Lambert >> > >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> Smolin - >> >> Beach Access Software >> >> Sent: Wednesday, March 23, 2005 2:11 PM >> >> To: AccessD at databaseadvisors.com >> >> Subject: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> ----- Original Message ----- >> >> From: Rocky Smolin - Beach Access Software >> >> To: dba-tech >> >> Sent: Wednesday, March 23, 2005 7:19 AM >> >> Subject: Windows Printer Sharing Question >> >> >> >> >> >> I am implementing my new machine - Hal9004. It came with Win XP Home. >> >> >> >> My current development machine is Hal9002 with WIN XP Pro. >> >> The backup development machine is Hal9001 - Windows 2000. >> >> Hal9001 has the shared printer hooked to it. >> >> >> >> When I start Hal9001 it prompts me for user name and password to which >> I >> >> simply press enter. User name is Administrator with no password. >> >> >> >> Hal9002 has no problem printing through Hal9001. >> >> >> >> But the new box - Hal9004 requires that I connect to Hal9001 before it >> >> will 'see' the printer. I go to network neighborhood on Hal9004, >> >> click >> >> >> on >> >> Hal9001's shared drive C, put in the user name Administrator and no >> >> password, and everything's fine - I can print from Hal9004 through the >> >> network printer on Hal9001. >> >> >> >> Of course, this is a PITA and I'd like Hal9004 to see the network >> printer >> >> without having to do this connecting trick just like it's older >> >> brother >> >> Hal9002.. >> >> >> >> BTW, all the drives are shared. >> >> >> >> Any ideas how to fix this? >> >> >> >> MTIA, >> >> >> >> Rocky Smolin >> >> Beach Access Software >> >> http://www.e-z-mrp.com >> >> 858-259-4334 >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Chris.Foote at uk.thalesgroup.com Thu Mar 24 09:31:02 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 24 Mar 2005 15:31:02 -0000 Subject: [AccessD] Counting Users Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 24, 2005 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > (Deep sigh). This is almost as bad as the smart aleck > responses I got to my > question about the network computer. Just because I name my > computers > HAL9000, HAL9001, HAL9002, etc... From Lambert.Heenan at AIG.com Thu Mar 24 09:43:23 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 24 Mar 2005 10:43:23 -0500 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E9D@xlivmbx21.aig.com> Rocky, Re "Lambert (sorry, missed the comma):" - not a problem, just the way my Exchange server does things. Upgrade to XP Pro? Could fix the trouble, but I'd try 'synchronizing' the passwords first to see if that fixes it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, March 24, 2005 10:31 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Windows Printer Sharing Question > > Lambert (sorry, missed the comma): > > Curiously, I do not have the problem on HAL9002 which is WINXP Pro. It > connects just fine to the printer on HAL9001. > > I just sent a post about this wondering if I upgrade HAL9004 to WINXP Pro > would that solve the problem? What do you think? > > TIA, > > Rocky > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'Rocky Smolin - Beach Access Software'" > > Sent: Thursday, March 24, 2005 7:10 AM > Subject: RE: [AccessD] Windows Printer Sharing Question > > > >I think that may be the problem then. In Peer-To-Peer networks, all the > > accounts on all the machines must have the same password. To put that > more > > clearly: "Administrator" must have the same password on each machine, > "Jo > > User" must have the same password on each machine, etc. etc. > > > > Lambert (Heenan is my last name) > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > >> Beach Access Software > >> Sent: Wednesday, March 23, 2005 3:50 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Windows Printer Sharing Question > >> > >> Heenan: > >> > >> The only account on the three machines that gets prompted is > >> Administrator > >> > >> on Hal9001. And that one, as I say, doesn't have a password. > >> > >> They all belong to the same workgroup. > >> > >> I'll check you links to see if they can enlighten me. But, as I say, > the > >> XP > >> Pro machine doesn't have any problem printing to the network printer > >> without > >> connecting to the printer's computer first. > >> > >> (Yes, BTW, peer-to-peer) > >> > >> Regards, > >> > >> is > >> > >> ----- Original Message ----- > >> From: "Heenan, Lambert" > >> To: "'Access Developers discussion and problem solving'" > >> ; "'Rocky Smolin - Beach Access > Software'" > >> > >> Sent: Wednesday, March 23, 2005 12:26 PM > >> Subject: RE: [AccessD] Windows Printer Sharing Question > >> > >> > >> > Leaving aside the issue of an administrator account with no password > >> > (!!!??)... > >> > > >> > Do ALL the accounts on all the machines have the same password, or > lack > >> > :-) > >> > ? i.e. does user "A" have the same password on all machines in the > >> > network? > >> > > >> > Do all the machines belong to the same workgroup? (I'm assuming we > are > >> > talking Peer To Peer networking here). > >> > > >> > Checked the firewall? > >> > > >> > I lack of the hassle is because the new box has XP home and not XP > pro. > >> > Here > >> > are a few links to check up on > >> > > >> > http://www.practicallynetworked.com/sharing/xp/addxp.htm > >> > http://www.wown.info/j_helmig/guidshrh.htm > >> > > >> > http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare > >> .m > >> > spx > >> > > >> > Lambert > >> > > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > >> >> Smolin - > >> >> Beach Access Software > >> >> Sent: Wednesday, March 23, 2005 2:11 PM > >> >> To: AccessD at databaseadvisors.com > >> >> Subject: [AccessD] Windows Printer Sharing Question > >> >> > >> >> > >> >> ----- Original Message ----- > >> >> From: Rocky Smolin - Beach Access Software > >> >> To: dba-tech > >> >> Sent: Wednesday, March 23, 2005 7:19 AM > >> >> Subject: Windows Printer Sharing Question > >> >> > >> >> > >> >> I am implementing my new machine - Hal9004. It came with Win XP > Home. > >> >> > >> >> My current development machine is Hal9002 with WIN XP Pro. > >> >> The backup development machine is Hal9001 - Windows 2000. > >> >> Hal9001 has the shared printer hooked to it. > >> >> > >> >> When I start Hal9001 it prompts me for user name and password to > which > >> I > >> >> simply press enter. User name is Administrator with no password. > >> >> > >> >> Hal9002 has no problem printing through Hal9001. > >> >> > >> >> But the new box - Hal9004 requires that I connect to Hal9001 before > it > >> >> will 'see' the printer. I go to network neighborhood on Hal9004, > >> >> click > >> > >> >> on > >> >> Hal9001's shared drive C, put in the user name Administrator and no > >> >> password, and everything's fine - I can print from Hal9004 through > the > >> >> network printer on Hal9001. > >> >> > >> >> Of course, this is a PITA and I'd like Hal9004 to see the network > >> printer > >> >> without having to do this connecting trick just like it's older > >> >> brother > >> >> Hal9002.. > >> >> > >> >> BTW, all the drives are shared. > >> >> > >> >> Any ideas how to fix this? > >> >> > >> >> MTIA, > >> >> > >> >> Rocky Smolin > >> >> Beach Access Software > >> >> http://www.e-z-mrp.com > >> >> 858-259-4334 > >> >> -- > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/accessd > >> >> Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 24 09:44:22 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:44:22 -0800 Subject: [AccessD] Re: Windows Printer Sharing Question Message-ID: <00de01c53088$59bb4da0$6f01a8c0@HAL9004> Sent: Thursday, March 24, 2005 7:26 AM Subject: Re: [AccessD] Windows Printer Sharing Question OK. One more idea, maybe someone can give me some input: I've got the Microsoft Action Pack, and I've got 10 licesnes for WXP Pro. Suppose I upgrade the new machine, HAL9004 (no jokes please) to WXP Pro. Might that solve the problem? TIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From bchacc at san.rr.com Thu Mar 24 09:46:04 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:46:04 -0800 Subject: [AccessD] Counting Users References: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Message-ID: <00eb01c53088$966f76e0$6f01a8c0@HAL9004> Perhaps Friday we can have a little diversion if people will send in what they've named their computers. Rocky ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 24, 2005 7:31 AM Subject: RE: [AccessD] Counting Users > Good job no one knows that I name my machines after cartoon ducks: Huey, > Dewy, Louie, McScrooge, Daisy, etc. > > Chris Foote > >> -----Original Message----- >> From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >> Sent: Thursday, March 24, 2005 3:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Counting Users >> >> >> (Deep sigh). This is almost as bad as the smart aleck >> responses I got to my >> question about the network computer. Just because I name my >> computers >> HAL9000, HAL9001, HAL9002, etc... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Thu Mar 24 09:52:54 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 24 Mar 2005 07:52:54 -0800 Subject: [AccessD] Counting Users In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Message-ID: <200503241552.j2OFqoi22700@databaseadvisors.com> That's a real Mickey mouse system ; ) Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: Thursday, March 24, 2005 7:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 24, 2005 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > (Deep sigh). This is almost as bad as the smart aleck > responses I got to my > question about the network computer. Just because I name my > computers > HAL9000, HAL9001, HAL9002, etc... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Mar 24 09:57:30 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 24 Mar 2005 10:57:30 -0500 Subject: [AccessD] Counting Users In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Message-ID: <20050324155731.HNPV2394.imf20aec.mail.bellsouth.net@SUSANONE> I named my husband's system SusansToo... He was not amused. Susan H. Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. From ssharkins at bellsouth.net Thu Mar 24 09:57:31 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 24 Mar 2005 10:57:31 -0500 Subject: [AccessD] Counting Users In-Reply-To: <001301c53082$798afa00$697aa8c0@ColbyM6805> Message-ID: <20050324155738.HNRI2394.imf20aec.mail.bellsouth.net@SUSANONE> Lexie just showed me how to subtract using her fist yesterday -- quite extraordinary. I just had to memorize the stuff. ;) Susan H. LOL, you know your are right of course. Using a similar system where you count in binary on the fingers you can get 2^10 (1024) just on the fingers. Hey Rocky, you still with us here? Marty points out that you can count more users than Jet can handle on your own fingers so never mind the counting assistants. And yes, I was smiling too as I hit one particular count. From andy at minstersystems.co.uk Thu Mar 24 09:04:38 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 16:04:38 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050324160434.ECF2E24F29C@smtp.nildram.co.uk> Trying again. Suspect original lost in the melee of binary finger counting. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Dba Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 09:39 > > Sorry, one more question on licensing. If you have a 25-user license for > W2000 server and User A sometimes comes into the office and sometimes runs > from home through TS, am I right in thinking they have to be defined to the > server as two separate users, and therefore take 2 seats? > > Which makes me think about Exchange/Outlook. They'd want to see the same > mail from both points. If the answer to the question above is 'yes' then can > two users share a mailbox? And if they can, is that one Exchange license or > two? > > Sorry, these are horrible questions of detail, but I'm going to need to > know. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cyx5 at cdc.gov Thu Mar 24 09:48:46 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 24 Mar 2005 10:48:46 -0500 Subject: [AccessD] Counting Users Message-ID: Try renaming "My Computer" to Bill, or something like that. I have had users do this, and when you tell them to open up My Computer they are lost. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: Thursday, March 24, 2005 10:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 24, 2005 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > (Deep sigh). This is almost as bad as the smart aleck > responses I got to my > question about the network computer. Just because I name my > computers > HAL9000, HAL9001, HAL9002, etc... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tom.bolton at donnslaw.co.uk Thu Mar 24 10:15:01 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 24 Mar 2005 16:15:01 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAB7@dibble.observatory.donnslaw.co.uk> Sorry Andy, I've run out of wisdom at this point! Good luck anyway, coding for TS certainly sharpens you up a bit... -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 24 March 2005 15:05 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Trying again. Suspect original lost in the melee of binary finger counting. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Dba Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 09:39 > > Sorry, one more question on licensing. If you have a 25-user license for > W2000 server and User A sometimes comes into the office and sometimes runs > from home through TS, am I right in thinking they have to be defined to the > server as two separate users, and therefore take 2 seats? > > Which makes me think about Exchange/Outlook. They'd want to see the same > mail from both points. If the answer to the question above is 'yes' then can > two users share a mailbox? And if they can, is that one Exchange license or > two? > > Sorry, these are horrible questions of detail, but I'm going to need to > know. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Chris.Foote at uk.thalesgroup.com Thu Mar 24 10:19:35 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 24 Mar 2005 16:19:35 -0000 Subject: [AccessD] OT: Machine names (was "Counting Users") Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C64E@ntscxch1.int.rdel.co.uk> LOL! As it happens, when I had just two machines I named them "Huey" and "Louie" after two of the "Droids" from the movie Silent Running. "Huey" was (and still is) a Hewlett Packard box, and "Louie" was a Laptop. Then came a third machine, naturally "Dewey". Machine number four caused me to fall-back to the "Donald Duck" family. Regards Chris Foote > -----Original Message----- > From: Joe Hecht [mailto:jmhla at earthlink.net] > Sent: Thursday, March 24, 2005 3:53 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Counting Users > > > That's a real Mickey mouse system ; ) > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Foote, Chris > Sent: Thursday, March 24, 2005 7:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Counting Users > > Good job no one knows that I name my machines after cartoon > ducks: Huey, > Dewy, Louie, McScrooge, Daisy, etc. From Gustav at cactus.dk Thu Mar 24 10:27:36 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 24 Mar 2005 17:27:36 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: Hi Andy It was not lost. I just don't have the answer for sure. Even as an MS dealer we call some licensing experts on things like this and this is a public holiday here so nowhere to call. You can easily get burned, and "assume" isn't worth anything here. /gustav >>> andy at minstersystems.co.uk 03/24 4:04 pm >>> Trying again. Suspect original lost in the melee of binary finger counting. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Dba Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 09:39 > Sorry, one more question on licensing. If you have a 25-user license for > W2000 server and User A sometimes comes into the office and sometimes runs > from home through TS, am I right in thinking they have to be defined to the > server as two separate users, and therefore take 2 seats? From andy at minstersystems.co.uk Thu Mar 24 09:53:34 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 16:53:34 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050324165330.9E9EB24F0BE@smtp.nildram.co.uk> Ok Tom & Gustav. Thanks for all the help anyway. This may have to go down as a 'not sure'. Have a good Easter everyone. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 16:28 > > Hi Andy > > It was not lost. I just don't have the answer for sure. Even as an MS > dealer we call some licensing experts on things like this and this is a > public holiday here so nowhere to call. > You can easily get burned, and "assume" isn't worth anything here. > > /gustav > > >>> andy at minstersystems.co.uk 03/24 4:04 pm >>> > Trying again. Suspect original lost in the melee of binary finger > counting. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Dba <AccessD at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 24/03/05 09:39 > > > Sorry, one more question on licensing. If you have a 25-user license > for > > W2000 server and User A sometimes comes into the office and sometimes > runs > > from home through TS, am I right in thinking they have to be defined > to the > > server as two separate users, and therefore take 2 seats? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Thu Mar 24 11:06:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 24 Mar 2005 12:06:43 -0500 Subject: [AccessD] Counting Users In-Reply-To: <20050324155731.HNPV2394.imf20aec.mail.bellsouth.net@SUSANONE> Message-ID: <001f01c53093$da5e5c30$697aa8c0@ColbyM6805> rotfl John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, March 24, 2005 10:58 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users I named my husband's system SusansToo... He was not amused. Susan H. Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Mar 24 13:22:53 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 24 Mar 2005 20:22:53 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5950@stekelbes.ithelps.local> I called MS about this a few weeks ago. A TS user license is dedicated to a pc, not a user. With a 25 TS user clients you can connect 25, always the same, pc's to the TS server. But this is for Windows 2003 server, they changed license policy for TS from Windows 2003 on. With Windows 2000 server TS, all Windows 2000 Pro and Windows XP Pro have a build in TS client License. When using other Windows versions (like Windows XP Home) you need to purchase TS client licenses, which are dedicated to a remote pc (same principal as in W2K3) But a Windowsz XP Home pc has a temporary TS clients license that expires after 30(?) days. Greetz Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Andy Lacey Verzonden: donderdag 24 maart 2005 16:54 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Access & Terminal Services Ok Tom & Gustav. Thanks for all the help anyway. This may have to go down as a 'not sure'. Have a good Easter everyone. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 16:28 > > Hi Andy > > It was not lost. I just don't have the answer for sure. Even as an MS > dealer we call some licensing experts on things like this and this is > a public holiday here so nowhere to call. > You can easily get burned, and "assume" isn't worth anything here. > > /gustav > > >>> andy at minstersystems.co.uk 03/24 4:04 pm >>> > Trying again. Suspect original lost in the melee of binary finger > counting. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Dba <AccessD at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 24/03/05 09:39 > > > Sorry, one more question on licensing. If you have a 25-user > license for > W2000 server and User A sometimes comes into the > office and sometimes runs > from home through TS, am I right in > thinking they have to be defined to the > server as two separate > users, and therefore take 2 seats? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Thu Mar 24 14:57:30 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 24 Mar 2005 12:57:30 -0800 Subject: [AccessD] I do not understand this In-Reply-To: <200503241526.j2OFQWi15077@databaseadvisors.com> Message-ID: <002d01c530b4$190bafd0$6701a8c0@laptop1> It is confirmed. They must be hidden controls on the report. Thanks Guys, will be able to go to sleep much earlier tonight. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, March 24, 2005 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] I do not understand this Andy and AD I think found the problem I think. They are source data and not controls. Will fix that and try again. Thanks Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, March 24, 2005 5:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I do not understand this Or could it be that smpleSizeAll is only in the Report's source data and not an actual control? For a report it needs to be on the report even if hidden. -- Andy Lacey http://www.minstersystems.co.uk e: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Mar 25 09:38:32 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 25 Mar 2005 07:38:32 -0800 Subject: [AccessD] Windows Printer Sharing Question References: <1D7828CDB8350747AFE9D69E0E90DA1F073A2EA4@xlivmbx21.aig.com> Message-ID: <00e001c53150$b3636ef0$6f01a8c0@HAL9004> Lambert: Well, a bit premature to celebrate. HAL9001 no longer asks for a login. But the first time I try to copy a file from HAL9004 to HAL9001 I get the login prompt on HAL9004 - Administrator with no password and I'm in. Back to the drawing board... Any more good ideas? Thanks and regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Heenan, Lambert" To: "'Rocky Smolin - Beach Access Software'" Sent: Thursday, March 24, 2005 9:28 AM Subject: RE: [AccessD] Windows Printer Sharing Question > You're welcome. But keep those machines locked up! :-) > > Lambert > >> -----Original Message----- >> From: Rocky Smolin - Beach Access Software [SMTP:bchacc at san.rr.com] >> Sent: Thursday, March 24, 2005 11:44 AM >> To: Heenan, Lambert >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> Lambert: >> >> Pure genius! Not only did the login screen go away on HAL9001, but >> HAL9004 >> now gets access to HAL9001 without having to login! >> >> Many, many thanks. >> >> Regards, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Heenan, Lambert" >> To: "'Rocky Smolin - Beach Access Software'" ; >> "Heenan, >> >> Lambert" >> Sent: Thursday, March 24, 2005 8:00 AM >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> > You'll need to run the Network Identification Wizard again. One of >> > first >> > question is asks you is do users need to sign in. Answer 'No' and the >> > login >> > prompt goes away. >> > >> > The effect of this is that the Administrator is automatically logged in >> - >> > with whatever password was assigned to the account - when the machine >> > is >> > powered up. >> > >> > In XP right-click My Computer, select Properties and then choose the >> > 'Computer Name' tab. There you click on the 'Network ID' button. It's >> > similar in Windows 2000. >> > >> > I take it that these machines are locked up where prying eyes cannot >> > get >> >> > to >> > them! And if any of the machines is connected to the internet I hope >> > you >> > have a good firewall to keep prying hackers at bay too. >> > >> > Lambert >> > >> >> -----Original Message----- >> >> From: Rocky Smolin - Beach Access Software [SMTP:bchacc at san.rr.com] >> >> Sent: Thursday, March 24, 2005 10:48 AM >> >> To: Heenan, Lambert >> >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> >> >> Lambert, >> >> >> >> The problem is that there is no user or password prompted on the WIN >> >> XP >> >> systems. And if I can avoid it I will. >> >> >> >> I didn't use to have the prompt on the WIN2K box until some notwork >> >> guy >> >> tried to fix a problem for me and ended up triggering that. It's >> >> annoying. >> >> The best fix for me would be to get rid of the prompt on the WIN2K box >> >> but >> >> I >> >> don't know how to do that. >> >> >> >> Regards, >> >> >> >> Rocky Smolin >> >> Beach Access Software >> >> http://www.e-z-mrp.com >> >> 858-259-4334 >> >> >> >> ----- Original Message ----- >> >> From: "Heenan, Lambert" >> >> To: "'Access Developers discussion and problem solving'" >> >> ; "'Rocky Smolin - Beach Access >> Software'" >> >> >> >> Sent: Thursday, March 24, 2005 7:43 AM >> >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> > Rocky, >> >> > >> >> > Re "Lambert (sorry, missed the comma):" - not a problem, just the >> >> > way my Exchange server does things. >> >> > >> >> > Upgrade to XP Pro? Could fix the trouble, but I'd try >> >> > 'synchronizing' >> >> the >> >> > passwords first to see if that fixes it. >> >> > >> >> > Lambert >> >> > >> >> >> -----Original Message----- >> >> >> From: accessd-bounces at databaseadvisors.com >> >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >> Smolin - >> >> >> Beach Access Software >> >> >> Sent: Thursday, March 24, 2005 10:31 AM >> >> >> To: Access Developers discussion and problem solving >> >> >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> Lambert (sorry, missed the comma): >> >> >> >> >> >> Curiously, I do not have the problem on HAL9002 which is WINXP Pro. >> >> >> It >> >> >> connects just fine to the printer on HAL9001. >> >> >> >> >> >> I just sent a post about this wondering if I upgrade HAL9004 to >> WINXP >> >> Pro >> >> >> would that solve the problem? What do you think? >> >> >> >> >> >> TIA, >> >> >> >> >> >> Rocky >> >> >> >> >> >> ----- Original Message ----- >> >> >> From: "Heenan, Lambert" >> >> >> To: "'Access Developers discussion and problem solving'" >> >> >> ; "'Rocky Smolin - Beach Access >> >> Software'" >> >> >> >> >> >> Sent: Thursday, March 24, 2005 7:10 AM >> >> >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >I think that may be the problem then. In Peer-To-Peer networks, >> >> >> >all >> >> the >> >> >> > accounts on all the machines must have the same password. To put >> >> >> > that >> >> >> more >> >> >> > clearly: "Administrator" must have the same password on each >> >> >> > machine, >> >> >> "Jo >> >> >> > User" must have the same password on each machine, etc. etc. >> >> >> > >> >> >> > Lambert (Heenan is my last name) >> >> >> > >> >> >> >> -----Original Message----- >> >> >> >> From: accessd-bounces at databaseadvisors.com >> >> >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >> >> Smolin - >> >> >> >> Beach Access Software >> >> >> >> Sent: Wednesday, March 23, 2005 3:50 PM >> >> >> >> To: Access Developers discussion and problem solving >> >> >> >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> Heenan: >> >> >> >> >> >> >> >> The only account on the three machines that gets prompted is >> >> >> >> Administrator >> >> >> >> >> >> >> >> on Hal9001. And that one, as I say, doesn't have a password. >> >> >> >> >> >> >> >> They all belong to the same workgroup. >> >> >> >> >> >> >> >> I'll check you links to see if they can enlighten me. But, as I >> >> say, >> >> >> the >> >> >> >> XP >> >> >> >> Pro machine doesn't have any problem printing to the network >> >> >> >> printer >> >> >> >> without >> >> >> >> connecting to the printer's computer first. >> >> >> >> >> >> >> >> (Yes, BTW, peer-to-peer) >> >> >> >> >> >> >> >> Regards, >> >> >> >> >> >> >> >> is >> >> >> >> >> >> >> >> ----- Original Message ----- >> >> >> >> From: "Heenan, Lambert" >> >> >> >> To: "'Access Developers discussion and problem solving'" >> >> >> >> ; "'Rocky Smolin - Beach Access >> >> >> Software'" >> >> >> >> >> >> >> >> Sent: Wednesday, March 23, 2005 12:26 PM >> >> >> >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >> >> >> > Leaving aside the issue of an administrator account with no >> >> password >> >> >> >> > (!!!??)... >> >> >> >> > >> >> >> >> > Do ALL the accounts on all the machines have the same >> >> >> >> > password, >> >> >> >> >> > or >> >> >> lack >> >> >> >> > :-) >> >> >> >> > ? i.e. does user "A" have the same password on all machines in >> >> >> >> > the >> >> >> >> > network? >> >> >> >> > >> >> >> >> > Do all the machines belong to the same workgroup? (I'm >> >> >> >> > assuming >> >> >> >> >> > we >> >> >> are >> >> >> >> > talking Peer To Peer networking here). >> >> >> >> > >> >> >> >> > Checked the firewall? >> >> >> >> > >> >> >> >> > I lack of the hassle is because the new box has XP home and >> >> >> >> > not >> >> >> >> >> > XP >> >> >> pro. >> >> >> >> > Here >> >> >> >> > are a few links to check up on >> >> >> >> > >> >> >> >> > http://www.practicallynetworked.com/sharing/xp/addxp.htm >> >> >> >> > http://www.wown.info/j_helmig/guidshrh.htm >> >> >> >> > >> >> >> >> >> >> >> >> >> >> http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare >> >> >> >> .m >> >> >> >> > spx >> >> >> >> > >> >> >> >> > Lambert >> >> >> >> > >> >> >> >> >> -----Original Message----- >> >> >> >> >> From: accessd-bounces at databaseadvisors.com >> >> >> >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >> >> >> >> >> Rocky >> >> >> >> >> Smolin - >> >> >> >> >> Beach Access Software >> >> >> >> >> Sent: Wednesday, March 23, 2005 2:11 PM >> >> >> >> >> To: AccessD at databaseadvisors.com >> >> >> >> >> Subject: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ----- Original Message ----- >> >> >> >> >> From: Rocky Smolin - Beach Access Software >> >> >> >> >> To: dba-tech >> >> >> >> >> Sent: Wednesday, March 23, 2005 7:19 AM >> >> >> >> >> Subject: Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I am implementing my new machine - Hal9004. It came with Win >> XP >> >> >> Home. >> >> >> >> >> >> >> >> >> >> My current development machine is Hal9002 with WIN XP Pro. >> >> >> >> >> The backup development machine is Hal9001 - Windows 2000. >> >> >> >> >> Hal9001 has the shared printer hooked to it. >> >> >> >> >> >> >> >> >> >> When I start Hal9001 it prompts me for user name and password >> to >> >> >> which >> >> >> >> I >> >> >> >> >> simply press enter. User name is Administrator with no >> >> >> >> >> password. >> >> >> >> >> >> >> >> >> >> Hal9002 has no problem printing through Hal9001. >> >> >> >> >> >> >> >> >> >> But the new box - Hal9004 requires that I connect to Hal9001 >> >> before >> >> >> it >> >> >> >> >> will 'see' the printer. I go to network neighborhood on >> >> >> >> >> Hal9004, >> >> >> >> >> click >> >> >> >> >> >> >> >> >> on >> >> >> >> >> Hal9001's shared drive C, put in the user name Administrator >> and >> >> no >> >> >> >> >> password, and everything's fine - I can print from Hal9004 >> >> through >> >> >> the >> >> >> >> >> network printer on Hal9001. >> >> >> >> >> >> >> >> >> >> Of course, this is a PITA and I'd like Hal9004 to see the >> >> >> >> >> network >> >> >> >> printer >> >> >> >> >> without having to do this connecting trick just like it's >> older >> >> >> >> >> brother >> >> >> >> >> Hal9002.. >> >> >> >> >> >> >> >> >> >> BTW, all the drives are shared. >> >> >> >> >> >> >> >> >> >> Any ideas how to fix this? >> >> >> >> >> >> >> >> >> >> MTIA, >> >> >> >> >> >> >> >> >> >> Rocky Smolin >> >> >> >> >> Beach Access Software >> >> >> >> >> http://www.e-z-mrp.com >> >> >> >> >> 858-259-4334 >> >> >> >> >> -- >> >> >> >> >> AccessD mailing list >> >> >> >> >> AccessD at databaseadvisors.com >> >> >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> >> >> Website: http://www.databaseadvisors.com >> >> >> >> > -- >> >> >> >> > AccessD mailing list >> >> >> >> > AccessD at databaseadvisors.com >> >> >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> >> > Website: http://www.databaseadvisors.com >> >> >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> AccessD mailing list >> >> >> >> AccessD at databaseadvisors.com >> >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> >> Website: http://www.databaseadvisors.com >> >> >> > -- >> >> >> > AccessD mailing list >> >> >> > AccessD at databaseadvisors.com >> >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> > Website: http://www.databaseadvisors.com >> >> >> > >> >> >> >> >> >> >> >> >> -- >> >> >> AccessD mailing list >> >> >> AccessD at databaseadvisors.com >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> Website: http://www.databaseadvisors.com >> >> > >> >> >> > >> > From JHewson at karta.com Fri Mar 25 10:43:39 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 25 Mar 2005 10:43:39 -0600 Subject: [AccessD] OutputTo problem Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From dw-murphy at cox.net Fri Mar 25 10:47:23 2005 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 25 Mar 2005 08:47:23 -0800 Subject: [AccessD] OutputTo problem In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: <000401c5315a$5483f940$c300a8c0@murphyf3vdfepi> What version of access? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From dw-murphy at cox.net Fri Mar 25 10:49:32 2005 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 25 Mar 2005 08:49:32 -0800 Subject: [AccessD] OutputTo problem In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: <000501c5315a$a1820e80$c300a8c0@murphyf3vdfepi> Duh, didn't read the first line obviously. I had a similar problem in 97 but that was due to Snap shot not being part of the basic product, it was introduced in a service pack. Sorry about the noise. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From jeffrey.demulling at usbank.com Fri Mar 25 10:50:53 2005 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 25 Mar 2005 10:50:53 -0600 Subject: [AccessD] OutputTo problem In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: You might want to do a msgbox "Corporate Top List - " & Date & ".snp" to see the exact file name being created. It probably has some characters ie "\" that is causing the error. You will probably need to format the date to get rid of the "\"s. Jeffrey F. Demulling U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Jim Hewson" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] OutputTo problem 03/25/2005 10:43 AM Please respond to "Access Developers discussion and problem solving" Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From JHewson at karta.com Fri Mar 25 10:52:42 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 25 Mar 2005 10:52:42 -0600 Subject: [AccessD] OutputTo problem Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068ED2@karta-exc-int.Karta.com> Access 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Friday, March 25, 2005 10:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OutputTo problem What version of access? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 25 10:53:20 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 Mar 2005 08:53:20 -0800 Subject: [AccessD] OutputTo problem Message-ID: The date function is going to return a short date, complete with delimiters. If those delimiters happen to be slashes, or worse backslashes, it causes problems. If you format the date result as "ddmmyyyy", or some such, it should work. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From JHewson at karta.com Fri Mar 25 11:05:35 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 25 Mar 2005 11:05:35 -0600 Subject: [AccessD] OutputTo problem Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068ED3@karta-exc-int.Karta.com> Jeffrey and Charlotte Thank you. I did reformat the date to exclude the standard hash marks. It works now. But I'm still stumped as to why it quit working in the first place. Or why did it work before? I'm not going to spend any more time on this... Thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, March 25, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OutputTo problem The date function is going to return a short date, complete with delimiters. If those delimiters happen to be slashes, or worse backslashes, it causes problems. If you format the date result as "ddmmyyyy", or some such, it should work. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Mar 25 15:21:34 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 25 Mar 2005 21:21:34 +0000 Subject: [AccessD] Output text file--HELP In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte From dwaters at usinternet.com Fri Mar 25 15:51:42 2005 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 25 Mar 2005 15:51:42 -0600 Subject: [AccessD] Output text file--HELP In-Reply-To: <25047187.1111786014802.JavaMail.root@sniper14> Message-ID: <000501c53184$d4eb9460$123a11d8@danwaters> Mark, As you are looping though, can you force the zip code to be a string by using CStr(rst!ZipCode)? Dan Waters ProMation Systems, Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 25, 2005 3:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Output text file--HELP Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Mar 25 15:57:46 2005 From: pharold at proftesting.com (Perry Harold) Date: Fri, 25 Mar 2005 16:57:46 -0500 Subject: [AccessD] Output text file--HELP In-Reply-To: Message-ID: <000b01c53185$af3143e0$192da8c0@D58BT131Perry> Mark How about? (AirWare just for ideas.) Dim sLine as string Open DB Open Tbl Open XX.txt for output as #X If not .bof then .movefirst While not .eof sLine=sLine & str(fZip) 'use format "00000" if have any less than length 5 .movenext Sline=sline & "," loop Wend Print #X, sline Close #X Close tbl Close DB end -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 25, 2005 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Output text file--HELP Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Christian.Brock at hoffman.army.mil Fri Mar 25 16:25:03 2005 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria/NGIT) Date: Fri, 25 Mar 2005 17:25:03 -0500 Subject: [AccessD] Output text file--HELP Message-ID: <5484A9115CF75C4B8B501C417325BA3101A0E523@ahrcb1us9340> Make Sline a variant and you can use one line for the concatenation and avoid a comma at the end since concatenating two expressions together using + where one is null gives you a null. Dim vLine as variant vLine = Null While not .eof vLine=vLine + "," & str(fZip) .movenext vLine=vLine + "," & str(fZip) Christian Brock -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold Sent: Friday, 25 March 2005 16:58 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Output text file--HELP Mark How about? (AirWare just for ideas.) Dim sLine as string Open DB Open Tbl Open XX.txt for output as #X If not .bof then .movefirst While not .eof sLine=sLine & str(fZip) 'use format "00000" if have any less than length 5 .movenext Sline=sline & "," loop Wend Print #X, sline Close #X Close tbl Close DB end -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 25, 2005 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Output text file--HELP Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Sat Mar 26 21:26:34 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Sun, 27 Mar 2005 13:26:34 +1000 Subject: [AccessD] Trouble with SQL statement on two difefrent machines Message-ID: Hi All, I am havinbg an issue with a function and could use some fresh eyes and knowledge. Both machines are running Access97 SR2. On my machine the function works fine, on the users machine it falls over. We are accessing the database from a central location. Function as follows: Private Function getstrNextAuthorityNumber() As String 'Automatically select the next availaible Authority Number for this type of Authority On Error GoTo Failure Dim dbNextAuthority As Database Dim rsNextAuthority As Recordset Dim intNextAuthorityNumber As Integer Dim strSelect As String strSelect = "SELECT tblCAuthorityType.AuthorityPrefix, Max(Right([AuthorityNumber],5)) AS [Number] " & _ "FROM tblCAuthorityType RIGHT JOIN tblDAuthority ON tblCAuthorityType.AuthorityTypeID = tblDAuthority.AuthorityType " & _ "GROUP BY tblCAuthorityType.AuthorityPrefix " & _ "HAVING (((tblCAuthorityType.AuthorityPrefix)=getgstrAuthorityPrefix()));" On Error Resume Next Set dbNextAuthority = CurrentDb() Set rsNextAuthority = dbNextAuthority.OpenRecordset(strSelect, dbOpenSnapshot, dbFailOnError) If rsNextAuthority.RecordCount < 1 Then 'No records - this will not actually be used. intNextAuthorityNumber = 1 'Initial Authority Number for each type Else intNextAuthorityNumber = rsNextAuthority!Number + 1 'Increment last Authority Number by 1 End If 'rsNextAuthorityNumber.RecordCount = 0 getstrNextAuthorityNumber = getgstrAuthorityPrefix() & Right("0000" & Trim(Str(intNextAuthorityNumber)), 5) ExitRoutine: On Error Resume Next rsNextAuthority.Close Set rsNextAuthority = Nothing dbNextAuthority.Close Set dbNextAuthority = Nothing Exit Function Failure: Call ErrorHandler(lngErrorNumber:=Err.Number, strErrorDescription:=Err.Description, strErrorSource:=Err.Source) Resume ExitRoutine End Function This fails at the bold line, on my machine it takes the SQL statement in strSelect and goes to the getgstrAuthorityPrefix() function as defined on the end, returning a value. On the users machine it goes straight to the next line and misses the call to getgstrAuthorityPrefix() altogether returning a Bliock Obejct variable not set. This is code written by my predecessor. All ideas appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From connie.kamrowski at agric.nsw.gov.au Sat Mar 26 22:29:30 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Sun, 27 Mar 2005 14:29:30 +1000 Subject: [AccessD] Trouble with SQL statement on two different machines (sans typo) Message-ID: Further to my previous post I have ascertained that it is actually having trouble with the Max(Right([AuthorityNumber],5)) AS [Number] Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From mikedorism at adelphia.net Sat Mar 26 22:31:32 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Sat, 26 Mar 2005 23:31:32 -0500 Subject: [AccessD] Trouble with SQL statement on two difefrent machines In-Reply-To: Message-ID: <000001c53285$dc4907e0$0b08a845@hargrove.internal> Could it be an MDAC issue? I notice you don't specifically reference whether you are using DAO or ADO when you declare your databases and recordsets. Your computer may have the latest version but theirs may not. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Saturday, March 26, 2005 10:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Trouble with SQL statement on two difefrent machines Hi All, I am havinbg an issue with a function and could use some fresh eyes and knowledge. Both machines are running Access97 SR2. On my machine the function works fine, on the users machine it falls over. We are accessing the database from a central location. Function as follows: Private Function getstrNextAuthorityNumber() As String 'Automatically select the next availaible Authority Number for this type of Authority On Error GoTo Failure Dim dbNextAuthority As Database Dim rsNextAuthority As Recordset Dim intNextAuthorityNumber As Integer Dim strSelect As String strSelect = "SELECT tblCAuthorityType.AuthorityPrefix, Max(Right([AuthorityNumber],5)) AS [Number] " & _ "FROM tblCAuthorityType RIGHT JOIN tblDAuthority ON tblCAuthorityType.AuthorityTypeID = tblDAuthority.AuthorityType " & _ "GROUP BY tblCAuthorityType.AuthorityPrefix " & _ "HAVING (((tblCAuthorityType.AuthorityPrefix)=getgstrAuthorityPrefix()));" On Error Resume Next Set dbNextAuthority = CurrentDb() Set rsNextAuthority = dbNextAuthority.OpenRecordset(strSelect, dbOpenSnapshot, dbFailOnError) If rsNextAuthority.RecordCount < 1 Then 'No records - this will not actually be used. intNextAuthorityNumber = 1 'Initial Authority Number for each type Else intNextAuthorityNumber = rsNextAuthority!Number + 1 'Increment last Authority Number by 1 End If 'rsNextAuthorityNumber.RecordCount = 0 getstrNextAuthorityNumber = getgstrAuthorityPrefix() & Right("0000" & Trim(Str(intNextAuthorityNumber)), 5) ExitRoutine: On Error Resume Next rsNextAuthority.Close Set rsNextAuthority = Nothing dbNextAuthority.Close Set dbNextAuthority = Nothing Exit Function Failure: Call ErrorHandler(lngErrorNumber:=Err.Number, strErrorDescription:=Err.Description, strErrorSource:=Err.Source) Resume ExitRoutine End Function This fails at the bold line, on my machine it takes the SQL statement in strSelect and goes to the getgstrAuthorityPrefix() function as defined on the end, returning a value. On the users machine it goes straight to the next line and misses the call to getgstrAuthorityPrefix() altogether returning a Bliock Obejct variable not set. This is code written by my predecessor. All ideas appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Mar 27 02:22:19 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 27 Mar 2005 10:22:19 +0200 Subject: [AccessD] Trouble with SQL statement on two different machines(sans typo) Message-ID: Hi Connie That looks like a missing reference. At the user's machine, press Ctrl+G, choose Tools, References, and check if any reference is marked MISSING. If so, this must be corrected. /gustav >>> connie.kamrowski at agric.nsw.gov.au 03/27 6:29 am >>> Further to my previous post I have ascertained that it is actually having trouble with the Max(Right([AuthorityNumber],5)) AS [Number] Connie Kamrowski From martyconnelly at shaw.ca Sun Mar 27 09:35:15 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 27 Mar 2005 07:35:15 -0800 Subject: [AccessD] Office 12 Speculation References: Message-ID: <4246D2B3.2060203@shaw.ca> I have seen speculative schedules for Office 12 on a French European website for what is worth. Office 12 release schedule (internal documentation: October 2004) Office 12 M1 (milestone 1) integration: July 26, 2004 Office 12 M2 final code check-in: November 29, 2004 Office 12 M3 final code check-in: April 18, 2005 Office 12 code complete: June 27, 2005 Office 12 Beta 1: September 26, 2005 Office 12 Beta 2: December 19, 2005 Office 12 Beta 3: March 13, 2006 Office 12 RTM: May 22, 2006 >-- >Marty Connelly >Victoria, B.C. >Canada > > From artful at rogers.com Mon Mar 28 10:47:09 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 28 Mar 2005 11:47:09 -0500 Subject: [AccessD] Need help with a combobox issue In-Reply-To: <123701F54509D9119A4F00D0B747349016D1D3@main2.marlow.com> References: <123701F54509D9119A4F00D0B747349016D1D3@main2.marlow.com> Message-ID: <4248350D.3040903@rogers.com> I agree with you on the usefulness of UNION queries, and just want to add one comment which really has little to do with this thread, but concerns maximizing the utility of UNION queries. I commonly see in other people's code such column names as ServiceName, ProductName, etc. I never name columns in this way. Instead I call both columns Name, and distinguish them with the tableName prefix: Services.Name and Products.Name. That way UNIONs are effortless, while the tableName prefix sidesteps ambiguity. My $.02. :) Arthur. DWUTKA at marlow.com wrote: >Glad to help. Gotta love those UNION querries, they make life soooo much >easier! > >Drew > > > From artful at rogers.com Mon Mar 28 11:09:02 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 28 Mar 2005 12:09:02 -0500 Subject: [AccessD] The Polyp Problem In-Reply-To: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> References: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> Message-ID: <42483A2E.5020006@rogers.com> The hardest thing to learn in the contracting business is how and when to fire a customer. Eventually we all learn how to fire an unproductive employee or subcontractor, and no matter how distasteful we find it, we plod on anyway. Learning to fire a customer is much more difficult, because we are tied up in the notion that customers = revenue. Let me offer a lesson taught to me by a master painter (i.e. house painter with papers) that I once worked with. He said, "Let the stupid painters do the one-bedroom apartments." To expand upon his concise statement, "If you're busy painting the one-bedroom apartments, you'll never be available for the mansion-makeovers; and worse, your resume will make it look like you're unqualified for the mansion-makeovers." He was so skilled that he didn't even bother to put painting clothes on. He NEVER spilt paint. He NEVER got any paint on himself. He could cut a window frame without tape. Thanks to him, I can do it too (but I never mention this to my friends, otherwise I'd be dragged into painting their houses on my weekends LOL). Out of the story and back to the theme: as contractors, we MUST learn which customers create profitable experiences and which create headaches -- and then to act upon that information and fire the latter group. Let the stupid contractors have all the nightmares! Arthur Andy Lacey wrote: >In any case they sound like all-too familiar sort of customer. At some point you have to decide on what YOU want to do next. Are they a customer worth having for the future? I doubt it but if yes, you'll probably have to grit your teeth and keep asking nicely for your money. If not then you are going to have to stop them doing what they're doing, i.e. taking advantage. At some point you just have to say that you are doing no more work and no more support until you have been paid. And having said it you have to stick to it. The first time they really need you, and you won't go, they will suddenly find it perfectly easy to raise a cheque. It's not hard. The only time it's actually hard is if they have no money - and if that's the case bail out. > From cfoust at infostatsystems.com Mon Mar 28 11:12:37 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 28 Mar 2005 09:12:37 -0800 Subject: [AccessD] Need help with a combobox issue Message-ID: The problem with that practice is that Services.Name in other circumstances will return the name of the Services table, not a reference to a column in Services. It might work or not, depending on the situation, and it's virtually guaranteed to bite you somewhere along the way. In general it is NOT a good idea to use names that are already built in as function names or properties. Name and Date are two examples of that. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Monday, March 28, 2005 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Need help with a combobox issue I agree with you on the usefulness of UNION queries, and just want to add one comment which really has little to do with this thread, but concerns maximizing the utility of UNION queries. I commonly see in other people's code such column names as ServiceName, ProductName, etc. I never name columns in this way. Instead I call both columns Name, and distinguish them with the tableName prefix: Services.Name and Products.Name. That way UNIONs are effortless, while the tableName prefix sidesteps ambiguity. My $.02. :) Arthur. DWUTKA at marlow.com wrote: >Glad to help. Gotta love those UNION querries, they make life soooo >much easier! > >Drew > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Mar 28 11:48:14 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 28 Mar 2005 12:48:14 -0500 Subject: [AccessD] The Polyp Problem In-Reply-To: <42483A2E.5020006@rogers.com> Message-ID: <20050328174815.KWNN2468.imf23aec.mail.bellsouth.net@SUSANONE> Out of the story and back to the theme: as contractors, we MUST learn which customers create profitable experiences and which create headaches -- and then to act upon that information and fire the latter group. Let the stupid contractors have all the nightmares! ===========Arthur -- good lesson and one I'm currently working through myself. I guess it's the tax season or something, but I realized that I've not had a raise in 6 years. Publishers pay me what they want, not what I demand -- and this is typical of the business. There's just nothing I can really do about it. But, what I can do is stop working for the publishers that pay the least, and that's what I'm working on now -- phasing these guys out. Of course, that means I have to find publishers that pay more -- can't dump the baby's bath yet. And there's always the possibility that once I'm unavailable they may cough up more money, but it is unlikely. The business just doesn't work like that unless you're top cheese. Susan H. From marcus at tsstech.com Mon Mar 28 12:33:42 2005 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 28 Mar 2005 13:33:42 -0500 Subject: [AccessD] Trouble with SQL statement on two different machines(sans typo) Message-ID: Did you check your references on the users machine vs. your machine? Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Saturday, March 26, 2005 11:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Trouble with SQL statement on two different machines(sans typo) Further to my previous post I have ascertained that it is actually having trouble with the Max(Right([AuthorityNumber],5)) AS [Number] Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjewett at bayplace.com Mon Mar 28 12:47:19 2005 From: pjewett at bayplace.com (Phil Jewett) Date: Mon, 28 Mar 2005 10:47:19 -0800 Subject: [AccessD] DB job in Washington DC area Message-ID: I have a lead for an Access to SQL Server conversion/update job in the DC area for a non-profit organization; if interested, let me know. (I am in San Diego). Phil Jewett Phil Jewett Consulting pjewett at bayplace.com (619 318-4899 From donald.a.Mcgillivray at mail.sprint.com Mon Mar 28 13:11:31 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Mon, 28 Mar 2005 13:11:31 -0600 Subject: [AccessD] Permissions to 'MSysTables' object Message-ID: Hello, All I have some code that sets the SQL property of a query's QueryDef. When I run the code as the system admin, all's well. If another user - without admin rights on the db - runs the code, they get the error: "3033 You do not have the necessary permissions to use the 'MSysTables' object. Have your system administrator or the person who created this object establish the appropriate permissions for you." I've searched the db window (yes, I made system objects visible) but I cannot see any such object in the db. I've searched the front end, the back end, and the related db workgroup file. I see MSysAccessObjects, MSysAccessXML, MSysACEs, MSysObjects, MSysQueries, and MSysRelationships, but no MSysTables. I'm using Access XP on Windows 2000. Maybe somebody can point me in the right direction here. Thanks! Don From accessd at shaw.ca Mon Mar 28 16:13:40 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 28 Mar 2005 14:13:40 -0800 Subject: [AccessD] The Polyp Problem In-Reply-To: <42483A2E.5020006@rogers.com> Message-ID: <0IE30037K1QO7G@l-daemon> Very well said Arthur. "NEVER got any paint on himself." Now try that with a roller or spay gun... you are exaggerating slightly on that one. So the next time you are in Victoria could you come over and help with some perpetual house painting that seem to always going on at our abode. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 28, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Polyp Problem The hardest thing to learn in the contracting business is how and when to fire a customer. Eventually we all learn how to fire an unproductive employee or subcontractor, and no matter how distasteful we find it, we plod on anyway. Learning to fire a customer is much more difficult, because we are tied up in the notion that customers = revenue. Let me offer a lesson taught to me by a master painter (i.e. house painter with papers) that I once worked with. He said, "Let the stupid painters do the one-bedroom apartments." To expand upon his concise statement, "If you're busy painting the one-bedroom apartments, you'll never be available for the mansion-makeovers; and worse, your resume will make it look like you're unqualified for the mansion-makeovers." He was so skilled that he didn't even bother to put painting clothes on. He NEVER spilt paint. He NEVER got any paint on himself. He could cut a window frame without tape. Thanks to him, I can do it too (but I never mention this to my friends, otherwise I'd be dragged into painting their houses on my weekends LOL). Out of the story and back to the theme: as contractors, we MUST learn which customers create profitable experiences and which create headaches -- and then to act upon that information and fire the latter group. Let the stupid contractors have all the nightmares! Arthur Andy Lacey wrote: >In any case they sound like all-too familiar sort of customer. At some point you have to decide on what YOU want to do next. Are they a customer worth having for the future? I doubt it but if yes, you'll probably have to grit your teeth and keep asking nicely for your money. If not then you are going to have to stop them doing what they're doing, i.e. taking advantage. At some point you just have to say that you are doing no more work and no more support until you have been paid. And having said it you have to stick to it. The first time they really need you, and you won't go, they will suddenly find it perfectly easy to raise a cheque. It's not hard. The only time it's actually hard is if they have no money - and if that's the case bail out. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Mon Mar 28 17:19:08 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Mon, 28 Mar 2005 17:19:08 -0600 Subject: [AccessD] Permissions to 'MSysTables' object - SOLVED Message-ID: Never mind. I gave the users "modify" permissions to the queries in question and that seems to have worked. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Don [ITS] Sent: Monday, March 28, 2005 11:12 AM To: AccessD Subject: [AccessD] Permissions to 'MSysTables' object Hello, All I have some code that sets the SQL property of a query's QueryDef. When I run the code as the system admin, all's well. If another user - without admin rights on the db - runs the code, they get the error: "3033 You do not have the necessary permissions to use the 'MSysTables' object. Have your system administrator or the person who created this object establish the appropriate permissions for you." I've searched the db window (yes, I made system objects visible) but I cannot see any such object in the db. I've searched the front end, the back end, and the related db workgroup file. I see MSysAccessObjects, MSysAccessXML, MSysACEs, MSysObjects, MSysQueries, and MSysRelationships, but no MSysTables. I'm using Access XP on Windows 2000. Maybe somebody can point me in the right direction here. Thanks! Don -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Mon Mar 28 19:14:27 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Tue, 29 Mar 2005 11:14:27 +1000 Subject: [AccessD] Re: Trouble with SQL statemnent on two different machines Message-ID: All references are OK, and are the same versions of libraries etc. on both, I have now put the database into a sagekey runtime and included self register of the dll's and it works fine on the users machine. I do not understand why. I guess I will keep this as a question to ponder and go on with the changes.Terribly frustrating though. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From pcs at azizaz.com Mon Mar 28 21:49:46 2005 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 29 Mar 2005 13:49:46 +1000 Subject: [AccessD] OT: Paste files to CD Drive retaining file properties References: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> <42483A2E.5020006@rogers.com> Message-ID: <107d01c53412$59d5b2c0$fa10a8c0@Albatross> A quick OT : Using Win XP Professional. Everytime I copy folders and files (using win explorer) from harddrive to CD the date and time of the folder and file properties change to today. How do I keep date and time of the copied items as per the source? Regards borge From vrm at tim-cms.com Tue Mar 29 04:05:19 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Tue, 29 Mar 2005 12:05:19 +0200 Subject: [AccessD] Resize troubles In-Reply-To: <2A261FF9D5EBCA46940C11688CE872EE03ABEA@goexchange2.pghcorning.com> Message-ID: <200503290505421.SM04068@ORSLAPTOP> Hi all, I have tried to get the resize possibilities to get to work in our a2k database. All forms are designed in 800x600. In the on form open event I put in: Set frmResize = ADHResize2K.CreateFormResize() Set frmResize.Form = Me Call frmResize.SetDesignCoords(800, 600, 96, 96) This is all conform the manual delivered with the ADH (with references and declarations). At this moment I do not have any time to go one with this and have to find out how to do this with popup forms. So I commented the code so it is not active. Then the stranges things happened. When I open a form which has orginaly had the resize code all buttons are jumping arround the forms and buttons from the previous form are also visible on the open form but do not work :-). When I resize the accesswindow just 1 mm the form redraws and shows good. I have already imported everything in a new database and tried the msaccess.exe /decompile Any suggestions??tips or other good working ways to get the resize forms work ok also with popupforms Kind Regards, Marcel From jimdettman at earthlink.net Tue Mar 29 05:57:26 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 29 Mar 2005 06:57:26 -0500 Subject: [AccessD] Trouble with SQL statement on two difefrent machines In-Reply-To: Message-ID: Connie, Is tblCAuthorityType and ODBC linked table? If so, then ODBC drivers come into play and you most likely have two different driver versions between the machines. If not, you've covered most everything else. Only other thing I can think of is that you might want to try using /decompile on the DB, then try again on the problem machines (make sure you do this on a backup copy). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Saturday, March 26, 2005 10:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Trouble with SQL statement on two difefrent machines Hi All, I am havinbg an issue with a function and could use some fresh eyes and knowledge. Both machines are running Access97 SR2. On my machine the function works fine, on the users machine it falls over. We are accessing the database from a central location. Function as follows: Private Function getstrNextAuthorityNumber() As String 'Automatically select the next availaible Authority Number for this type of Authority On Error GoTo Failure Dim dbNextAuthority As Database Dim rsNextAuthority As Recordset Dim intNextAuthorityNumber As Integer Dim strSelect As String strSelect = "SELECT tblCAuthorityType.AuthorityPrefix, Max(Right([AuthorityNumber],5)) AS [Number] " & _ "FROM tblCAuthorityType RIGHT JOIN tblDAuthority ON tblCAuthorityType.AuthorityTypeID = tblDAuthority.AuthorityType " & _ "GROUP BY tblCAuthorityType.AuthorityPrefix " & _ "HAVING (((tblCAuthorityType.AuthorityPrefix)=getgstrAuthorityPrefix()));" On Error Resume Next Set dbNextAuthority = CurrentDb() Set rsNextAuthority = dbNextAuthority.OpenRecordset(strSelect, dbOpenSnapshot, dbFailOnError) If rsNextAuthority.RecordCount < 1 Then 'No records - this will not actually be used. intNextAuthorityNumber = 1 'Initial Authority Number for each type Else intNextAuthorityNumber = rsNextAuthority!Number + 1 'Increment last Authority Number by 1 End If 'rsNextAuthorityNumber.RecordCount = 0 getstrNextAuthorityNumber = getgstrAuthorityPrefix() & Right("0000" & Trim(Str(intNextAuthorityNumber)), 5) ExitRoutine: On Error Resume Next rsNextAuthority.Close Set rsNextAuthority = Nothing dbNextAuthority.Close Set dbNextAuthority = Nothing Exit Function Failure: Call ErrorHandler(lngErrorNumber:=Err.Number, strErrorDescription:=Err.Description, strErrorSource:=Err.Source) Resume ExitRoutine End Function This fails at the bold line, on my machine it takes the SQL statement in strSelect and goes to the getgstrAuthorityPrefix() function as defined on the end, returning a value. On the users machine it goes straight to the next line and misses the call to getgstrAuthorityPrefix() altogether returning a Bliock Obejct variable not set. This is code written by my predecessor. All ideas appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kwilliam at ashlandnet.com Tue Mar 29 08:11:00 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Tue, 29 Mar 2005 09:11:00 -0500 Subject: [AccessD] Query Line Numbers In-Reply-To: <3bf43ee9050321082175e434ef@mail.gmail.com> Message-ID: <000e01c53469$23225470$64aba8c0@ashlandnet.com> This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 From Erwin.Craps at ithelps.be Tue Mar 29 08:28:02 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 29 Mar 2005 16:28:02 +0200 Subject: [AccessD] Query Line Numbers Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B596B@stekelbes.ithelps.local> Code below will do the tric You use this function in a query but mus give a field (any field) in the parameters to trick access. The function presumes that the query takes less then 10 seconds. When using from vba i'ts safer to first first use the reset parameter before using the function. It stores a static variable that is reset by the reset command or by a 10second timeout. Greetz Function HitCounter(varDummy As Variant, Optional blnReset As Boolean) As Long ' Comments : ' Parameters: pvarDummy ' pfBlnReset - ' Returns : Long - ' Modified : ' ' -------------------------------------------------- 'TVCodeTools ErrorEnablerStart On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Static lngHitCounter As Long Static dteLastRun As Date If blnReset = True Then lngHitCounter = 0 Exit Function End If If DateDiff("s", dteLastRun, Now()) > 10 Then lngHitCounter = 0 End If lngHitCounter = lngHitCounter + 1 HitCounter = lngHitCounter dteLastRun = Now() 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Function PROC_ERR: Select Case Err Case Else MsgBox Err.Description Resume PROC_EXIT End Select 'TVCodeTools ErrorHandlerEnd End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, March 29, 2005 4:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query Line Numbers This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 29 08:38:21 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 29 Mar 2005 16:38:21 +0200 Subject: [AccessD] Query Line Numbers Message-ID: Hi Keith We use this/these functions for a similar task: Option Compare Database Option Explicit Public lngKeyCounter As Long Public Function NextKey_Get( _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set( _ Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function /gustav >>> kwilliam at ashlandnet.com 03/29 4:11 pm >>> This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 From kwilliam at ashlandnet.com Tue Mar 29 08:48:25 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Tue, 29 Mar 2005 09:48:25 -0500 Subject: [AccessD] Query Line Numbers In-Reply-To: Message-ID: <000f01c5346e$60ca6150$64aba8c0@ashlandnet.com> Thanks, guys. I'll give these a try!! :) Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 29, 2005 9:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Query Line Numbers Hi Keith We use this/these functions for a similar task: Option Compare Database Option Explicit Public lngKeyCounter As Long Public Function NextKey_Get( _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set( _ Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function /gustav >>> kwilliam at ashlandnet.com 03/29 4:11 pm >>> This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 29 09:11:37 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 29 Mar 2005 17:11:37 +0200 Subject: [AccessD] Query Line Numbers Message-ID: Hi Keith Also, if you should ever need to browse these row numbers: Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean) As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). Static col As New Collection On Error GoTo Err_RowCounter If booReset = True Then Set col = Nothing Else col.Add Str(col.Count + 1), strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> kwilliam at ashlandnet.com 03/29 4:48 pm >>> Thanks, guys. I'll give these a try!! From john at winhaven.net Tue Mar 29 10:03:24 2005 From: john at winhaven.net (John Bartow) Date: Tue, 29 Mar 2005 10:03:24 -0600 Subject: [AccessD] Webcast Message-ID: Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John From accessd at shaw.ca Tue Mar 29 10:50:07 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 29 Mar 2005 08:50:07 -0800 Subject: [AccessD] Webcast In-Reply-To: Message-ID: <0IE400CCSHFG59@l-daemon> Hi John: The webcast runs tomorrow. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 8:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Tue Mar 29 11:17:29 2005 From: pharold at proftesting.com (Perry Harold) Date: Tue, 29 Mar 2005 12:17:29 -0500 Subject: [AccessD] Webcast In-Reply-To: Message-ID: <000001c53483$2fb18390$192da8c0@D58BT131Perry> Yes - After I deleted the ad.doubleclick address it defaulted to before the real address. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 11:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Mar 29 11:27:32 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 29 Mar 2005 09:27:32 -0800 Subject: [AccessD] OT: Paste files to CD Drive retaining file properties References: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> <42483A2E.5020006@rogers.com> <107d01c53412$59d5b2c0$fa10a8c0@Albatross> Message-ID: <42499004.606@shaw.ca> If you use a burning App like Nero, there is an option to maintain the original file date timestamp. CD files only carry a Date Modified and a Date Created. I have never tried a Move Folder or file to a CD rather than a copy to see if retains the datestamp but then you are left with no original copy. Borge Hansen wrote: >A quick OT : > >Using Win XP Professional. >Everytime I copy folders and files (using win explorer) from harddrive to CD >the date and time of the folder and file properties change to today. > >How do I keep date and time of the copied items as per the source? > >Regards >borge > > > > -- Marty Connelly Victoria, B.C. Canada From john at winhaven.net Tue Mar 29 11:35:28 2005 From: john at winhaven.net (John Bartow) Date: Tue, 29 Mar 2005 11:35:28 -0600 Subject: [AccessD] Webcast In-Reply-To: <000001c53483$2fb18390$192da8c0@D58BT131Perry> Message-ID: Yes, unfortunately there is little in life that is really free :o( John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold Sent: Tuesday, March 29, 2005 11:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Webcast Yes - After I deleted the ad.doubleclick address it defaulted to before the real address. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 11:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 29 11:35:28 2005 From: john at winhaven.net (John Bartow) Date: Tue, 29 Mar 2005 11:35:28 -0600 Subject: [AccessD] Webcast In-Reply-To: <0IE400CCSHFG59@l-daemon> Message-ID: Doh! Its nice to get notified ahead of time but with a webcast? Thnaks for the heads up! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 29, 2005 10:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Webcast Hi John: The webcast runs tomorrow. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 8:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Mar 29 12:13:32 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 29 Mar 2005 13:13:32 -0500 Subject: [AccessD] OT: Paste files to CD Drive retaining file properti es Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2EC9@xlivmbx21.aig.com> With EasyCD Creator (I'm using ver. 5.3.5) the *default* behavior is to preserve the original file dates. To change the default go to the File menu and select CD Project Properties, in the resulting dialog box choose the File System tab, and there you will find a group of radio buttons controlling the file dates. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen > Sent: Monday, March 28, 2005 10:50 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Paste files to CD Drive retaining file > properties > > A quick OT : > > Using Win XP Professional. > Everytime I copy folders and files (using win explorer) from harddrive to > CD > the date and time of the folder and file properties change to today. > > How do I keep date and time of the copied items as per the source? > > Regards > borge > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Tue Mar 29 12:37:25 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 29 Mar 2005 13:37:25 -0500 Subject: [AccessD] Dynamic number of rows on a report Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1D1@mercury.tnco-inc.com> Hi All, I am creating a report that needs to dynamically repeat the detail section. The report will be an inspection plan that is included in our shop orders. The number of "rows" on the report would be dependent on the shop order quantity. I was thinking that one way to do this would be to dynamically create a table that has the correct number of rows in it so that the detail section of the report would repeat accordingly. The part that I'm stuck on is how to create this table. I guess I could calculate the number of rows needed and insert the rows into the table by looping through some code, but I was wondering if there is a more direct way, maybe using SQL, to do this? Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From GregSmith at starband.net Tue Mar 29 14:29:10 2005 From: GregSmith at starband.net (GregSmith at starband.net) Date: Tue, 29 Mar 2005 15:29:10 -0500 (EST) Subject: [AccessD] Webcast In-Reply-To: References: <000001c53483$2fb18390$192da8c0@D58BT131Perry> Message-ID: <43346.170.206.250.90.1112128150.squirrel@cetus.email.starband.net> Worked for me too. Even went there using my laptop over my cell phone! NOT going to watch it that way though...lol Greg > Yes, unfortunately there is little in life that is really free :o( > > > John B. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold > Sent: Tuesday, March 29, 2005 11:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Webcast > > Yes - After I deleted the ad.doubleclick address it defaulted to before > the real address. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Tuesday, March 29, 2005 11:03 AM > To: _DBA-Access > Subject: [AccessD] Webcast > > > Can anyone else get this to work? > > > > VBA and other developers will want to check out this week's upcoming > "What's new in Visual Studio 2005 Tools for the Microsoft Office System > for VB developers?" webcast. > > > http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft > > > > John > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 29 15:00:15 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 29 Mar 2005 13:00:15 -0800 Subject: [AccessD] Dynamic number of rows on a report Message-ID: You need to create a group on the shop orders. That will repeat the detail section appropriately for each order. Charlotte Foust -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, March 29, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dynamic number of rows on a report Hi All, I am creating a report that needs to dynamically repeat the detail section. The report will be an inspection plan that is included in our shop orders. The number of "rows" on the report would be dependent on the shop order quantity. I was thinking that one way to do this would be to dynamically create a table that has the correct number of rows in it so that the detail section of the report would repeat accordingly. The part that I'm stuck on is how to create this table. I guess I could calculate the number of rows needed and insert the rows into the table by looping through some code, but I was wondering if there is a more direct way, maybe using SQL, to do this? Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tom.bolton at donnslaw.co.uk Wed Mar 30 03:56:00 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 30 Mar 2005 10:56:00 +0100 Subject: [AccessD] FW: RE: A2k2 treeview scroll to selected node? Message-ID: <61F915314798D311A2F800A0C9C831880731CABE@dibble.observatory.donnslaw.co.uk> Hi All Just wondering if anyone had any ideas on this one? MTIA Tom -----Original Message----- Hi all Here's a good one... I have a treeview on a form that contains a node for each user; there are enough of these to force the treeview control into having a vertical scrollbar. When the app starts, the treeview defaults to the current user's node which sometimes is down at the bottom out of sight. Can I programatically get the control to scroll down a bit so the user can see their folder straight away even if it's down the bottom? MTIA and happy Easter! Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From viner at EUnet.yu Wed Mar 30 06:46:23 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 30 Mar 2005 14:46:23 +0200 Subject: [AccessD] Match the spouse Message-ID: <004801c53526$875c4e10$0100a8c0@RazvojErvin> Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin From roz.clarke at donnslaw.co.uk Wed Mar 30 06:58:31 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 30 Mar 2005 13:58:31 +0100 Subject: [AccessD] Match the spouse Message-ID: <61F915314798D311A2F800A0C9C8318807225778@dibble.observatory.donnslaw.co.uk> I can't think of any very elegant way of doing it :/ I think I would just add a SpouseID field to your workers table and link to the spouse's record. To avoid duplicating children you would then have to make sure to add the spouse first, then run a routine to identify whether the spouse record has child records, and if so, disable the ability to add children, instead offer to display them (with the spouse's record as parent so that new ones can be added there). -----Original Message----- From: Ervin Brindza [mailto:viner at eunet.yu] Sent: 30 March 2005 13:46 To: AccessD at databaseadvisors.com Subject: [AccessD] Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From JHewson at karta.com Wed Mar 30 07:12:15 2005 From: JHewson at karta.com (Jim Hewson) Date: Wed, 30 Mar 2005 07:12:15 -0600 Subject: [AccessD] Match the spouse Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068EE7@karta-exc-int.Karta.com> I think I would add a table. A M-M to the employees and kids tables. tblEmployees EmployeeID (PK) EmployeeID (FK) reference back to same table for Spouse Name of Employee tblEmployeeKids EmployeeID (FK) KidsID (FK) tblKids KidsID (PK) When looking at an employee's record, the spouse and kids are visible. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza Sent: Wednesday, March 30, 2005 6:46 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Wed Mar 30 07:20:50 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 30 Mar 2005 08:20:50 -0500 Subject: [AccessD] Replicated .mdb and SQL Server Message-ID: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". Thanks, Barb Ryan From jwcolby at colbyconsulting.com Wed Mar 30 07:28:12 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 30 Mar 2005 08:28:12 -0500 Subject: [AccessD] Match the spouse In-Reply-To: <004801c53526$875c4e10$0100a8c0@RazvojErvin> Message-ID: <002001c5352c$55ceb350$697aa8c0@ColbyM6805> This requires a many to many table Employeeid RelationID RelationshipTypeID John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Wednesday, March 30, 2005 7:46 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Mar 30 07:44:40 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 30 Mar 2005 08:44:40 -0500 Subject: [AccessD] Match the spouse In-Reply-To: <004801c53526$875c4e10$0100a8c0@RazvojErvin> Message-ID: <20050330134439.HWQA2051.imf18aec.mail.bellsouth.net@SUSANONE> So, the problem is which employee is the family anchor, right? Self join to the spouse pk. Lots of records will be empty of course, but the alternative would be a new table and I'm not sure that's really necessary. Susan H. Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Mar 30 08:03:22 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 30 Mar 2005 15:03:22 +0100 Subject: [AccessD] Match the spouse Message-ID: <20050330140319.904B4251125@smtp.nildram.co.uk> Assuming, that is, a monogamous workforce. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Match the spouse Date: 30/03/05 13:46 > > So, the problem is which employee is the family anchor, right? > > Self join to the spouse pk. Lots of records will be empty of course, but the > alternative would be a new table and I'm not sure that's really necessary. > > Susan H. > > Cross posted > Hi, > I have to modify the design of my human resources database (workers in the > factory) to add a feature to match the spouse if the spouse works here too. > And it would be great too to avoid duplicationg the kids records, which are > in separate table in one to many relation with the main table. > Are there any suggestions? > Many TIA, > Ervin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From barbara.march at surveyrisk.co.uk Wed Mar 30 08:51:08 2005 From: barbara.march at surveyrisk.co.uk (Barbara March) Date: Wed, 30 Mar 2005 15:51:08 +0100 Subject: [AccessD] Task Request: Message-ID: <002401c53537$ea351d30$0200a8c0@barbara> Status: Not Started Percent Complete: 0% Total Work: 0 hours Actual Work: 0 hours Owner: Accessd (E-mail) From barbara.march at surveyrisk.co.uk Wed Mar 30 08:51:42 2005 From: barbara.march at surveyrisk.co.uk (Barbara March) Date: Wed, 30 Mar 2005 15:51:42 +0100 Subject: [AccessD] Task Request: Message-ID: <002901c53537$fc786830$0200a8c0@barbara> Status: Not Started Percent Complete: 0% Total Work: 0 hours Actual Work: 0 hours Owner: Accessd (E-mail) From ssharkins at bellsouth.net Wed Mar 30 09:06:15 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 30 Mar 2005 10:06:15 -0500 Subject: [AccessD] Match the spouse In-Reply-To: <20050330140319.904B4251125@smtp.nildram.co.uk> Message-ID: <20050330150614.MZMU2549.imf25aec.mail.bellsouth.net@SUSANONE> Talk about your relational nightmare! AHAHAHAHAAHAHAHAHAHA Susan H. Assuming, that is, a monogamous workforce. From ldoering at symphonyinfo.com Wed Mar 30 09:15:12 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 30 Mar 2005 09:15:12 -0600 Subject: [AccessD] Match the spouse Message-ID: <855499653F55AD4190B242717DF132BC04F279@dewey.Symphony.local> For our social service applications (food shelves, family violence and the like), we use a household table which includes the address, and a person table including a FK to HouseholdID. This allows as many people as they like to live at the same address, without anyone having to ask any awkward questions. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 30, 2005 8:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Match the spouse Assuming, that is, a monogamous workforce. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Match the spouse Date: 30/03/05 13:46 > > So, the problem is which employee is the family anchor, right? > > Self join to the spouse pk. Lots of records will be empty of course, but the > alternative would be a new table and I'm not sure that's really necessary. > > Susan H. > > Cross posted > Hi, > I have to modify the design of my human resources database (workers in the > factory) to add a feature to match the spouse if the spouse works here too. > And it would be great too to avoid duplicationg the kids records, which are > in separate table in one to many relation with the main table. > Are there any suggestions? > Many TIA, > Ervin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Mar 30 09:22:21 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 30 Mar 2005 17:22:21 +0200 Subject: [AccessD] Weird stuff with off-line folders and database speed. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5970@stekelbes.ithelps.local> I have a weird thing gooing on over here (and it's not a virus). Since a couple of days I notice that most of my databases are pretty slow. When opening a form it builds the screen in 3 or 4 pieces. It seems to hang an instant on the combo boxes when it has to catch data. So I started to pin-point where the delay is caused. So I deactivated my virusscanner and it was instantly faster... I hear some "aha yes thats the virusscanner on MDB files" coming my way, but wait until I finished explaining. My McAfee (Enterprise V8.01i) scanner is configured to exclude MDB, MDE, MDB, MDW and LDB files, from the status window I can see that these files are not scanned (neither on my notebook nor server). But I do notice the scanner is scanning the file 00000001 in the Windows\CSC folder about 130 times while opening the form. I know that the CSC folder is the folder where the files from off-line folders reside. All pretty logical until now. Both my access front and back end reside on the server and are NOT in a folder that is not synchronised. Infact only some website (development) stuff is synchronised. So i ask myself, Why is windows opening that file 130 times when opening a form, while my database is not in a synchronised folder? The database folder is however located in the same share. for example My database is in \\SERVER\APPL\database and some folders are set off-line like this \\SERVER\APPL\folderx \\SERVER\APPL\foldery \\SERVER\APPL\folderz When i turn off off-line folders my speed is normal. So now I can exclude extension less files from virusscanning or maybe the whole CSC folder. That will limit the lost time while virusscanning but the file 00000001 will still be opened 130 time when opening a form. Maybe this will ring any bells with other people that experianced slow downs on opening forms. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From JOHNWARDBELL at aol.com Wed Mar 30 09:25:14 2005 From: JOHNWARDBELL at aol.com (JOHNWARDBELL at aol.com) Date: Wed, 30 Mar 2005 10:25:14 EST Subject: [AccessD] Dynamic number of rows on a report Message-ID: <140.41497ab4.2f7c1eda@aol.com> Hi Is using subreports too obvious or am I missing something. jwb From JRojas at tnco-inc.com Wed Mar 30 10:08:57 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 30 Mar 2005 11:08:57 -0500 Subject: [AccessD] Dynamic number of rows on a report Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1D7@mercury.tnco-inc.com> I think I may have been unclear in my description of my problem. The need to display a dynamic number of "rows" on my report is to provide space on the report for people to manually write in the information by hand. My table that holds the information for the measurements to be check for a particular part looks like this: PartNumber, Attribute, DeviceUsed So if there were only one attribute to check for a particular part number, the table would contain a row that looks like: 32-5500 ?.250 ? .005 DC Now the problem is, if the shop order is for part number 32-5500 and the order quantity is 50 then I would need to display 50 "lines" on the report for the operator to fill in their measurements. By "lines" I mean boxed in areas for provide a space on the report for the operator to write in. What I have now is an empty label with a solid border in the detail section of the report. I was trying to think of a way that would allow the number of "lines" that are printed on the report to be dynamic and dependent on the order quantity that is entered prior to printing the report. My original idea was to insert blank lines into a table prior to opening the report. The report will use this table so that the detail section will "repeat" for each blank line in the table. In essence, giving the correct number of lines need for that particular report. I was wondering if anyone had a better idea. Thanks, JR -----Original Message----- From: JOHNWARDBELL at aol.com [mailto:JOHNWARDBELL at aol.com] Sent: Wednesday, March 30, 2005 10:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dynamic number of rows on a report Hi Is using subreports too obvious or am I missing something. jwb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From stuart at lexacorp.com.pg Wed Mar 30 11:06:54 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 03:06:54 +1000 Subject: [AccessD] Dynamic number of rows on a report In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A1D7@mercury.tnco-inc.com> Message-ID: <424B694E.22338.267B03EC@stuart.lexacorp.com.pg> On 30 Mar 2005 at 11:08, Joe Rojas wrote: > I was trying to think of a way that would allow the number of "lines" that > are printed on the report to be dynamic and dependent on the order quantity > that is entered prior to printing the report. > You can do exactly that in the Format event Here's an example. Following is written on the fly and may need a bit of debugging: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) Dim loopcount As Long 'Following parameters are in twips (1/1440 inches) Dim lngLineEnd as Long 'Twips to end of line Dim lngMargin as Long 'Left margin of lines Dim lngStartY as Long ' height of Detail section before first line Dim lngSpacing as Long ' space between lines lngStartY = 1440 ' 1 inch lngLineEnd = 8640 ' 6 inch lngMargin = 1440 ' 1 inch lngSpacing = 360 ' 1/4 inch 'reset the length of the detail section Detail.Height = lngStartY + lngSpacing * OrderQty 'Draw the lines lngYCoord = lngStartY For loopcount = 1 To OrderQty lngYCoord = lngYCoord + lngSpacing Line (lngMargin, lngYCoord )-(lngLineEnd, lngYCoord ) Next End Sub -- Stuart From prodevmg at yahoo.com Wed Mar 30 11:20:46 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 30 Mar 2005 09:20:46 -0800 (PST) Subject: [AccessD] Query Line Numbers In-Reply-To: 6667 Message-ID: <20050330172046.59217.qmail@web20425.mail.yahoo.com> That's cool. I love it. How does putting a field into the function make it work? Just curious. Erwin Craps - IT Helps wrote:Code below will do the tric You use this function in a query but mus give a field (any field) in the parameters to trick access. The function presumes that the query takes less then 10 seconds. When using from vba i'ts safer to first first use the reset parameter before using the function. It stores a static variable that is reset by the reset command or by a 10second timeout. Greetz Function HitCounter(varDummy As Variant, Optional blnReset As Boolean) As Long ' Comments : ' Parameters: pvarDummy ' pfBlnReset - ' Returns : Long - ' Modified : ' ' -------------------------------------------------- 'TVCodeTools ErrorEnablerStart On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Static lngHitCounter As Long Static dteLastRun As Date If blnReset = True Then lngHitCounter = 0 Exit Function End If If DateDiff("s", dteLastRun, Now()) > 10 Then lngHitCounter = 0 End If lngHitCounter = lngHitCounter + 1 HitCounter = lngHitCounter dteLastRun = Now() 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Function PROC_ERR: Select Case Err Case Else MsgBox Err.Description Resume PROC_EXIT End Select 'TVCodeTools ErrorHandlerEnd End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, March 29, 2005 4:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query Line Numbers This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. From dmcafee at pacbell.net Wed Mar 30 11:24:15 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Wed, 30 Mar 2005 09:24:15 -0800 Subject: [AccessD] RE: Match the spouse In-Reply-To: <004501c53526$82c030b0$0100a8c0@RazvojErvin> Message-ID: I wouldn't worry about matching the spouses. In this day and age, you have ex-spouses, unmarried parents, same sex - unmarried parents and/or legal guardians (Aunt, Uncle, Grandparent...) Instead create a junction table for a many to many relationship. tblEmployee EmployeeID EmployeeName (more fields here) tblChildren ChildID ChildName (more fields here) tblEmpChildJunct EmpChildID (PK) EmployeeID (FK) ChildID (FK) By doing it this way, a quick query can always find one or more employees related to that child. HTH David McAfee -----Original Message----- From: Microsoft Access Database Discussion List [mailto:ACCESS-L at PEACH.EASE.LSOFT.COM]On Behalf Of Ervin Brindza Sent: Wednesday, March 30, 2005 4:40 AM To: ACCESS-L at PEACH.EASE.LSOFT.COM Subject: Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -------------------------------------------------------------------------- The ACCESS-L list is hosted on a Windows(R) 2000 Server running L-Soft international's LISTSERV(R) software. For subscription/signoff info and archives, see http://peach.ease.lsoft.com/archives/access-l.html . COPYRIGHT INFO: http://peach.ease.lsoft.com/scripts/wa.exe?SHOWTPL=COPYRIGHT&L=ACCESS-L From john at winhaven.net Wed Mar 30 11:56:37 2005 From: john at winhaven.net (John Bartow) Date: Wed, 30 Mar 2005 11:56:37 -0600 Subject: [AccessD] Webcast In-Reply-To: <43346.170.206.250.90.1112128150.squirrel@cetus.email.starband.net> Message-ID: It works for me now, I guess I must've responded too quickly to the email notice - not something I do very often! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 29, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Webcast Worked for me too. Even went there using my laptop over my cell phone! NOT going to watch it that way though...lol Greg > Yes, unfortunately there is little in life that is really free :o( > > > John B. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry > Harold > Sent: Tuesday, March 29, 2005 11:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Webcast > > Yes - After I deleted the ad.doubleclick address it defaulted to > before the real address. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Tuesday, March 29, 2005 11:03 AM > To: _DBA-Access > Subject: [AccessD] Webcast > > > Can anyone else get this to work? > > > > VBA and other developers will want to check out this week's upcoming > "What's new in Visual Studio 2005 Tools for the Microsoft Office > System for VB developers?" webcast. > > > t> > http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft > > > > John > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Wed Mar 30 12:43:48 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 30 Mar 2005 12:43:48 -0600 Subject: [AccessD] Dynamic number of rows on a report In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A1D7@mercury.tnco-inc.com> Message-ID: <007801c53558$69790460$2a3ca8c0@TEXASSYSTEMS.COM> Joe, >I think I may have been unclear in my description of my problem. >The need to display a dynamic number of "rows" on my report is to provide >space on the report for people to manually write in the information by hand. The Access RptSampl.mdb has a solution that might work for you. It involves the Report.NextRecord property. See Access KB 210350: ACC2000: How to Print a Constant Number of Lines Per Group http://support.microsoft.com/default.aspx?scid=kb;en-us;210350&Product=acc The code prints a constant number of lines, but you can easily modify it to print a variable number. -Ken From Lambert.Heenan at AIG.com Wed Mar 30 12:44:19 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 30 Mar 2005 13:44:19 -0500 Subject: [AccessD] Query Line Numbers Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2ED8@xlivmbx21.aig.com> If Access sees a function call in a query, and there is no query field involved as a parameter to the function, Access 'optimizes' things by calling the function just once when the query is run. When there is a field used as a parameter to the function Access assumes something is being done with the field in the function, and so calls the function once for every record returned by the query. HTH Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson > Sent: Wednesday, March 30, 2005 12:21 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Query Line Numbers > > That's cool. I love it. How does putting a field into the function make it > work? Just curious. > > Erwin Craps - IT Helps wrote:Code below will do > the tric > > You use this function in a query but mus give a field (any field) in the > parameters to trick access. > > The function presumes that the query takes less then 10 seconds. > When using from vba i'ts safer to first first use the reset parameter > before using the function. > It stores a static variable that is reset by the reset command or by a > 10second timeout. > > Greetz > > > > Function HitCounter(varDummy As Variant, Optional blnReset As Boolean) > As Long > ' Comments : > ' Parameters: pvarDummy > ' pfBlnReset - > ' Returns : Long - > ' Modified : > ' > ' -------------------------------------------------- > 'TVCodeTools ErrorEnablerStart > On Error GoTo PROC_ERR > 'TVCodeTools ErrorEnablerEnd > > Static lngHitCounter As Long > Static dteLastRun As Date > > > If blnReset = True Then > lngHitCounter = 0 > Exit Function > End If > > If DateDiff("s", dteLastRun, Now()) > 10 Then > lngHitCounter = 0 > End If > > lngHitCounter = lngHitCounter + 1 > HitCounter = lngHitCounter > dteLastRun = Now() > > > 'TVCodeTools ErrorHandlerStart > PROC_EXIT: > Exit Function > > PROC_ERR: > Select Case Err > Case Else > MsgBox Err.Description > Resume PROC_EXIT > End Select > 'TVCodeTools ErrorHandlerEnd > > End Function > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Tuesday, March 29, 2005 4:11 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Query Line Numbers > > This may be an extremely simple thing...and I am just being stupid, > but.....is there a way (within a query) to setup an expression that > numbers the lines? I can do this simply enough in a report.....but > can't think of a way to do this in a query. The reason is I am doing a > routine that transfers text to a deliminated text file. This needs to > be based on a table or query. I am trying to base this on a query, but > need a line number. I can't figure out how to do this within the query. > > Thanks for any help. > > Regards, > > Keith E. Williamson > Ashland Equipment, Inc > phone # (410) 273-1856 > fax # (410) 273-1859 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Take Yahoo! Mail with you! Get it on your mobile phone. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JHewson at karta.com Wed Mar 30 13:16:58 2005 From: JHewson at karta.com (Jim Hewson) Date: Wed, 30 Mar 2005 13:16:58 -0600 Subject: [AccessD] Access Seminars Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068EF0@karta-exc-int.Karta.com> Does anyone know of any Access Seminar/conference being conducted this summer? I know there is one in Las Vegas in June, sponsored by ADVISOR. It's a five day conference titled "Technical Education on Microsoft Software" with four areas of focus: (1) Access/VB/SQL, (2) .Net, (3) SharePoint, and (4) Visual FoxPro. Any others? Thanks, Jim From JRojas at tnco-inc.com Wed Mar 30 13:29:00 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 30 Mar 2005 14:29:00 -0500 Subject: [AccessD] Dynamic number of rows on a report Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1DB@mercury.tnco-inc.com> Ah, this will do it! Thanks Ken! -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, March 30, 2005 1:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Dynamic number of rows on a report Joe, >I think I may have been unclear in my description of my problem. >The need to display a dynamic number of "rows" on my report is to provide >space on the report for people to manually write in the information by hand. The Access RptSampl.mdb has a solution that might work for you. It involves the Report.NextRecord property. See Access KB 210350: ACC2000: How to Print a Constant Number of Lines Per Group http://support.microsoft.com/default.aspx?scid=kb;en-us;210350&Product=acc The code prints a constant number of lines, but you can easily modify it to print a variable number. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From fhtapia at gmail.com Wed Mar 30 15:23:30 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 30 Mar 2005 13:23:30 -0800 Subject: [AccessD] Webcast In-Reply-To: References: <43346.170.206.250.90.1112128150.squirrel@cetus.email.starband.net> Message-ID: i run firefox w/ the adblock filter list, I had to disable the filter to get it to naviagate to the correct location. On Wed, 30 Mar 2005 11:56:37 -0600, John Bartow wrote: > It works for me now, I guess I must've responded too quickly to the email > notice - not something I do very often! > > > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > GregSmith at starband.net > Sent: Tuesday, March 29, 2005 2:29 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Webcast > > Worked for me too. Even went there using my laptop over my cell phone! > NOT going to watch it that way though...lol > > Greg > > > Yes, unfortunately there is little in life that is really free :o( > > > > > > John B. > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry > > Harold > > Sent: Tuesday, March 29, 2005 11:17 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Webcast > > > > Yes - After I deleted the ad.doubleclick address it defaulted to > > before the real address. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > > Sent: Tuesday, March 29, 2005 11:03 AM > > To: _DBA-Access > > Subject: [AccessD] Webcast > > > > > > Can anyone else get this to work? > > > > > > > > VBA and other developers will want to check out this week's upcoming > > "What's new in Visual Studio 2005 Tools for the Microsoft Office > > System for VB developers?" webcast. > > > > > > > t> > > http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft > > > > > > > > John > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From Mike_Webb at whoopingcrane.org Wed Mar 30 15:31:20 2005 From: Mike_Webb at whoopingcrane.org (Mike Webb) Date: Wed, 30 Mar 2005 15:31:20 -0600 Subject: [AccessD] Problem with hyperlinks from a table or form Message-ID: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: ====================== Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? ====================================================== Michael J. Webb Administrative Assistant/IT Administrator Platte River Whooping Crane Maintenance Trust, Inc. 6611 W. Whooping Crane Dr. Wood River, NE 68883 Office (308) 384-4633 FAX (308) 384-7209 email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org ====================================================== From garykjos at gmail.com Wed Mar 30 16:01:03 2005 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 30 Mar 2005 16:01:03 -0600 Subject: [AccessD] Problem with hyperlinks from a table or form In-Reply-To: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> References: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Message-ID: Hi Mike, Welcome to AccessD! If you try to link to these newly located on the server files does that work? Instead of changing an existing link? Gary Kjos On Wed, 30 Mar 2005 15:31:20 -0600, Mike Webb wrote: > Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: > ====================== > Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice > > I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder > accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. > > I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. > > I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? > > ====================================================== > Michael J. Webb > Administrative Assistant/IT Administrator > Platte River Whooping Crane Maintenance Trust, Inc. > 6611 W. Whooping Crane Dr. > Wood River, NE 68883 > Office (308) 384-4633 FAX (308) 384-7209 > email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org > ====================================================== > > -- > 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 garykjos at gmail.com Wed Mar 30 16:01:03 2005 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 30 Mar 2005 16:01:03 -0600 Subject: [AccessD] Problem with hyperlinks from a table or form In-Reply-To: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> References: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Message-ID: Hi Mike, Welcome to AccessD! If you try to link to these newly located on the server files does that work? Instead of changing an existing link? Gary Kjos On Wed, 30 Mar 2005 15:31:20 -0600, Mike Webb wrote: > Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: > ====================== > Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice > > I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder > accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. > > I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. > > I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? > > ====================================================== > Michael J. Webb > Administrative Assistant/IT Administrator > Platte River Whooping Crane Maintenance Trust, Inc. > 6611 W. Whooping Crane Dr. > Wood River, NE 68883 > Office (308) 384-4633 FAX (308) 384-7209 > email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org > ====================================================== > > -- > 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 martyconnelly at shaw.ca Wed Mar 30 16:10:00 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 30 Mar 2005 14:10:00 -0800 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> Message-ID: <424B23B8.6080706@shaw.ca> I don't know if the Access to SQL upgrade wizard handles replicated databases but here is an unreplicator just in case http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 Do you plan on running replicated SQL server or updating via the internet and SQL Server? Barbara Ryan wrote: >I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. > >The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". > >Thanks, >Barb Ryan > > -- Marty Connelly Victoria, B.C. Canada From BarbaraRyan at cox.net Wed Mar 30 16:21:17 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 30 Mar 2005 17:21:17 -0500 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> <424B23B8.6080706@shaw.ca> Message-ID: <015201c53576$cac2bc20$0a00a8c0@cx470148a> Regarding "Do you plan on running replicated SQL server or updating via the internet and SQL Server?" ---- I don't know! I know very little about SQL Server. I am open to any suggestions on how I can handle this situation (i.e., the Access application (front end) is linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the sole backend database for another Access application that is used by salesmen on their laptops. The front end contains some queries that currently join tables from both Backend "A" AND Backend "B".) Could the salesmen use an Access backend and somehow synchronize it with a SQL Server database? Thanks, Barb Ryan ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 30, 2005 5:10 PM Subject: Re: [AccessD] Replicated .mdb and SQL Server > I don't know if the Access to SQL upgrade wizard handles replicated > databases but here is an unreplicator just in case > http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 > Do you plan on running replicated SQL server or updating via the > internet and SQL Server? > > Barbara Ryan wrote: > > >I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. > > > >The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". > > > >Thanks, > >Barb Ryan > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From greggs at msn.com Wed Mar 30 18:07:18 2005 From: greggs at msn.com (Gregg) Date: Wed, 30 Mar 2005 18:07:18 -0600 Subject: [AccessD] Find Label text attached to Text Box References: Message-ID: If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? From stuart at lexacorp.com.pg Wed Mar 30 18:16:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 10:16:17 +1000 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: Message-ID: <424BCDF1.5709.28041F9B@stuart.lexacorp.com.pg> On 30 Mar 2005 at 18:07, Gregg wrote: > If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? > -- Simplest way is to use a standard naming convention for controls such as always name the label the same as the textbox, but with a different prefix. so txtMyFirstTextBox would have a label called lblMyFirstTextBox. Then the label's name will always be "lbl" & mid$(me.name,4). Otherwise you have to step through the controls collection of the form and check all the labels, looking for the one who's "parent" property is txtMyFirstTextBox -- Stuart From dwaters at usinternet.com Wed Mar 30 18:30:53 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 30 Mar 2005 18:30:53 -0600 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: <2738556.1112227739744.JavaMail.root@sniper15> Message-ID: <000001c53588$e6c742d0$123a11d8@danwaters> Gregg, This is an example you can start with. Private Sub LabelExample() On Error GoTo EH Dim stgTextComboBoxName As String Dim stgLabelName As String Dim stgLabelCaption As String Dim ctl As Control For Each ctl In Me.Controls stgTextComboBoxName = ctl.Name If ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox Then stgLabelCaption = ctl.Controls(0).Caption stgLabelName = ctl.Controls(0).Name MsgBox "The Text or ComboBox name is: " & stgTextComboBoxName _ & vbCrLf & vbCrLf _ & "The Label name is: " & stgLabelName _ & vbCrLf & vbCrLf _ & "The Label caption is: " & stgLabelCaption End If Next Exit Sub EH: End Sub Dan Waters ProMation Systems, Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gregg Sent: Wednesday, March 30, 2005 6:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Find Label text attached to Text Box If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Wed Mar 30 18:35:06 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Wed, 30 Mar 2005 16:35:06 -0800 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: <424BCDF1.5709.28041F9B@stuart.lexacorp.com.pg> Message-ID: wouldn't me.name return the form or reports name? I think you meant to type Me.ActiveControl.Name David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Wednesday, March 30, 2005 4:16 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Find Label text attached to Text Box On 30 Mar 2005 at 18:07, Gregg wrote: > If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? > -- Simplest way is to use a standard naming convention for controls such as always name the label the same as the textbox, but with a different prefix. so txtMyFirstTextBox would have a label called lblMyFirstTextBox. Then the label's name will always be "lbl" & mid$(me.name,4). Otherwise you have to step through the controls collection of the form and check all the labels, looking for the one who's "parent" property is txtMyFirstTextBox -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mike at welshfam.org Wed Mar 30 19:21:12 2005 From: mike at welshfam.org (Michael S. Welsh) Date: Wed, 30 Mar 2005 20:21:12 -0500 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: Message-ID: <200503310121.j2V1L6i27655@databaseadvisors.com> Gregg, You might try: txtTextBox.controls.item(0).caption Not sure what version this started in (I think Access 2000), but has workedin AccessXP and 2003. Mike -----Original Message----- Sent: Wednesday, March 30, 2005 7:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Find Label text attached to Text Box If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? From martyconnelly at shaw.ca Wed Mar 30 20:02:32 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 30 Mar 2005 18:02:32 -0800 Subject: [AccessD] Problem with hyperlinks from a table or form References: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Message-ID: <424B5A38.2030003@shaw.ca> I don't know which way you are doing this. But if I use any variation of this with a PDF file on a standalone PC, I get the empty ADOBE 7.0 reader window open for a blink. Now this happens with 97 and 2003 on WinXP home but I can't check if this happens with the full version of Adobe. However this Access method application.followhyperlink method works okay with file associations like jpeg or word .doc Application.FollowHyperlink "C:\temp2\viewFormatWMMticket.pdf", , True Application.FollowHyperlink "File:///C:\temp2\viewFormatWMMticket.pdf", , True However this works for me Private Declare Function ShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" (ByVal hWnd As Long, _ ByVal lOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Sub testit() ShellExecute 0, "open", "C:\temp2\viewFormatWMMticket.pdf", vbNullString, vbNullString, vbNormalFocus End Sub Mike Webb wrote: >Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: >====================== >Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice > >I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder >accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. > >I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. > >I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? > > >====================================================== >Michael J. Webb >Administrative Assistant/IT Administrator >Platte River Whooping Crane Maintenance Trust, Inc. >6611 W. Whooping Crane Dr. >Wood River, NE 68883 >Office (308) 384-4633 FAX (308) 384-7209 >email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org >====================================================== > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Wed Mar 30 20:30:07 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 30 Mar 2005 21:30:07 -0500 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: Message-ID: <005c01c53599$8dfbb940$697aa8c0@ColbyM6805> The form's control collection allows you to find the control using the name as follows: Me.controls("CtlName") where "CtlName" is the name of your control. This syntax only works from within the form's module. The text box's control collection has a single control in it which is the label. Thus MyTxtBox.Controls(0) will return the label for MyTxtBox. Remember that a label can be deleted thus a text box MAY not have a label, make sure you use On Error Resume Next to handle such issues. Thus something like: Dim txt as TextBox Dim lbl as Label Set txt = me.Controls("CtlName") On error resume next Set lbl = txt.Controls(0) A shortcut to directly reference the text box control, and then its label would be: me.controls("CltName").Controls(0) Alternately you could use: Forms("FrmName").Controls("CtlName").Controls(0) This version assumes the form is loaded and will work from anywhere, not just from the form's module. Be careful though if you try to apply this syntax to other controls. Some controls can have more than one control in its control collection (option groups for example), and while the label is generally control(0), it MAY not be, in particular if the label was deleted, then added back in again. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gregg Sent: Wednesday, March 30, 2005 7:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Find Label text attached to Text Box If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 00:25:33 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 01:25:33 -0500 Subject: [AccessD] May need an Unbound form Message-ID: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From stuart at lexacorp.com.pg Thu Mar 31 00:48:52 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 16:48:52 +1000 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: <424C29F4.3999.296B7A0D@stuart.lexacorp.com.pg> On 31 Mar 2005 at 1:25, John W. Colby wrote: > > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can accept > data. > If all the "Allows" are false, why do you think you should be able to add or edit data? > I tried AllowEdits true and Editmode false, no help. Which is equivalenty to "allow edits" but "don't do any editing" The form is not > locked, the controls are not locked. The form was opened originally from a > form which was passing in a filter if that means anything. I was going to > grab the existing record data and then unbind the form but I am now just > looking at a plain Jane new data entry form. > If the form is unbound, just allow everything - no one's going to be damaging any data. -- Stuart From accessd at shaw.ca Thu Mar 31 01:25:34 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 30 Mar 2005 23:25:34 -0800 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: <0IE700506GMILY@l-daemon> Hi John: It looks like your AllowEdits False AllowDeletes False AllowAdds False EditMode True ...settings are biting you? Maybe: AllowEdits True AllowDeletes False AllowAdds True EditMode True ...would work. Barring that it is unbound forms for you. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Thu Mar 31 02:33:04 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Thu, 31 Mar 2005 10:33:04 +0200 Subject: [AccessD] Match the spouse References: <9C382E065F54AE48BC3AA7925DCBB01C02068EE7@karta-exc-int.Karta.com> Message-ID: <008901c535cc$8e6177c0$0100a8c0@RazvojErvin> Many thanks for all the replies! Ervin ----- Original Message ----- From: "Jim Hewson" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 30, 2005 3:12 PM Subject: RE: [AccessD] Match the spouse > I think I would add a table. > A M-M to the employees and kids tables. > > tblEmployees > EmployeeID (PK) > EmployeeID (FK) reference back to same table for Spouse > Name of Employee > > tblEmployeeKids > EmployeeID (FK) > KidsID (FK) > > tblKids > KidsID (PK) > > When looking at an employee's record, the spouse and kids are visible. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza > Sent: Wednesday, March 30, 2005 6:46 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Match the spouse > > > Cross posted > Hi, > I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. > Are there any suggestions? > Many TIA, > Ervin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 fsmail.net Thu Mar 31 04:09:38 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Mar 2005 12:09:38 +0200 (CEST) Subject: [AccessD] Check To See If Employee Has 19 hour Window Between jobs Message-ID: <2205094.1112263778221.JavaMail.www@wwinf3001> To all, I have an availability table for an employee which some of the fields are PayrollNo, JobDate, StartTime, JobNo. When assigning a person to a job I need to get the availability record for the previous day and day after to make sure that the employee has a 19 hour window between jobs. So basically what I need to do is say someone is assigned to a job on 31/03/2005 with a start time of 21:00 I need to get the records for the 30/03/2005 and 01/04/2005 and check that the difference is greater than or equal to 19 hours. Anyone any ideas on how to do this easily, sorry if I have confused anyone I'm not very good at explaining myself at times. Thanks in advance for any help on this... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From marcus at tsstech.com Thu Mar 31 06:08:12 2005 From: marcus at tsstech.com (Scott Marcus) Date: Thu, 31 Mar 2005 07:08:12 -0500 Subject: [AccessD] Check To See If Employee Has 19 hour Window Between jobs Message-ID: Try... abs(DateDiff("h", firstdatetime, seconddatetime)) <= 19 Scott Marcus -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, March 31, 2005 5:10 AM To: accessd Subject: [AccessD] Check To See If Employee Has 19 hour Window Between jobs To all, I have an availability table for an employee which some of the fields are PayrollNo, JobDate, StartTime, JobNo. When assigning a person to a job I need to get the availability record for the previous day and day after to make sure that the employee has a 19 hour window between jobs. So basically what I need to do is say someone is assigned to a job on 31/03/2005 with a start time of 21:00 I need to get the records for the 30/03/2005 and 01/04/2005 and check that the difference is greater than or equal to 19 hours. Anyone any ideas on how to do this easily, sorry if I have confused anyone I'm not very good at explaining myself at times. Thanks in advance for any help on this... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 06:19:30 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 07:19:30 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <0IE700506GMILY@l-daemon> Message-ID: <000b01c535eb$e3fb96b0$697aa8c0@ColbyM6805> In fact I am attempting to do an unbound form. I am going to go with a brand new form instead of converting a bound form to unbound. It was rather late last night when I was doing this. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, March 31, 2005 2:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Hi John: It looks like your AllowEdits False AllowDeletes False AllowAdds False EditMode True ...settings are biting you? Maybe: AllowEdits True AllowDeletes False AllowAdds True EditMode True ...would work. Barring that it is unbound forms for you. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 07:23:15 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 08:23:15 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <0IE700506GMILY@l-daemon> Message-ID: <000c01c535f4$cbbb0190$697aa8c0@ColbyM6805> In fact what I am trying to find out is hwy the locking issue occurs and how to get a bound form to cooperate. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, March 31, 2005 2:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Hi John: It looks like your AllowEdits False AllowDeletes False AllowAdds False EditMode True ...settings are biting you? Maybe: AllowEdits True AllowDeletes False AllowAdds True EditMode True ...would work. Barring that it is unbound forms for you. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Mar 31 07:34:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 23:34:17 +1000 Subject: [AccessD] May need an Unbound form In-Reply-To: <000c01c535f4$cbbb0190$697aa8c0@ColbyM6805> References: <0IE700506GMILY@l-daemon> Message-ID: <424C88F9.6227.2ADEA5C4@stuart.lexacorp.com.pg> On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs and how > to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart From jwcolby at colbyconsulting.com Thu Mar 31 07:49:41 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 08:49:41 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <424C88F9.6227.2ADEA5C4@stuart.lexacorp.com.pg> Message-ID: <000d01c535f8$7fe8ec60$697aa8c0@ColbyM6805> Stewart, I am quite aware that testing with an unbound form will not help discover why I am having locking issues. Unfortunately I cannot reproduce the error in my office, it is quite reproducible in the client's office 300 miles away, I have been there, I have done everything I can figure out to do to solve the locking issue (which should not even be happening as far as I can tell) and just posted the circumstances to see if anyone HERE had seen this or had any input on the locking issue. I am NOT attempting to test the locking issue by doing an unbound form. Given the inability to solve a locking issue that shouldn't be happening I am moving on to try to use an unbound form to take the new record data entry and store the data. I now have an unbound form accepting all the data so the ONLY point of this entire thread is to see if anyone has ever seen this locking issue using BOUND forms where many people are in a very small table at once, entering new records all day long. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 31, 2005 8:34 AM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] May need an Unbound form On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs > and how to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Mar 31 08:09:09 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 31 Mar 2005 09:09:09 -0500 Subject: [AccessD] May need an Unbound form Message-ID: Is it an sql backend? It will lock if you have bit fields; I convert to ints. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 31, 2005 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Stewart, I am quite aware that testing with an unbound form will not help discover why I am having locking issues. Unfortunately I cannot reproduce the error in my office, it is quite reproducible in the client's office 300 miles away, I have been there, I have done everything I can figure out to do to solve the locking issue (which should not even be happening as far as I can tell) and just posted the circumstances to see if anyone HERE had seen this or had any input on the locking issue. I am NOT attempting to test the locking issue by doing an unbound form. Given the inability to solve a locking issue that shouldn't be happening I am moving on to try to use an unbound form to take the new record data entry and store the data. I now have an unbound form accepting all the data so the ONLY point of this entire thread is to see if anyone has ever seen this locking issue using BOUND forms where many people are in a very small table at once, entering new records all day long. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 31, 2005 8:34 AM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] May need an Unbound form On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs > and how to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 31 08:14:54 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 06:14:54 -0800 Subject: [AccessD] Access Report to PowerPoint Message-ID: <003501c535fc$0368aeb0$6401a8c0@HAL9004> Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From tom.bolton at donnslaw.co.uk Thu Mar 31 08:16:42 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 31 Mar 2005 15:16:42 +0100 Subject: [AccessD] RE: A2k2 listboxes Message-ID: <61F915314798D311A2F800A0C9C831880731CACC@dibble.observatory.donnslaw.co.uk> Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? MTIA Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From jwcolby at colbyconsulting.com Thu Mar 31 08:41:17 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 09:41:17 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <001701c535ff$b2455cf0$697aa8c0@ColbyM6805> Nope, jet/mdb. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, March 31, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form Is it an sql backend? It will lock if you have bit fields; I convert to ints. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 31, 2005 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Stewart, I am quite aware that testing with an unbound form will not help discover why I am having locking issues. Unfortunately I cannot reproduce the error in my office, it is quite reproducible in the client's office 300 miles away, I have been there, I have done everything I can figure out to do to solve the locking issue (which should not even be happening as far as I can tell) and just posted the circumstances to see if anyone HERE had seen this or had any input on the locking issue. I am NOT attempting to test the locking issue by doing an unbound form. Given the inability to solve a locking issue that shouldn't be happening I am moving on to try to use an unbound form to take the new record data entry and store the data. I now have an unbound form accepting all the data so the ONLY point of this entire thread is to see if anyone has ever seen this locking issue using BOUND forms where many people are in a very small table at once, entering new records all day long. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 31, 2005 8:34 AM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] May need an Unbound form On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs > and how to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 31 08:45:15 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 08:45:15 -0600 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> References: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: Sounds like the record level locking option is not on so it's doing page level locking. Did you say if you checked that on their system? On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. These > people call therapists trying to fill employment contracts. They may make > changes to the person info (address changes etc. but mostly they just enter > new contact records which consist of a simple date and employee (prefilled), > call status (left message, not interested etc,) and a memo field. All night > long just mostly entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of all > indexes, but they were still getting locks. An employee will start an edit > (select a status, then fill in the memo etc.) but they may hold the record > in the edit state for a minute or two. If any other employee tries to start > a new edit they get a lock, WITHOUT the lock symbol in the record selector. > It is reproducible, it always happens and it SUCKS. These people are not > editing each others records, they are always building NEW records, but they > are getting these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update of > any control), the record is saved. That causes the new records to save > immediately as well as the edits during the course of business to save ASAP. > This helps but they are still seeing the locks occasionally, however now > they are seeing the lock symbol in the record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair etc. I > am just not finding the problem. As far as I know this shouldn't be > happening, but it is. Has anyone seen this behavior? Solutions? > > This leads me to consider (for the first time in my career) using an unbound > form for collecting the new data record so that the save just does a single > write of the entire record, one time, as the contact record is finished and > ready to store. Needless to say this is not my forte and I the form is not > allowing new data to be entered. The form itself is unbound, all the > controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can accept > data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally from a > form which was passing in a filter if that means anything. I was going to > grab the existing record data and then unbind the form but I am now just > looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 garykjos at gmail.com Thu Mar 31 08:54:58 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 08:54:58 -0600 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> References: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: Hi John, Check this out for some ideas. It's regarding a pre-sr1a issue with A2K so it probably doesn't apply to you, but perhaps there is some idea triggers in it? http://support.microsoft.com/kb/238258 Gary On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. These > people call therapists trying to fill employment contracts. They may make > changes to the person info (address changes etc. but mostly they just enter > new contact records which consist of a simple date and employee (prefilled), > call status (left message, not interested etc,) and a memo field. All night > long just mostly entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of all > indexes, but they were still getting locks. An employee will start an edit > (select a status, then fill in the memo etc.) but they may hold the record > in the edit state for a minute or two. If any other employee tries to start > a new edit they get a lock, WITHOUT the lock symbol in the record selector. > It is reproducible, it always happens and it SUCKS. These people are not > editing each others records, they are always building NEW records, but they > are getting these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update of > any control), the record is saved. That causes the new records to save > immediately as well as the edits during the course of business to save ASAP. > This helps but they are still seeing the locks occasionally, however now > they are seeing the lock symbol in the record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair etc. I > am just not finding the problem. As far as I know this shouldn't be > happening, but it is. Has anyone seen this behavior? Solutions? > > This leads me to consider (for the first time in my career) using an unbound > form for collecting the new data record so that the save just does a single > write of the entire record, one time, as the contact record is finished and > ready to store. Needless to say this is not my forte and I the form is not > allowing new data to be entered. The form itself is unbound, all the > controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can accept > data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally from a > form which was passing in a filter if that means anything. I was going to > grab the existing record data and then unbind the form but I am now just > looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 prodevmg at yahoo.com Thu Mar 31 09:06:17 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 31 Mar 2005 07:06:17 -0800 (PST) Subject: [AccessD] Access Report to PowerPoint In-Reply-To: 6667 Message-ID: <20050331150617.33005.qmail@web20427.mail.yahoo.com> There is no export or transfer feature from Access to Powerpoint. Most documentation I have seen involved cutting and pasting. Rocky Smolin - Beach Access Software wrote:Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! From Gustav at cactus.dk Thu Mar 31 09:09:46 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 31 Mar 2005 17:09:46 +0200 Subject: [AccessD] May need an Unbound form Message-ID: Hi John If you apply record level locking, monitor carefully for a while the backend file for bloat. I've heard of someone not doing this, and the backend went from a hundred or so MB to two GB in some days after heavy use. Also, why not copy the record to edit to a local temp base (you know how to create these on the fly), then copy it back when finished editing. Then you can stay off the unbound nightmare ... /gustav From ssharkins at bellsouth.net Thu Mar 31 09:11:32 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 31 Mar 2005 10:11:32 -0500 Subject: [AccessD] RE: A2k2 listboxes In-Reply-To: <61F915314798D311A2F800A0C9C831880731CACC@dibble.observatory.donnslaw.co.uk> Message-ID: <20050331151128.VJUR2394.imf20aec.mail.bellsouth.net@SUSANONE> You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? MTIA Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 From tom.bolton at donnslaw.co.uk Thu Mar 31 09:23:46 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 31 Mar 2005 16:23:46 +0100 Subject: [AccessD] RE: A2k2 listboxes Message-ID: <61F915314798D311A2F800A0C9C831880731CACE@dibble.observatory.donnslaw.co.uk> Hi Susan Thanks for the reply, that's kinda what I was thinking. Do you know the syntax for getting the value of a column from a listbox for a given index? Maybe I need to keep off the Subway sandwiches but I really can't seem to find it! MTIA (again!) Tom -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 31 March 2005 16:12 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: A2k2 listboxes You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? MTIA Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From jwcolby at colbyconsulting.com Thu Mar 31 09:21:59 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 10:21:59 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <001801c53605$6213ac40$697aa8c0@ColbyM6805> Yes, I specifically checked all the workstations and they are set to record level locking. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 31, 2005 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] May need an Unbound form Sounds like the record level locking option is not on so it's doing page level locking. Did you say if you checked that on their system? On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as > office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. > These people call therapists trying to fill employment contracts. > They may make changes to the person info (address changes etc. but > mostly they just enter new contact records which consist of a simple > date and employee (prefilled), call status (left message, not > interested etc,) and a memo field. All night long just mostly > entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of > all indexes, but they were still getting locks. An employee will > start an edit (select a status, then fill in the memo etc.) but they > may hold the record in the edit state for a minute or two. If any > other employee tries to start a new edit they get a lock, WITHOUT the > lock symbol in the record selector. It is reproducible, it always > happens and it SUCKS. These people are not editing each others > records, they are always building NEW records, but they are getting > these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update > of any control), the record is saved. That causes the new records to > save immediately as well as the edits during the course of business to > save ASAP. This helps but they are still seeing the locks > occasionally, however now they are seeing the lock symbol in the > record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair > etc. I am just not finding the problem. As far as I know this > shouldn't be happening, but it is. Has anyone seen this behavior? > Solutions? > > This leads me to consider (for the first time in my career) using an > unbound form for collecting the new data record so that the save just > does a single write of the entire record, one time, as the contact > record is finished and ready to store. Needless to say this is not my > forte and I the form is not allowing new data to be entered. The form > itself is unbound, all the controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can > accept data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally > from a form which was passing in a filter if that means anything. I > was going to grab the existing record data and then unbind the form > but I am now just looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Mar 31 09:32:04 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 31 Mar 2005 17:32:04 +0200 Subject: [AccessD] Access Report to PowerPoint Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B597A@stekelbes.ithelps.local> You could take a screen capture and save it as a JPG and insert into powerpoint. Or you could collect data with an SQL string from powerpoint and format some data into the slide. Maybe, you can export the report to html files from access and import those htmls into Powerpoint. But your layout will be changed. Tell us a bit more what the purpose of the powerpoint will be. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Thursday, March 31, 2005 5:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint There is no export or transfer feature from Access to Powerpoint. Most documentation I have seen involved cutting and pasting. Rocky Smolin - Beach Access Software wrote:Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike_Webb at whoopingcrane.org Thu Mar 31 09:35:58 2005 From: Mike_Webb at whoopingcrane.org (Mike Webb) Date: Thu, 31 Mar 2005 09:35:58 -0600 Subject: [AccessD] RE: Re: Problem with hyperlinks from a table or form (Gary Kjos) Message-ID: Good idea, I hadn't thought of trying a fresh link rather than editing the existing link. I'll give it a try and report back. Mike Webb From cyx5 at cdc.gov Thu Mar 31 09:35:58 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 31 Mar 2005 10:35:58 -0500 Subject: [AccessD] May need an Unbound form Message-ID: Are any of the users opening up more than one session of the same database on their PC? Do you have it so they can not open the same database on the same desktop? I had users doing that and it hosed things up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 31, 2005 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Yes, I specifically checked all the workstations and they are set to record level locking. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 31, 2005 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] May need an Unbound form Sounds like the record level locking option is not on so it's doing page level locking. Did you say if you checked that on their system? On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as > office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. > These people call therapists trying to fill employment contracts. > They may make changes to the person info (address changes etc. but > mostly they just enter new contact records which consist of a simple > date and employee (prefilled), call status (left message, not > interested etc,) and a memo field. All night long just mostly > entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of > all indexes, but they were still getting locks. An employee will > start an edit (select a status, then fill in the memo etc.) but they > may hold the record in the edit state for a minute or two. If any > other employee tries to start a new edit they get a lock, WITHOUT the > lock symbol in the record selector. It is reproducible, it always > happens and it SUCKS. These people are not editing each others > records, they are always building NEW records, but they are getting > these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update > of any control), the record is saved. That causes the new records to > save immediately as well as the edits during the course of business to > save ASAP. This helps but they are still seeing the locks > occasionally, however now they are seeing the lock symbol in the > record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair > etc. I am just not finding the problem. As far as I know this > shouldn't be happening, but it is. Has anyone seen this behavior? > Solutions? > > This leads me to consider (for the first time in my career) using an > unbound form for collecting the new data record so that the save just > does a single write of the entire record, one time, as the contact > record is finished and ready to store. Needless to say this is not my > forte and I the form is not allowing new data to be entered. The form > itself is unbound, all the controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can > accept data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally > from a form which was passing in a filter if that means anything. I > was going to grab the existing record data and then unbind the form > but I am now just looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 31 09:39:14 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 31 Mar 2005 17:39:14 +0200 Subject: [AccessD] RE: A2k2 listboxes Message-ID: Hi Tom That is: lstListbox.Column(1, lngRow) /gustav >>> tom.bolton at donnslaw.co.uk 03/31 5:23 pm >>> Hi Susan Thanks for the reply, that's kinda what I was thinking. Do you know the syntax for getting the value of a column from a listbox for a given index? Maybe I need to keep off the Subway sandwiches but I really can't seem to find it! MTIA (again!) Tom -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 31 March 2005 16:12 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: A2k2 listboxes You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? From bchacc at san.rr.com Thu Mar 31 09:51:22 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 07:51:22 -0800 Subject: [AccessD] Access Report to PowerPoint References: <46B976F2B698FF46A4FE7636509B22DF1B597A@stekelbes.ithelps.local> Message-ID: <00e001c53609$7cb3a240$6401a8c0@HAL9004> Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tom.bolton at donnslaw.co.uk Thu Mar 31 10:01:27 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 31 Mar 2005 17:01:27 +0100 Subject: [AccessD] RE: A2k2 listboxes Message-ID: <61F915314798D311A2F800A0C9C831880731CAD5@dibble.observatory.donnslaw.co.uk> That's the very thing I was looking for, many thanks Gustav and Susan! -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: 31 March 2005 16:39 To: accessd at databaseadvisors.com Subject: RE: [AccessD] RE: A2k2 listboxes Hi Tom That is: lstListbox.Column(1, lngRow) /gustav >>> tom.bolton at donnslaw.co.uk 03/31 5:23 pm >>> Hi Susan Thanks for the reply, that's kinda what I was thinking. Do you know the syntax for getting the value of a column from a listbox for a given index? Maybe I need to keep off the Subway sandwiches but I really can't seem to find it! MTIA (again!) Tom -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 31 March 2005 16:12 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: A2k2 listboxes You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From jim.moss at jlmoss.net Thu Mar 31 09:58:41 2005 From: jim.moss at jlmoss.net (jim.moss at jlmoss.net) Date: Thu, 31 Mar 2005 09:58:41 -0600 (CST) Subject: [AccessD] Access Report to PowerPoint In-Reply-To: <003501c535fc$0368aeb0$6401a8c0@HAL9004> References: <003501c535fc$0368aeb0$6401a8c0@HAL9004> Message-ID: <18524.65.196.182.34.1112284721.squirrel@65.196.182.34> Rocky, Here's a link to an example Access to Powerpoint automation .mdb http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/OfficeAccess2PowerPoint.asp Jim > Dear List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cyx5 at cdc.gov Thu Mar 31 10:08:15 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 31 Mar 2005 11:08:15 -0500 Subject: [AccessD] Access Report to PowerPoint Message-ID: I have not tested it, but check out this link: http://www.access-programmers.co.uk/forums/showthread.php?t=83231 There is a sample database to export the report to PowerPoint. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 31 10:24:42 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 08:24:42 -0800 Subject: [AccessD] Access Report to PowerPoint References: <003501c535fc$0368aeb0$6401a8c0@HAL9004> <18524.65.196.182.34.1112284721.squirrel@65.196.182.34> Message-ID: <017801c5360e$24e5a900$6401a8c0@HAL9004> Jim: Thanks for that link. I forwarded it to the user. Looks like it would take some number of hours for me to do this so they probably don't want to buy that solution. But I told the user that maybe someone in house could do it for her. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:58 AM Subject: Re: [AccessD] Access Report to PowerPoint > Rocky, > > Here's a link to an example Access to Powerpoint automation .mdb > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/OfficeAccess2PowerPoint.asp > > Jim > > >> Dear List: >> >> Is there an easy way to export an Access report directly to PowerPoint? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Mar 31 10:28:16 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 31 Mar 2005 18:28:16 +0200 Subject: [AccessD] Access Report to PowerPoint Message-ID: Hi Rocky Couldn't you print to the Microsoft Office Document Image Writer or another "printer" that saves the print as an image file? Like Print to Picture 1.02: http://www.softlinks.ru/files/f6767.php /gustav >>> bchacc at san.rr.com 03/31 5:51 pm >>> Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? From bchacc at san.rr.com Thu Mar 31 10:36:02 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 08:36:02 -0800 Subject: [AccessD] Access Report to PowerPoint References: Message-ID: <018d01c5360f$ba140250$6401a8c0@HAL9004> Looks very promising. Thanks. Rocky ----- Original Message ----- From: "Nicholson, Karen" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 8:08 AM Subject: RE: [AccessD] Access Report to PowerPoint >I have not tested it, but check out this link: > > http://www.access-programmers.co.uk/forums/showthread.php?t=83231 > > There is a sample database to export the report to PowerPoint. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 31, 2005 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > > Erwin: > > It's a request from a user who is using my E-Z-MRP system (over in > Malaysia, > actually). > > Here's the actual request: > > Our management would like to view the MRP Report in Microsoft power > point > format. What I've done here is, I will print scrn the MRP Report one by > one > and paste into Microsoft power point format. This is very time > consuming. > Thus, I would like to check with you that, could we export the MRP > Report > directly to Power Point format instead of print Scrn it one by one? > > TIA or any ideas, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 31, 2005 7:32 AM > Subject: RE: [AccessD] Access Report to PowerPoint > > >> You could take a screen capture and save it as a JPG and insert into >> powerpoint. >> >> Or you could collect data with an SQL string from powerpoint and > format >> some data into the slide. >> >> Maybe, you can export the report to html files from access and import >> those htmls into Powerpoint. But your layout will be changed. >> >> Tell us a bit more what the purpose of the powerpoint will be. >> >> Erwin >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie >> Johnson >> Sent: Thursday, March 31, 2005 5:06 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access Report to PowerPoint >> >> There is no export or transfer feature from Access to Powerpoint. Most >> documentation I have seen involved cutting and pasting. >> >> Rocky Smolin - Beach Access Software wrote:Dear >> List: >> >> Is there an easy way to export an Access report directly to > PowerPoint? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> May God bless you beyond your imagination! >> Lonnie Johnson >> ProDev, Professional Development of MS Access Databases Visit me at > ==> >> http://www.prodev.us >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------- >> Do you Yahoo!? >> Yahoo! Small Business - Try our new resources site! >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Thu Mar 31 10:37:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 08:37:43 -0800 Subject: [AccessD] Access Report to PowerPoint References: Message-ID: <019201c5360f$f6b9d3b0$6401a8c0@HAL9004> Gustav: I think she's looking for a one-step solution. Right now she's doing the 'cut and paste' thing. But I've used print to picture - captured all of the reports in E-Z-MRP for the reports appendix in the manual - and it might be a good halfway solution. Regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, March 31, 2005 8:28 AM Subject: Re: [AccessD] Access Report to PowerPoint > Hi Rocky > > Couldn't you print to the Microsoft Office Document Image Writer or > another "printer" that saves the print as an image file? > Like Print to Picture 1.02: > > http://www.softlinks.ru/files/f6767.php > > /gustav > >>>> bchacc at san.rr.com 03/31 5:51 pm >>> > Erwin: > > It's a request from a user who is using my E-Z-MRP system (over in > Malaysia, > actually). > > Here's the actual request: > > Our management would like to view the MRP Report in Microsoft power > point > format. What I've done here is, I will print scrn the MRP Report one by > one > and paste into Microsoft power point format. This is very time > consuming. > Thus, I would like to check with you that, could we export the MRP > Report > directly to Power Point format instead of print Scrn it one by one? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Mar 31 10:40:01 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 11:40:01 -0500 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: <002c01c53610$48e326f0$697aa8c0@ColbyM6805> Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From Dave.Bucher at state.mn.us Thu Mar 31 10:48:09 2005 From: Dave.Bucher at state.mn.us (Bucher, Dave) Date: Thu, 31 Mar 2005 10:48:09 -0600 Subject: [AccessD] RE: A2k2 listboxes Message-ID: ListBoxName.Column(0) references first field ... ListBoxName.Column(1) references second field ListBoxName.Selected(0) = True ...selects first item in a listbox Dim strItems as string Dim intItem as Integer For intItem = 0 to ListBoxName.ListCount - 1 If ListBoxName.Selected(intItem) then 'Do something End If Next intItem ... lets you move/test and perform operation operations on items in list Dave Bucher Information Technology Specialist Children's Research, Planning and Evaluation Caution: This e-mail and attached documents, if any, may contain information that is protected by state or federal law. E-mail containing private or protected information should not be sent over a public (nonsecure) Internet unless it is encrypted pursuant to DHS standards. This e-mail should be forwarded only on a strictly need-to-know basis. If you are not the intended recipient, please: (1) notify the sender immediately, (2) do not forward the message, (3) do not print the message and (4) erase the message from your system. From john at winhaven.net Thu Mar 31 10:48:04 2005 From: john at winhaven.net (John Bartow) Date: Thu, 31 Mar 2005 10:48:04 -0600 Subject: [AccessD] Access Report to PowerPoint In-Reply-To: <003501c535fc$0368aeb0$6401a8c0@HAL9004> Message-ID: Rocky, Using Automation/VBA you could do this. I wrote my first set of PP VBA modules this year. To use PP VBA you pretty much just have to figure out a few new objects and their properties. Someone on the Tech list pointed this site out to me and it was a good place to start. http://skp.mvps.org/links.htm I would suggest as a starting point that you develop, find, obtain code which will save the Access report in a standard rtf or graphic format. Then using automation/VBA compile the captured images into a PP presentation. Although I would first suggest to the customer with the PDF/acrobat reader scenario. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 8:15 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Access Report to PowerPoint Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 10:50:31 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 08:50:31 -0800 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: Have you tried physically removing the key? If you're entrusting it to a 4-year-old, then a little more damage won't make any difference. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 8:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 10:57:10 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 08:57:10 -0800 Subject: [AccessD] May need an Unbound form Message-ID: John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From normkara at wans.net Thu Mar 31 10:59:42 2005 From: normkara at wans.net (Norm) Date: Thu, 31 Mar 2005 11:59:42 -0500 Subject: [AccessD] OT: disabling keys on the keyboard References: Message-ID: <000801c53613$0c2d2190$0200a8c0@NORMLAPTOP> I had a similar situation when I gave my 4 year old grandson his first PC, I used little dots (stickers) on the keys - with different colors. Red, do not touch, Green OK to touch.. Norm -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 8:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. From garykjos at gmail.com Thu Mar 31 10:59:58 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 10:59:58 -0600 Subject: [AccessD] OT: disabling keys on the keyboard In-Reply-To: <002c01c53610$48e326f0$697aa8c0@ColbyM6805> References: <002c01c53610$48e326f0$697aa8c0@ColbyM6805> Message-ID: http://johnhaller.com/jh/useful_stuff/disable_windows_key/ On Mar 31, 2005 10:40 AM, John W. Colby wrote: > Is there any way (utility) to disable keys such as the windows key and the > function keys on the keyboard. I have an old laptop I want to give to my 4 > year old son to play his games and stuff. However he plays with the keys > and as you know the Windows key (for one) causes a menu to pop up > interrupting his play and requiring me to go rescue him. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 Jim.Hale at FleetPride.com Thu Mar 31 11:02:38 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 31 Mar 2005 11:02:38 -0600 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723374C2@corp-es01.fleetpride.com> Maybe you could map the key to open a little Access invoice that he could fill in for practice. Its never too early to get started. This would be great training as a jr member of the Future Consultants of America. Does he have a billing rate yet and can he say "unbound forms cost extra?" :-) Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 10:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Thu Mar 31 11:06:10 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Mar 2005 09:06:10 -0800 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> <424B23B8.6080706@shaw.ca> <015201c53576$cac2bc20$0a00a8c0@cx470148a> Message-ID: <424C2E02.5060008@shaw.ca> Here is a starting point on SQL Server Replication, http://www.informit.com/articles/article.asp?p=169612&seqNum=3 You are going to have to decide whether you can get by with Merge replication and MSDE or buy multiple SQL licenses to handle full transactional replication. I am not sure if SQL 2005 Express (the latest Beta incarnation of MSDE) handles transactional replication. You will have to look at the requirements for the salesman, do they need access to real time data and or will they have almost constant internet connections via wireless like a blackberry or cell phone connections. with this you might get away with running multiple Access FE's to a single remote SQL server. Connection coverage areas than enter the picture, if you have salesmen going out to places like Moose Pasture Saskatchewan, this may present problems. So you may want a pushed merged copy of the latest data on a MSDE to use when no connection is present. Then there maybe a question of using VPN for connection security. There is a whole series of articles on SQL replication here. http://www.databasejournal.com/features/mssql/ search on sql replication You realize that even some experienced SQL DBA's feel unsure of themselves getting into replication. So you may want to go with the simple Access FE to a remote SQL Server. Barbara Ryan wrote: >Regarding "Do you plan on running replicated SQL server or updating via the >internet and SQL Server?" > >---- I don't know! I know very little about SQL Server. I am open to any >suggestions on how I can handle this situation (i.e., the Access >application (front end) is linked to 2 separate back end .mdbs. Backend "A" >contains the majority of the data tables for the application; Backend "B" is >a replicable database that is also used as the sole backend database for >another Access application that is used by salesmen on their laptops. The >front end contains some queries that currently join tables from both Backend >"A" AND Backend "B".) > >Could the salesmen use an Access backend and somehow synchronize it with a >SQL Server database? > >Thanks, >Barb Ryan > > > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Wednesday, March 30, 2005 5:10 PM >Subject: Re: [AccessD] Replicated .mdb and SQL Server > > > > >>I don't know if the Access to SQL upgrade wizard handles replicated >>databases but here is an unreplicator just in case >>http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 >>Do you plan on running replicated SQL server or updating via the >>internet and SQL Server? >> >>Barbara Ryan wrote: >> >> >> >>>I currently have an Access application, split into a front end linked to >>> >>> >2 separate back end .mdbs. Backend "A" contains the majority of the data >tables for the application; Backend "B" is a replicable database that is >also used as the backend database for another Access application that is >used by salesmen on their laptops. > > >>>The client is considering migrating the data for this application to SQL >>> >>> >Server. Any ideas on how to handle this? The front end contains some >queries that currently join tables from both Backend "A" AND Backend "B". > > >>>Thanks, >>>Barb Ryan >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > > -- Marty Connelly Victoria, B.C. Canada From john at winhaven.net Thu Mar 31 11:13:27 2005 From: john at winhaven.net (John Bartow) Date: Thu, 31 Mar 2005 11:13:27 -0600 Subject: [AccessD] Access Report to PowerPoint In-Reply-To: Message-ID: Rocky, Here you go! Great find Karen! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, March 31, 2005 10:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access Report to PowerPoint I have not tested it, but check out this link: http://www.access-programmers.co.uk/forums/showthread.php?t=83231 There is a sample database to export the report to PowerPoint. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 11:14:40 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 12:14:40 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <003301c53615$1f9eef90$697aa8c0@ColbyM6805> Charlotte, Nope, this is a bound subform, uses the LinkChild / Master properties to "filter" the subform records, the subform just uses SELECT * from tblXXXX as the query etc. This is a clean implementation of a bound form, nothing fancy needed or used. The lock is occurring in the child form / table, the communications subform. The users literally open the main form, filtered to a small subset of people (in a set of zip codes) and just start at the first person, making phone calls. If they don't get an answer or just leave a message on an answering machine, then they create a new comms record and select from a "status" and move on. If they actually talk to the person, they select a status and then may fill in a memo re the conversation. Really nothing fancy here, a very simple child table with about 5 fields including the PEID foreign key, and a couple of other FKs for employee making the call, contract being called about and status, plus the memo. These are ALL new comm records, no editing a record someone else might be in etc. Why is there a lock at all? The FE is set up for Record locking. The memo field is actually just a text(255) field, not even a real memo. I removed ALL indexes (including the relationship between people and comms) on the theory that this might be a lock on the index pages. I finally added code to save the record In AfterUpdate of each and every control so that as they tabbed out of each control the record was saved (to release any locks) and this does help... But there are still locks happening. Bizarre. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 11:15:25 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 12:15:25 -0500 Subject: [AccessD] OT: disabling keys on the keyboard In-Reply-To: <000801c53613$0c2d2190$0200a8c0@NORMLAPTOP> Message-ID: <003401c53615$3a630c30$697aa8c0@ColbyM6805> I like that. Of course knowing MY son... The RED will be the FIRST keys touched. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Norm Sent: Thursday, March 31, 2005 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: disabling keys on the keyboard I had a similar situation when I gave my 4 year old grandson his first PC, I used little dots (stickers) on the keys - with different colors. Red, do not touch, Green OK to touch.. Norm -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 8:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Thu Mar 31 11:16:20 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Thu, 31 Mar 2005 12:16:20 -0500 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a><424B23B8.6080706@shaw.ca> <015201c53576$cac2bc20$0a00a8c0@cx470148a> <424C2E02.5060008@shaw.ca> Message-ID: <00f501c53615$5b8b5c00$0a00a8c0@cx470148a> Marty.... Thank you SO much for all the information. I felt so lost! I will take a look at it and discuss it with my client. BTW --- Is there really a "Moose Pasture Saskatchewan"? Barb Ryan ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 12:06 PM Subject: Re: [AccessD] Replicated .mdb and SQL Server > Here is a starting point on SQL Server Replication, > http://www.informit.com/articles/article.asp?p=169612&seqNum=3 > You are going to have to decide whether you can get by with Merge > replication and MSDE > or buy multiple SQL licenses to handle full transactional replication. I > am not sure if SQL 2005 Express > (the latest Beta incarnation of MSDE) handles transactional replication. > You will have to look at the requirements for the salesman, do they need > access to real time data > and or will they have almost constant internet connections via wireless > like a blackberry or cell phone connections. > with this you might get away with running multiple Access FE's to a > single remote SQL server. Connection coverage areas > than enter the picture, if you have salesmen going out to places like > Moose Pasture Saskatchewan, this may present problems. > So you may want a pushed merged copy of the latest data on a MSDE to > use when no connection is present. > Then there maybe a question of using VPN for connection security. > There is a whole series of articles on SQL replication here. > http://www.databasejournal.com/features/mssql/ > search on sql replication > You realize that even some experienced SQL DBA's feel unsure of > themselves getting into replication. > So you may want to go with the simple Access FE to a remote SQL Server. > Barbara Ryan wrote: > > >Regarding "Do you plan on running replicated SQL server or updating via the > >internet and SQL Server?" > > > >---- I don't know! I know very little about SQL Server. I am open to any > >suggestions on how I can handle this situation (i.e., the Access > >application (front end) is linked to 2 separate back end .mdbs. Backend "A" > >contains the majority of the data tables for the application; Backend "B" is > >a replicable database that is also used as the sole backend database for > >another Access application that is used by salesmen on their laptops. The > >front end contains some queries that currently join tables from both Backend > >"A" AND Backend "B".) > > > >Could the salesmen use an Access backend and somehow synchronize it with a > >SQL Server database? > > > >Thanks, > >Barb Ryan > > > > > > > >----- Original Message ----- > >From: "MartyConnelly" > >To: "Access Developers discussion and problem solving" > > > >Sent: Wednesday, March 30, 2005 5:10 PM > >Subject: Re: [AccessD] Replicated .mdb and SQL Server > > > > > > > > > >>I don't know if the Access to SQL upgrade wizard handles replicated > >>databases but here is an unreplicator just in case > >>http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 > >>Do you plan on running replicated SQL server or updating via the > >>internet and SQL Server? > >> > >>Barbara Ryan wrote: > >> > >> > >> > >>>I currently have an Access application, split into a front end linked to > >>> > >>> > >2 separate back end .mdbs. Backend "A" contains the majority of the data > >tables for the application; Backend "B" is a replicable database that is > >also used as the backend database for another Access application that is > >used by salesmen on their laptops. > > > > > >>>The client is considering migrating the data for this application to SQL > >>> > >>> > >Server. Any ideas on how to handle this? The front end contains some > >queries that currently join tables from both Backend "A" AND Backend "B". > > > > > >>>Thanks, > >>>Barb Ryan > >>> > >>> > >>> > >>> > >>-- > >>Marty Connelly > >>Victoria, B.C. > >>Canada > >> > >> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 11:19:58 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 12:19:58 -0500 Subject: [AccessD] OT: disabling keys on the keyboard In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723374C2@corp-es01.fleetpride.com> Message-ID: <003501c53615$e14ed420$697aa8c0@ColbyM6805> ROTFLMAO!!! One of his videos had something about "working"... So he was walking around the house with a little plastic shovel stuffed in his belt and talking on a telephone (a REAL telephone not connected to anything - he wasn't interest in a toy phone) holding a pretend conversation you would swear was with a real person. I called him to come to dinner and he replied in THAT voice... "I'm on the phone with a CLIENT". John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, March 31, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: disabling keys on the keyboard Maybe you could map the key to open a little Access invoice that he could fill in for practice. Its never too early to get started. This would be great training as a jr member of the Future Consultants of America. Does he have a billing rate yet and can he say "unbound forms cost extra?" :-) Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 10:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mwhittinghill at symphonyinfo.com Thu Mar 31 11:34:55 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 11:34:55 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F2D8@dewey.Symphony.local> Hi all, We are building an ASP.NET website for a client. This client has several registration forms which they want to put on the site as editable PDFs. The idea is: from the web page, the registrant selects a registration form. The site then brings up the editable PDF which the registrant fills out. The PDF is then submitted to the client. How do I do this? Thanks, Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From jim.moss at jlmoss.net Thu Mar 31 11:49:45 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 31 Mar 2005 11:49:45 -0600 (CST) Subject: [AccessD] OT: editable PDFs on website In-Reply-To: <855499653F55AD4190B242717DF132BC04F2D8@dewey.Symphony.local> References: <855499653F55AD4190B242717DF132BC04F2D8@dewey.Symphony.local> Message-ID: <24087.65.196.182.34.1112291385.squirrel@65.196.182.34> Mark, Why not just create pdf forms that the user can fill out? Entered data can then be exported as XML and used by your client. If you or your client don't own Acrobat writer, try something like CutePDF. Jim > Hi all, > > We are building an ASP.NET website for a client. This client has > several registration forms which they want to put on the site as > editable PDFs. The idea is: from the web page, the registrant selects a > registration form. The site then brings up the editable PDF which the > registrant fills out. The PDF is then submitted to the client. How do > I do this? Thanks, > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwhittinghill at symphonyinfo.com Thu Mar 31 12:26:56 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 12:26:56 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F2DB@dewey.Symphony.local> OK, how do I do that? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, March 31, 2005 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: editable PDFs on website Mark, Why not just create pdf forms that the user can fill out? Entered data can then be exported as XML and used by your client. If you or your client don't own Acrobat writer, try something like CutePDF. Jim > Hi all, > > We are building an ASP.NET website for a client. This client has > several registration forms which they want to put on the site as > editable PDFs. The idea is: from the web page, the registrant selects > a registration form. The site then brings up the editable PDF which > the registrant fills out. The PDF is then submitted to the client. > How do I do this? Thanks, > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 12:30:37 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 10:30:37 -0800 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: Omigawd, a miniature JC! LOL Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 9:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: disabling keys on the keyboard ROTFLMAO!!! One of his videos had something about "working"... So he was walking around the house with a little plastic shovel stuffed in his belt and talking on a telephone (a REAL telephone not connected to anything - he wasn't interest in a toy phone) holding a pretend conversation you would swear was with a real person. I called him to come to dinner and he replied in THAT voice... "I'm on the phone with a CLIENT". John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, March 31, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: disabling keys on the keyboard Maybe you could map the key to open a little Access invoice that he could fill in for practice. Its never too early to get started. This would be great training as a jr member of the Future Consultants of America. Does he have a billing rate yet and can he say "unbound forms cost extra?" :-) Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 10:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 12:54:49 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 10:54:49 -0800 Subject: [AccessD] May need an Unbound form Message-ID: I vaguely remember something about recordlocking switching to page locking under specific circumstances, but I'll be darned if I can remember any details. Did it have something to do with a server backend?? Problems with extended pagelocking due to NOS "intelligent" caching?? Transactions?? Darn!! The memory loss that comes with old age is biting me today. Are you using DAO to open the recordset? I believe it ignores the settings unless you specify them in the lockedits argument of the OpenRecordset. Also, it ignores recordlocking if you open the database from a shortcut. And optimistic locking (NoLocks) overrides record-level locking, so could that be the problem? The only other thing I could think of would be if you were creating your own custom ID for each of these records rather than using an autonumber. BTW, what version of Access are you dealing with? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 9:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Charlotte, Nope, this is a bound subform, uses the LinkChild / Master properties to "filter" the subform records, the subform just uses SELECT * from tblXXXX as the query etc. This is a clean implementation of a bound form, nothing fancy needed or used. The lock is occurring in the child form / table, the communications subform. The users literally open the main form, filtered to a small subset of people (in a set of zip codes) and just start at the first person, making phone calls. If they don't get an answer or just leave a message on an answering machine, then they create a new comms record and select from a "status" and move on. If they actually talk to the person, they select a status and then may fill in a memo re the conversation. Really nothing fancy here, a very simple child table with about 5 fields including the PEID foreign key, and a couple of other FKs for employee making the call, contract being called about and status, plus the memo. These are ALL new comm records, no editing a record someone else might be in etc. Why is there a lock at all? The FE is set up for Record locking. The memo field is actually just a text(255) field, not even a real memo. I removed ALL indexes (including the relationship between people and comms) on the theory that this might be a lock on the index pages. I finally added code to save the record In AfterUpdate of each and every control so that as they tabbed out of each control the record was saved (to release any locks) and this does help... But there are still locks happening. Bizarre. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike_Webb at whoopingcrane.org Thu Mar 31 13:07:58 2005 From: Mike_Webb at whoopingcrane.org (Mike Webb) Date: Thu, 31 Mar 2005 13:07:58 -0600 Subject: [AccessD] Re: Problem with hyperlinks from a table or form In-Reply-To: <200503311636.j2VGaHi04736@databaseadvisors.com> Message-ID: Tried doing a fresh link and got no where. First, I tried the normal method of selecting a file to be the hyperlink. I just got the hourglass for several minutes, checked TaskMan and found Access to be "not responding". My guess is the attempted "pull" of over 4K PDF files to select from was too much. I then tried typing in the URL path to the file. All I got when testing it is a quick "blink" of the monitor. Mike -------------------------------------------- Message: 15 Date: Thu, 31 Mar 2005 09:35:58 -0600 From: "Mike Webb" Subject: [AccessD] RE: Re: Problem with hyperlinks from a table or form (Gary Kjos) To: Message-ID: Content-Type: text/plain; charset="us-ascii" Good idea, I hadn't thought of trying a fresh link rather than editing the existing link. I'll give it a try and report back. Mike Webb ---------------------------------------- Original message Message: 6 Date: Wed, 30 Mar 2005 15:31:20 -0600 From: "Mike Webb" Subject: [AccessD] Problem with hyperlinks from a table or form To: Message-ID: <5F98E4A038296E40A3F2B78A68A04A4301CCCB at wct.whooper.local> Content-Type: text/plain; charset="iso-8859-1" Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: ====================== Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? ====================================================== Michael J. Webb Administrative Assistant/IT Administrator Platte River Whooping Crane Maintenance Trust, Inc. 6611 W. Whooping Crane Dr. Wood River, NE 68883 Office (308) 384-4633 FAX (308) 384-7209 email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org ====================================================== From jwcolby at colbyconsulting.com Thu Mar 31 13:09:54 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 14:09:54 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <003701c53625$38b45780$697aa8c0@ColbyM6805> WinXP, OfficeXP. All SPs applied. This is a simple bound subform, no recordset objects or the like. We are going to try optimistic locking to see if the issues go away. Given how simple this db is and how they all just sit in this one form entering new records all night, it seems that any locking is probably not needed. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 1:55 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form I vaguely remember something about recordlocking switching to page locking under specific circumstances, but I'll be darned if I can remember any details. Did it have something to do with a server backend?? Problems with extended pagelocking due to NOS "intelligent" caching?? Transactions?? Darn!! The memory loss that comes with old age is biting me today. Are you using DAO to open the recordset? I believe it ignores the settings unless you specify them in the lockedits argument of the OpenRecordset. Also, it ignores recordlocking if you open the database from a shortcut. And optimistic locking (NoLocks) overrides record-level locking, so could that be the problem? The only other thing I could think of would be if you were creating your own custom ID for each of these records rather than using an autonumber. BTW, what version of Access are you dealing with? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 9:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Charlotte, Nope, this is a bound subform, uses the LinkChild / Master properties to "filter" the subform records, the subform just uses SELECT * from tblXXXX as the query etc. This is a clean implementation of a bound form, nothing fancy needed or used. The lock is occurring in the child form / table, the communications subform. The users literally open the main form, filtered to a small subset of people (in a set of zip codes) and just start at the first person, making phone calls. If they don't get an answer or just leave a message on an answering machine, then they create a new comms record and select from a "status" and move on. If they actually talk to the person, they select a status and then may fill in a memo re the conversation. Really nothing fancy here, a very simple child table with about 5 fields including the PEID foreign key, and a couple of other FKs for employee making the call, contract being called about and status, plus the memo. These are ALL new comm records, no editing a record someone else might be in etc. Why is there a lock at all? The FE is set up for Record locking. The memo field is actually just a text(255) field, not even a real memo. I removed ALL indexes (including the relationship between people and comms) on the theory that this might be a lock on the index pages. I finally added code to save the record In AfterUpdate of each and every control so that as they tabbed out of each control the record was saved (to release any locks) and this does help... But there are still locks happening. Bizarre. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Mar 31 13:12:52 2005 From: dw-murphy at cox.net (dw-murphy at cox.net) Date: Thu, 31 Mar 2005 14:12:52 -0500 Subject: [AccessD] Access Report to PowerPoint Message-ID: <20050331191252.UNAO7956.fed1rmmtao05.cox.net@smtp.west.cox.net> Rocky, You might want to see if you can embed the snap shot reader control into powerpoint. There is some material in the knowledge base at MS on embeding snap shots. Doug > > From: Lonnie Johnson > Date: 2005/03/31 Thu AM 10:06:17 EST > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From garykjos at gmail.com Thu Mar 31 13:31:12 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 13:31:12 -0600 Subject: [AccessD] Re: Problem with hyperlinks from a table or form In-Reply-To: References: <200503311636.j2VGaHi04736@databaseadvisors.com> Message-ID: Well now you know that it's not the editing of the established hyperlink that is the problem. If you suspect that it's the number of files that is an issue, why not move a couple to a different folder on the shared drive and try linking there. Assuming that works, perhaps you could load the files into multiple sub-folders. On Mar 31, 2005 1:07 PM, Mike Webb wrote: > Tried doing a fresh link and got no where. First, I tried the normal method > of selecting a file to be the hyperlink. I just got the hourglass for > several minutes, checked TaskMan and found Access to be "not responding". > My guess is the attempted "pull" of over 4K PDF files to select from was too > much. I then tried typing in the URL path to the file. All I got when > testing it is a quick "blink" of the monitor. > > Mike > -- Gary Kjos garykjos at gmail.com From Erwin.Craps at ithelps.be Thu Mar 31 14:15:50 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 31 Mar 2005 22:15:50 +0200 Subject: [AccessD] Access Report to PowerPoint Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B597B@stekelbes.ithelps.local> This seems to do the trick. I'm not fond of using bitmaps for text, you could run into some text readability problems when the client(s) pc has a different resolution then the source pc. Especialy with small fonts... Further more the background of the powerpoint will be white from the picture instead of transparent. Not to professional... I still don't know why your client insist for Powerpoint while an adobe PDF or a snapshot view could be better. I supose for projecting reasons... Probably it will do the trick, if its ok for the client, I would not bother any further because you gonna get into programming a couple of days. Greetz Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, March 31, 2005 7:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access Report to PowerPoint Rocky, Here you go! Great find Karen! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, March 31, 2005 10:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access Report to PowerPoint I have not tested it, but check out this link: http://www.access-programmers.co.uk/forums/showthread.php?t=83231 There is a sample database to export the report to PowerPoint. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Mar 31 14:18:44 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 31 Mar 2005 14:18:44 -0600 (CST) Subject: [AccessD] OT: editable PDFs on website In-Reply-To: <855499653F55AD4190B242717DF132BC04F2DB@dewey.Symphony.local> References: <855499653F55AD4190B242717DF132BC04F2DB@dewey.Symphony.local> Message-ID: <30565.65.196.182.34.1112300324.squirrel@65.196.182.34> You have to have some pdf creation product, I use Acrobat because that's what was available for me to use. I haven't tried CutePDF, but it looks like it will create interactive forms just like Acrobat and there is a SDK available. The forms that I have done already existed as word documents, which I saved as pdf's and applied text boxes, check boxes, list boxes, etc to and then saved. Each object can be named and data type set when creating the form. Data can be exported from filled out forms. Jim > OK, how do I do that? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss > Sent: Thursday, March 31, 2005 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: editable PDFs on website > > Mark, > > Why not just create pdf forms that the user can fill out? Entered data > can then be exported as XML and used by your client. If you or your > client don't own Acrobat writer, try something like CutePDF. > > Jim > > >> Hi all, >> >> We are building an ASP.NET website for a client. This client has >> several registration forms which they want to put on the site as >> editable PDFs. The idea is: from the web page, the registrant selects > >> a registration form. The site then brings up the editable PDF which >> the registrant fills out. The PDF is then submitted to the client. >> How do I do this? Thanks, >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Thu Mar 31 14:29:07 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 31 Mar 2005 15:29:07 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <003701c53625$38b45780$697aa8c0@ColbyM6805> References: <003701c53625$38b45780$697aa8c0@ColbyM6805> Message-ID: <424C5D93.5070209@rogers.com> One thing you didn't mention: forms have a Data-Entry flag. Have you tried setting that to True? ----------------- What I would suggest, to give you time to really sort out the problem, is creation of a copy of the table(s) for each user, and then using a static function or a class open those tables in your form. The contention will instantly go away. You can then add some code to the Save button that appends the master and detail rows to the "real" tables. Not an elegant solution, but it will work until you figure out what's wrong. John W. Colby wrote: >WinXP, OfficeXP. All SPs applied. This is a simple bound subform, no >recordset objects or the like. > >We are going to try optimistic locking to see if the issues go away. Given >how simple this db is and how they all just sit in this one form entering >new records all night, it seems that any locking is probably not needed. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, March 31, 2005 1:55 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] May need an Unbound form > > >I vaguely remember something about recordlocking switching to page locking >under specific circumstances, but I'll be darned if I can remember any >details. Did it have something to do with a server backend?? Problems with >extended pagelocking due to NOS "intelligent" caching?? Transactions?? >Darn!! The memory loss that comes with old age is biting me today. > >Are you using DAO to open the recordset? I believe it ignores the settings >unless you specify them in the lockedits argument of the OpenRecordset. >Also, it ignores recordlocking if you open the database from a shortcut. >And optimistic locking (NoLocks) overrides record-level locking, so could >that be the problem? The only other thing I could think of would be if you >were creating your own custom ID for each of these records rather than using >an autonumber. BTW, what version of Access are you dealing with? > >Charlotte Foust > > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Thursday, March 31, 2005 9:15 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] May need an Unbound form > > >Charlotte, > >Nope, this is a bound subform, uses the LinkChild / Master properties to >"filter" the subform records, the subform just uses SELECT * from tblXXXX as >the query etc. This is a clean implementation of a bound form, nothing >fancy needed or used. The lock is occurring in the child form / table, the >communications subform. The users literally open the main form, filtered to >a small subset of people (in a set of zip codes) and just start at the first >person, making phone calls. If they don't get an answer or just leave a >message on an answering machine, then they create a new comms record and >select from a "status" and move on. If they actually talk to the person, >they select a status and then may fill in a memo re the conversation. > >Really nothing fancy here, a very simple child table with about 5 fields >including the PEID foreign key, and a couple of other FKs for employee >making the call, contract being called about and status, plus the memo. >These are ALL new comm records, no editing a record someone else might be in >etc. > >Why is there a lock at all? The FE is set up for Record locking. The memo >field is actually just a text(255) field, not even a real memo. I removed >ALL indexes (including the relationship between people and >comms) on the theory that this might be a lock on the index pages. I >finally added code to save the record In AfterUpdate of each and every >control so that as they tabbed out of each control the record was saved (to >release any locks) and this does help... But there are still locks >happening. > >Bizarre. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, March 31, 2005 11:57 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] May need an Unbound form > > >John, > >It sounds like you have a normal one-to-many relationship between the parent >form and subform. Where is the lock occuring, in the parent table or the >child table? Is the parent table included in the subform source? Is the >subform table included in the parent form source? When I've seen similar >locking issues, they've always revolved around those two questions. > >Charlotte Foust > > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Wednesday, March 30, 2005 10:26 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] May need an Unbound form > > >OK Guys, > >WinXP, OfficeXP, all service packs applied for Windows as well as office. > >I have a situation where a group of 2 to 6 or so people open a form of >people info, with contact subform, making phone calls all night. These >people call therapists trying to fill employment contracts. They may make >changes to the person info (address changes etc. but mostly they just enter >new contact records which consist of a simple date and employee (prefilled), >call status (left message, not interested etc,) and a memo field. All night >long just mostly entering records in this contact subform. > >The problem is that they are having HUGE locking issues. I got rid of all >indexes, but they were still getting locks. An employee will start an edit >(select a status, then fill in the memo etc.) but they may hold the record >in the edit state for a minute or two. If any other employee tries to start >a new edit they get a lock, WITHOUT the lock symbol in the record selector. >It is reproducible, it always happens and it SUCKS. These people are not >editing each others records, they are always building NEW records, but they >are getting these locks and it just killed their productivity. > >I made a change such that as soon as they enter any data (after update of >any control), the record is saved. That causes the new records to save >immediately as well as the edits during the course of business to save ASAP. >This helps but they are still seeing the locks occasionally, however now >they are seeing the lock symbol in the record selector. > >I checked all the usual suspects, SPs, edit modes, compact / repair etc. I >am just not finding the problem. As far as I know this shouldn't be >happening, but it is. Has anyone seen this behavior? Solutions? > >This leads me to consider (for the first time in my career) using an unbound >form for collecting the new data record so that the save just does a single >write of the entire record, one time, as the contact record is finished and >ready to store. Needless to say this is not my forte and I the form is not >allowing new data to be entered. The form itself is unbound, all the >controls are unbound, the modes are: > >AllowEdits False >AllowDeletes False >AllowAdds False >EditMode True > >This should allow all the controls to accept data but no control can accept >data. > >I tried AllowEdits true and Editmode false, no help. The form is not >locked, the controls are not locked. The form was opened originally from a >form which was passing in a filter if that means anything. I was going to >grab the existing record data and then unbind the form but I am now just >looking at a plain Jane new data entry form. > >Any suggestions gratefully accepted. > >Thanks, > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 From mwhittinghill at symphonyinfo.com Thu Mar 31 15:07:43 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 15:07:43 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F2FD@dewey.Symphony.local> The client will create the forms. We just need to link to them from the website, I think. Can you have a pdf form on the site which gets submitted when done? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, March 31, 2005 2:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: editable PDFs on website You have to have some pdf creation product, I use Acrobat because that's what was available for me to use. I haven't tried CutePDF, but it looks like it will create interactive forms just like Acrobat and there is a SDK available. The forms that I have done already existed as word documents, which I saved as pdf's and applied text boxes, check boxes, list boxes, etc to and then saved. Each object can be named and data type set when creating the form. Data can be exported from filled out forms. Jim > OK, how do I do that? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss > Sent: Thursday, March 31, 2005 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: editable PDFs on website > > Mark, > > Why not just create pdf forms that the user can fill out? Entered data > can then be exported as XML and used by your client. If you or your > client don't own Acrobat writer, try something like CutePDF. > > Jim > > >> Hi all, >> >> We are building an ASP.NET website for a client. This client has >> several registration forms which they want to put on the site as >> editable PDFs. The idea is: from the web page, the registrant >> selects > >> a registration form. The site then brings up the editable PDF which >> the registrant fills out. The PDF is then submitted to the client. >> How do I do this? Thanks, >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Mar 31 15:23:30 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 31 Mar 2005 15:23:30 -0600 (CST) Subject: [AccessD] OT: editable PDFs on website In-Reply-To: <855499653F55AD4190B242717DF132BC04F2FD@dewey.Symphony.local> References: <855499653F55AD4190B242717DF132BC04F2FD@dewey.Symphony.local> Message-ID: <32864.65.196.182.34.1112304210.squirrel@65.196.182.34> Mark, We had the forms for download and the prospective client filled them out and emailed them back to us. Jim > The client will create the forms. We just need to link to them from the > website, I think. Can you have a pdf form on the site which gets > submitted when done? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss > Sent: Thursday, March 31, 2005 2:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT: editable PDFs on website > > You have to have some pdf creation product, I use Acrobat because that's > what was available for me to use. I haven't tried CutePDF, but it looks > like it will create interactive forms just like Acrobat and there is a > SDK available. > > The forms that I have done already existed as word documents, which I > saved as pdf's and applied text boxes, check boxes, list boxes, etc to > and then saved. Each object can be named and data type set when creating > the form. Data can be exported from filled out forms. > > Jim > > >> OK, how do I do that? >> >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss >> Sent: Thursday, March 31, 2005 12:01 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: editable PDFs on website >> >> Mark, >> >> Why not just create pdf forms that the user can fill out? Entered data > >> can then be exported as XML and used by your client. If you or your >> client don't own Acrobat writer, try something like CutePDF. >> >> Jim >> >> >>> Hi all, >>> >>> We are building an ASP.NET website for a client. This client has >>> several registration forms which they want to put on the site as >>> editable PDFs. The idea is: from the web page, the registrant >>> selects >> >>> a registration form. The site then brings up the editable PDF which >>> the registrant fills out. The PDF is then submitted to the client. >>> How do I do this? Thanks, >>> >>> Mark Whittinghill >>> Symphony Information Services >>> 763-391-7400 >>> mwhittinghill at symphonyinfo.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwhittinghill at symphonyinfo.com Thu Mar 31 15:52:53 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 15:52:53 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F301@dewey.Symphony.local> Jim, Just so I get this right for our case: Our client can build the editable pdf forms. Our website provides a download link. The registrant downloads the pdf form, fills it in, and emails it to our client. Our client can then extract the data from the pdf form into their database. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, March 31, 2005 3:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: editable PDFs on website Mark, We had the forms for download and the prospective client filled them out and emailed them back to us. Jim > The client will create the forms. We just need to link to them from > the website, I think. Can you have a pdf form on the site which gets > submitted when done? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com From bchacc at san.rr.com Thu Mar 31 16:36:27 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 14:36:27 -0800 Subject: [AccessD] Fw: Datacle - Interactive Information Message-ID: <03c901c53642$1413a3a0$6401a8c0@HAL9004> Anyone know anything about this Datacle? Rocky ----- Original Message ----- From: "Allen C. Harlan" To: Sent: Thursday, March 31, 2005 2:09 PM Subject: Datacle - Interactive Information > > Access, Excel, Database Developers, Consultants, Managers, and End-Users: > > Harlan Brothers Company is pleased to introduce Datacle, the Interactive > Information reporting tool. > > www.datacle.com > > Please, take a few minutes to see the future. It will be worth your > while! > Thank you, > > Allen C. Harlan > Harlan Brothers Company > Phoenix, Arizona > (602) 971-7108 > > > From newsgrps at dalyn.co.nz Thu Mar 31 17:01:04 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 01 Apr 2005 11:01:04 +1200 Subject: [AccessD] Disabling Ctrl-A Message-ID: <6.2.1.2.0.20050401105134.03d98d20@mail.dalyn.co.nz> AXP One of my users has discovered that by selecting Ctrl-A this will select all records. Then he can copy, open up Excel and paste all the records into a spreadsheet. However, because of the sensitive nature of the data, Management do not want the full database to be available this way. How can I disable Ctrl-A so that all records cannot be selected. I have already removed from my custom menu the option to Select all records but Ctrl-A still works. Of course there is still the problem of manually selecting all records with the mouse - any thoughts on this problem as well? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From prodevmg at yahoo.com Thu Mar 31 17:06:39 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 31 Mar 2005 15:06:39 -0800 (PST) Subject: [AccessD] Disabling Ctrl-A In-Reply-To: 6667 Message-ID: <20050331230639.47931.qmail@web20423.mail.yahoo.com> You could use the autokeys macro to override the control A and send a msgbox saying "Can't do that" David Emerson wrote:AXP One of my users has discovered that by selecting Ctrl-A this will select all records. Then he can copy, open up Excel and paste all the records into a spreadsheet. However, because of the sensitive nature of the data, Management do not want the full database to be available this way. How can I disable Ctrl-A so that all records cannot be selected. I have already removed from my custom menu the option to Select all records but Ctrl-A still works. Of course there is still the problem of manually selecting all records with the mouse - any thoughts on this problem as well? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. From marvkin at hotmail.com Thu Mar 31 17:51:36 2005 From: marvkin at hotmail.com (marvin hunkin) Date: Fri, 1 Apr 2005 09:51:36 +1000 Subject: [AccessD] microsoft access questions Message-ID: hi. doing a database assignment for my access class. i am a blind student at my college in australia. using ms access 2000, windows 2000, and using the jaws screen reading software and using version 5.10 for more information about jaws for windows go to http://www.freedomscientific.com now have had several problems. now if any one can give me some answers on how to fix the problems i am having. 1. one of my queeries which i built from a table and imported from excel. it has the primary key field set to number. but instead of giving me sequential numbers like 1.2,3, it only says 1,1,1, etc. should i try to set the data type back to autom number? will this fix this problem? also got the same problem with my report, it just keeps saying the id 1, for each record. it should say id 2. id3, etc. how do i fix this? 2. when i set up my relationships to the id fields in my tables in access , and try to tick the referential integrity, cascade update records, update deleted records, and try to click on create, it gives me a message saying the database could not lock the table, or that the data fields are not the same type, as they are all data type of number, and set to long integer. 3. i created several reports and sub report in collumna format. how do i resize the report and sub report using the keyboard? jaws will not let me use the mouse, or reads very erraticly. is there any third party software that will allow me to resize reports and sub reports in access 2000? if any one can help me, then e-mail me privately off list. cheers Marvin. From newsgrps at dalyn.co.nz Thu Mar 31 18:10:35 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 01 Apr 2005 12:10:35 +1200 Subject: [AccessD] Disabling Ctrl-A In-Reply-To: <20050331230639.47931.qmail@web20423.mail.yahoo.com> References: <20050331230639.47931.qmail@web20423.mail.yahoo.com> Message-ID: <6.2.1.2.0.20050401115842.0289a410@mail.dalyn.co.nz> Ah, I knew there would be a simple solution - Thanks Lonnie. Does anyone have any thoughts on the other problem - manually selecting all records with the mouse, then copying them to the clipboard. I don't want to disable Ctrl-C because it is useful elsewhere in the programme. Is there a way to check if records are selected (any number of records - not just all of them)? David At 1/04/2005, Lonnie wrote: >You could use the autokeys macro to override the control A and send a >msgbox saying "Can't do that" > >David Emerson wrote:AXP > >One of my users has discovered that by selecting Ctrl-A this will select >all records. Then he can copy, open up Excel and paste all the records >into a spreadsheet. However, because of the sensitive nature of the data, >Management do not want the full database to be available this way. > >How can I disable Ctrl-A so that all records cannot be selected. I have >already removed from my custom menu the option to Select all records but >Ctrl-A still works. > >Of course there is still the problem of manually selecting all records with >the mouse - any thoughts on this problem as well? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (04) 478-7456 >Mobile 027-280-9348 From bchacc at san.rr.com Tue Mar 1 00:05:31 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 28 Feb 2005 22:05:31 -0800 Subject: [AccessD] VSTO References: <0ICN003BBQVKX9@l-daemon> Message-ID: <041301c51e24$ad08faf0$6901a8c0@HAL9002> Jim: Thanks. I may take you up on it. But I will have to bite the bullet sometime and get VSTO and the Sagekey script. Have you made a run time from A2003 and VSTO? How big is it? regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Jim Lawrence" To: "'Access Developers discussion and problem solving'" Sent: Monday, February 28, 2005 9:21 PM Subject: RE: [AccessD] VSTO > Hi Rocky: > > I do have a beta 2003 VSTO version and can whip up a compile for you. I > can > try to automate something that you can access remotely...off list. Send me > a > message if you require same. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Monday, February 28, 2005 8:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VSTO > > Jim: > > Looks lie it will once I get rolling with VSTO. Actually, I don't even > want > > to run VSTO. All I want to do is make a run-time with the Sagekey script. > I guess VSTO has to be present to do that. > > Rocky > > ----- Original Message ----- > From: "Jim Lawrence" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, February 28, 2005 12:29 PM > Subject: RE: [AccessD] VSTO > > >> Hi Rocky: >> >> Would this help? >> http://blogs.msdn.com/eric_carter/archive/2005/02/21/377691.aspx >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >> Beach Access Software >> Sent: Monday, February 28, 2005 12:21 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VSTO >> >> Charlotte: >> >> Good list. Bad news. Oh well. There's a rumor that VSTO might be in >> the >> Action Pack quarterly update on April 1. >> >> Rocky >> >> ----- Original Message ----- >> From: "Charlotte Foust" >> To: "Access Developers discussion and problem solving" >> >> Sent: Monday, February 28, 2005 9:33 AM >> Subject: RE: [AccessD] VSTO >> >> >>> Rocky, >>> >>> The products that qualify you for upgrade are listed at >>> http://msdn.microsoft.com/howtobuy/upgrade/#vsto >>> >>> My understanding is that the Action Pack does not qualify you for >>> upgrade pricing of anything, nor does MSDN, etc. I think you have to >>> have a retail version to qualify. I've got XP developer and VB 6 Pro, >>> so I would have qualified for the upgrade two ways. >>> >>> Charlotte Foust >>> >>> >>> -----Original Message----- >>> From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >>> Sent: Friday, February 25, 2005 6:07 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VSTO >>> >>> >>> Eric: >>> >>> I don't really want to use it. But I wonder if I load it then I can buy >>> the >>> VSTO upgrade instead of the full boat - ~$165 vs. ~$480. >>> >>> Rocky >>> >>> ----- Original Message ----- >>> From: "Eric Barro" >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Friday, February 25, 2005 4:31 PM >>> Subject: RE: [AccessD] VSTO >>> >>> >>>> Rocky, >>>> >>>> The VB.NET that M$ gave out is actually Visual Studio.NET albeit with >>>> one >>>> dialect - VB.NET. That limitation and the fact that you don't have the >>> C# >>>> language support plus the inability to connect to SQL server db via >>> the >>>> wizard are the only limitations I've seen so far. >>>> >>>> Eric >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin >>> >>>> - Beach Access Software >>>> Sent: Friday, February 25, 2005 11:33 AM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] VSTO >>>> >>>> >>>> Yeah, I got my vb.net that way, too. Now I need VSTO. >>>> >>>> Rocky >>>> >>>> ----- Original Message ----- >>>> From: "Eric Barro" >>>> To: "Access Developers discussion and problem solving" >>>> >>>> Sent: Friday, February 25, 2005 10:45 AM >>>> Subject: RE: [AccessD] VSTO >>>> >>>> >>>>> M$ had a page (at one point in time) that you could go to where you >>>>> could watch several presentations that would qualify you for a copy >>>>> of VB.NET or the training manuals for VB.NET. I got my copy that way. >>>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky >>>>> Smolin - Beach Access Software >>>>> Sent: Friday, February 25, 2005 8:55 AM >>>>> To: AccessD at databaseadvisors.com >>>>> Subject: [AccessD] VSTO >>>>> >>>>> >>>>> Dear List: >>>>> >>>>> A while back I got the Promo version of Visual Basic.Net through a >>>>> lead >>>>> on >>>>> this list. Another lister I know, subsequently got VSTO sent to him >>>>> gratis. But he doesn't know why. Does anyone know anything about >>> this? >>>>> >>>>> Thanks and regards, >>>>> >>>>> Rocky Smolin >>>>> Beach Access Software >>>>> http://www.e-z-mrp.com >>>>> 858-259-4334 >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>> >>> >>>> >>> >>>> >>>> ---------------------------------------------------------------- >>>> The information contained in this e-mail message and any file, >>> document, >>>> previous e-mail message and/or attachment transmitted >>>> herewith is confidential and may be legally privileged. It is intended >>> >>>> solely for the private use of the addressee and must not be >>>> disclosed to or used by anyone other than the addressee. If you >>> receive >>>> this transmission by error, please immediately notify the >>>> sender by reply e-mail and destroy the original transmission and its >>>> attachments without reading or saving it in any manner. If you >>>> are not the intended recipient, or a person responsible for delivering >>> it >>>> to the intended recipient, you are hereby notified that any >>>> disclosure, copying, distribution or use of any of the information >>>> contained in or attached to this transmission is STRICTLY >>>> PROHIBITED. E-mail transmission cannot be guaranteed to be secure or >>> error >>>> free as information could be intercepted, corrupted, >>>> lost, destroyed, arrive late or incomplete, or contain viruses. >>>> The sender therefore does not accept liability for any errors or >>> omissions >>>> in the contents of this message, which arise as a result of >>>> email transmission. Users and employees of the e-mail system are >>> expressly >>>> required not to make defamatory statements and not >>>> to infringe or authorize any infringement of copyright or any other >>> legal >>>> right by email communications. Any such communication is >>>> contrary to company policy. The company will not accept any liability >>> in >>>> respect of such communication. >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From handyman at actcom.co.il Tue Mar 1 00:29:22 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 08:29:22 +0200 Subject: [AccessD] "class not registered" error Message-ID: <5.1.0.14.2.20050301082307.00a9e648@pop5.actcom.net.il> Hi all, I am trying to use the wizard to add a combo or list box to a form. Right after I select the query to use for my data, a "class not registered" error is returned. I am using access 2000, windows2000, and downloaded the latest patches, but this didn't help. When I try the same process on my access2002/xp operating system, it works fine. Can anyone give me a clue as to what's going on? Thanks Gershon From accessd666 at yahoo.com Tue Mar 1 00:52:34 2005 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 28 Feb 2005 22:52:34 -0800 (PST) Subject: [AccessD] Link CSV file Message-ID: <20050301065234.25310.qmail@web90110.mail.scd.yahoo.com> Hi group, I need to link a csv file in Access 2000. Does anybody know how I can achieve this? Thnx Sander __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ From Erwin.Craps at ithelps.be Tue Mar 1 05:16:15 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 1 Mar 2005 12:16:15 +0100 Subject: [AccessD] "class not registered" error Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5828@stekelbes.ithelps.local> CLass not registered and the listboxes in the wizard are empty?! Ha, had this last week or so after an Office update or a fix and repair which I did because the office update or something. Don't remember anymore what came first... The solution is to remove and reinstall the Access part of you office installation (removing the whole office is not necesary). Fix And repair does not work. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Tuesday, March 01, 2005 7:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] "class not registered" error Hi all, I am trying to use the wizard to add a combo or list box to a form. Right after I select the query to use for my data, a "class not registered" error is returned. I am using access 2000, windows2000, and downloaded the latest patches, but this didn't help. When I try the same process on my access2002/xp operating system, it works fine. Can anyone give me a clue as to what's going on? Thanks Gershon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jarus at amerinet-gpo.com Tue Mar 1 06:13:24 2005 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Tue, 01 Mar 2005 06:13:24 -0600 Subject: [AccessD] Link CSV file Message-ID: You do that exactly as you would link any other file/table. Select File - Get External Data - Link Tables; select Text Files from Files of Type dropdown and select the appropriate file. That's all there is to it. Terri Jarus Vice President, Contract Services jarus at amerinet-gpo.com 314-542-1902 >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> Hi group, I need to link a csv file in Access 2000. Does anybody know how I can achieve this? Thnx Sander __________________________________ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individuals or entities to whom they are addressed. If you have received this email in error please return it to the sender, and erase any copies thereof. Copyright 2005 Amerinet 1nc. From garykjos at gmail.com Tue Mar 1 07:28:13 2005 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 1 Mar 2005 07:28:13 -0600 Subject: [AccessD] Is the DBA Website down? Message-ID: I can't get it to some up and a few other people on the OT list have said the same thing. -- Gary Kjos garykjos at gmail.com From andy at minstersystems.co.uk Tue Mar 1 06:38:39 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 1 Mar 2005 13:38:39 +0100 Subject: [AccessD] Is the DBA Website down? Message-ID: <20050301133836.3EE992BFB4B@smtp.nildram.co.uk> Looks like it to me. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: maintenance at databaseadvisors.com , Access Developers discussion and problem solving Subject: [AccessD] Is the DBA Website down? Date: 01/03/05 13:31 > > I can't get it to some up and a few other people on the OT list have > said the same thing. > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From handyman at actcom.co.il Tue Mar 1 07:42:02 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 15:42:02 +0200 Subject: [AccessD] "class not registered" error In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B5828@stekelbes.ithelps.l ocal> Message-ID: <5.1.0.14.2.20050301153940.00aa69d0@pop5.actcom.net.il> I did a repair on office, and it didn't help. I then deleted the entire office, and reinstalled it. I am still getting this class error. Any other thoughts? Thanks.. At 12:16 PM, 03/01/2005 +0100, you wrote: >CLass not registered and the listboxes in the wizard are empty?! > >Ha, had this last week or so after an Office update or a fix and repair >which I did because the office update or something. Don't remember >anymore what came first... > >The solution is to remove and reinstall the Access part of you office >installation (removing the whole office is not necesary). >Fix And repair does not work. > >Erwin > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >handyman at actcom.co.il >Sent: Tuesday, March 01, 2005 7:29 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] "class not registered" error > >Hi all, > >I am trying to use the wizard to add a combo or list box to a form. >Right after I select the query to use for my data, a "class not >registered" error is returned. I am using access 2000, windows2000, and >downloaded the latest patches, but this didn't help. > >When I try the same process on my access2002/xp operating system, it >works fine. > >Can anyone give me a clue as to what's going on? > >Thanks > >Gershon > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From Gustav at cactus.dk Tue Mar 1 08:32:29 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 15:32:29 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav From dwaters at usinternet.com Tue Mar 1 08:44:59 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 1 Mar 2005 08:44:59 -0600 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server In-Reply-To: <14254467.1109647075948.JavaMail.root@sniper13> Message-ID: <000601c51e6d$3e8b1ce0$123a11d8@danwaters> Marty, Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint uses an optimistic record locking scheme. This would let me use an Access database as read-write for one location and read-only for any others. Still, that could be useful in some situations. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, February 28, 2005 9:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server How Access easily hooks into Sharepoint 2.0 which I think maybe one way MS is proceeding to allow you to get at a large document taxonomy. Here is how to quickly link Sharepoint Lists as Access Tables with 2003 and I think Access XP. File-->Get External Tables--> Link Tables brings up Link Form at bottom select File Types for "Windows Sharepoint Services" This brings up Link to Windows SharePoint Services Wizard Here you enter the http:// url of the site After that it links the Sharepoint Lists (think of them as access tables) If you open up a list (err a table) and there is at least one entry say a note or message click on the blue edit field This will automatically bring up an editor for that message in an IE window. Gunderloy on Access and Sharepoint http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/ht ml/odc_OfOfficeSysandWSS.asp Jim DeMarco wrote: >Hello All, > >First, if you sign up for the free trial make sure you get a password soon after signing up. I had to contact them for one (which I couldn't do as there was no contact info to be found on the site) and lost over a week of my trial even though I asked for an extension. I got a marketing call or e-mail (can't remember which) so I took the opportunity to tell the rep to get me set up and quick! > >Next, Sharepoint Services out of the box is a pretty cool tool. You can't ask for more than a place to collaborate and share contacts, docs, links, etc that requires no programming and easy admin. We just started using it within our dept. as an eval before making it available to various workgroups/departments. If you use Office 2003 it's even better with integration to open/edit documents in the doc library, the ability to see who's on-line. Plenty of smart tag activity too that lets you send a site member e-mail, get notifications if items are added or changed in various section (user definable too!). > >So far I'm loving it! > >The Portal Server adds the ability to customize or add your own version of some of the main sections plus I think it has advanced user management. > >HTH, > >Jim DeMarco > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock >Sent: Sunday, February 27, 2005 3:30 PM >To: accessd at databaseadvisors.com; dba-tech at databaseadvisors.com >Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server > > >Hi Marty and Dan > >Here's link which describes what's "Portal" and what's not: > > http://msdn.microsoft.com/library/en-us/dnanchor/html/Sharepoint.asp > > >Perhaps the "Portal" is what is charged heavily for while the >"Services" are free? > >/gustav > > > >>>>Gustav at cactus.dk 27-02-2005 20:13:36 >>> >>>> >>>> >Hi Marty > >Strange. Are you sure there is only one version? Perhaps like for >Exchange, an "Enterprise" version is available too? > >/gustav > > > >>>>martyconnelly at shaw.ca 27-02-2005 19:35:26 >>> >>>> >>>> >Microsoft Office SharePoint Portal Server 2003 (the current release) >is > >a Content Management System which belongs to the Microsoft Office >family. It is a collaborative portal application based on the Windows >SharePoint >Services platform, a free component of Windows Server 2003. Cheapest >form is Win 2003 server Small Business Version. I think based on WEBDav > >protocol. You also have to decide on using Windows SharePoint Services >and SharePoint Portal Server 2003, alone or in combination. >See to chose a suitable sharepoint version >http://www.gotsharepoint.com/ >or here >http://www.gotsharepoint.com/advisor/default.asp > >http://office.microsoft.com/en-ca/FX010909721033.aspx > >Content Management Systems >CMSs allow end-users (typically authors) to create new content in the >form of documents. These document may be entered as plain text or >perhaps >with markup to manage document layout and structure. The system then >uses rules to style the article, which separates the display from the >content, which has a number of advantages when trying to get many >articles to conform to a consistent "look and feel". The system then >adds the articles to a larger collection for publishing. The systems >also often include some sort of concept of the workflow for the target > >users, which defines how the new content is to be routed around the >system. A good example of a CMS would be a system for managing a >newspaper. In such a system the reporters type articles into the >system, which stores them in a database. Along with the article the >system stores >attributes, including keywords, the date and time of filing, the >reporter's name, >etc. The system then uses these attributes to find out, given its >workflow >rules, who should proofread the article, approve it for publication, >edit it, >etc. Later the editors can choose which articles to include (or ignore) >in an edition >of the newspaper, which is then laid out and printed automatically. >You >can also add wikki's blogs forums etc. > > >Gustav Brock wrote: > > > >>Hi Dan >> >>I don't have the exact cost. However, it is about USD 6000 for the >>server and maybe USD 100 for each seat (CAL). For a large company >> >> >this > > >>is peanuts but for our small clients it is prohibitive. >> >>As John says, it is in the Action Pack which we do have, but we >> >> >haven't > > >>bothered installing it due to it's very limited potential caused by >> >> >the > > >>license fees. >> >>/gustav >> >> >> >> >> >>>>>dwaters at usinternet.com 27-02-2005 17:18:04 >>> >>>>> >>>>> >>>>> >>>>> >>Hi Gustav, >> >>Do you know what the license costs would be? This could make the >>difference for my customer. >> >>Thanks, >>Dan >> >>-----Original Message----- >>From: dba-tech-bounces at databaseadvisors.com >>[mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav >>Brock >>Sent: Sunday, February 27, 2005 9:26 AM >>To: dba-tech at databaseadvisors.com >>Subject: Re: [dba-Tech] Overview of Sharepoint Server >> >>Hi Dan >> >>One of the cons is the high license costs. >> >>I haven't been working with it. >>Does anyone know of a public Sharepoint server you can connect to and >>do live test? >> >>/gustav >> >> >> >> >> >>>>>dwaters at usinternet.com 26-02-2005 17:08:41 >>> >>>>> >>>>> >>>>> >>>>> >>I have a customer I've been trying to get a project started with for >>about 9 months now (large company). Two weeks ago we had what was >>supposed to >>be the last 'approval' meeting with a group of people from various IT >>functions. Yesterday my customer told me that a higher-level IT >>manager has suggested that he look at Sharepoint Server as a possible >>alternative before he makes a decision on what technology to use. >> >>So - can someone point me to where I can read a good overview of what >>Sharepoint does? What are it's pros/cons, etc. Beyond MS marketing >> >> >- > > >>how have people really used it to their advantage and what should it >>not be used for? >> >>Thanks! >>Dan Waters >>ProMation Systems >> >> > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 1 08:47:25 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 1 Mar 2005 06:47:25 -0800 (PST) Subject: [AccessD] Link CSV file in VBA In-Reply-To: Message-ID: <20050301144725.99178.qmail@web90106.mail.scd.yahoo.com> Terri, my mistake...I wasn't clear with my question. What I meant was: I need to link a csv file in Access 2000 USING VBA does anybody know how to do this? Background info: I need to run 68 reports. They all have 1 or more csv as input source. At this point we need to manually link them as described by terri. This is very time consuming. I want to create something so that the user selects a report and then automagically the following things happen: - the required csv files are linked (or imported) - the required queries are started - the created table (via the queries) is exported to Excel. That's all. Sander --- Terri Jarus wrote: > You do that exactly as you would link any other > file/table. Select File > - Get External Data - Link Tables; select Text Files > from Files of Type > dropdown and select the appropriate file. > > That's all there is to it. > > Terri Jarus > Vice President, Contract Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> > > Hi group, > > I need to link a csv file in Access 2000. > > Does anybody know how I can achieve this? > > Thnx > > Sander > > > > __________________________________ > Do you Yahoo!? > Yahoo! Sports - Sign up for Fantasy Baseball. > http://baseball.fantasysports.yahoo.com/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --------------------------------------------------------------------------- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2005 Amerinet 1nc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail From ssharkins at bellsouth.net Tue Mar 1 08:50:18 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 1 Mar 2005 09:50:18 -0500 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server In-Reply-To: <000601c51e6d$3e8b1ce0$123a11d8@danwaters> Message-ID: <20050301145019.TYOS2068.imf22aec.mail.bellsouth.net@SUSANONE> I think Martin's writing a book on SharePoint -- you might ring his chimes. Susan H. Marty, Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint uses an optimistic record locking scheme. This would let me use an Access database as read-write for one location and read-only for any others. Still, that could be useful in some situations. Dan Waters ProMation Systems From andy at minstersystems.co.uk Tue Mar 1 07:57:10 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 1 Mar 2005 14:57:10 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: <20050301145707.AE7572BFE38@smtp.nildram.co.uk> Hi Gustav I had a go at this ages ago. The project never happened so I didn't take it very far but IIRC what I did (and it worked as far as it went) was create an HTML document as my template then, in Access, I read that in line by line as a text file, building up a string, replaced a recognisable bit of text with the required name, then plugged the string into the Outlook email's .HTMLBody. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Date: 01/03/05 14:35 > > Hi all > > The client wish to move from general mass e-mail (Dear customer ..) in > plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML > format. > > I know all about getting Access to generate e-mails and have them > mailed but how to create the body of the e-mail in HTML format? Also, > the e-mail must contain a part in plain text which will be shown to > those receivers not having a mail client with HTML reader. > > My thought is to have the client's advertising agency creating a > template with a "field" - some unique search word which I can search for > and replace with the actual customer's name as it carries no purpose to > have the Access app build the e-mail from scratch. > > Has anyone done something similar? > > /gustav > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From mwp.reid at qub.ac.uk Tue Mar 1 09:01:40 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 01 Mar 2005 15:01:40 +0000 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: LOL I have been discussing some stuff of list. But in general SP also contains its own security systemn with lists etc. I am doing two major reviews for a publisher on Sharepoint. I also did a section on FrontPage 203 for Microsoft and I know there are a few articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul Litwin wrote an article at the same time as me for them which dealt with Web Parts/XML and Access. Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint services and SharePoint Portal Server. The Portal Server provides great indexing and searching capability for Sharepoint Services. But the main development tool is Web parts. Web parts provide descrite functionality for example a set of data from SQL Server, DB2 etc. ALso provides a single sign on cabability for multiple systems. Martin On Mar 1 2005, Susan Harkins wrote: > I think Martin's writing a book on SharePoint -- you might ring his > chimes. > > Susan H. > > Marty, > > Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint > uses an optimistic record locking scheme. This would let me use an Access > database as read-write for one location and read-only for any others. > > Still, that could be useful in some situations. > > Dan Waters > ProMation Systems > > -- Martin WP Reid Analyst Information Services Queens University Belfast From Lambert.Heenan at AIG.com Tue Mar 1 09:08:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 1 Mar 2005 10:08:56 -0500 Subject: [AccessD] "class not registered" error Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D22@xlivmbx21.aig.com> Check this... http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of > handyman at actcom.co.il > Sent: Tuesday, March 01, 2005 8:42 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] "class not registered" error > > I did a repair on office, and it didn't help. I then deleted the entire > office, and reinstalled it. I am still getting this class error. > > Any other thoughts? > > Thanks.. > > At 12:16 PM, 03/01/2005 +0100, you wrote: > >CLass not registered and the listboxes in the wizard are empty?! > > > >Ha, had this last week or so after an Office update or a fix and repair > >which I did because the office update or something. Don't remember > >anymore what came first... > > > >The solution is to remove and reinstall the Access part of you office > >installation (removing the whole office is not necesary). > >Fix And repair does not work. > > > >Erwin > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > >handyman at actcom.co.il > >Sent: Tuesday, March 01, 2005 7:29 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] "class not registered" error > > > >Hi all, > > > >I am trying to use the wizard to add a combo or list box to a form. > >Right after I select the query to use for my data, a "class not > >registered" error is returned. I am using access 2000, windows2000, and > >downloaded the latest patches, but this didn't help. > > > >When I try the same process on my access2002/xp operating system, it > >works fine. > > > >Can anyone give me a clue as to what's going on? > > > >Thanks > > > >Gershon > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > Gershon Markowitz > mailto:Handyman at actcom.co.il > http://www.yadchaimtzvi.org > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Mar 1 09:13:32 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 1 Mar 2005 10:13:32 -0500 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2CF2@TTNEXCHCL2.hshhp.com> Are we able to create and use custom web parts if we are only using Sharepoint Services (not Portal Server)? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Tuesday, March 01, 2005 10:02 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server LOL I have been discussing some stuff of list. But in general SP also contains its own security systemn with lists etc. I am doing two major reviews for a publisher on Sharepoint. I also did a section on FrontPage 203 for Microsoft and I know there are a few articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul Litwin wrote an article at the same time as me for them which dealt with Web Parts/XML and Access. Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint services and SharePoint Portal Server. The Portal Server provides great indexing and searching capability for Sharepoint Services. But the main development tool is Web parts. Web parts provide descrite functionality for example a set of data from SQL Server, DB2 etc. ALso provides a single sign on cabability for multiple systems. Martin On Mar 1 2005, Susan Harkins wrote: > I think Martin's writing a book on SharePoint -- you might ring his > chimes. > > Susan H. > > Marty, > > Under the paragraph Using Sharepoint Lists, Mike states that Sharepoint > uses an optimistic record locking scheme. This would let me use an Access > database as read-write for one location and read-only for any others. > > Still, that could be useful in some situations. > > Dan Waters > ProMation Systems > > -- Martin WP Reid Analyst Information Services Queens University Belfast -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Developer at UltraDNT.com Tue Mar 1 09:13:26 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Tue, 1 Mar 2005 10:13:26 -0500 Subject: [AccessD] Link CSV file in VBA In-Reply-To: <20050301144725.99178.qmail@web90106.mail.scd.yahoo.com> Message-ID: <001801c51e71$3ae48640$0700a8c0@COA3> All do-able with DoCmd ... Dig in help for all paramters yu will need, something like: Sub ImportExport DoCmd.TransferText acLinkDelim, , "tblCSV", "c:\temp\yada-yada.xls" DoCmd.RunSQL "query name" DoCmd.TransferText acExportDelim, , , "c:\temp\blah-blah.xls" End Sub Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, March 01, 2005 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Link CSV file in VBA Terri, my mistake...I wasn't clear with my question. What I meant was: I need to link a csv file in Access 2000 USING VBA does anybody know how to do this? Background info: I need to run 68 reports. They all have 1 or more csv as input source. At this point we need to manually link them as described by terri. This is very time consuming. I want to create something so that the user selects a report and then automagically the following things happen: - the required csv files are linked (or imported) - the required queries are started - the created table (via the queries) is exported to Excel. That's all. Sander --- Terri Jarus wrote: > You do that exactly as you would link any other > file/table. Select File > - Get External Data - Link Tables; select Text Files > from Files of Type > dropdown and select the appropriate file. > > That's all there is to it. > > Terri Jarus > Vice President, Contract Services > jarus at amerinet-gpo.com > 314-542-1902 > > >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> > > Hi group, > > I need to link a csv file in Access 2000. > > Does anybody know how I can achieve this? > > Thnx > > Sander > > > > __________________________________ > Do you Yahoo!? > Yahoo! Sports - Sign up for Fantasy Baseball. > http://baseball.fantasysports.yahoo.com/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > ------------------------------------------------------------------------ --- > This email and any files transmitted with it are > confidential and > intended solely for the use of the individuals or > entities to whom they > are addressed. If you have received this email in > error please return > it to the sender, and erase any copies thereof. > Copyright 2005 Amerinet 1nc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail -- 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 Mar 1 09:19:55 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 01 Mar 2005 15:19:55 +0000 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: Yip Heres the article on Access/XML FrontPage 2003 and Sharepoint http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_fp2003_ta/html/odc_fpbldgxmlwebs.asp Martin On Mar 1 2005, Jim DeMarco wrote: > Are we able to create and use custom web parts if we are only using > Sharepoint Services (not Portal Server)? > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Tuesday, March 01, 2005 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server > > > LOL > > I have been discussing some stuff of list. > > But in general SP also contains its own security systemn with lists etc. > I am doing two major reviews for a publisher on Sharepoint. I also did a > section on FrontPage 203 for Microsoft and I know there are a few > articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul > Litwin wrote an article at the same time as me for them which dealt with > Web Parts/XML and Access. > > Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint > services and SharePoint Portal Server. The Portal Server provides great > indexing and searching capability for Sharepoint Services. But the main > development tool is Web parts. Web parts provide descrite functionality > for example a set of data from SQL Server, DB2 etc. ALso provides a > single sign on cabability for multiple systems. > > Martin > > > > On Mar 1 2005, Susan Harkins wrote: > > > I think Martin's writing a book on SharePoint -- you might ring his > > chimes. > > > > Susan H. > > > > Marty, > > > > Under the paragraph Using Sharepoint Lists, Mike states that > > Sharepoint > uses an optimistic record locking scheme. This would let > > me use an Access database as read-write for one location and read-only > > for any others. > > > > Still, that could be useful in some situations. > > > > Dan Waters > > ProMation Systems > > > > > > -- Martin WP Reid Analyst Information Services Queens University Belfast From mwp.reid at qub.ac.uk Tue Mar 1 09:21:58 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 01 Mar 2005 15:21:58 +0000 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server Message-ID: Jim heres another article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/pjsdk/html/pjsdkWebpInstallAndWSS_HV01100336.asp Martin On Mar 1 2005, Jim DeMarco wrote: > Are we able to create and use custom web parts if we are only using > Sharepoint Services (not Portal Server)? > > Jim DeMarco > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid > Sent: Tuesday, March 01, 2005 10:02 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server > > > LOL > > I have been discussing some stuff of list. > > But in general SP also contains its own security systemn with lists etc. > I am doing two major reviews for a publisher on Sharepoint. I also did a > section on FrontPage 203 for Microsoft and I know there are a few > articles up on MSDN. Have a look for FrontPage 2003 and Sharepoint. Paul > Litwin wrote an article at the same time as me for them which dealt with > Web Parts/XML and Access. > > Its really a trinity of Products - FrontPage 2003 (or .NET) Sharepoint > services and SharePoint Portal Server. The Portal Server provides great > indexing and searching capability for Sharepoint Services. But the main > development tool is Web parts. Web parts provide descrite functionality > for example a set of data from SQL Server, DB2 etc. ALso provides a > single sign on cabability for multiple systems. > > Martin > > > > On Mar 1 2005, Susan Harkins wrote: > > > I think Martin's writing a book on SharePoint -- you might ring his > > chimes. > > > > Susan H. > > > > Marty, > > > > Under the paragraph Using Sharepoint Lists, Mike states that > > Sharepoint > uses an optimistic record locking scheme. This would let > > me use an Access database as read-write for one location and read-only > > for any others. > > > > Still, that could be useful in some situations. > > > > Dan Waters > > ProMation Systems > > > > > > -- Martin WP Reid Analyst Information Services Queens University Belfast From bchacc at san.rr.com Tue Mar 1 09:32:04 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 07:32:04 -0800 Subject: [AccessD] Link CSV file in VBA References: <001801c51e71$3ae48640$0700a8c0@COA3> Message-ID: <009501c51e73$d28b3d20$6501a8c0@HAL9002> Sander: Although not as quick and elegant as Steve's solution, I usually read the file into a temporary table. It's easier to work with that way, and I have found in the past that the TrasnferText command was not, shall we say, robust. Seemed unreliable but I can't remember exactly what it was that gave me fits at the time. Open strFolder & txtPatientName & "2.txt" For Input As #1 Do While Not EOF(1) Input #1, strQID, strRAnswer, gstrBackQID rstResponses.AddNew rstResponses!fldPatientID = lngPatientID rstResponses!fldQID = strQID rstResponses!fldRAnswer = strRAnswer rstResponses!fldBackQID = gstrBackQID rstResponses.Update Loop HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Steve Conklin (Developer at UltraDNT)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 7:13 AM Subject: RE: [AccessD] Link CSV file in VBA > All do-able with DoCmd ... > > Dig in help for all paramters yu will need, something like: > > Sub ImportExport > > DoCmd.TransferText acLinkDelim, , "tblCSV", "c:\temp\yada-yada.xls" > DoCmd.RunSQL "query name" > DoCmd.TransferText acExportDelim, , , "c:\temp\blah-blah.xls" > > End Sub > > > Hth > Steve > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der > Sent: Tuesday, March 01, 2005 9:47 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Link CSV file in VBA > > > Terri, > > my mistake...I wasn't clear with my question. What I > meant was: > I need to link a csv file in Access 2000 USING VBA > does anybody know how to do this? > > Background info: > I need to run 68 reports. They all have 1 or more csv > as input source. At this point we need to manually > link them as described by terri. This is very time > consuming. I want to create something so that the user > selects a report and then automagically the following > things happen: > - the required csv files are linked (or imported) > - the required queries are started > - the created table (via the queries) is exported to > Excel. > > That's all. > > Sander > > --- Terri Jarus wrote: > >> You do that exactly as you would link any other >> file/table. Select File >> - Get External Data - Link Tables; select Text Files >> from Files of Type >> dropdown and select the appropriate file. >> >> That's all there is to it. >> >> Terri Jarus >> Vice President, Contract Services >> jarus at amerinet-gpo.com >> 314-542-1902 >> >> >>> accessd666 at yahoo.com 3/1/2005 12:52:34 AM >>> >> >> Hi group, >> >> I need to link a csv file in Access 2000. >> >> Does anybody know how I can achieve this? >> >> Thnx >> >> Sander >> >> >> >> __________________________________ >> Do you Yahoo!? >> Yahoo! Sports - Sign up for Fantasy Baseball. >> http://baseball.fantasysports.yahoo.com/ >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> > ------------------------------------------------------------------------ > --- >> This email and any files transmitted with it are >> confidential and >> intended solely for the use of the individuals or >> entities to whom they >> are addressed. If you have received this email in >> error please return >> it to the sender, and erase any copies thereof. >> Copyright 2005 Amerinet 1nc. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 1 09:53:16 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 07:53:16 -0800 Subject: [AccessD] HTML personalized mass mail In-Reply-To: Message-ID: <0ICO00K2UK602U@l-daemon> Hi Gustav: Andy and I put together a mini-app on the DBA site when creating a web-ring. We used ASP-Mail, a free, or a least it was, mail server/client package. I personally use PHP mail as the price is right and it can be ran on anything that can run IIS. IIS use to be able to downloaded for free. Since XP Professional and 2000 it is no longer available but it is part of those OSs. I use to run IIS on my Win98SE box until it required a rebuild and never bothered to install it again. The mailing part is simple to setup and only requires about 30 lines of code to run. If you want to go that route I can send you the code. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 6:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Tue Mar 1 10:02:27 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 18:02:27 +0200 Subject: [AccessD] "class not registered" error In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D22@xlivmbx21.aig.com > Message-ID: <5.1.0.14.2.20050301175857.031a7060@pop5.actcom.net.il> This also didn't help the cause. I'm getting so frustrated with this, that maybe I'll just upgrade to access 2002. I hope I don't open another can of worms doing this :) At 10:08 AM, 03/01/2005 -0500, you wrote: >Check this... > >http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 > >Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of > > handyman at actcom.co.il > > Sent: Tuesday, March 01, 2005 8:42 AM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] "class not registered" error > > > > I did a repair on office, and it didn't help. I then deleted the entire > > office, and reinstalled it. I am still getting this class error. > > > > Any other thoughts? > > > > Thanks.. > > > > At 12:16 PM, 03/01/2005 +0100, you wrote: > > >CLass not registered and the listboxes in the wizard are empty?! > > > > > >Ha, had this last week or so after an Office update or a fix and repair > > >which I did because the office update or something. Don't remember > > >anymore what came first... > > > > > >The solution is to remove and reinstall the Access part of you office > > >installation (removing the whole office is not necesary). > > >Fix And repair does not work. > > > > > >Erwin > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > >handyman at actcom.co.il > > >Sent: Tuesday, March 01, 2005 7:29 AM > > >To: accessd at databaseadvisors.com > > >Subject: [AccessD] "class not registered" error > > > > > >Hi all, > > > > > >I am trying to use the wizard to add a combo or list box to a form. > > >Right after I select the query to use for my data, a "class not > > >registered" error is returned. I am using access 2000, windows2000, and > > >downloaded the latest patches, but this didn't help. > > > > > >When I try the same process on my access2002/xp operating system, it > > >works fine. > > > > > >Can anyone give me a clue as to what's going on? > > > > > >Thanks > > > > > >Gershon > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > Gershon Markowitz > > mailto:Handyman at actcom.co.il > > http://www.yadchaimtzvi.org > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From Gustav at cactus.dk Tue Mar 1 10:11:29 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 17:11:29 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi Andy OK, in that way the file for the body - including pictures - can have any size. The only issue I can see at the moment is, that "foreign" characters (non US ASCII) are encoded in HTML. How would I do that encoding? It is relevant as names here often contain strange characters. Or would it be enough just to specify the character set, which is "ISO-8859-1", as the default for the document? Then any special character can be "hardcoded" in the body. /gustav >>> andy at minstersystems.co.uk 01-03-2005 14:57:10 >>> Hi Gustav I had a go at this ages ago. The project never happened so I didn't take it very far but IIRC what I did (and it worked as far as it went) was create an HTML document as my template then, in Access, I read that in line by line as a text file, building up a string, replaced a recognisable bit of text with the required name, then plugged the string into the Outlook email's .HTMLBody. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Date: 01/03/05 14:35 > > Hi all > > The client wish to move from general mass e-mail (Dear customer ..) in > plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML > format. > > I know all about getting Access to generate e-mails and have them > mailed but how to create the body of the e-mail in HTML format? Also, > the e-mail must contain a part in plain text which will be shown to > those receivers not having a mail client with HTML reader. > > My thought is to have the client's advertising agency creating a > template with a "field" - some unique search word which I can search for > and replace with the actual customer's name as it carries no purpose to > have the Access app build the e-mail from scratch. > > Has anyone done something similar? > > /gustav From Gustav at cactus.dk Tue Mar 1 10:18:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 17:18:34 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi Jim Thanks, nice offer, however this is a custom built CRM/DM Access application which works OK, just needs to be expanded with up-to-date mailing features. So I would prefer to keep as much as possible within the application. That should be possible as the mail body will be provided from an external source. /gustav >>> accessd at shaw.ca 01-03-2005 16:53:16 >>> Hi Gustav: Andy and I put together a mini-app on the DBA site when creating a web-ring. We used ASP-Mail, a free, or a least it was, mail server/client package. I personally use PHP mail as the price is right and it can be ran on anything that can run IIS. IIS use to be able to downloaded for free. Since XP Professional and 2000 it is no longer available but it is part of those OSs. I use to run IIS on my Win98SE box until it required a rebuild and never bothered to install it again. The mailing part is simple to setup and only requires about 30 lines of code to run. If you want to go that route I can send you the code. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 6:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav From andy at minstersystems.co.uk Tue Mar 1 09:19:10 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 1 Mar 2005 16:19:10 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: <20050301161907.7967B2C0054@smtp.nildram.co.uk> Sorry Gustav, can't help with that. Not an issue I've attempted to deal with. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] HTML personalized mass mail Date: 01/03/05 16:12 > > Hi Andy > > OK, in that way the file for the body - including pictures - can have > any size. > > The only issue I can see at the moment is, that "foreign" characters > (non US ASCII) are encoded in HTML. > How would I do that encoding? It is relevant as names here often > contain strange characters. > > Or would it be enough just to specify the character set, which is > "ISO-8859-1", as the default for the document? Then any special > character can be "hardcoded" in the body. > > /gustav > > >>> andy at minstersystems.co.uk 01-03-2005 14:57:10 >>> > Hi Gustav > I had a go at this ages ago. The project never happened so I didn't > take it > very far but IIRC what I did (and it worked as far as it went) was > create an > HTML document as my template then, in Access, I read that in line by > line as > a text file, building up a string, replaced a recognisable bit of text > with > the required name, then plugged the string into the Outlook email's > ..HTMLBody. > > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: [AccessD] HTML personalized mass mail > Date: 01/03/05 14:35 > > > > > Hi all > > > > The client wish to move from general mass e-mail (Dear customer ..) > in > > plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML > > format. > > > > I know all about getting Access to generate e-mails and have them > > mailed but how to create the body of the e-mail in HTML format? > Also, > > the e-mail must contain a part in plain text which will be shown to > > those receivers not having a mail client with HTML reader. > > > > My thought is to have the client's advertising agency creating a > > template with a &quot;field&quot; - some unique search word which I > can search for > > and replace with the actual customer's name as it carries no purpose > to > > have the Access app build the e-mail from scratch. > > > > Has anyone done something similar? > > > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From marklbreen at gmail.com Tue Mar 1 11:09:29 2005 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 1 Mar 2005 17:09:29 +0000 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland From cyx5 at cdc.gov Tue Mar 1 11:21:50 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 1 Mar 2005 12:21:50 -0500 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: Most clients own a copy of Access, so the .mde is easier to distribute. I have to use the runtime for clients in many countries who do not have Access installed on their system. I have been using the 2003 runtime and am happy with it, my users are not experiencing any problems. I know that when I test the runtime on my workstation, that has three versions of Access, that the next time I go to an app, it opens up in the version of the runtime that I last installed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 12:09 PM To: Access Developers discussion and problem solving Subject: [AccessD] Seeking your Access Runtime Experiences Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 1 11:48:02 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Mar 2005 09:48:02 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: We market commercial apps that all include the runtime, currently XP. We can't count on our clients having the correct version of Access or the correct service packs or the correct libraries, and the runtime handles that. If you are going to use the runtime, do NOT try to use MS tools to create the installer. Invest in Wise or InstallShield and the SageKey scripts. They will see to it that the app you design installs properly on the target machine. There are some things to watch out for, including the fact that you do not have access to all the built in menus in a runtime version and you can't use the property sheet to bind objects to custom menus and toolbars, you have to do it in code. Charlotte Foust -----Original Message----- From: Mark Breen [mailto:marklbreen at gmail.com] Sent: Tuesday, March 01, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] Seeking your Access Runtime Experiences Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 12:13:46 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 12:13:46 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: Hi Mark, If you know all of the machines your app will be running on have the same configuration and includes Access there would be little point to use runtime. I use a runtime via Wise Install Builder and Sagekey Access scripts for everything I distribute. Saves the client money, ensures you have what you need on the end user's machine and has generally saved me a lot of headaches over the last half dozen years. You do have to do a little prep for it for which the "/runtime" command line switch comes in handy. Making your own toolbars and menus is probably the biggest issue. I can offer no advice on native MS runtime building capability lately. All I can say it that it used to be poor. The issue that seems to pop up with most people is the cost of Wise/Sagekey. I have seen it as a cost savings but then I also can justify it because I'm the boss and would rather have money coming in than complaints :o) I can relay to you that one of my (very fiscally short-sighted) clients that I do general consulting for has an Access application that is not distributed via runtime. It has cost them more in the last year to purchase Office Pro than it would have cost to just buy the developer Wise/Sagekey and send them to training to learn how to use it. They have no reason to purchase Office Pro other than this app and it is over double the cost to have Office 2k3 Pro versus Office k3 Basic.) John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 11:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] Seeking your Access Runtime Experiences Hello All, As you may have seen, I am currently enjoying being up to my elbows in Access 97, a database with 1000 linked oracle tables and hundreds of forms, reports, queries, pass through queries, dynamically generated SQL etc and of course loads of code, no errorhandling and no comments and no documentation! A question arose a few days ago about migrating it to Access 2003 and using the Runtime version. I have gone online and had a quick read of what is required for runtime, at its simplest level it seems to be to build a complete GUI, which I normally do anyway. The only thing that I usually depend on is the filter by form etc context menu's. Have you guys any comments to make on using the runtime? Rocky, why did you not use the Runtime for EZ-MRP? I am guessing that you evaluated it and found it troublesome. Is that the case? In fact, I get the impression that most of us do not use the runtime, the question I am curious about is why? It is surely handy to lock down an app but is it a heavy handed tool? Thanks all for your advice, Mark Breen Ireland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 1 12:45:56 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 10:45:56 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences References: Message-ID: <022f01c51e8e$e78130c0$6501a8c0@HAL9002> Mark: The target market for E-Z-MRP all seem to have Access. I've only run into one guy who didn't have it. However, I just got the Action Pack so I can support Access 2003 (while a 2000 mdb will run under 2003 the mde won't). I wanted it primarily for the Sleep Doctor which has to be a run time. So now I'm casting about for VSTO which I need to make a run time and will get the Sagekey script. Once that's done, I might make a run-time of E-Z-MRP but it will be a lot bigger package to send than the current package of mde, manual and sample databases which, zipped, are under 5MB. Rocky ----- Original Message ----- From: "Mark Breen" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 01, 2005 9:09 AM Subject: [AccessD] Seeking your Access Runtime Experiences > Hello All, > > As you may have seen, I am currently enjoying being up to my elbows in > Access 97, a database with 1000 linked oracle tables and hundreds of > forms, reports, queries, pass through queries, dynamically generated > SQL etc and of course loads of code, no errorhandling and no comments > and no documentation! > > A question arose a few days ago about migrating it to Access 2003 and > using the Runtime version. > > I have gone online and had a quick read of what is required for > runtime, at its simplest level it seems to be to build a complete GUI, > which I normally do anyway. > > The only thing that I usually depend on is the filter by form etc > context menu's. > > Have you guys any comments to make on using the runtime? Rocky, why > did you not use the Runtime for EZ-MRP? I am guessing that you > evaluated it and found it troublesome. Is that the case? > > In fact, I get the impression that most of us do not use the runtime, > the question I am curious about is why? It is surely handy to lock > down an app but is it a heavy handed tool? > > Thanks all for your advice, > > Mark Breen > Ireland > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Mar 1 12:58:45 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 10:58:45 -0800 Subject: [AccessD] Embedding a WAV file Message-ID: <024601c51e90$b224d790$6501a8c0@HAL9002> Dear List: Can a wav file be embedded in an access app like a jpg? And, if so, does it run on the click event of the control that holds it? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From Gustav at cactus.dk Tue Mar 1 13:06:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 20:06:05 +0100 Subject: [AccessD] Embedding a WAV file Message-ID: Hi Rocky You could save it as a blob (AppendChunk), then retrieve it (GetChunk) and save to a temp file which you launch. Not very fancy but it will probably work. Are we dealing with the alarm clock for the sleeper application? /gustav >>> bchacc at san.rr.com 01-03-2005 19:58:45 >>> Dear List: Can a wav file be embedded in an access app like a jpg? And, if so, does it run on the click event of the control that holds it? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- From martyconnelly at shaw.ca Tue Mar 1 13:32:53 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 01 Mar 2005 11:32:53 -0800 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server References: Message-ID: <4224C365.2040407@shaw.ca> One thing I found out that isn't clear in Sharepoint, is that you have to assign web designer or contributor rights to a user even if user is the administrator in order to upload an Access Table. Now I just have to figure out how to link pictures on the site into the list (table). Maybe I have to do this with xml web services. Sub WWSupload() On Error GoTo errout DoCmd.TransferDatabase transfertype:=acExport, databasetype:="WSS", _ databasename:="http://username.sharepointsite.com", _ objecttype:=acTable, Source:="Household Inventory", _ Destination:="Household Inventory", structureonly:=False errout: Debug.Print Err.Number & "-" & Err.Description End Sub Martin Reid wrote: > > Jim > > heres another article > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/pjsdk/html/pjsdkWebpInstallAndWSS_HV01100336.asp > > > > Martin > > On Mar 1 2005, Jim DeMarco wrote: > >> Are we able to create and use custom web parts if we are only using >> Sharepoint Services (not Portal Server)? >> >> Jim DeMarco >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid >> Sent: Tuesday, March 01, 2005 10:02 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server >> >> >> LOL >> >> I have been discussing some stuff of list. >> But in general SP also contains its own security systemn with lists >> etc. I am doing two major reviews for a publisher on Sharepoint. I >> also did a section on FrontPage 203 for Microsoft and I know there >> are a few articles up on MSDN. Have a look for FrontPage 2003 and >> Sharepoint. Paul Litwin wrote an article at the same time as me for >> them which dealt with Web Parts/XML and Access. >> >> Its really a trinity of Products - FrontPage 2003 (or .NET) >> Sharepoint services and SharePoint Portal Server. The Portal Server >> provides great indexing and searching capability for Sharepoint >> Services. But the main development tool is Web parts. Web parts >> provide descrite functionality for example a set of data from SQL >> Server, DB2 etc. ALso provides a single sign on cabability for >> multiple systems. >> >> Martin >> >> >> >> On Mar 1 2005, Susan Harkins wrote: >> >> > I think Martin's writing a book on SharePoint -- you might ring his >> > chimes. >> > > Susan H. > > Marty, >> > > Under the paragraph Using Sharepoint Lists, Mike states that > >> Sharepoint > uses an optimistic record locking scheme. This would let >> > me use an Access database as read-write for one location and >> read-only > for any others. >> > > Still, that could be useful in some situations. >> > > Dan Waters >> > ProMation Systems >> > > >> > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Mar 1 13:40:11 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 11:40:11 -0800 Subject: [AccessD] Embedding a WAV file References: Message-ID: <026d01c51e96$7bde6fb0$6501a8c0@HAL9002> Gustav: Actually it's a wav file that has a nice 'click' sound which I play whenever they click a command button. An audible confirmation that they've done something. But for beta testing we're sending this to people who are completely untechnological so we only want to send the one mde file and not 'Clicker.WAV' which they'd have to get into the same folder with the Sleep Advisor. So that's why I want to embed it. Right now, it plays fine using the PlaySound API. We still need more beta testers for the Sleep Advisor, BTW. You game? ANYBODY ELSE? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, March 01, 2005 11:06 AM Subject: Re: [AccessD] Embedding a WAV file > Hi Rocky > > You could save it as a blob (AppendChunk), then retrieve it (GetChunk) > and save to a temp file which you launch. > Not very fancy but it will probably work. > > Are we dealing with the alarm clock for the sleeper application? > > /gustav > >>>> bchacc at san.rr.com 01-03-2005 19:58:45 >>> > Dear List: > > Can a wav file be embedded in an access app like a jpg? And, if so, > does it run on the click event of the control that holds it? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Tue Mar 1 13:55:13 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 01 Mar 2005 20:55:13 +0100 Subject: [AccessD] Embedding a WAV file Message-ID: Hi Rocky Hmmm, the awful click sound from IE in Windows XP is one of the first things I remove. As for the beta test I would like to, but time right now doesn't permit ... /gustav >>> bchacc at san.rr.com 01-03-2005 20:40:11 >>> Gustav: Actually it's a wav file that has a nice 'click' sound which I play whenever they click a command button. An audible confirmation that they've done something. But for beta testing we're sending this to people who are completely untechnological so we only want to send the one mde file and not 'Clicker.WAV' which they'd have to get into the same folder with the Sleep Advisor. So that's why I want to embed it. Right now, it plays fine using the PlaySound API. We still need more beta testers for the Sleep Advisor, BTW. You game? ANYBODY ELSE? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Gustav Brock" To: Sent: Tuesday, March 01, 2005 11:06 AM Subject: Re: [AccessD] Embedding a WAV file > Hi Rocky > > You could save it as a blob (AppendChunk), then retrieve it (GetChunk) > and save to a temp file which you launch. > Not very fancy but it will probably work. > > Are we dealing with the alarm clock for the sleeper application? > > /gustav > >>>> bchacc at san.rr.com 01-03-2005 19:58:45 >>> > Dear List: > > Can a wav file be embedded in an access app like a jpg? And, if so, > does it run on the click event of the control that holds it? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- From martyconnelly at shaw.ca Tue Mar 1 14:19:03 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 01 Mar 2005 12:19:03 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences References: Message-ID: <4224CE37.8050200@shaw.ca> Just wondering if anyone has used the .msi file install with SageKey rather than Wise or Install Shield and if there any drawbacks. Mark Breen wrote: >Hello All, > >As you may have seen, I am currently enjoying being up to my elbows in >Access 97, a database with 1000 linked oracle tables and hundreds of >forms, reports, queries, pass through queries, dynamically generated >SQL etc and of course loads of code, no errorhandling and no comments >and no documentation! > >A question arose a few days ago about migrating it to Access 2003 and >using the Runtime version. > >I have gone online and had a quick read of what is required for >runtime, at its simplest level it seems to be to build a complete GUI, >which I normally do anyway. > >The only thing that I usually depend on is the filter by form etc >context menu's. > >Have you guys any comments to make on using the runtime? Rocky, why >did you not use the Runtime for EZ-MRP? I am guessing that you >evaluated it and found it troublesome. Is that the case? > >In fact, I get the impression that most of us do not use the runtime, >the question I am curious about is why? It is surely handy to lock >down an app but is it a heavy handed tool? > >Thanks all for your advice, > >Mark Breen >Ireland > > -- Marty Connelly Victoria, B.C. Canada From GregSmith at starband.net Tue Mar 1 14:20:54 2005 From: GregSmith at starband.net (GregSmith at starband.net) Date: Tue, 1 Mar 2005 15:20:54 -0500 (EST) Subject: [AccessD] Is the DBA Website down? In-Reply-To: <20050301133836.3EE992BFB4B@smtp.nildram.co.uk> References: <20050301133836.3EE992BFB4B@smtp.nildram.co.uk> Message-ID: <59787.65.118.249.214.1109708454.squirrel@cetus.email.starband.net> Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Mar 1 14:34:28 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 01 Mar 2005 12:34:28 -0800 Subject: [AccessD] "class not registered" error References: <5.1.0.14.2.20050301175857.031a7060@pop5.actcom.net.il> Message-ID: <4224D1D4.2020205@shaw.ca> There are a few things that can wrong with class wizards Did you install Jet Version 8 or 7? Here are some other things to try http://support.microsoft.com/default.aspx?scid=kb;en-us;303769 Usual cause Cause 5: There Is a Damaged Wizard File Resolution 1. Use Windows Explorer to locate the following wizard files: Acwzmain.mde, Acwztool.mde and Acwzlib.mde. 2. Change the file name extension of each file to "old." For example, change Acwzmain.mde to Acwzmain.old. 3. Reinstall Access to restore the files. handyman at actcom.co.il wrote: > This also didn't help the cause. I'm getting so frustrated with this, > that maybe I'll just upgrade to access 2002. I hope I don't open > another can of worms doing this :) > > > > > At 10:08 AM, 03/01/2005 -0500, you wrote: > >> Check this... >> >> http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 >> >> Lambert >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >> > handyman at actcom.co.il >> > Sent: Tuesday, March 01, 2005 8:42 AM >> > To: Access Developers discussion and problem solving >> > Subject: RE: [AccessD] "class not registered" error >> > >> > I did a repair on office, and it didn't help. I then deleted the >> entire >> > office, and reinstalled it. I am still getting this class error. >> > >> > Any other thoughts? >> > >> > Thanks.. >> > >> > At 12:16 PM, 03/01/2005 +0100, you wrote: >> > >CLass not registered and the listboxes in the wizard are empty?! >> > > >> > >Ha, had this last week or so after an Office update or a fix and >> repair >> > >which I did because the office update or something. Don't remember >> > >anymore what came first... >> > > >> > >The solution is to remove and reinstall the Access part of you office >> > >installation (removing the whole office is not necesary). >> > >Fix And repair does not work. >> > > >> > >Erwin >> > > >> > >-----Original Message----- >> > >From: accessd-bounces at databaseadvisors.com >> > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> > >handyman at actcom.co.il >> > >Sent: Tuesday, March 01, 2005 7:29 AM >> > >To: accessd at databaseadvisors.com >> > >Subject: [AccessD] "class not registered" error >> > > >> > >Hi all, >> > > >> > >I am trying to use the wizard to add a combo or list box to a form. >> > >Right after I select the query to use for my data, a "class not >> > >registered" error is returned. I am using access 2000, >> windows2000, and >> > >downloaded the latest patches, but this didn't help. >> > > >> > >When I try the same process on my access2002/xp operating system, it >> > >works fine. >> > > >> > >Can anyone give me a clue as to what's going on? >> > > >> > >Thanks >> > > >> > >Gershon >> > > > Gershon Markowitz > mailto:Handyman at actcom.co.il > http://www.yadchaimtzvi.org -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Tue Mar 1 14:50:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 12:50:10 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <59787.65.118.249.214.1109708454.squirrel@cetus.email.starband.net> Message-ID: <0ICO00F7PXY2WR@l-daemon> Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 1 15:00:54 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 1 Mar 2005 13:00:54 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: <4224CE37.8050200@shaw.ca> Message-ID: I've been wondering the same thing. Didn't MS go to Wise for help designing the MSI? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Tuesday, March 01, 2005 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Just wondering if anyone has used the .msi file install with SageKey rather than Wise or Install Shield and if there any drawbacks. Mark Breen wrote: >Hello All, > >As you may have seen, I am currently enjoying being up to my elbows in >Access 97, a database with 1000 linked oracle tables and hundreds of >forms, reports, queries, pass through queries, dynamically generated >SQL etc and of course loads of code, no errorhandling and no comments >and no documentation! > >A question arose a few days ago about migrating it to Access 2003 and >using the Runtime version. > >I have gone online and had a quick read of what is required for >runtime, at its simplest level it seems to be to build a complete GUI, >which I normally do anyway. > >The only thing that I usually depend on is the filter by form etc >context menu's. > >Have you guys any comments to make on using the runtime? Rocky, why >did you not use the Runtime for EZ-MRP? I am guessing that you >evaluated it and found it troublesome. Is that the case? > >In fact, I get the impression that most of us do not use the runtime, >the question I am curious about is why? It is surely handy to lock >down an app but is it a heavy handed tool? > >Thanks all for your advice, > >Mark Breen >Ireland > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 15:44:28 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 15:44:28 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: IIRC it was InstallShield. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Tuesday, March 01, 2005 3:01 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Seeking your Access Runtime Experiences I've been wondering the same thing. Didn't MS go to Wise for help designing the MSI? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Tuesday, March 01, 2005 12:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Just wondering if anyone has used the .msi file install with SageKey rather than Wise or Install Shield and if there any drawbacks. Mark Breen wrote: >Hello All, > >As you may have seen, I am currently enjoying being up to my elbows in >Access 97, a database with 1000 linked oracle tables and hundreds of >forms, reports, queries, pass through queries, dynamically generated >SQL etc and of course loads of code, no errorhandling and no comments >and no documentation! > >A question arose a few days ago about migrating it to Access 2003 and >using the Runtime version. > >I have gone online and had a quick read of what is required for >runtime, at its simplest level it seems to be to build a complete GUI, >which I normally do anyway. > >The only thing that I usually depend on is the filter by form etc >context menu's. > >Have you guys any comments to make on using the runtime? Rocky, why >did you not use the Runtime for EZ-MRP? I am guessing that you >evaluated it and found it troublesome. Is that the case? > >In fact, I get the impression that most of us do not use the runtime, >the question I am curious about is why? It is surely handy to lock >down an app but is it a heavy handed tool? > >Thanks all for your advice, > >Mark Breen >Ireland > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Tue Mar 1 15:59:42 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Tue, 01 Mar 2005 23:59:42 +0200 Subject: [AccessD] "class not registered" error In-Reply-To: <4224D1D4.2020205@shaw.ca> References: <5.1.0.14.2.20050301175857.031a7060@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20050301235758.031ebcb8@pop5.actcom.net.il> This also didn't help. :( If I deleted the whole office and reinstalled it, then everything should be fresh & new. My hunch is that maybe something in windows op(2000) is causing the problem. At 12:34 PM, 03/01/2005 -0800, you wrote: >There are a few things that can wrong with class wizards >Did you install Jet Version 8 or 7? >Here are some other things to try > >http://support.microsoft.com/default.aspx?scid=kb;en-us;303769 >Usual cause > > > Cause 5: There Is a Damaged Wizard File > > > Resolution > >1. Use Windows Explorer to locate the following wizard files: >Acwzmain.mde, Acwztool.mde and Acwzlib.mde. >2. Change the file name extension of each file to "old." For example, >change Acwzmain.mde to Acwzmain.old. >3. Reinstall Access to restore the files. > > > >handyman at actcom.co.il wrote: > >>This also didn't help the cause. I'm getting so frustrated with this, >>that maybe I'll just upgrade to access 2002. I hope I don't open another >>can of worms doing this :) >> >> >> >> >>At 10:08 AM, 03/01/2005 -0500, you wrote: >> >>>Check this... >>> >>>http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 >>> >>>Lambert >>> >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > handyman at actcom.co.il >>> > Sent: Tuesday, March 01, 2005 8:42 AM >>> > To: Access Developers discussion and problem solving >>> > Subject: RE: [AccessD] "class not registered" error >>> > >>> > I did a repair on office, and it didn't help. I then deleted the entire >>> > office, and reinstalled it. I am still getting this class error. >>> > >>> > Any other thoughts? >>> > >>> > Thanks.. >>> > >>> > At 12:16 PM, 03/01/2005 +0100, you wrote: >>> > >CLass not registered and the listboxes in the wizard are empty?! >>> > > >>> > >Ha, had this last week or so after an Office update or a fix and repair >>> > >which I did because the office update or something. Don't remember >>> > >anymore what came first... >>> > > >>> > >The solution is to remove and reinstall the Access part of you office >>> > >installation (removing the whole office is not necesary). >>> > >Fix And repair does not work. >>> > > >>> > >Erwin >>> > > >>> > >-----Original Message----- >>> > >From: accessd-bounces at databaseadvisors.com >>> > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > >handyman at actcom.co.il >>> > >Sent: Tuesday, March 01, 2005 7:29 AM >>> > >To: accessd at databaseadvisors.com >>> > >Subject: [AccessD] "class not registered" error >>> > > >>> > >Hi all, >>> > > >>> > >I am trying to use the wizard to add a combo or list box to a form. >>> > >Right after I select the query to use for my data, a "class not >>> > >registered" error is returned. I am using access 2000, windows2000, and >>> > >downloaded the latest patches, but this didn't help. >>> > > >>> > >When I try the same process on my access2002/xp operating system, it >>> > >works fine. >>> > > >>> > >Can anyone give me a clue as to what's going on? >>> > > >>> > >Thanks >>> > > >>> > >Gershon >>> >> >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org > > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From marklbreen at gmail.com Tue Mar 1 16:01:18 2005 From: marklbreen at gmail.com (Mark Breen) Date: Tue, 1 Mar 2005 22:01:18 +0000 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: References: Message-ID: Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help designing > the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey rather > than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows in > >Access 97, a database with 1000 linked oracle tables and hundreds of > >forms, reports, queries, pass through queries, dynamically generated > >SQL etc and of course loads of code, no errorhandling and no comments > >and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete GUI, > >which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Tue Mar 1 16:13:03 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 01 Mar 2005 22:13:03 +0000 Subject: [AccessD] Embedding a WAV file In-Reply-To: <026d01c51e96$7bde6fb0$6501a8c0@HAL9002> Message-ID: Rocky, Couldn't you just reference the windows .wav files already on the machine?...when the db launches...it finds the wave files and stores the path...when you click...it 'CLICKS'...I think most installs would have these files...if not error handle them...lol... Just a thought? Thanks, mark >From: "Rocky Smolin - Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Embedding a WAV file >Date: Tue, 1 Mar 2005 11:40:11 -0800 > >Gustav: > >Actually it's a wav file that has a nice 'click' sound which I play >whenever they click a command button. An audible confirmation that they've >done something. But for beta testing we're sending this to people who are >completely untechnological so we only want to send the one mde file and not >'Clicker.WAV' which they'd have to get into the same folder with the Sleep >Advisor. > >So that's why I want to embed it. Right now, it plays fine using the >PlaySound API. > >We still need more beta testers for the Sleep Advisor, BTW. You game? >ANYBODY ELSE? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > > >----- Original Message ----- From: "Gustav Brock" >To: >Sent: Tuesday, March 01, 2005 11:06 AM >Subject: Re: [AccessD] Embedding a WAV file > > >>Hi Rocky >> >>You could save it as a blob (AppendChunk), then retrieve it (GetChunk) >>and save to a temp file which you launch. >>Not very fancy but it will probably work. >> >>Are we dealing with the alarm clock for the sleeper application? >> >>/gustav >> >>>>>bchacc at san.rr.com 01-03-2005 19:58:45 >>> >>Dear List: >> >>Can a wav file be embedded in an access app like a jpg? And, if so, >>does it run on the click event of the control that holds it? >> >>MTIA, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >>-- >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 1 16:25:46 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 1 Mar 2005 14:25:46 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: 3) Be prepared to invest in (Installshield or Wise) And Sagekey etc (preferably Wise :P ) Installshield and wise are both the packagers (either will do, but my biased self would recommend Wise over Installshield, especially if you don't need the MSI packager). Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help designing > the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey rather > than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows in > >Access 97, a database with 1000 linked oracle tables and hundreds of > >forms, reports, queries, pass through queries, dynamically generated > >SQL etc and of course loads of code, no errorhandling and no comments > >and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete GUI, > >which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 1 16:38:27 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 1 Mar 2005 14:38:27 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences Message-ID: SageKey is NOT so expensive when you factor in their excellent support. Whenever we've had problems with an installer, their help has been outstanding. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Tuesday, March 01, 2005 2:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Seeking your Access Runtime Experiences 3) Be prepared to invest in (Installshield or Wise) And Sagekey etc (preferably Wise :P ) Installshield and wise are both the packagers (either will do, but my biased self would recommend Wise over Installshield, especially if you don't need the MSI packager). Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 2:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help designing > the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey rather > than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows > >in Access 97, a database with 1000 linked oracle tables and hundreds > >of forms, reports, queries, pass through queries, dynamically > >generated SQL etc and of course loads of code, no errorhandling and > >no comments and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete > >GUI, which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 16:39:15 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 16:39:15 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: Mark, I would include it in the cost to the client and keep ownership of it yourself. Easy to justify with 1000 units of O2k3 Pro! Once you write an install script in Wise it is really just a matter of tweaking it a bit for each app you distribute. No Bell curve, just a high start up learning period which goes down to almost nothing. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Breen Sent: Tuesday, March 01, 2005 4:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Seeking your Access Runtime Experiences Hello All you guys that replied to promptly, firstly, as usual thank you for your detailed comments. What I am taking from the emails is 1) Runtime is OK to use 2) Be prepared to put a little effort into custom menu's etc. 3) Be prepared to invest installshield or sagekey etc 4) Runtime is common enough. Just to clarify to you all, the reason I am asking about runtime is that we have 1000 pc's all with Access 97, but none are licenced for Acc2003 and we need ADO, not to mention the fact that A97 is no longer the bleeding edge. So, I have two choices, continue with A97 and attempt to add ADO and deal with all the associated difficulties of running an App that is getting a bit long in the tooth, albeit an nice ol' dear, or convert the entire app to A2003. It was this concept that raised the question of runtime, if I propose to the client that they buy 1000 licences for A2003, they may get a little fright, but if I propose the relatively small costs of getting set up for Runtime, then it may not be an issue. I will keep you all informed as to how it goes, but in the mean time, thank you very much for your help and comments. Mark Breen Happy in Ireland with his ol' pal Access 97. PS, perhaps next week I will build a web application with Access 2.0 and Windows 3.1 On Tue, 1 Mar 2005 15:44:28 -0600, John Bartow wrote: > IIRC it was InstallShield. > > John B. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > dmcafee at pacbell.net > Sent: Tuesday, March 01, 2005 3:01 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Seeking your Access Runtime Experiences > > I've been wondering the same thing. Didn't MS go to Wise for help > designing the MSI? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > MartyConnelly > Sent: Tuesday, March 01, 2005 12:19 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Seeking your Access Runtime Experiences > > Just wondering if anyone has used the .msi file install with SageKey > rather than Wise or Install Shield and if there any drawbacks. > > Mark Breen wrote: > > >Hello All, > > > >As you may have seen, I am currently enjoying being up to my elbows > >in Access 97, a database with 1000 linked oracle tables and hundreds > >of forms, reports, queries, pass through queries, dynamically > >generated SQL etc and of course loads of code, no errorhandling and > >no comments and no documentation! > > > >A question arose a few days ago about migrating it to Access 2003 and > >using the Runtime version. > > > >I have gone online and had a quick read of what is required for > >runtime, at its simplest level it seems to be to build a complete > >GUI, which I normally do anyway. > > > >The only thing that I usually depend on is the filter by form etc > >context menu's. > > > >Have you guys any comments to make on using the runtime? Rocky, why > >did you not use the Runtime for EZ-MRP? I am guessing that you > >evaluated it and found it troublesome. Is that the case? > > > >In fact, I get the impression that most of us do not use the runtime, > >the question I am curious about is why? It is surely handy to lock > >down an app but is it a heavy handed tool? > > > >Thanks all for your advice, > > > >Mark Breen > >Ireland > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 1 16:39:15 2005 From: john at winhaven.net (John Bartow) Date: Tue, 1 Mar 2005 16:39:15 -0600 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: You get good support with it too. John B. Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David From k.williamson5 at verizon.net Tue Mar 1 16:40:45 2005 From: k.williamson5 at verizon.net (Keith Williamson) Date: Tue, 01 Mar 2005 17:40:45 -0500 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <0ICO00F7PXY2WR@l-daemon> Message-ID: <000c01c51eaf$b637d6b0$568bfea9@KeithHome> Jim, Sho is Korksoft? Do they host our website? They charge us $10.00 per month.....along with the RoseHosting's $34.95. If Rose isn't our web host...I assume Korksoft is?? Regards, Keith Williamson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 01, 2005 3:50 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From k.williamson5 at verizon.net Tue Mar 1 16:43:01 2005 From: k.williamson5 at verizon.net (Keith Williamson) Date: Tue, 01 Mar 2005 17:43:01 -0500 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <0ICO00F7PXY2WR@l-daemon> Message-ID: <000d01c51eb0$07810320$568bfea9@KeithHome> Jim, I just called Korksoft.....they have a message that they are having a hardware problem with their hard drive...which won't be corrected until tomorrow. I assume that is our problem. Regards, Keith Williamson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 01, 2005 3:50 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 1 17:25:07 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 2 Mar 2005 00:25:07 +0100 Subject: [AccessD] "class not registered" error Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5839@stekelbes.ithelps.local> Do you also experience this when beeing logged on as another user. If not, you hav a corruption in that specific user registry If so, try this: Sometimes some registry keys are corrupt due to terminal shutdowns of the computer. If nothing else works, remove office via add/remove software compleetly. Reboot, then go in the registry and find the office xx keys in software\Microsoft Export this office key to a reg file and when done delete it fully. It's a long shot, but maybe it helps. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Tuesday, March 01, 2005 11:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] "class not registered" error This also didn't help. :( If I deleted the whole office and reinstalled it, then everything should be fresh & new. My hunch is that maybe something in windows op(2000) is causing the problem. At 12:34 PM, 03/01/2005 -0800, you wrote: >There are a few things that can wrong with class wizards Did you >install Jet Version 8 or 7? >Here are some other things to try > >http://support.microsoft.com/default.aspx?scid=kb;en-us;303769 >Usual cause > > > Cause 5: There Is a Damaged Wizard File > > > Resolution > >1. Use Windows Explorer to locate the following wizard files: >Acwzmain.mde, Acwztool.mde and Acwzlib.mde. >2. Change the file name extension of each file to "old." For example, >change Acwzmain.mde to Acwzmain.old. >3. Reinstall Access to restore the files. > > > >handyman at actcom.co.il wrote: > >>This also didn't help the cause. I'm getting so frustrated with this, >>that maybe I'll just upgrade to access 2002. I hope I don't open >>another can of worms doing this :) >> >> >> >> >>At 10:08 AM, 03/01/2005 -0500, you wrote: >> >>>Check this... >>> >>>http://support.microsoft.com/default.aspx?scid=kb;en-us;298355 >>> >>>Lambert >>> >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > handyman at actcom.co.il >>> > Sent: Tuesday, March 01, 2005 8:42 AM >>> > To: Access Developers discussion and problem solving >>> > Subject: RE: [AccessD] "class not registered" error >>> > >>> > I did a repair on office, and it didn't help. I then deleted the >>> > entire office, and reinstalled it. I am still getting this class error. >>> > >>> > Any other thoughts? >>> > >>> > Thanks.. >>> > >>> > At 12:16 PM, 03/01/2005 +0100, you wrote: >>> > >CLass not registered and the listboxes in the wizard are empty?! >>> > > >>> > >Ha, had this last week or so after an Office update or a fix and >>> > >repair which I did because the office update or something. Don't >>> > >remember anymore what came first... >>> > > >>> > >The solution is to remove and reinstall the Access part of you >>> > >office installation (removing the whole office is not necesary). >>> > >Fix And repair does not work. >>> > > >>> > >Erwin >>> > > >>> > >-----Original Message----- >>> > >From: accessd-bounces at databaseadvisors.com >>> > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> > >handyman at actcom.co.il >>> > >Sent: Tuesday, March 01, 2005 7:29 AM >>> > >To: accessd at databaseadvisors.com >>> > >Subject: [AccessD] "class not registered" error >>> > > >>> > >Hi all, >>> > > >>> > >I am trying to use the wizard to add a combo or list box to a form. >>> > >Right after I select the query to use for my data, a "class not >>> > >registered" error is returned. I am using access 2000, >>> > >windows2000, and downloaded the latest patches, but this didn't help. >>> > > >>> > >When I try the same process on my access2002/xp operating system, >>> > >it works fine. >>> > > >>> > >Can anyone give me a clue as to what's going on? >>> > > >>> > >Thanks >>> > > >>> > >Gershon >>> >> >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org > > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 1 17:31:35 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Tue, 1 Mar 2005 15:31:35 -0800 Subject: [AccessD] Seeking your Access Runtime Experiences In-Reply-To: Message-ID: Charlotte and John, I in no way meant that it isn't worth the price, it definitely is! I just meant if you don't have the funds and are contemplating the purchase, it can be hard to make that decision to pay almost as much to the bit of code as you are for the packaging software itself. But as mentioned, it is well worth it, and the money you pay will be less that the time you spend trying to deal with all of the problems that Sagekey has taken care of for you. David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Bartow Sent: Tuesday, March 01, 2005 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Seeking your Access Runtime Experiences You get good support with it too. John B. Sagekey is just a script that you run with either Install shield or Wise. Think of it as code (or a function) that you are buying from someone. Rather expensive for some sample code, but well worth it. David -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Tue Mar 1 17:49:08 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Tue, 1 Mar 2005 15:49:08 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <000c01c51eaf$b637d6b0$568bfea9@KeithHome> Message-ID: <20050301234921.919783FC0E@omta16.mta.everyone.net> Korksoft hosts the website, RoseHosting hosts the mailing list. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Keith Williamson > Sent: 01 Mar 2005 2:41 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Jim, > > Sho is Korksoft? Do they host our website? They charge us > $10.00 per month.....along with the RoseHosting's $34.95. If > Rose isn't our web host...I assume Korksoft is?? > > Regards, > > Keith Williamson > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Tuesday, March 01, 2005 3:50 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Hi All: > > The Database Advisors web site is down. It must have gone > down overnight and we still have not been able to contact the > ISP. When we have more information it will be posted to this list. > > Your patients will be greatly appreciated. > > Thanks > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > GregSmith at starband.net > Sent: Tuesday, March 01, 2005 12:21 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Is the DBA Website down? > > Looks like it still is. Nothing comes up except the search > engine for msn. > > > Looks like it to me. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > > > To: maintenance at databaseadvisors.com > , > > Access Developers discussion and problem solving > > > > Subject: [AccessD] Is the DBA Website down? > > Date: 01/03/05 13:31 > > > >> > >> I can't get it to some up and a few other people on the OT > list have > >> said the same thing. > >> > >> -- > >> Gary Kjos > >> garykjos at gmail.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> > >> > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 1 17:56:09 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 1 Mar 2005 15:56:09 -0800 Subject: [AccessD] Embedding a WAV file References: Message-ID: <031e01c51eba$3e2ec510$6501a8c0@HAL9002> Mark: I see that CLICKERX.WAV file in the I386 folder. Do you think that's where it appears on all versions of Windows? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Mark A Matte" To: Sent: Tuesday, March 01, 2005 2:13 PM Subject: Re: [AccessD] Embedding a WAV file > Rocky, > > Couldn't you just reference the windows .wav files already on the > machine?...when the db launches...it finds the wave files and stores the > path...when you click...it 'CLICKS'...I think most installs would have > these files...if not error handle them...lol... > > Just a thought? > > Thanks, > > mark > > >>From: "Rocky Smolin - Beach Access Software" >>Reply-To: Access Developers discussion and problem >>solving >>To: "Access Developers discussion and problem >>solving" >>Subject: Re: [AccessD] Embedding a WAV file >>Date: Tue, 1 Mar 2005 11:40:11 -0800 >> >>Gustav: >> >>Actually it's a wav file that has a nice 'click' sound which I play >>whenever they click a command button. An audible confirmation that >>they've done something. But for beta testing we're sending this to people >>who are completely untechnological so we only want to send the one mde >>file and not 'Clicker.WAV' which they'd have to get into the same folder >>with the Sleep Advisor. >> >>So that's why I want to embed it. Right now, it plays fine using the >>PlaySound API. >> >>We still need more beta testers for the Sleep Advisor, BTW. You game? >>ANYBODY ELSE? >> >>Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >> >> >>----- Original Message ----- From: "Gustav Brock" >>To: >>Sent: Tuesday, March 01, 2005 11:06 AM >>Subject: Re: [AccessD] Embedding a WAV file >> >> >>>Hi Rocky >>> >>>You could save it as a blob (AppendChunk), then retrieve it (GetChunk) >>>and save to a temp file which you launch. >>>Not very fancy but it will probably work. >>> >>>Are we dealing with the alarm clock for the sleeper application? >>> >>>/gustav >>> >>>>>>bchacc at san.rr.com 01-03-2005 19:58:45 >>> >>>Dear List: >>> >>>Can a wav file be embedded in an access app like a jpg? And, if so, >>>does it run on the click event of the control that holds it? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>>-- >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>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 Mar 1 17:53:47 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 15:53:47 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <20050301234921.919783FC0E@omta16.mta.everyone.net> Message-ID: <0ICP0007K6GUPW@l-daemon> Thank you Kathryn: Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Tuesday, March 01, 2005 3:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Korksoft hosts the website, RoseHosting hosts the mailing list. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Keith Williamson > Sent: 01 Mar 2005 2:41 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Jim, > > Sho is Korksoft? Do they host our website? They charge us > $10.00 per month.....along with the RoseHosting's $34.95. If > Rose isn't our web host...I assume Korksoft is?? > > Regards, > > Keith Williamson > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Tuesday, March 01, 2005 3:50 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Is the DBA Website down? > > Hi All: > > The Database Advisors web site is down. It must have gone > down overnight and we still have not been able to contact the > ISP. When we have more information it will be posted to this list. > > Your patients will be greatly appreciated. > > Thanks > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > GregSmith at starband.net > Sent: Tuesday, March 01, 2005 12:21 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Is the DBA Website down? > > Looks like it still is. Nothing comes up except the search > engine for msn. > > > Looks like it to me. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > > > To: maintenance at databaseadvisors.com > , > > Access Developers discussion and problem solving > > > > Subject: [AccessD] Is the DBA Website down? > > Date: 01/03/05 13:31 > > > >> > >> I can't get it to some up and a few other people on the OT > list have > >> said the same thing. > >> > >> -- > >> Gary Kjos > >> garykjos at gmail.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> > >> > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 1 18:02:58 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 01 Mar 2005 16:02:58 -0800 Subject: [AccessD] Is the DBA Website down? In-Reply-To: <000d01c51eb0$07810320$568bfea9@KeithHome> Message-ID: <0ICP001C36W70S@l-daemon> Hi Keith: RoseHosting manages our LIST mail but also handles the NameServer pointing to our web site location at Korksoft. Korksoft had to change their IP address so we have to update our NameServer addresses at RoseHosting. Make sense? There are three parts to every web site: 1. The Domain Name registration. 2. The NameServers that point our Domain name to our actual web site. 3. The actual web site. All can be at the same site or each can be at a different site. I believe it is better to de-bundle the NameServer management from the Domain Register site. There are a few free stable sites that can manage this. More later. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, March 01, 2005 2:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Jim, I just called Korksoft.....they have a message that they are having a hardware problem with their hard drive...which won't be corrected until tomorrow. I assume that is our problem. Regards, Keith Williamson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 01, 2005 3:50 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is the DBA Website down? Hi All: The Database Advisors web site is down. It must have gone down overnight and we still have not been able to contact the ISP. When we have more information it will be posted to this list. Your patients will be greatly appreciated. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 01, 2005 12:21 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Is the DBA Website down? Looks like it still is. Nothing comes up except the search engine for msn. > Looks like it to me. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: maintenance at databaseadvisors.com , > Access Developers discussion and problem solving > > Subject: [AccessD] Is the DBA Website down? > Date: 01/03/05 13:31 > >> >> I can't get it to some up and a few other people on the OT list have >> said the same thing. >> >> -- >> Gary Kjos >> garykjos at gmail.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Mar 1 19:18:56 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 2 Mar 2005 12:18:56 +1100 Subject: [AccessD] Embedding a WAV file In-Reply-To: <031e01c51eba$3e2ec510$6501a8c0@HAL9002> Message-ID: <200503020119.j221Jlec017365@cooper.uws.edu.au> Hi Rocky I have a folder in the App home folder for sounds. Also one for Images and Skins etc EG C:\Program Files\My app will be the 'home' folder And in it will be C:\Program Files\My app\Sounds (About 5 or 6 files in here) C:\Program Files\My app\Images (3 more folders and about 20 files in here) C:\Program Files\My app\Skins (1 folder (but it can grow) and many files in here) I install them when I install the app. They are my 'standard' folders and files and go with every app. And I refer to them now by heart with lines like (I actually use globals for the length of the session But can be done at a form Sub level just as easy) EG Dim strSkinToUse as String Dim strSkinFolder as String Dim strImagesFolder as String strSkinToUse = Dlookup("[SkinName]","tblOptions") strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)) - 1) & "\Images" strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" Then I refer to each skin component like.....('Cause I know 'em off by heart) Me.picture = strSkinFolder & "\Background.jpg" Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" I use the API code "PlaySound" for Playing Sounds Eg Private Sub Form_Load() PlaySound (strSoundsFolder & "\Logon.wav") End sub It works and is pretty simple. HTH See ya Darren From handyman at actcom.co.il Tue Mar 1 22:51:18 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 02 Mar 2005 06:51:18 +0200 Subject: [AccessD] tabbed form question Message-ID: <5.1.0.14.2.20050302063644.028039c0@pop5.actcom.net.il> Hi all, I have a tabbed form which has a whole load of categories of different parts that need to be purchased. Each category can have 1-30 items below it. I want each tab under the category to list it's item names and a checkbox. The user can then check off any items that needs to be purchased. I thought of making a tabbed form that has all the categories, and then have a subform that has 30 checkboxes and thru code fill in the checkbox label with the item names - and make any unused checkboxes not visible. Can anyone suggest an easier way? Thanks Gershon, (who still can't get my listbox wizards to work, but I ordered a new version of office) Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From accessd666 at yahoo.com Wed Mar 2 01:35:24 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 1 Mar 2005 23:35:24 -0800 (PST) Subject: [AccessD] Complex query....for me :-) Message-ID: <20050302073524.24958.qmail@web90109.mail.scd.yahoo.com> Hi group, I've got a table with a field called [category] and a field called [position]. I need a query that has several output fields: New Pos, Old Pos, Delivered The calculation for these fields is as follows: New Pos = SUM(POSITION) WHERE CATEGORY = "NP" Old Pos = SUM(POSITION) WHERE CATEGORY = "NZ" Delivered = SUM(POSITION) WHERE CATEGORY = "DD" But how do I create a query that spits out these values?? Thnx. Sander __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From Gustav at cactus.dk Wed Mar 2 04:23:25 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 02 Mar 2005 11:23:25 +0100 Subject: [AccessD] Complex query....for me :-) Message-ID: Hi Sander That could be: SELECT SUM(ABS(CATEGORY='NP')*POSITION) AS [New Pos], SUM(ABS(CATEGORY='NZ')*POSITION) AS [Old Pos], SUM(ABS(CATEGORY='DD')*POSITION) AS [Delivered] FROM tblYourTable; /gustav >>> accessd666 at yahoo.com 02-03-2005 08:35:24 >>> Hi group, I've got a table with a field called [category] and a field called [position]. I need a query that has several output fields: New Pos, Old Pos, Delivered The calculation for these fields is as follows: New Pos = SUM(POSITION) WHERE CATEGORY = "NP" Old Pos = SUM(POSITION) WHERE CATEGORY = "NZ" Delivered = SUM(POSITION) WHERE CATEGORY = "DD" But how do I create a query that spits out these values?? Thnx. Sander From accessd666 at yahoo.com Wed Mar 2 05:50:08 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 2 Mar 2005 03:50:08 -0800 (PST) Subject: [AccessD] Complex query....for me :-) In-Reply-To: Message-ID: <20050302115008.52837.qmail@web90101.mail.scd.yahoo.com> A very nice solution! Lets check the performance. Thnx Gustav. --- Gustav Brock wrote: > Hi Sander > > That could be: > > SELECT > SUM(ABS(CATEGORY='NP')*POSITION) AS [New Pos], > SUM(ABS(CATEGORY='NZ')*POSITION) AS [Old Pos], > SUM(ABS(CATEGORY='DD')*POSITION) AS [Delivered] > FROM > tblYourTable; > > /gustav > > >>> accessd666 at yahoo.com 02-03-2005 08:35:24 >>> > Hi group, > > I've got a table with a field called [category] and > a > field called [position]. > > I need a query that has several output fields: > New Pos, Old Pos, Delivered > > The calculation for these fields is as follows: > New Pos = SUM(POSITION) WHERE CATEGORY = "NP" > Old Pos = SUM(POSITION) WHERE CATEGORY = "NZ" > Delivered = SUM(POSITION) WHERE CATEGORY = "DD" > > But how do I create a query that spits out these > values?? > > Thnx. > > Sander > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From markamatte at hotmail.com Wed Mar 2 07:26:00 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 02 Mar 2005 13:26:00 +0000 Subject: [AccessD] Embedding a WAV file In-Reply-To: <031e01c51eba$3e2ec510$6501a8c0@HAL9002> Message-ID: Rocky, Actually looking at my machines...they all seem to be in different folders...and named differently. Maybe not such a good idea after all...unless you wanted the app to search for the file when it launches...and then store the path to reference later? Thanks, Mark >From: "Rocky Smolin - Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Embedding a WAV file >Date: Tue, 1 Mar 2005 15:56:09 -0800 > >Mark: > >I see that CLICKERX.WAV file in the I386 folder. Do you think that's where >it appears on all versions of Windows? > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > >----- Original Message ----- From: "Mark A Matte" >To: >Sent: Tuesday, March 01, 2005 2:13 PM >Subject: Re: [AccessD] Embedding a WAV file > > >>Rocky, >> >>Couldn't you just reference the windows .wav files already on the >>machine?...when the db launches...it finds the wave files and stores the >>path...when you click...it 'CLICKS'...I think most installs would have >>these files...if not error handle them...lol... >> >>Just a thought? >> >>Thanks, >> >>mark >> >> >>>From: "Rocky Smolin - Beach Access Software" >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: "Access Developers discussion and problem >>>solving" >>>Subject: Re: [AccessD] Embedding a WAV file >>>Date: Tue, 1 Mar 2005 11:40:11 -0800 >>> >>>Gustav: >>> >>>Actually it's a wav file that has a nice 'click' sound which I play >>>whenever they click a command button. An audible confirmation that >>>they've done something. But for beta testing we're sending this to >>>people who are completely untechnological so we only want to send the one >>>mde file and not 'Clicker.WAV' which they'd have to get into the same >>>folder with the Sleep Advisor. >>> >>>So that's why I want to embed it. Right now, it plays fine using the >>>PlaySound API. >>> >>>We still need more beta testers for the Sleep Advisor, BTW. You game? >>>ANYBODY ELSE? >>> >>>Regards, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >>> >>> >>>----- Original Message ----- From: "Gustav Brock" >>>To: >>>Sent: Tuesday, March 01, 2005 11:06 AM >>>Subject: Re: [AccessD] Embedding a WAV file >>> >>> >>>>Hi Rocky >>>> >>>>You could save it as a blob (AppendChunk), then retrieve it (GetChunk) >>>>and save to a temp file which you launch. >>>>Not very fancy but it will probably work. >>>> >>>>Are we dealing with the alarm clock for the sleeper application? >>>> >>>>/gustav >>>> >>>>>>>bchacc at san.rr.com 01-03-2005 19:58:45 >>> >>>>Dear List: >>>> >>>>Can a wav file be embedded in an access app like a jpg? And, if so, >>>>does it run on the click event of the control that holds it? >>>> >>>>MTIA, >>>> >>>>Rocky Smolin >>>>Beach Access Software >>>>http://www.e-z-mrp.com >>>>858-259-4334 >>>>-- >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Wed Mar 2 07:55:43 2005 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Wed, 02 Mar 2005 07:55:43 -0600 Subject: [AccessD] Access to Word Merge Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A1123B9BE@cntexchange.pgdp.usec.com> I am using the below code to open a Word document. The user wants to use a Word document for the printed form. So I am trying to create a Mail Merge with the EquipSpec.doc. Is there a way to use this same code but include something that will open the Word document to the current record? Sort of like using the OpenReport to a certain record: DoCmd.OpenReport stDocName, acPreview, , "[EquipSpecID]=" & Me![EquipSpecID] Virginia *********************************************** Function GoToEquipSpecForm() 'Opens Spec Word document Dim objWord As Object Set objWord = CreateObject("Word.Application") objWord.Visible = True objWord.Documents.Open "C:\Documents and Settings\Desktop\EQIPSPEC.doc", , True Set objWord = Nothing End Function From andy at minstersystems.co.uk Wed Mar 2 07:11:01 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 2 Mar 2005 14:11:01 +0100 Subject: [AccessD] Access to Word Merge Message-ID: <20050302141058.8DCD72C05D6@smtp.nildram.co.uk> Virginia I suggest you set the merge data of your doc to a temp table or a query rather than direct to a main table. If a temp table you write the required record to the tabel before opening the doc, then do the mailmerge. If you base the doc on a query you ensure with the query's criteria that it uses the right record. Either way the doc will then just open to the right record. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: [AccessD] Access to Word Merge Date: 02/03/05 13:57 > > I am using the below code to open a Word document. The user wants to use a > Word document for the printed form. So I am trying to create a Mail Merge > with the EquipSpec.doc. > > > > Is there a way to use this same code but include something that will open > the Word document to the current record? > > > > Sort of like using the OpenReport to a certain record: > > DoCmd.OpenReport stDocName, acPreview, , "[EquipSpecID]=" & > Me![EquipSpecID] > > > > Virginia > > > > *********************************************** > > Function GoToEquipSpecForm() > > 'Opens Spec Word document > > Dim objWord As Object > > > > Set objWord = CreateObject("Word.Application") > > objWord.Visible = True > > > > objWord.Documents.Open "C:Documents and SettingsDesktopEQIPSPEC.doc", , > True > > > > Set objWord = Nothing > > > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Jdemarco at hudsonhealthplan.org Wed Mar 2 09:54:52 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Wed, 2 Mar 2005 10:54:52 -0500 Subject: [AccessD] HTML personalized mass mail Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D02@TTNEXCHCL2.hshhp.com> Gustav, Is there even a way for you to determine whether the client can view HTML mail? Many that don't will display the HTML code instead of the formatting. I know that when I sign up for newsletters there's an option as to which format I'd like to recieve (text or HTML). Is that not an option for your client? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Gustav at cactus.dk Wed Mar 2 10:14:37 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 02 Mar 2005 17:14:37 +0100 Subject: [AccessD] HTML personalized mass mail Message-ID: Hi Jim Receivers are executives who you cannot be expected to make decisions on anything regarding format. Thus I wish to create e-mails of the sort where HTML is displayed if the reader can and will do it, otherwise a similar content should be displayed but as plain text including a link to the HTML formatted newsletter to be viewed in a browser if the receiver wish to. /gustav >>> Jdemarco at hudsonhealthplan.org 02-03-2005 16:54:52 >>> Gustav, Is there even a way for you to determine whether the client can view HTML mail? Many that don't will display the HTML code instead of the formatting. I know that when I sign up for newsletters there's an option as to which format I'd like to recieve (text or HTML). Is that not an option for your client? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Tuesday, March 01, 2005 9:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] HTML personalized mass mail Hi all The client wish to move from general mass e-mail (Dear customer ..) in plain text to personalized e-mail (Dear Mrs. Harkins ..) in HTML format. I know all about getting Access to generate e-mails and have them mailed but how to create the body of the e-mail in HTML format? Also, the e-mail must contain a part in plain text which will be shown to those receivers not having a mail client with HTML reader. My thought is to have the client's advertising agency creating a template with a "field" - some unique search word which I can search for and replace with the actual customer's name as it carries no purpose to have the Access app build the e-mail from scratch. Has anyone done something similar? /gustav From markamatte at hotmail.com Wed Mar 2 10:17:13 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 02 Mar 2005 16:17:13 +0000 Subject: [AccessD] tabbed form question In-Reply-To: <5.1.0.14.2.20050302063644.028039c0@pop5.actcom.net.il> Message-ID: Gershon, I do something similar...five tabs...different categories of questions on each tab. Instead of labels...I use 'locked' text boxes in a subform on each tab. The subform is driven by a table that contains ALL of the questions and is filtered by the question type for each tab. Hope that helps. Mark A. Matte >From: handyman at actcom.co.il >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] tabbed form question >Date: Wed, 02 Mar 2005 06:51:18 +0200 > >Hi all, > >I have a tabbed form which has a whole load of categories of different >parts that need to be purchased. Each category can have 1-30 items below >it. I want each tab under the category to list it's item names and a >checkbox. The user can then check off any items that needs to be purchased. > >I thought of making a tabbed form that has all the categories, and then >have a subform that has 30 checkboxes and thru code fill in the checkbox >label with the item names - and make any unused checkboxes not visible. >Can anyone suggest an easier way? > >Thanks > >Gershon, (who still can't get my listbox wizards to work, but I ordered a >new version of office) > >Gershon Markowitz >mailto:Handyman at actcom.co.il >http://www.yadchaimtzvi.org > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Wed Mar 2 10:33:27 2005 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Wed, 02 Mar 2005 10:33:27 -0600 Subject: [AccessD] Access to Word Merge Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A1123BB40@cntexchange.pgdp.usec.com> The mail merge is getting the data from a query - not directly from a table. But on the form, when you go to a specific record. I want a cmdButton that will run the code to open the Word (mail merge) & show just the data for that record. Right now the Word mail merge always opens to the first record in the database & not the current record from the form. I thought I would need some a statement in the code so the mail merge knows which record to display for the data. If I want ES-1, the Word file opens to ES-1. If I am on ES-23, the Word file opens to ES-23. Virginia ************************************************************** Virginia I suggest you set the merge data of your doc to a temp table or a query rather than direct to a main table. If a temp table you write the required record to the tabel before opening the doc, then do the mailmerge. If you base the doc on a query you ensure with the query's criteria that it uses the right record. Either way the doc will then just open to the right record. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving > To: accessd at databaseadvisors.com > Subject: [AccessD] Access to Word Merge Date: 02/03/05 13:57 > > I am using the below code to open a Word document. The user wants to use a > Word document for the printed form. So I am trying to create a Mail Merge > with the EquipSpec.doc. > > > > Is there a way to use this same code but include something that will open > the Word document to the current record? > > > > Sort of like using the OpenReport to a certain record: > > DoCmd.OpenReport stDocName, acPreview, , "[EquipSpecID]=" & > Me![EquipSpecID] > > > > Virginia > > > > *********************************************** > > Function GoToEquipSpecForm() > > 'Opens Spec Word document > > Dim objWord As Object > > > > Set objWord = CreateObject("Word.Application") > > objWord.Visible = True > > > > objWord.Documents.Open "C:Documents and SettingsDesktopEQIPSPEC.doc", , > True > > > > Set objWord = Nothing > > > > End Function From Developer at UltraDNT.com Wed Mar 2 11:21:39 2005 From: Developer at UltraDNT.com (Steve Conklin (Developer@UltraDNT)) Date: Wed, 2 Mar 2005 12:21:39 -0500 Subject: [AccessD] Access to Word Merge In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A1123BB40@cntexchange.pgdp.usec.com> Message-ID: <001101c51f4c$4ea9bed0$0700a8c0@COA3> Virginia: You will need a proper record position of the desired record, ie, ES-23 = record # 23 in the query (or it doesn't) ... Then once you have this number, the Word application needs to issue a GoTo command, for that same number SECTION, not page - this is important, a Word mail merge is numbered by sections for each record, not by page - there's a Page 1 for each record. Selection.GoTo What:=wdGoToSection, Which:=wdGoToFirst, Count:=, Name:="" Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis,Virginia Sent: Wednesday, March 02, 2005 11:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] Access to Word Merge The mail merge is getting the data from a query - not directly from a table. But on the form, when you go to a specific record. I want a cmdButton that will run the code to open the Word (mail merge) & show just the data for that record. Right now the Word mail merge always opens to the first record in the database & not the current record from the form. I thought I would need some a statement in the code so the mail merge knows which record to display for the data. If I want ES-1, the Word file opens to ES-1. If I am on ES-23, the Word file opens to ES-23. Virginia ************************************************************** Virginia I suggest you set the merge data of your doc to a temp table or a query rather than direct to a main table. If a temp table you write the required record to the tabel before opening the doc, then do the mailmerge. If you base the doc on a query you ensure with the query's criteria that it uses the right record. Either way the doc will then just open to the right record. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving > To: accessd at databaseadvisors.com > Subject: [AccessD] Access to Word Merge Date: 02/03/05 13:57 > > I am using the below code to open a Word document. The user wants to > use a Word document for the printed form. So I am trying to create a > Mail Merge with the EquipSpec.doc. > > > > Is there a way to use this same code but include something that will > open the Word document to the current record? > > > > Sort of like using the OpenReport to a certain record: > > DoCmd.OpenReport stDocName, acPreview, , > "[EquipSpecID]=" & > Me![EquipSpecID] > > > > Virginia > > > > *********************************************** > > Function GoToEquipSpecForm() > > 'Opens Spec Word document > > Dim objWord As Object > > > > Set objWord = CreateObject("Word.Application") > > objWord.Visible = True > > > > objWord.Documents.Open "C:Documents and SettingsDesktopEQIPSPEC.doc", , > True > > > > Set objWord = Nothing > > > > End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 2 11:25:09 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 2 Mar 2005 09:25:09 -0800 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> Message-ID: <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren > > -- > 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 Mar 2 12:05:26 2005 From: dw-murphy at cox.net (Doug Murphy) Date: Wed, 2 Mar 2005 10:05:26 -0800 Subject: [AccessD] Embedding a WAV file In-Reply-To: <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Message-ID: <002001c51f52$6ccd9980$c300a8c0@murphyf3vdfepi> Rocky, Why not just zip your database and the wav file into one zip file for testing distribution. Then tell your testers to leave all the files in the same folder when they unzip them? You can get the path to your application so you know the path to the wav file. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 02, 2005 9:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images > and Skins etc EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. And I > refer to them now by heart with lines like (I actually use globals for > the length of the session But can be done at a form Sub level just as > easy) EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Wed Mar 2 12:19:00 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 02 Mar 2005 20:19:00 +0200 Subject: [AccessD] tabbed form question In-Reply-To: References: <5.1.0.14.2.20050302063644.028039c0@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20050302201802.04a3a758@pop5.actcom.net.il> Mark, what do you mean by 'locked' text boxes? Thanks Gershon At 04:17 PM, 03/02/2005 +0000, you wrote: >Gershon, > >I do something similar...five tabs...different categories of questions on >each tab. Instead of labels...I use 'locked' text boxes in a subform on >each tab. The subform is driven by a table that contains ALL of the >questions and is filtered by the question type for each tab. > >Hope that helps. > >Mark A. Matte > >>From: handyman at actcom.co.il >>Reply-To: Access Developers discussion and problem >>solving >>To: accessd at databaseadvisors.com >>Subject: [AccessD] tabbed form question >>Date: Wed, 02 Mar 2005 06:51:18 +0200 >> >>Hi all, >> >>I have a tabbed form which has a whole load of categories of different >>parts that need to be purchased. Each category can have 1-30 items below >>it. I want each tab under the category to list it's item names and a >>checkbox. The user can then check off any items that needs to be purchased. >> >>I thought of making a tabbed form that has all the categories, and then >>have a subform that has 30 checkboxes and thru code fill in the checkbox >>label with the item names - and make any unused checkboxes not visible. >>Can anyone suggest an easier way? >> >>Thanks >> >>Gershon, (who still can't get my listbox wizards to work, but I ordered a >>new version of office) >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From bchacc at san.rr.com Wed Mar 2 12:46:23 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 2 Mar 2005 10:46:23 -0800 Subject: [AccessD] Embedding a WAV file References: <002001c51f52$6ccd9980$c300a8c0@murphyf3vdfepi> Message-ID: <022801c51f58$220eb720$6401a8c0@HAL9002> Believe it or not, we've had a problem with some people doing this. It would be the 90% solution. But it just seems to me that if I can use this: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long to play an external file there should be some way to use it to play an embedded file. But I can't figure out how. Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 02, 2005 10:05 AM Subject: RE: [AccessD] Embedding a WAV file > Rocky, > > Why not just zip your database and the wav file into one zip file for > testing distribution. Then tell your testers to leave all the files in > the > same folder when they unzip them? You can get the path to your > application > so you know the path to the wav file. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 02, 2005 9:25 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include my WAV file and > it > will be transparent to the user. For beta testing I need to send them just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an Unbound > Object Frame. But getting it to play in the On Click events of other > controls, like command buttons, is the next problem. And then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a table and running it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > >> Hi Rocky >> I have a folder in the App home folder for sounds. Also one for Images >> and Skins etc EG >> C:\Program Files\My app will be the 'home' folder >> And in it will be >> C:\Program Files\My app\Sounds (About 5 or 6 files in here) >> C:\Program Files\My app\Images (3 more folders and about 20 files in >> here) >> C:\Program Files\My app\Skins (1 folder (but it can grow) and many files >> in >> here) >> >> I install them when I install the app. >> They are my 'standard' folders and files and go with every app. And I >> refer to them now by heart with lines like (I actually use globals for >> the length of the session But can be done at a form Sub level just as >> easy) EG >> Dim strSkinToUse as String >> Dim strSkinFolder as String >> Dim strImagesFolder as String >> >> strSkinToUse = Dlookup("[SkinName]","tblOptions") >> strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse >> strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Images" >> strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" >> >> Then I refer to each skin component like.....('Cause I know 'em off by >> heart) >> >> Me.picture = strSkinFolder & "\Background.jpg" >> Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" >> >> I use the API code "PlaySound" for Playing Sounds >> Eg >> Private Sub Form_Load() >> PlaySound (strSoundsFolder & "\Logon.wav") >> End sub >> >> It works and is pretty simple. >> >> HTH >> >> See ya >> >> Darren >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at touchtelindia.net Wed Mar 2 12:48:37 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 3 Mar 2005 00:18:37 +0530 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Message-ID: <00e901c51f58$8b5fc660$6a1865cb@winxp> Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren From Jim.Hale at FleetPride.com Wed Mar 2 13:22:54 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Wed, 2 Mar 2005 13:22:54 -0600 Subject: [AccessD] Embedding a WAV file Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677233744F@corp-es01.fleetpride.com> Is it possible to store it in a table, test if the file exists, and if not create it? Of course I do this routinely with bat and other text files but I don't know if it can be done with a wav file. Jim -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 02, 2005 12:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file Believe it or not, we've had a problem with some people doing this. It would be the 90% solution. But it just seems to me that if I can use this: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long to play an external file there should be some way to use it to play an embedded file. But I can't figure out how. Rocky ----- Original Message ----- From: "Doug Murphy" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 02, 2005 10:05 AM Subject: RE: [AccessD] Embedding a WAV file > Rocky, > > Why not just zip your database and the wav file into one zip file for > testing distribution. Then tell your testers to leave all the files in > the > same folder when they unzip them? You can get the path to your > application > so you know the path to the wav file. > > Doug > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 02, 2005 9:25 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include my WAV file and > it > will be transparent to the user. For beta testing I need to send them just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an Unbound > Object Frame. But getting it to play in the On Click events of other > controls, like command buttons, is the next problem. And then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a table and running it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > >> Hi Rocky >> I have a folder in the App home folder for sounds. Also one for Images >> and Skins etc EG >> C:\Program Files\My app will be the 'home' folder >> And in it will be >> C:\Program Files\My app\Sounds (About 5 or 6 files in here) >> C:\Program Files\My app\Images (3 more folders and about 20 files in >> here) >> C:\Program Files\My app\Skins (1 folder (but it can grow) and many files >> in >> here) >> >> I install them when I install the app. >> They are my 'standard' folders and files and go with every app. And I >> refer to them now by heart with lines like (I actually use globals for >> the length of the session But can be done at a form Sub level just as >> easy) EG >> Dim strSkinToUse as String >> Dim strSkinFolder as String >> Dim strImagesFolder as String >> >> strSkinToUse = Dlookup("[SkinName]","tblOptions") >> strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse >> strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Images" >> strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - >> Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" >> >> Then I refer to each skin component like.....('Cause I know 'em off by >> heart) >> >> Me.picture = strSkinFolder & "\Background.jpg" >> Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" >> >> I use the API code "PlaySound" for Playing Sounds >> Eg >> Private Sub Form_Load() >> PlaySound (strSoundsFolder & "\Logon.wav") >> End sub >> >> It works and is pretty simple. >> >> HTH >> >> See ya >> >> Darren >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From bchacc at san.rr.com Wed Mar 2 13:32:23 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 2 Mar 2005 11:32:23 -0800 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> <00e901c51f58$8b5fc660$6a1865cb@winxp> Message-ID: <023a01c51f5e$8f60f490$6401a8c0@HAL9002> A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Mar 2 14:59:09 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 02 Mar 2005 20:59:09 +0000 Subject: [AccessD] tabbed form question In-Reply-To: <5.1.0.14.2.20050302201802.04a3a758@pop5.actcom.net.il> Message-ID: Gershon, On the 'data' tab of the text box properties...there is a LOCKED property ( does not allow user to edit data in this field). This allows me to display the questions and a check box for each record...and the user can use the check box...but not edit the question. You can even go a step farther and use the textbox's format properties(back style,back color, etc.) to make it look like a label. Let me know if you have any other questions. Thanks, Mark >From: handyman at actcom.co.il >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: RE: [AccessD] tabbed form question >Date: Wed, 02 Mar 2005 20:19:00 +0200 > >Mark, > >what do you mean by 'locked' text boxes? > >Thanks > >Gershon > >At 04:17 PM, 03/02/2005 +0000, you wrote: >>Gershon, >> >>I do something similar...five tabs...different categories of questions on >>each tab. Instead of labels...I use 'locked' text boxes in a subform on >>each tab. The subform is driven by a table that contains ALL of the >>questions and is filtered by the question type for each tab. >> >>Hope that helps. >> >>Mark A. Matte >> >>>From: handyman at actcom.co.il >>>Reply-To: Access Developers discussion and problem >>>solving >>>To: accessd at databaseadvisors.com >>>Subject: [AccessD] tabbed form question >>>Date: Wed, 02 Mar 2005 06:51:18 +0200 >>> >>>Hi all, >>> >>>I have a tabbed form which has a whole load of categories of different >>>parts that need to be purchased. Each category can have 1-30 items below >>>it. I want each tab under the category to list it's item names and a >>>checkbox. The user can then check off any items that needs to be >>>purchased. >>> >>>I thought of making a tabbed form that has all the categories, and then >>>have a subform that has 30 checkboxes and thru code fill in the checkbox >>>label with the item names - and make any unused checkboxes not visible. >>>Can anyone suggest an easier way? >>> >>>Thanks >>> >>>Gershon, (who still can't get my listbox wizards to work, but I ordered a >>>new version of office) >>> >>>Gershon Markowitz >>>mailto:Handyman at actcom.co.il >>>http://www.yadchaimtzvi.org >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > >Gershon Markowitz >mailto:Handyman at actcom.co.il >http://www.yadchaimtzvi.org >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Robert at servicexp.com Wed Mar 2 15:06:49 2005 From: Robert at servicexp.com (Robert Gracie) Date: Wed, 2 Mar 2005 16:06:49 -0500 Subject: [AccessD] OT: Exchange 2003 In-Reply-To: <200503020119.j221Jlec017365@cooper.uws.edu.au> Message-ID: I'm trying to set up a sever (Server 2003) and Exchange 2003, and I'm having a heck of a time figuring this email set up out. Does anyone have a recommendation for a good (down to earth) book on Exchange 2003, and how Host DNS's (mx records and such) work with my system? Robert Gracie From d.dick at uws.edu.au Wed Mar 2 16:38:09 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 3 Mar 2005 09:38:09 +1100 Subject: [AccessD] Embedding a WAV file In-Reply-To: <01ee01c51f4c$c92dba80$6401a8c0@HAL9002> Message-ID: <200503022239.j22Md2ec021481@cooper.uws.edu.au> Hi Rocky Demo Sent off line Anyone else want a demo? Send an email OFF LIST to d.dick at uws.edu.au See ya DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, 3 March 2005 4:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 2 17:43:11 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 02 Mar 2005 15:43:11 -0800 Subject: [AccessD] Web site up In-Reply-To: <023a01c51f5e$8f60f490$6401a8c0@HAL9002> Message-ID: <0ICR00E210JUET@l-daemon> Hi All: Thanks to Bryan and other help the DBA web site is up and running. We will be working to make sure that there is at least a process in place that will deter this event from happening again. Thanks all for your patients Jim Lawrence The web guy From martyconnelly at shaw.ca Wed Mar 2 21:23:59 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 02 Mar 2005 19:23:59 -0800 Subject: [AccessD] OT: Exchange 2003 References: Message-ID: <4226834F.3060000@shaw.ca> Dont know about a book but that and tips can be found here http://www.slipstick.com/exs/index.htm Robert Gracie wrote: > I'm trying to set up a sever (Server 2003) and Exchange 2003, and I'm >having a heck of a time figuring this email set up out. > > Does anyone have a recommendation for a good (down to earth) book on >Exchange 2003, and how Host DNS's (mx records and such) work with my system? > > >Robert Gracie > > > -- Marty Connelly Victoria, B.C. Canada From handyman at actcom.co.il Wed Mar 2 21:35:41 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Thu, 03 Mar 2005 05:35:41 +0200 Subject: [AccessD] tabbed form question In-Reply-To: References: <5.1.0.14.2.20050302201802.04a3a758@pop5.actcom.net.il> Message-ID: <5.1.0.14.2.20050303053511.03430de8@pop5.actcom.net.il> I forgot about that. Thanks. works fine. gershon At 08:59 PM, 03/02/2005 +0000, you wrote: >Gershon, > >On the 'data' tab of the text box properties...there is a LOCKED property >( does not allow user to edit data in this field). This allows me to >display the questions and a check box for each record...and the user can >use the check box...but not edit the question. You can even go a step >farther and use the textbox's format properties(back style,back color, >etc.) to make it look like a label. > >Let me know if you have any other questions. > >Thanks, > >Mark > > >>From: handyman at actcom.co.il >>Reply-To: Access Developers discussion and problem >>solving >>To: Access Developers discussion and problem >>solving >>Subject: RE: [AccessD] tabbed form question >>Date: Wed, 02 Mar 2005 20:19:00 +0200 >> >>Mark, >> >>what do you mean by 'locked' text boxes? >> >>Thanks >> >>Gershon >> >>At 04:17 PM, 03/02/2005 +0000, you wrote: >>>Gershon, >>> >>>I do something similar...five tabs...different categories of questions >>>on each tab. Instead of labels...I use 'locked' text boxes in a subform >>>on each tab. The subform is driven by a table that contains ALL of the >>>questions and is filtered by the question type for each tab. >>> >>>Hope that helps. >>> >>>Mark A. Matte >>> >>>>From: handyman at actcom.co.il >>>>Reply-To: Access Developers discussion and problem >>>>solving >>>>To: accessd at databaseadvisors.com >>>>Subject: [AccessD] tabbed form question >>>>Date: Wed, 02 Mar 2005 06:51:18 +0200 >>>> >>>>Hi all, >>>> >>>>I have a tabbed form which has a whole load of categories of different >>>>parts that need to be purchased. Each category can have 1-30 items >>>>below it. I want each tab under the category to list it's item names >>>>and a checkbox. The user can then check off any items that needs to be >>>>purchased. >>>> >>>>I thought of making a tabbed form that has all the categories, and then >>>>have a subform that has 30 checkboxes and thru code fill in the >>>>checkbox label with the item names - and make any unused checkboxes not >>>>visible. >>>>Can anyone suggest an easier way? >>>> >>>>Thanks >>>> >>>>Gershon, (who still can't get my listbox wizards to work, but I ordered >>>>a new version of office) >>>> >>>>Gershon Markowitz >>>>mailto:Handyman at actcom.co.il >>>>http://www.yadchaimtzvi.org >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >> >>Gershon Markowitz >>mailto:Handyman at actcom.co.il >>http://www.yadchaimtzvi.org >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com Gershon Markowitz mailto:Handyman at actcom.co.il http://www.yadchaimtzvi.org From martyconnelly at shaw.ca Wed Mar 2 21:51:38 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 02 Mar 2005 19:51:38 -0800 Subject: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server References: <4224C365.2040407@shaw.ca> Message-ID: <422689CA.30203@shaw.ca> Another little oddity about using Access Web Services to Sharepoint is some services screw up over authentication. If the user has not been authenticated, a Maximum retry on connection exceeded error occurs. In Visual Basic .NET or C# .NET, you authenticate the user from code by creating a Credentials object for the user. wsAdapter.Credentials = System.Net.CredentialCache.DefaultCredentials However it is not easy to do in Access 2003 with say GetListCollection of sharepoint http://username.sharepointsite.com/_vti_bin/Lists.asmx?op=GetListCollection So if you create a web service class via the wizard to getlist collection it doesn't authenticate properly with code like this testws. But if you pre run any straight forward soap xmlhttp call to the site it then works okay and the access program has established authentication as shown in the click sub below Sub testws() ' Class created by Access WS toolkit to connect to the Web service Dim ws As New clsws_Lists ' The collection is returned as an XML node list Dim lc As MSXML2.IXMLDOMNodeList 'Root node of the returned list Dim nod As MSXML2.IXMLDOMNode ' Document to hold an XSLT transform Dim docXSLT As New MSXML2.DOMDocument50 ' Output string for the XML transformation Dim strOutput As String ' Retrieve the collection of lists Set lc = ws.wsm_GetListCollection ' Create the XSLT to select the desired information docXSLT.LoadXml (" " & _ "" & _ "," & _ "," & _ " ") ' Get the root node from the list Set nod = lc.Item(0) ' Apply the XSLT transform strOutput = (nod.transformNode(docXSLT)) Debug.Print strOutput End Sub Sub Click() On Error GoTo Err_Command8_Click Dim URL As String Dim http As New MSXML2.XMLHTTP Dim objResult As New MSXML2.DOMDocument Dim objStyle As New MSXML2.DOMDocument Dim strEnvelopeBegin As String Dim strEnvelopeEnd As String Dim xmlReq As String Dim s As String Dim strReturned As String Dim strQuery As String s = "" & vbCrLf URL = "http://mconnelly.sharepointsite.com/_vti_bin/Lists.asmx" strEnvelopeBegin = " " & vbCrLf & _ " " strEnvelopeEnd = vbCrLf & " " xmlReq = s & strEnvelopeBegin & strEnvelopeEnd Debug.Print xmlReq ' Me!Text0 = xmlReq ' Me!Text2 = URL http.Open "POST", URL, False 'http.setRequestHeader "Accept", "text/xml" http.setRequestHeader "Content-Type", "text/xml" ' http.setRequestHeader "Cache-Control", "no-cache" http.setRequestHeader "SOAPAction", "http://schemas.microsoft.com/sharepoint/soap/GetListCollection" ' http.setRequestHeader "SOAPMethodName", "GetListCollection" http.send xmlReq Debug.Print http.responseText; Len(http.responseText) Debug.Print http.Status; http.statusText WriteFile "C:\Access files\sharepoint\" & "test" & _ Format(Now, "yyyymmddhhmmss") & ".xml", http.responseText Debug.Print http.responseBody; Len(http.responseBody) Set http = Nothing Exit_Command8_Click: Exit Sub Err_Command8_Click: MsgBox Err.Description Resume Exit_Command8_Click End Sub Public Sub WriteFile(ByVal sFileName As String, ByVal sContents As String) ' Dump XML String to File for debugging Dim fhFile As Integer fhFile = FreeFile ' Debug.Print "Length of string=" & Len(sContents) Open sFileName For Output As #fhFile Print #fhFile, sContents; Close #fhFile Debug.Print "Out File" & sFileName End Sub MartyConnelly wrote: > One thing I found out that isn't clear in Sharepoint, is that you have > to assign web designer or contributor rights to a user > even if user is the administrator in order to upload an Access Table. > Now I just have to figure out how to link pictures on the site into > the list (table). > Maybe I have to do this with xml web services. > > Sub WWSupload() > On Error GoTo errout > DoCmd.TransferDatabase transfertype:=acExport, databasetype:="WSS", _ > databasename:="http://username.sharepointsite.com", _ > objecttype:=acTable, Source:="Household Inventory", _ > Destination:="Household Inventory", structureonly:=False > errout: > Debug.Print Err.Number & "-" & Err.Description > End Sub > > Martin Reid wrote: > >> >> Jim >> >> heres another article >> >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/pjsdk/html/pjsdkWebpInstallAndWSS_HV01100336.asp >> >> >> >> Martin >> >> On Mar 1 2005, Jim DeMarco wrote: >> >>> Are we able to create and use custom web parts if we are only using >>> Sharepoint Services (not Portal Server)? >>> >>> Jim DeMarco >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid >>> Sent: Tuesday, March 01, 2005 10:02 AM >>> To: Access Developers discussion and problem solving >>> Subject: RE: [AccessD] Re: [dba-Tech] Overview of Sharepoint Server >>> >>> >>> LOL >>> >>> I have been discussing some stuff of list. >>> But in general SP also contains its own security systemn with lists >>> etc. I am doing two major reviews for a publisher on Sharepoint. I >>> also did a section on FrontPage 203 for Microsoft and I know there >>> are a few articles up on MSDN. Have a look for FrontPage 2003 and >>> Sharepoint. Paul Litwin wrote an article at the same time as me for >>> them which dealt with Web Parts/XML and Access. >>> >>> Its really a trinity of Products - FrontPage 2003 (or .NET) >>> Sharepoint services and SharePoint Portal Server. The Portal Server >>> provides great indexing and searching capability for Sharepoint >>> Services. But the main development tool is Web parts. Web parts >>> provide descrite functionality for example a set of data from SQL >>> Server, DB2 etc. ALso provides a single sign on cabability for >>> multiple systems. >>> >>> Martin >>> >>> >>> >>> On Mar 1 2005, Susan Harkins wrote: >>> >>> > I think Martin's writing a book on SharePoint -- you might ring >>> his > chimes. >>> > > Susan H. > > Marty, >>> > > Under the paragraph Using Sharepoint Lists, Mike states that > >>> Sharepoint > uses an optimistic record locking scheme. This would >>> let > me use an Access database as read-write for one location and >>> read-only > for any others. >>> > > Still, that could be useful in some situations. >>> > > Dan Waters >>> > ProMation Systems >>> > > >>> >> > -- Marty Connelly Victoria, B.C. Canada From adtp at touchtelindia.net Wed Mar 2 22:48:43 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 3 Mar 2005 10:18:43 +0530 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au><01ee01c51f4c$c92 dba80$6401a8c0@HAL9002><00e901c51f58$8b5fc660$6a1865cb@winxp> <023a01c51f5e$8f60f490$6401a8c0@HAL9002> Message-ID: <005f01c51fac$8d242780$031865cb@winxp> Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren From andy at minstersystems.co.uk Thu Mar 3 01:54:58 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 3 Mar 2005 8:54:58 +0100 Subject: [AccessD] Web site up Message-ID: <20050303085456.4F7172BEBB6@smtp.nildram.co.uk> Thanks to you and Bryan for your efforts on our behalf. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Web site up Date: 03/03/05 02:26 > > Hi All: > > Thanks to Bryan and other help the DBA web site is up and running. We will > be working to make sure that there is at least a process in place that will > deter this event from happening again. > > Thanks all for your patients > > Jim Lawrence > The web guy > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From Paul.Rogers at SummitMedia.co.uk Thu Mar 3 05:42:06 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Thu, 3 Mar 2005 11:42:06 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F538@s003.wolds.summitmedia.co.uk> How do I look at the coding in an html email, please gurus? So easy of a website View/source, but it seems hidden away with Outlook. Cheers paul -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 From Chris.Foote at uk.thalesgroup.com Thu Mar 3 06:19:13 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 3 Mar 2005 12:19:13 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C5D7@ntscxch1.int.rdel.co.uk> In Outlook - open e-mail - hover cursor over body of message - click right hand mouse key - select View Source from drop-down menu - viola! HTH - Chris Foote > -----Original Message----- > From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk] > Sent: Thursday, March 03, 2005 11:42 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Looking behind those html emails > > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away > with Outlook. > Cheers > paul From andy at minstersystems.co.uk Thu Mar 3 05:35:49 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 3 Mar 2005 12:35:49 +0100 Subject: [AccessD] Looking behind those html emails Message-ID: <20050303123547.2F93F2C0262@smtp.nildram.co.uk> Hi Paul I'm using Outlook 2K and I can right-click and View Source. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Looking behind those html emails Date: 03/03/05 11:43 > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away with Outlook. > Cheers > paul > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From garykjos at gmail.com Thu Mar 3 08:32:54 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 3 Mar 2005 08:32:54 -0600 Subject: [AccessD] Web site up In-Reply-To: <0ICR00E210JUET@l-daemon> References: <023a01c51f5e$8f60f490$6401a8c0@HAL9002> <0ICR00E210JUET@l-daemon> Message-ID: Thanks Jim and Bryan and anyone else who helped out. You guys don't get nearly the credit you deserve. Thank you, thank you, thank you. Gary Kjos On Wed, 02 Mar 2005 15:43:11 -0800, Jim Lawrence wrote: > Hi All: > > Thanks to Bryan and other help the DBA web site is up and running. We will > be working to make sure that there is at least a process in place that will > deter this event from happening again. > > Thanks all for your patients > > Jim Lawrence > The web guy > > -- > 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 Gustav at cactus.dk Thu Mar 3 08:42:07 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 03 Mar 2005 15:42:07 +0100 Subject: [AccessD] Mimer SQL database engine Message-ID: Hi all Anyone familiar with this: http://www.mimer.com/ I have no idea of the license fee. /gustav From bchacc at san.rr.com Thu Mar 3 09:53:57 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 3 Mar 2005 07:53:57 -0800 Subject: [AccessD] Embedding a WAV file References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <"01ee01c51f4c$c92 dba80$6401a8c0"@HAL9002> <00e901c51f58$8b5fc660$6a1865cb@winxp> <023a01c51f5e$8f60f490$6401a8c0@HAL9002> <005f01c51fac$8d242780$031865cb@winxp> Message-ID: <009801c52009$35f106b0$6401a8c0@HAL9002> A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Thu Mar 3 10:05:49 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 3 Mar 2005 16:05:49 -0000 Subject: [AccessD] Embedding a WAV file Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C5DE@ntscxch1.int.rdel.co.uk> Personnally Rocky I would really dislike any sound that I could not easily disable. I have all of my machines set to stealth mode with absolute minimum beeps, clangs, whooshes and indeed that jarring windows noise. Consider an office full of machines running your app..... Just my two-pen'oth! Regards! Chris F > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 03, 2005 3:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > A.D.: > > Thanks again. We got feedback from one beta tester who > wanted to know how > to turn off that annoying click. So the question may be moot. > > So here's a user interface question for anyone - we put the > click sound > behind all of the command buttons as an audible confirmation > to the user. > This product is end-item consumer oriented - not to pros or > techies. So > some of the interface problems are a bit different than I've > previously > encountered. Do you think you'd like or dislike a click or > beep sound every > time you click the Next button? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 8:48 PM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Playing a wave sound through OLE control does not cause > any intrusion by > way of invoking a music player (like Real or Windows Media > Player). Just try > it. Absolutely normal except for the focus going to OLE control. > > If you are keen to try the API alternative, a way will > have to be found > to extract the sound clip from OLE object and place it in a > suitable folder. > This takes us back to square one, i.e. the wav files could as > well have been > stored in a special folder - to start with. > > Practical demonstration of playing a wav file using API > call, after > searching for it (if available in the target folder), is > covered in my > sample db named AppointmentsAlert, available at Rogers Access > Library (other > developers library). Link - > http://www.rogersaccesslibrary.com > > Best wishes, > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Thursday, March 03, 2005 01:02 > Subject: Re: [AccessD] Embedding a WAV file > > > A.D: > > Well that does work, but instead of playing it straight through the > speakers like the function: > > Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ > (ByVal IpszName As String, ByVal hModule As Long, _ > ByVal dwFLags As Long) As Long > > does, it invokes a player - in my case RealPlayer. Do you > know of a way > to use the function with an embedded wav file? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 10:48 AM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Sample code given below, pertains to bound OLE control > named Drg. > Record > source for the form is a table having wav sounds stored in > this field. > CmdSound is the name of command button used for playing the sound > pertaining > to current record. > > It may please be noted that when the sound clip is > played, the focus > gets captured by the OLE control. > > Best wishes, > A.D.Tejpal > -------------- > > ============================== > Private Sub CmdSound_Click() > On Error Resume Next > If Drg.OLEType = acOLENone Then > MsgBox "No Recording" > Else > Drg.Action = acOLEActivate > End If 'Drg > On Error GoTo 0 > End Sub > ============================== > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Wednesday, March 02, 2005 22:55 > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include > my WAV file and > it > will be transparent to the user. For beta testing I need > to send them > just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an > Unbound > Object Frame. But getting it to play in the On Click > events of other > controls, like command buttons, is the next problem. And > then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a > table and running > it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > > > Hi Rocky > > I have a folder in the App home folder for sounds. Also > one for Images > and > > Skins etc > > EG > > C:\Program Files\My app will be the 'home' folder > > And in it will be > > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > > C:\Program Files\My app\Images (3 more folders and > about 20 files in > here) > > C:\Program Files\My app\Skins (1 folder (but it can > grow) and many > files > > in > > here) > > > > I install them when I install the app. > > They are my 'standard' folders and files and go with every app. > > And I refer to them now by heart with lines like > > (I actually use globals for the length of the session > But can be done > at > a > > form Sub level just as easy) > > EG > > Dim strSkinToUse as String > > Dim strSkinFolder as String > > Dim strImagesFolder as String > > > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > > > Then I refer to each skin component like.....('Cause I > know 'em off by > > heart) > > > > Me.picture = strSkinFolder & "\Background.jpg" > > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > > > I use the API code "PlaySound" for Playing Sounds > > Eg > > Private Sub Form_Load() > > PlaySound (strSoundsFolder & "\Logon.wav") > > End sub > > > > It works and is pretty simple. > > > > HTH > > > > See ya > > > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Thu Mar 3 10:14:41 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 03 Mar 2005 08:14:41 -0800 Subject: [AccessD] Embedding a WAV file In-Reply-To: <009801c52009$35f106b0$6401a8c0@HAL9002> Message-ID: <0ICS00K86AGEEN@l-daemon> Hi Rocky: I personally am not use to clicking sounds, other than the clonking of the keyboard. I do think a lot of programs use the 'click' sound as the a 'hour-glass' visual clue can be used to inform a user process especially if is taking a while. My two cents worth Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 03, 2005 7:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Thu Mar 3 10:16:03 2005 From: JHewson at karta.com (Jim Hewson) Date: Thu, 3 Mar 2005 10:16:03 -0600 Subject: [AccessD] Embedding a WAV file Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068DFB@karta-exc-int.Karta.com> I have the sound turned down or mute on most of the machines I use. I don't hear the clicks, etc. I do hear music and the like when I need to but that is seldom. The constant sounds of the mouse and keyboard are all the confirmation I need. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 03, 2005 9:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 3 10:34:41 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 3 Mar 2005 10:34:41 -0600 Subject: [AccessD] Embedding a WAV file In-Reply-To: <009801c52009$35f106b0$6401a8c0@HAL9002> References: <200503020119.j221Jlec017365@cooper.uws.edu.au> <00e901c51f58$8b5fc660$6a1865cb@winxp> <023a01c51f5e$8f60f490$6401a8c0@HAL9002> <005f01c51fac$8d242780$031865cb@winxp> <009801c52009$35f106b0$6401a8c0@HAL9002> Message-ID: I'd hate it. A lot. > Do you think you'd like or dislike a click or beep sound every > time you click the Next button? > > Regards, -- Gary Kjos garykjos at gmail.com From bchacc at san.rr.com Thu Mar 3 10:50:55 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 3 Mar 2005 08:50:55 -0800 Subject: [AccessD] Embedding a WAV file References: <9C382E065F54AE48BC3AA7925DCBB01C02068DFB@karta-exc-int.Karta.com> Message-ID: <011701c52011$2b6ca340$6401a8c0@HAL9002> Thanks all. I'm beginning to get the idea. Confirming clicking is not a desirable feature. Makes this whole problem of running an embedded wav file moot as well. :) Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Jim Hewson" To: "Access Developers discussion and problem solving" Sent: Thursday, March 03, 2005 8:16 AM Subject: RE: [AccessD] Embedding a WAV file >I have the sound turned down or mute on most of the machines I use. > I don't hear the clicks, etc. I do hear music and the like when I need to > but that is seldom. > The constant sounds of the mouse and keyboard are all the confirmation I > need. > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, March 03, 2005 9:54 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Embedding a WAV file > > > A.D.: > > Thanks again. We got feedback from one beta tester who wanted to know how > to turn off that annoying click. So the question may be moot. > > So here's a user interface question for anyone - we put the click sound > behind all of the command buttons as an audible confirmation to the user. > This product is end-item consumer oriented - not to pros or techies. So > some of the interface problems are a bit different than I've previously > encountered. Do you think you'd like or dislike a click or beep sound > every > time you click the Next button? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 8:48 PM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Playing a wave sound through OLE control does not cause any intrusion > by > way of invoking a music player (like Real or Windows Media Player). Just > try > it. Absolutely normal except for the focus going to OLE control. > > If you are keen to try the API alternative, a way will have to be found > to extract the sound clip from OLE object and place it in a suitable > folder. > This takes us back to square one, i.e. the wav files could as well have > been > stored in a special folder - to start with. > > Practical demonstration of playing a wav file using API call, after > searching for it (if available in the target folder), is covered in my > sample db named AppointmentsAlert, available at Rogers Access Library > (other > developers library). Link - > http://www.rogersaccesslibrary.com > > Best wishes, > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Thursday, March 03, 2005 01:02 > Subject: Re: [AccessD] Embedding a WAV file > > > A.D: > > Well that does work, but instead of playing it straight through the > speakers like the function: > > Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ > (ByVal IpszName As String, ByVal hModule As Long, _ > ByVal dwFLags As Long) As Long > > does, it invokes a player - in my case RealPlayer. Do you know of a way > to use the function with an embedded wav file? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "A.D.Tejpal" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, March 02, 2005 10:48 AM > Subject: Re: [AccessD] Embedding a WAV file > > > Rocky, > > Sample code given below, pertains to bound OLE control named Drg. > Record > source for the form is a table having wav sounds stored in this field. > CmdSound is the name of command button used for playing the sound > pertaining > to current record. > > It may please be noted that when the sound clip is played, the focus > gets captured by the OLE control. > > Best wishes, > A.D.Tejpal > -------------- > > ============================== > Private Sub CmdSound_Click() > On Error Resume Next > If Drg.OLEType = acOLENone Then > MsgBox "No Recording" > Else > Drg.Action = acOLEActivate > End If 'Drg > On Error GoTo 0 > End Sub > ============================== > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: Access Developers discussion and problem solving > Sent: Wednesday, March 02, 2005 22:55 > Subject: Re: [AccessD] Embedding a WAV file > > > Darren: > > When I do the installable run-time I think I can include my WAV file > and > it > will be transparent to the user. For beta testing I need to send them > just > one file. So I'm still looking for a way to do this. > > I did insert-->Object-->from file and inserted the wav file in an > Unbound > Object Frame. But getting it to play in the On Click events of other > controls, like command buttons, is the next problem. And then, I would > probably have to insert this UOF in every form. > > Is there maybe a way of putting it into a field in a table and running > it > from there so it could be run from any form? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Darren DICK" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 01, 2005 5:18 PM > Subject: RE: [AccessD] Embedding a WAV file > > > > Hi Rocky > > I have a folder in the App home folder for sounds. Also one for > Images > and > > Skins etc > > EG > > C:\Program Files\My app will be the 'home' folder > > And in it will be > > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > > C:\Program Files\My app\Images (3 more folders and about 20 files in > here) > > C:\Program Files\My app\Skins (1 folder (but it can grow) and many > files > > in > > here) > > > > I install them when I install the app. > > They are my 'standard' folders and files and go with every app. > > And I refer to them now by heart with lines like > > (I actually use globals for the length of the session But can be done > at > a > > form Sub level just as easy) > > EG > > Dim strSkinToUse as String > > Dim strSkinFolder as String > > Dim strImagesFolder as String > > > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > > > Then I refer to each skin component like.....('Cause I know 'em off > by > > heart) > > > > Me.picture = strSkinFolder & "\Background.jpg" > > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > > > I use the API code "PlaySound" for Playing Sounds > > Eg > > Private Sub Form_Load() > > PlaySound (strSoundsFolder & "\Logon.wav") > > End sub > > > > It works and is pretty simple. > > > > HTH > > > > See ya > > > > Darren > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Chris.Foote at uk.thalesgroup.com Thu Mar 3 11:02:43 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 3 Mar 2005 17:02:43 -0000 Subject: [AccessD] Embedding a WAV file Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C5E0@ntscxch1.int.rdel.co.uk> Trouble is Rocky you are not really talking to the right kind of users here! If your app. is for use by data-entry type people, copy typing stuff from pieces of paper, they may like the audible feedback. By all means include the click, but offer an option to disable it would be my approch. Best regards! Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 03, 2005 4:51 PM > To: Access Developers discussion and problem solving > Cc: Rubin Naiman > Subject: Re: [AccessD] Embedding a WAV file > > > Thanks all. I'm beginning to get the idea. Confirming > clicking is not a > desirable feature. Makes this whole problem of running an > embedded wav file > moot as well. :) > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Jim Hewson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 03, 2005 8:16 AM > Subject: RE: [AccessD] Embedding a WAV file > > > >I have the sound turned down or mute on most of the machines I use. > > I don't hear the clicks, etc. I do hear music and the like > when I need to > > but that is seldom. > > The constant sounds of the mouse and keyboard are all the > confirmation I > > need. > > Jim From bchacc at san.rr.com Thu Mar 3 11:14:59 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 3 Mar 2005 09:14:59 -0800 Subject: [AccessD] Embedding a WAV file References: <97CF276BD8C6D4119C4B00508BB18DE709E0C5E0@ntscxch1.int.rdel.co.uk> Message-ID: <015c01c52014$8778e8d0$6401a8c0@HAL9002> Actually, the target is consumers - use it at home - its the sleep disorder analysis program. $40-$80, very non-technical users. That change anyone's mind? Rocky ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 03, 2005 9:02 AM Subject: RE: [AccessD] Embedding a WAV file > Trouble is Rocky you are not really talking to the right kind of users > here! > > If your app. is for use by data-entry type people, copy typing stuff from > pieces of paper, they may like the audible feedback. > > By all means include the click, but offer an option to disable it would be > my approch. > > Best regards! > Chris Foote > >> -----Original Message----- >> From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >> Sent: Thursday, March 03, 2005 4:51 PM >> To: Access Developers discussion and problem solving >> Cc: Rubin Naiman >> Subject: Re: [AccessD] Embedding a WAV file >> >> >> Thanks all. I'm beginning to get the idea. Confirming >> clicking is not a >> desirable feature. Makes this whole problem of running an >> embedded wav file >> moot as well. :) >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Jim Hewson" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 03, 2005 8:16 AM >> Subject: RE: [AccessD] Embedding a WAV file >> >> >> >I have the sound turned down or mute on most of the machines I use. >> > I don't hear the clicks, etc. I do hear music and the like >> when I need to >> > but that is seldom. >> > The constant sounds of the mouse and keyboard are all the >> confirmation I >> > need. >> > Jim > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Mar 3 11:23:45 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 03 Mar 2005 12:23:45 -0500 Subject: [AccessD] Embedding a WAV file In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C5E0@ntscxch1.int.rdel.co.uk> Message-ID: <002e01c52015$c12b7560$697aa8c0@ColbyM6805> Agreed, use the registry to store a disable if requested. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: Thursday, March 03, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Embedding a WAV file Trouble is Rocky you are not really talking to the right kind of users here! If your app. is for use by data-entry type people, copy typing stuff from pieces of paper, they may like the audible feedback. By all means include the click, but offer an option to disable it would be my approch. Best regards! Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 03, 2005 4:51 PM > To: Access Developers discussion and problem solving > Cc: Rubin Naiman > Subject: Re: [AccessD] Embedding a WAV file > > > Thanks all. I'm beginning to get the idea. Confirming > clicking is not a > desirable feature. Makes this whole problem of running an > embedded wav file > moot as well. :) > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Jim Hewson" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 03, 2005 8:16 AM > Subject: RE: [AccessD] Embedding a WAV file > > > >I have the sound turned down or mute on most of the machines I use. > >I don't hear the clicks, etc. I do hear music and the like > when I need to > > but that is seldom. > > The constant sounds of the mouse and keyboard are all the > confirmation I > > need. > > Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 13:03:45 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 11:03:45 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. From erbachs at gmail.com Thu Mar 3 13:06:13 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 13:06:13 -0600 Subject: [AccessD] Random numbers lottery-style Message-ID: <39cb22f305030311065cc6c1b9@mail.gmail.com> Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From dmcafee at pacbell.net Thu Mar 3 13:15:05 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 3 Mar 2005 11:15:05 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column In-Reply-To: Message-ID: Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Thu Mar 3 13:28:06 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 3 Mar 2005 14:28:06 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> Steve, Rather than an array how about using the VBA Collection object which will allow you to remove an item. Add your Activity ID items to a Collection with your numeric value as the key value. HTH, Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Random numbers lottery-style Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From pharold at proftesting.com Thu Mar 3 13:29:53 2005 From: pharold at proftesting.com (Perry Harold) Date: Thu, 3 Mar 2005 14:29:53 -0500 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030311065cc6c1b9@mail.gmail.com> Message-ID: <002101c52027$6063e520$192da8c0@D58BT131Perry> Steve How adding a check to see if the ActivityID is already in the selected list - then cycle around and run the randomizer again until there's not a match? Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Random numbers lottery-style Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nkling at co.montgomery.ny.us Thu Mar 3 13:50:30 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Thu, 3 Mar 2005 14:50:30 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <30BC111F638EB54082001A7E7282FE41114D01@elmo.co.montgomery.ny.us> This might do you. Return a randomized list from your table something like this: select tblActivities.* from tblActivities order by rnd(isnull(tblActivities.ActivityID) * 0 + 1) Then take the first 4 records (or however many) from the resulting recordset. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:06 PM To: Access Developers discussion and problem solving Subject: [AccessD] Random numbers lottery-style Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Mar 3 13:58:52 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 13:58:52 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <002101c52027$6063e520$192da8c0@D58BT131Perry> References: <39cb22f305030311065cc6c1b9@mail.gmail.com> <002101c52027$6063e520$192da8c0@D58BT131Perry> Message-ID: <39cb22f305030311583d11419e@mail.gmail.com> Perry, Are you talking about examining the recordset every time a new ActivityID is randomly selected for the current Volunteer before a new row is added? That should work. I guess I'm looking for something a bit more general purpose; that is, a function that returns a number from a given list while removing the number from the list for the next go round. Thanks, Steve Erbach On Thu, 3 Mar 2005 14:29:53 -0500, Perry Harold wrote: > Steve > > How adding a check to see if the ActivityID is already in the selected list > - then cycle around and run the randomizer again until there's not a match? > > Perry Harold From erbachs at gmail.com Thu Mar 3 14:03:11 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 14:03:11 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> Message-ID: <39cb22f305030312031c445e02@mail.gmail.com> JIm, I'd forgotten about collections. So, lets say we have a collection like thise: col(1) = 16 col(2) = 18 col(3) = 27 col(4) = 29 ... col(29) = 147 So we generate a random number from 1 to 29 and zoom in on that index in the collecition. If the selected number is 4 then I pick col(4) and then remove that item from the collection for the next go round. But how, then, do I pick the Nth collection item if the indexes are non-continguous? Or does the collection re-index itself after removing an item? Steve Erbach On Thu, 3 Mar 2005 14:28:06 -0500, Jim DeMarco wrote: > Steve, > > Rather than an array how about using the VBA Collection object which will allow you to remove an item. Add your Activity ID items to a Collection with your numeric value as the key value. > > HTH, > > Jim DeMarco From Lambert.Heenan at AIG.com Thu Mar 3 14:04:37 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 15:04:37 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D4F@xlivmbx21.aig.com> Try this... Function GetRandomSelections(nNumberOfSelections As Long, nSelectFrom As Long) As Variant Dim nSelection() As Long Dim n As Long Dim nHits As Long Dim nRnd As Long ReDim nSelection(nSelectFrom) For n = LBound(nSelection) To UBound(nSelection) nSelection(n) = 0 Next n nHits = 0 Randomize While nHits < nNumberOfSelections nRnd = Int(Rnd() * nSelectFrom) If nSelection(nRnd) = 0 Then ' new number selected. Flag it as 'used' nSelection(nRnd) = 1 nHits = nHits + 1 End If Wend GetRandomSelections = nSelection() End Function Sub testRnd() Dim vArray As Variant Dim n As Long Dim str As String vArray = GetRandomSelections(5, 29) For n = LBound(vArray) To UBound(vArray) If vArray(n) = 1 Then str = str & ", " & n End If Next n Debug.Print "Numbers chosen: " & str End Sub Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 2:06 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Random numbers lottery-style > > Dear Group, > > I'd like to fill up some test data tables in a Volunteer database that > tracks activities and the amount of time volunteers commit to these > activities. > > I thought that I might attempt filling the tables in a random fashion, > but I'm having some difficulty. The table (tblVolActivity) I want to > fill has this structure: > > VolActID - AutoNumber (Key) > VolunteerID - Long > ActivityDate - Date > ActivityID - Long > TimeSpent - Single > > I've created another table (tblTempVols) that contains the following info: > > VolunteerID - Long > NoOfInterests - Long > NoOfTimes - Long > > For each of the 300-odd volunteers I've used the Rnd function to fill > in the two 'NoOf' columns. The NoOfInterests is a number between 1 and > 6, representing the number of different types of activity a Volunteer > commits time to. For example, transporting people, paying visits to > the sick, or working in the gift shop. There are a total of 29 > different activities. > > The NoOfTimes column shows the total number of times the Volunteer > worked during the year. That number is between 1 and 48. Again, I used > the Rnd function to fill this column as well as the NoOfInterests > column. So it looks like this: > > VolunteerID - NoOfInterests - NoOfTimes > 1 - 3 - 13 > 2 - 6 - 5 > 3 - 4 - 2 > 4 - 4 - 16 > 5 - 2 - 38 > etc. > > Now I want to fill another table (tblTempActList) that has this structure: > > VolunteerID - Long > ActivityID - Long > > Here's where I'm stuck. The list of 29 different Activities has > ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is > interested in, say, 4 Interests (from the NoOfInterests column in > tblTempVols) I'd like to insert 4 rows for this Volunteer into this > tblTempActList table and randomly pick the ActivityIDs. Now, of > course, if I use the Rnd function to select 4 ActivityIDs there's a > chance that there will be duplicate ActivityIDs for this Volunteer. So > what I'd like to do is pick the ActivityIDs like they pick lottery > numbers; that is, removing the selected numbers from the pool before > picking the next one. > > How do I accomplish that is the question. Does anybody have, say, a > PickLotteryNumber() function where the function would take a list of > numbers and pick one while removing the selected number from the list > of available numbers? I've been fooling with arrays, but I can't > "erase" an array element from the middle with a ReDim statement. > > If this problem is solved then I can take the next step > > Any ideas? > -- > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > www.swerbach.com > Security Page: www.swerbach.com/security > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Mar 3 14:08:58 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 3 Mar 2005 15:08:58 -0500 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030311583d11419e@mail.gmail.com> Message-ID: <20050303200900.NKBC2296.imf21aec.mail.bellsouth.net@SUSANONE> Steve, I'm not sure what you're trying to do, but I once had produce a random set of records, based on different subsets -- I found it extremely difficult to work out all the kinks because there were so many conditions but in a nutshell, I ran a query to produce each subset, added a Rnd() to the subset, sorted on the Rnd(), and grabbed the top n number of records. Wasn't perfect, but it worked. Unfortunately, it was very slow. I ended up flagging the "selected" records and then running a Make Table on the flagged records, which did improve things a bit, but it never was a performance winner for me, but then, I was working with a ton of data, so I'm not sure anything would've been fast. Susan H. Perry, Are you talking about examining the recordset every time a new ActivityID is randomly selected for the current Volunteer before a new row is added? That should work. I guess I'm looking for something a bit more general purpose; that is, a function that returns a number from a given list while removing the number from the list for the next go round. Thanks, Steve Erbach On Thu, 3 Mar 2005 14:29:53 -0500, Perry Harold wrote: > Steve > > How adding a check to see if the ActivityID is already in the selected > list > - then cycle around and run the randomizer again until there's not a match? > > Perry Harold -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Mar 3 14:18:01 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 14:18:01 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030312031c445e02@mail.gmail.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D17@TTNEXCHCL2.hshhp.com> <39cb22f305030312031c445e02@mail.gmail.com> Message-ID: <39cb22f3050303121834a18191@mail.gmail.com> According to the documentation for the Remove method of a Collection, the index of the collection is, indeed, renumbered. That just might fill the bill. Thanks, Jim. Steve Erbach On Thu, 3 Mar 2005 14:03:11 -0600, Steve Erbach wrote: > JIm, > > I'd forgotten about collections. So, lets say we have a collection like thise: > > col(1) = 16 > col(2) = 18 > col(3) = 27 > col(4) = 29 > ... > col(29) = 147 > > So we generate a random number from 1 to 29 and zoom in on that index > in the collecition. If the selected number is 4 then I pick col(4) and > then remove that item from the collection for the next go round. > > But how, then, do I pick the Nth collection item if the indexes are > non-continguous? Or does the collection re-index itself after removing > an item? > > Steve Erbach > From Jdemarco at hudsonhealthplan.org Thu Mar 3 14:22:04 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Thu, 3 Mar 2005 15:22:04 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D1B@TTNEXCHCL2.hshhp.com> The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 3:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Random numbers lottery-style JIm, I'd forgotten about collections. So, lets say we have a collection like thise: col(1) = 16 col(2) = 18 col(3) = 27 col(4) = 29 ... col(29) = 147 So we generate a random number from 1 to 29 and zoom in on that index in the collecition. If the selected number is 4 then I pick col(4) and then remove that item from the collection for the next go round. But how, then, do I pick the Nth collection item if the indexes are non-continguous? Or does the collection re-index itself after removing an item? Steve Erbach On Thu, 3 Mar 2005 14:28:06 -0500, Jim DeMarco wrote: > Steve, > > Rather than an array how about using the VBA Collection object which will allow you to remove an item. Add your Activity ID items to a Collection with your numeric value as the key value. > > HTH, > > Jim DeMarco -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Lambert.Heenan at AIG.com Thu Mar 3 15:36:26 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 16:36:26 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D52@xlivmbx21.aig.com> Ok. If you'd prefer to use a collection instead of an array.... Function GetRandomCol(nNumberOfSelections As Long, nSelectFrom As Long) As Collection Dim c As New Collection Dim n As Long Dim nHits As Long Dim nRnd As Long Dim bHit As Boolean nHits = 0 Randomize While nHits < nNumberOfSelections nRnd = Int(Rnd() * nSelectFrom) bHit = False For n = 1 To c.Count If c.Item(n) = nRnd Then bHit = True Exit For End If Next n If bHit = False Then c.Add nRnd ' no need for a Key here as we will use the item() array to get at our members nHits = nHits + 1 End If Wend Set GetRandomCol = c End Function Sub testRndColl() Dim c As Collection Dim n As Long Set c = GetRandomCol(5, 29) For n = 1 To c.Count Debug.Print c.Item(n) & ", "; Next n Debug.Print End Sub Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 3:18 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Random numbers lottery-style > > According to the documentation for the Remove method of a Collection, > the index of the collection is, indeed, renumbered. That just might > fill the bill. Thanks, Jim. > > Steve Erbach > > > On Thu, 3 Mar 2005 14:03:11 -0600, Steve Erbach wrote: > > JIm, > > > > I'd forgotten about collections. So, lets say we have a collection like > thise: > > > > col(1) = 16 > > col(2) = 18 > > col(3) = 27 > > col(4) = 29 > > ... > > col(29) = 147 > > > > So we generate a random number from 1 to 29 and zoom in on that index > > in the collecition. If the selected number is 4 then I pick col(4) and > > then remove that item from the collection for the next go round. > > > > But how, then, do I pick the Nth collection item if the indexes are > > non-continguous? Or does the collection re-index itself after removing > > an item? > > > > Steve Erbach > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 15:45:15 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 13:45:15 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: We're trying to find out *why* it's happening so we can prevent it, and the form is shared with the Access version, so an sproc or view is out of the question. The client is in Oklahoma and using a runtime executable, so there isn't any printing to the immediate window. The fact that the dates appear if we remove the Format function from the rowsource strongly suggests that the dates are there but that something is interfering in rendering them. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 11:15 AM To: Access Developers discussion and problem solving Cc: Steve White Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Mar 3 15:54:30 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 3 Mar 2005 13:54:30 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column In-Reply-To: Message-ID: Something to do with the runtime maybe? Are you testing with a true runtime or using the /runtime parameter in the command line when testing on your end? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 1:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column We're trying to find out *why* it's happening so we can prevent it, and the form is shared with the Access version, so an sproc or view is out of the question. The client is in Oklahoma and using a runtime executable, so there isn't any printing to the immediate window. The fact that the dates appear if we remove the Format function from the rowsource strongly suggests that the dates are there but that something is interfering in rendering them. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 11:15 AM To: Access Developers discussion and problem solving Cc: Steve White Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 16:02:34 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 14:02:34 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: No, if it were the runtime installation (which is AXP SP3, BTW), we'd have problems on all the installations at that client. It's only turning up on some of the Win2k machines, not all. Even then, it doesn't make sense that it would display properly when you selected a well from the combobox on the form but not when you selected a well from another form and passed the value back, since that calls exactly the same AfterUpdate event for the Well combobox that making a direct selection calls. Furthermore, it ONLY breaks after opening the second form and choosing a well from there. We can't reproduce it in our office at all, but one of our owners saw it in action at the client location. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 1:54 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Something to do with the runtime maybe? Are you testing with a true runtime or using the /runtime parameter in the command line when testing on your end? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 1:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column We're trying to find out *why* it's happening so we can prevent it, and the form is shared with the Access version, so an sproc or view is out of the question. The client is in Oklahoma and using a runtime executable, so there isn't any printing to the immediate window. The fact that the dates appear if we remove the Format function from the rowsource strongly suggests that the dates are there but that something is interfering in rendering them. Charlotte Foust -----Original Message----- From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] Sent: Thursday, March 03, 2005 11:15 AM To: Access Developers discussion and problem solving Cc: Steve White Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Have you printed to the immediate window to see if the value is actually in the combo (just not displaying)? What about changing the resource to a view or sproc that formats the number for you? D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:04 AM To: AccessD at databaseadvisors.com Cc: Steve White Subject: [AccessD] AXP Combobox Shows blank formatted date column We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Mar 3 16:13:49 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 17:13:49 -0500 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D53@xlivmbx21.aig.com> I've just been dealing with a similar problem where I was using Left() in a combo's rowsource (I was taking the left 255 characters from a memo field so that I could sort on it). The combo would show blank rows on certain machines. Here is what I've found: This is an Access 97 application. The application uses Outlook to send email, so it has a reference set to the Outlook object library - for Outlook 97. It is running on a group of machines, some of which have Outlook 2000 and other have 97. This does not cause the 'usual' missing reference problem, rather Left() and Now() and such would need seem to function in Queries. Here's how I fixed it. I wrote a little module that wrapped the VBA functions Left, Right, Mid, Now and Date like this... Option Compare Database Option Explicit ' This module wraps a bunch of common VBA functions to help avoid problems with ' different versions of Outlook Function uLeft(strSource As String, nPos As Long) As String uLeft = VBA.Left$(strSource, nPos) End Function Function uRight(strSource As String, nPos As Long) As String uRight = VBA.Right$(strSource, nPos) End Function Function uMid(strSource As String, nStart As Long, Optional nEnd As Long = 0) If nEnd > 0 Then uMid = VBA.Mid$(strSource, nStart, nEnd) Else uMid = VBA.Mid$(strSource, nStart) End If End Function Function uNow() As Date uNow = VBA.Now() End Function Function uDate() As Date uDate = VBA.Date() End Function Function uFormat(sExpression As Variant, sFormat As String, Optional nFirstDayOfweek As Long = vbSunday, Optional nFirstWeekOfYear As Long = vbFirstJan1) As Variant uFormat = VBA.Format$(sExpression, sFormat, nFirstDayOfweek, nFirstWeekOfYear) End Function What this code does is prefix the calls to the VBA function with the explicit object library reference (VBA.) and this seems to have fixed my problem, so perhaps it can do the same for yours. Having written the module I then used Rick Fisher's Find and Replace to seek out and change all the calls to these functions to my 'universal' versions (hence the 'u' suffix in the function names). HTH Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, March 03, 2005 4:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > We're trying to find out *why* it's happening so we can prevent it, and > the form is shared with the Access version, so an sproc or view is out > of the question. The client is in Oklahoma and using a runtime > executable, so there isn't any printing to the immediate window. The > fact that the dates appear if we remove the Format function from the > rowsource strongly suggests that the dates are there but that something > is interfering in rendering them. > > Charlotte Foust > > > -----Original Message----- > From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] > Sent: Thursday, March 03, 2005 11:15 AM > To: Access Developers discussion and problem solving > Cc: Steve White > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > > Have you printed to the immediate window to see if the value is actually > in the combo (just not displaying)? > > What about changing the resource to a view or sproc that formats the > number for you? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Thursday, March 03, 2005 11:04 AM > To: AccessD at databaseadvisors.com > Cc: Steve White > Subject: [AccessD] AXP Combobox Shows blank formatted date column > > > We have a client installation where certain machines running Windows > 2000 are seeing an odd behavior in a combobox that displays two columns, > a report number and a medium formatted date. We have not been able to > reproduce the behavior here even on Win2k, so I need some ideas. The > back end is SQL Server 2000 and the combobox has this for a rowsource: > > SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") > FROM DailyDrillHdr WHERE > ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by > ReportNo desc; > > This works fine when the form opens and a WellID is selected. It breaks > when the user brings up a popup form that allows them to select a > different WellID and hand that back to the initial form. The initial > form obligingly changes the WellID in its Well combobox, which > repopulates the subform, and it specifically requeries the report number > combobox in the AfterUpdate event of the WellID combobox. > > At this point, however, on those problem machines, the date column of > the report number combo is blank and it doesn't show dates again until > the form is closed and reopened. The combobox is being requeried, > because the correct report numbers do show up in it, but not the dates > associated with them. The really odd part is that if you take the > formatting out of the combobox rowsource, the dates show up every time. > > > Has anyone else seen something like this? I know I have, but it's been > years ago and I can't remember what caused it! > > Charlotte Foust > Infostat Systems, Inc. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From erbachs at gmail.com Thu Mar 3 16:26:38 2005 From: erbachs at gmail.com (Steve Erbach) Date: Thu, 3 Mar 2005 16:26:38 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D1B@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D1B@TTNEXCHCL2.hshhp.com> Message-ID: <39cb22f305030314261ce420ae@mail.gmail.com> Jim, Thanks. I've created a collection that holds the dates for each day of the year for a one-year period. I also have a collection for the list of volunteer interests for one volunteer. But something funny is happening. I'm using Access 2003. In one procedure I DIM the two New Collections, colDays and colInts. I fill the colDays collection with a procedure that looks like this (I pass the colDays collection as a parameter right after DIMing it): Private Sub FillDaysCol(colD As Collection) Dim i As Long Dim dat As Date On Error GoTo PROC_ERR ' Set the starting day dat = CDate("8/1/2003") ' 366 days because of the leap year For i = 1 To 366 colD.Add dat, CStr(i) dat = DateAdd("d", 1, dat) Next i PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillDaysCol" Resume PROC_EXIT End Sub This works champion. I can Remove items from the collection at will and the collection persists as I pass it from procedure to procedure as a parameter. On the other hand, the colInts doesn't work so well. I DIM the colInts and pass it as a parameter to another procedure to fill it with the values from a recordset: Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) Dim lng1 As Long On Error GoTo PROC_ERR lng1 = 1 Do While Not rstI.EOF colI.Add rstI("ActivityID"), CStr(lng1) lng1 = lng1 + 1 rstI.MoveNext Loop PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillIntsCol" Resume PROC_EXIT End Sub The procedure builds the collection all right, but when I try to refer to one of its items back in the calling procedure, I get the error: Error 3420 : Object invalid or no longer set Now, if I put a break in the code at the start of the Do While loop, I can check the item's value in the Immediate window right after it's been added to the collection. But when the loop finishes up, I check the Count of the collection and I get the right number of items...but then I try to check the value of one of those items in the Immediate window, I get the error: No current record (runtime error 3021) What's this about a "record"? I am stumped here. Why does one collection "building" procedure work, but the other one doesn't? Steve Erbach On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco wrote: > The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. > > Jim D. From markamatte at hotmail.com Thu Mar 3 16:28:33 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 03 Mar 2005 22:28:33 +0000 Subject: [AccessD] AXP Combobox Shows blank formatted date column In-Reply-To: Message-ID: Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well from >another form and passed the value back, since that calls exactly the >same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when testing >on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is actually >in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two columns, >a report number and a medium formatted date. We have not been able to >reproduce the behavior here even on Win2k, so I need some ideas. The >back end is SQL Server 2000 and the combobox has this for a rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It breaks >when the user brings up a popup form that allows them to select a >different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report number >combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 16:46:56 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 14:46:56 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Thanks, Mark. I tried to get to the old archives, but got a "cannot display page" error getting to Drew's site. Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, March 03, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well >from another form and passed the value back, since that calls exactly >the same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when >testing on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is >actually in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two >columns, a report number and a medium formatted date. We have not been >able to reproduce the behavior here even on Win2k, so I need some >ideas. The back end is SQL Server 2000 and the combobox has this for a >rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It >breaks when the user brings up a popup form that allows them to select >a different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report >number combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 3 16:52:16 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 3 Mar 2005 14:52:16 -0800 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Eek! Did I remember to mention that the Record number combobox is unbound? It is merely used to select a report for viewing in the subforms. Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, March 03, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well >from another form and passed the value back, since that calls exactly >the same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when >testing on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is >actually in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two >columns, a report number and a medium formatted date. We have not been >able to reproduce the behavior here even on Win2k, so I need some >ideas. The back end is SQL Server 2000 and the combobox has this for a >rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It >breaks when the user brings up a popup form that allows them to select >a different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report >number combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Mar 3 16:53:52 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 3 Mar 2005 17:53:52 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2D57@xlivmbx21.aig.com> Could you post the code you are using to refer to an item in the collection? Both from your procedure and whatever you use in the immediate window. In fact would you mind posting the whole procedure that calls the two routines to populate the collections and then makes use of them? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 5:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Random numbers lottery-style > > Jim, > > Thanks. I've created a collection that holds the dates for each day of > the year for a one-year period. I also have a collection for the list > of volunteer interests for one volunteer. But something funny is > happening. > > I'm using Access 2003. In one procedure I DIM the two New Collections, > colDays and colInts. I fill the colDays collection with a procedure > that looks like this (I pass the colDays collection as a parameter > right after DIMing it): > > Private Sub FillDaysCol(colD As Collection) > Dim i As Long > Dim dat As Date > > On Error GoTo PROC_ERR > > ' Set the starting day > dat = CDate("8/1/2003") > ' 366 days because of the leap year > For i = 1 To 366 > colD.Add dat, CStr(i) > dat = DateAdd("d", 1, dat) > Next i > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillDaysCol" > Resume PROC_EXIT > End Sub > > This works champion. I can Remove items from the collection at will > and the collection persists as I pass it from procedure to procedure > as a parameter. > > On the other hand, the colInts doesn't work so well. I DIM the colInts > and pass it as a parameter to another procedure to fill it with the > values from a recordset: > > Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) > Dim lng1 As Long > > On Error GoTo PROC_ERR > > lng1 = 1 > Do While Not rstI.EOF > colI.Add rstI("ActivityID"), CStr(lng1) > lng1 = lng1 + 1 > rstI.MoveNext > Loop > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillIntsCol" > Resume PROC_EXIT > End Sub > > The procedure builds the collection all right, but when I try to refer > to one of its items back in the calling procedure, I get the error: > > Error 3420 : Object invalid or no longer set > > Now, if I put a break in the code at the start of the Do While loop, I > can check the item's value in the Immediate window right after it's > been added to the collection. But when the loop finishes up, I check > the Count of the collection and I get the right number of items...but > then I try to check the value of one of those items in the Immediate > window, I get the error: > > No current record (runtime error 3021) > > What's this about a "record"? I am stumped here. Why does one > collection "building" procedure work, but the other one doesn't? > > Steve Erbach > > On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco > wrote: > > The collection will reindex itself. There will be one less item for > each iteration so you'll have to use the Count property of the Collection > to determine the upper bound of the index in your random selection > process. > > > > Jim D. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pharold at proftesting.com Thu Mar 3 17:38:07 2005 From: pharold at proftesting.com (Perry Harold) Date: Thu, 3 Mar 2005 18:38:07 -0500 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <39cb22f305030311583d11419e@mail.gmail.com> Message-ID: <003e01c5204a$0f0ac540$192da8c0@D58BT131Perry> Yes. If you find it exits just cycle back through the process again. Would only work for this one process of course - wouldn't be reusable in other apps without adaptation. Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Random numbers lottery-style Perry, Are you talking about examining the recordset every time a new ActivityID is randomly selected for the current Volunteer before a new row is added? That should work. I guess I'm looking for something a bit more general purpose; that is, a function that returns a number from a given list while removing the number from the list for the next go round. Thanks, Steve Erbach On Thu, 3 Mar 2005 14:29:53 -0500, Perry Harold wrote: > Steve > > How adding a check to see if the ActivityID is already in the selected > list > - then cycle around and run the randomizer again until there's not a match? > > Perry Harold -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 18:32:46 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 11:32:46 +1100 Subject: [AccessD] Web site up In-Reply-To: <0ICR00E210JUET@l-daemon> Message-ID: <200503040033.j240XelE020131@cooper.uws.edu.au> Well done team -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, 3 March 2005 10:43 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Web site up Hi All: Thanks to Bryan and other help the DBA web site is up and running. We will be working to make sure that there is at least a process in place that will deter this event from happening again. Thanks all for your patients Jim Lawrence The web guy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 21:16:13 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 14:16:13 +1100 Subject: [AccessD] Embedding a WAV file In-Reply-To: <009801c52009$35f106b0$6401a8c0@HAL9002> Message-ID: <200503040316.j243GIlE004789@cooper.uws.edu.au> Hi Rocky - for what it's worth I usually put a Check box in some Settings/Preferences screen that is bound To a local options table Say...tblOptions In that Table I have a Field called AllowSounds - Data type = Number Bind it to a check box in the Preferences/Settings screen I'm only saying give 'em access to the basics like Sound on or off Or Pretty headers and footers on or off etc - nothing too dramatic I have a special Admin Settings/preferences screen for Admin users So for a basic non technical user a check box or two on a preferences/Settings screen is fine. Anyway I find it simple to implement and manage They get to set the sound on or off So...When the app. Loads set a global or a form level global something like Psuedo code Option Compare Database Option Explicit Dim frm_lvl_glob_intAllowSounds as integer frm_lvl_glob_intAllowSounds = dlookup("[AllowSounds]","tbloptions") Private sub SomeEvent() if frm_lvl_glob_intAllowSounds =-1 then 'Don't play a sound - simple elseif frm_lvl_glob_intAllowSounds =0 then 'Cool - play the sound else 'Dunno what to say :-)) end if End sub See ya Darren PS Even though it may be a mott point did you get the Sound Demo?? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, 4 March 2005 2:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Embedding a WAV file A.D.: Thanks again. We got feedback from one beta tester who wanted to know how to turn off that annoying click. So the question may be moot. So here's a user interface question for anyone - we put the click sound behind all of the command buttons as an audible confirmation to the user. This product is end-item consumer oriented - not to pros or techies. So some of the interface problems are a bit different than I've previously encountered. Do you think you'd like or dislike a click or beep sound every time you click the Next button? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 8:48 PM Subject: Re: [AccessD] Embedding a WAV file Rocky, Playing a wave sound through OLE control does not cause any intrusion by way of invoking a music player (like Real or Windows Media Player). Just try it. Absolutely normal except for the focus going to OLE control. If you are keen to try the API alternative, a way will have to be found to extract the sound clip from OLE object and place it in a suitable folder. This takes us back to square one, i.e. the wav files could as well have been stored in a special folder - to start with. Practical demonstration of playing a wav file using API call, after searching for it (if available in the target folder), is covered in my sample db named AppointmentsAlert, available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com Best wishes, A.D.Tejpal -------------- ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Thursday, March 03, 2005 01:02 Subject: Re: [AccessD] Embedding a WAV file A.D: Well that does work, but instead of playing it straight through the speakers like the function: Declare Function sndPlaySound Lib "winmm.dll" Alias "PlaySoundA" _ (ByVal IpszName As String, ByVal hModule As Long, _ ByVal dwFLags As Long) As Long does, it invokes a player - in my case RealPlayer. Do you know of a way to use the function with an embedded wav file? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 02, 2005 10:48 AM Subject: Re: [AccessD] Embedding a WAV file Rocky, Sample code given below, pertains to bound OLE control named Drg. Record source for the form is a table having wav sounds stored in this field. CmdSound is the name of command button used for playing the sound pertaining to current record. It may please be noted that when the sound clip is played, the focus gets captured by the OLE control. Best wishes, A.D.Tejpal -------------- ============================== Private Sub CmdSound_Click() On Error Resume Next If Drg.OLEType = acOLENone Then MsgBox "No Recording" Else Drg.Action = acOLEActivate End If 'Drg On Error GoTo 0 End Sub ============================== ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: Access Developers discussion and problem solving Sent: Wednesday, March 02, 2005 22:55 Subject: Re: [AccessD] Embedding a WAV file Darren: When I do the installable run-time I think I can include my WAV file and it will be transparent to the user. For beta testing I need to send them just one file. So I'm still looking for a way to do this. I did insert-->Object-->from file and inserted the wav file in an Unbound Object Frame. But getting it to play in the On Click events of other controls, like command buttons, is the next problem. And then, I would probably have to insert this UOF in every form. Is there maybe a way of putting it into a field in a table and running it from there so it could be run from any form? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 01, 2005 5:18 PM Subject: RE: [AccessD] Embedding a WAV file > Hi Rocky > I have a folder in the App home folder for sounds. Also one for Images and > Skins etc > EG > C:\Program Files\My app will be the 'home' folder > And in it will be > C:\Program Files\My app\Sounds (About 5 or 6 files in here) > C:\Program Files\My app\Images (3 more folders and about 20 files in here) > C:\Program Files\My app\Skins (1 folder (but it can grow) and many files > in > here) > > I install them when I install the app. > They are my 'standard' folders and files and go with every app. > And I refer to them now by heart with lines like > (I actually use globals for the length of the session But can be done at a > form Sub level just as easy) > EG > Dim strSkinToUse as String > Dim strSkinFolder as String > Dim strImagesFolder as String > > strSkinToUse = Dlookup("[SkinName]","tblOptions") > strSkinFolder = Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Skins\" & strSkinToUse > strImagesFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Images" > strSoundsFolder= Left(CurrentDb.Name, Len(CurrentDb.Name) - > Len(Dir(CurrentDb.Name)) - 1) & "\Sounds" > > Then I refer to each skin component like.....('Cause I know 'em off by > heart) > > Me.picture = strSkinFolder & "\Background.jpg" > Me.imgMyLogo = strImagesFolder & "\OurLogo.jpg" > > I use the API code "PlaySound" for Playing Sounds > Eg > Private Sub Form_Load() > PlaySound (strSoundsFolder & "\Logon.wav") > End sub > > It works and is pretty simple. > > HTH > > See ya > > Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Mar 3 21:52:55 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 4 Mar 2005 14:52:55 +1100 Subject: [AccessD] Am I missing something simple? - function in query criteria Message-ID: <001501c5206d$a6c88390$8001a8c0@user> Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net From d.dick at uws.edu.au Thu Mar 3 22:45:47 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 15:45:47 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <200503040445.j244jqlE002500@cooper.uws.edu.au> Just a WAG Are you referencing a subform in the first IsFormOpen statement? If so try putting .form. between [FrmClientMarketValueHistorySubform] and [TemplateID] so it loks like GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform].form.[Templa teID] Instead of GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] HTH DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 4 March 2005 2:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in querycriteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 22:50:43 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 15:50:43 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <200503040450.j244onlE009649@cooper.uws.edu.au> Also I can't see a "Value if null' in the nz statement surrounding the DLOOKUP -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 4 March 2005 2:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in querycriteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 3 23:01:11 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 4 Mar 2005 16:01:11 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <200503040501.j2451GlE021648@cooper.uws.edu.au> Something else You are testing for the existence of 2 forms and an alternative Have you made sure that when each form is actually open it returns a result? Same as the Dlookup alternative? IE run the function with each form open and look at the debug result Then the same with neither form open to see if the dlookup does its stuff DD -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Friday, 4 March 2005 2:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in querycriteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Mar 3 23:02:38 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 03 Mar 2005 21:02:38 -0800 Subject: [AccessD] Am I missing something simple? - function in query criteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <0ICT0010UA0D42@l-daemon> Hi Kath: Is the public function in a module and not the current form? Calling a function, from a query only works in a module. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, March 03, 2005 7:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in query criteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Thu Mar 3 23:25:57 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Fri, 4 Mar 2005 16:25:57 +1100 Subject: [AccessD] Am I missing something simple? - function in querycriteria References: <0ICT0010UA0D42@l-daemon> Message-ID: <006f01c5207a$a60b3b20$8001a8c0@user> Yep - it is in a module - Kath ----- Original Message ----- From: Jim Lawrence To: 'Access Developers discussion and problem solving' Sent: Friday, March 04, 2005 4:02 PM Subject: RE: [AccessD] Am I missing something simple? - function in querycriteria Hi Kath: Is the public function in a module and not the current form? Calling a function, from a query only works in a module. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Thursday, March 03, 2005 7:53 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Am I missing something simple? - function in query criteria Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Mar 4 01:39:59 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 4 Mar 2005 07:39:59 -0000 Subject: [AccessD] Am I missing something simple? - function in querycriteria In-Reply-To: <001501c5206d$a6c88390$8001a8c0@user> Message-ID: <017a01c5208d$5e9b22b0$b274d0d5@minster33c3r25> Just to help you see what's happening try making the function a column in your query and see what it shows. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kath Pelletti > Sent: 04 March 2005 03:53 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Am I missing something simple? - function > in querycriteria > > > Hi all - > > I am using a function in my query criteria. The function > works and returns a value of 52275 (I can see that from the > debug window). > > If I type in 52275 as the query criteria it rerurns a result, > but if I use the function it doesn't. After much head banging > I am looking for something basic I may be doing wrong. Any ideas? > > Function is: > > Public Function GetTemplateld() As Long > Dim strerrormsg As String > Dim StrAccountno As String > Dim IntRepCycleID As Integer > 'On Error GoTo Err_Handler > > If IsFormOpen("FrmClientDetails") = True Then > GetTemplateld = > [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform > ]![TemplateID] > > ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then > GetTemplateld = > [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] > > ElseIf IsFormOpen("FrmMainMenu") = True Then > StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] > IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] > gettemplateid = Nz(DLookup("[TemplateID]", > "TblHistory_SubAccountTemplate", _ > "[AccountNo] = '" & StrAccountno & " '" & " And > [reportcycleid] = " & IntRepCycleID)) Else > gettemplateid = 0 > End If > > Debug.Print gettemplateid > > Normal_exit: > Exit Function > Err_Handler: > MsgBox "Error: [" & Err.Number & "] " & > IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), > vbCritical, "Error Message" > Resume Normal_exit > End Function > > ______________________________________________ > Kath Pelletti > Software Design & Solutions Pty Ltd. > Ph: 9505-6714 > Fax: 9505-6430 > KP at SDSOnline.net > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From accessd666 at yahoo.com Fri Mar 4 02:19:38 2005 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 4 Mar 2005 00:19:38 -0800 (PST) Subject: [AccessD] Dynamicly build and use Import Specs Message-ID: <20050304081938.31270.qmail@web90107.mail.scd.yahoo.com> Hi group, is it possible to dynamicly build an import spec? So a user selects a CSV file to link to access. However there is no Import Specification for this file. Is it possible to build a Import Spec on the fly and then use it to link the file? Regards, Sander __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From Erwin.Craps at ithelps.be Fri Mar 4 03:03:18 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 4 Mar 2005 10:03:18 +0100 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B584D@stekelbes.ithelps.local> I'm not sure I understand the problem fully, but I believe to recognise an issue I struggled with when running in a Access Runtime with listboxes. This was the case with listboxes rowsource property that was set from VBA code. Sometimes, with some users it was blanc whatever I did... Only in the Runtime version, not in Full Access. The problem lies in the rowsource property. Because I build the SQL string in VBA code to set it when selecting stuff, I used to leave the rowsource property empty. By dooing this the runtime does not know how to build the colomns (fields) of the listbox. It is posible this was only with an unbound control, I don't know that. The solution is to always set the rowsource property with a correct SQL string so the runtime knows when opening the form how much fields there are. I also tend to set my sql string criteria to "Somefield is null" so I was sure no data was displayed when first opening the form. This is true for A2K runtime, don't know for others, but since then I always program it this way. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 03, 2005 11:52 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Eek! Did I remember to mention that the Record number combobox is unbound? It is merely used to select a report for viewing in the subforms. Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, March 03, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column Charlotte, I also remember this...but it has been some years...the part I do remember is that my client was using the A2k runtime...not sure of the OS. I'm not sure how the ACCESSD archives are stored...but I'm pretty sure I would have asked this list for help ( and got it)...and it would have been between Nov 2000 and May 2001. Other that that...later tonight I can pull up the app I sent him and look for anything 'different or odd' that I did to the date fields. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column >Date: Thu, 3 Mar 2005 14:02:34 -0800 > >No, if it were the runtime installation (which is AXP SP3, BTW), we'd >have problems on all the installations at that client. It's only >turning up on some of the Win2k machines, not all. Even then, it >doesn't make sense that it would display properly when you selected a >well from the combobox on the form but not when you selected a well >from another form and passed the value back, since that calls exactly >the same AfterUpdate event for the Well combobox that making a direct >selection calls. Furthermore, it ONLY breaks after opening the second >form and choosing a well from there. We can't reproduce it in our >office at all, but one of our owners saw it in action at the client >location. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 1:54 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Something to do with the runtime maybe? Are you testing with a true >runtime or using the /runtime parameter in the command line when >testing on your end? > > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 1:45 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >We're trying to find out *why* it's happening so we can prevent it, and >the form is shared with the Access version, so an sproc or view is out >of the question. The client is in Oklahoma and using a runtime >executable, so there isn't any printing to the immediate window. The >fact that the dates appear if we remove the Format function from the >rowsource strongly suggests that the dates are there but that something >is interfering in rendering them. > >Charlotte Foust > > >-----Original Message----- >From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] >Sent: Thursday, March 03, 2005 11:15 AM >To: Access Developers discussion and problem solving >Cc: Steve White >Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > >Have you printed to the immediate window to see if the value is >actually in the combo (just not displaying)? > >What about changing the resource to a view or sproc that formats the >number for you? > >D > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Thursday, March 03, 2005 11:04 AM >To: AccessD at databaseadvisors.com >Cc: Steve White >Subject: [AccessD] AXP Combobox Shows blank formatted date column > > >We have a client installation where certain machines running Windows >2000 are seeing an odd behavior in a combobox that displays two >columns, a report number and a medium formatted date. We have not been >able to reproduce the behavior here even on Win2k, so I need some >ideas. The back end is SQL Server 2000 and the combobox has this for a >rowsource: > >SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") >FROM DailyDrillHdr WHERE >((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by >ReportNo desc; > >This works fine when the form opens and a WellID is selected. It >breaks when the user brings up a popup form that allows them to select >a different WellID and hand that back to the initial form. The initial >form obligingly changes the WellID in its Well combobox, which >repopulates the subform, and it specifically requeries the report >number combobox in the AfterUpdate event of the WellID combobox. > >At this point, however, on those problem machines, the date column of >the report number combo is blank and it doesn't show dates again until >the form is closed and reopened. The combobox is being requeried, >because the correct report numbers do show up in it, but not the dates >associated with them. The really odd part is that if you take the >formatting out of the combobox rowsource, the dates show up every time. > > >Has anyone else seen something like this? I know I have, but it's been >years ago and I can't remember what caused it! > >Charlotte Foust >Infostat Systems, Inc. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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.Rogers at SummitMedia.co.uk Fri Mar 4 04:34:22 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 4 Mar 2005 10:34:22 -0000 Subject: [AccessD] How to see the coding of html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F53C@s003.wolds.summitmedia.co.uk> Not exactly Access, forgive me, but how do you see the code of an html email, please, Gurus? Cheers paul -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 From Paul.Rogers at SummitMedia.co.uk Fri Mar 4 04:40:11 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 4 Mar 2005 10:40:11 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F53D@s003.wolds.summitmedia.co.uk> Many thanks, Andy. -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 03 March 2005 11:36 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Looking behind those html emails Hi Paul I'm using Outlook 2K and I can right-click and View Source. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Looking behind those html emails Date: 03/03/05 11:43 > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away with Outlook. > Cheers > paul > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 From Paul.Rogers at SummitMedia.co.uk Fri Mar 4 04:40:41 2005 From: Paul.Rogers at SummitMedia.co.uk (Paul Rodgers) Date: Fri, 4 Mar 2005 10:40:41 -0000 Subject: [AccessD] Looking behind those html emails Message-ID: <1FF4D9105232EB4DA1901BB7D175877E03F53E@s003.wolds.summitmedia.co.uk> Many thanks, Chris -----Original Message----- From: Foote, Chris [mailto:Chris.Foote at uk.thalesgroup.com] Sent: 03 March 2005 12:19 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Looking behind those html emails In Outlook - open e-mail - hover cursor over body of message - click right hand mouse key - select View Source from drop-down menu - viola! HTH - Chris Foote > -----Original Message----- > From: Paul Rodgers [mailto:Paul.Rogers at SummitMedia.co.uk] > Sent: Thursday, March 03, 2005 11:42 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Looking behind those html emails > > > How do I look at the coding in an html email, please gurus? > > So easy of a website View/source, but it seems hidden away > with Outlook. > Cheers > paul -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01/03/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.0 - Release Date: 02/03/2005 From Gustav at cactus.dk Fri Mar 4 04:56:55 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 11:56:55 +0100 Subject: [AccessD] Am I missing something simple? - function in querycriteria Message-ID: Hit Kath This line is in error: "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Should read: "[AccountNo] = '" & StrAccountno & "'" & " And [reportcycleid] = " & IntRepCycleID & "")) Also, this should read: GetTemplateld = [Forms]![FrmClientDetails]![NameOfYourSubformControl].Form![TemplateID] /gustav >>> KP at sdsonline.net 04-03-2005 04:52:55 >>> Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net From Gustav at cactus.dk Fri Mar 4 05:06:02 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 12:06:02 +0100 Subject: [AccessD] Random numbers lottery-style Message-ID: Hi Steve The last part can be solved by a function and a query. You set Picked to True when a record is drawn. Calling Randomize outside the query (by an external function) takes place in a different scope than that of the query, thus if Rnd(..) is run in the query with the same seed initially it will, of course, return the same sample or sequence of samples. The solution is to generate the random number in the external function: Public Function RandomNumber( _ Optional ByVal booRandomize As Boolean) _ As Single Static booRandomized As Boolean If booRandomize = True Or booRandomized = False Then ' A new seed is requested or this is the first run. Randomize booRandomized = True End If ' Generate and return a random number. RandomNumber = Rnd() End Function Now the query would look something like this: SELECT TOP n * FROM tblPick WHERE tblPick.Picked = False ORDER BY RandomNumber([ID] Is Null); where n is the count of records in the requested sample, and ID is a field that is never Null like the primary key. The use of ID in the parameter is needed to call RandomNumber not once but for every record. /gustav >>> erbachs at gmail.com 03-03-2005 20:06:13 >>> Dear Group, I'd like to fill up some test data tables in a Volunteer database that tracks activities and the amount of time volunteers commit to these activities. I thought that I might attempt filling the tables in a random fashion, but I'm having some difficulty. The table (tblVolActivity) I want to fill has this structure: VolActID - AutoNumber (Key) VolunteerID - Long ActivityDate - Date ActivityID - Long TimeSpent - Single I've created another table (tblTempVols) that contains the following info: VolunteerID - Long NoOfInterests - Long NoOfTimes - Long For each of the 300-odd volunteers I've used the Rnd function to fill in the two 'NoOf' columns. The NoOfInterests is a number between 1 and 6, representing the number of different types of activity a Volunteer commits time to. For example, transporting people, paying visits to the sick, or working in the gift shop. There are a total of 29 different activities. The NoOfTimes column shows the total number of times the Volunteer worked during the year. That number is between 1 and 48. Again, I used the Rnd function to fill this column as well as the NoOfInterests column. So it looks like this: VolunteerID - NoOfInterests - NoOfTimes 1 - 3 - 13 2 - 6 - 5 3 - 4 - 2 4 - 4 - 16 5 - 2 - 38 etc. Now I want to fill another table (tblTempActList) that has this structure: VolunteerID - Long ActivityID - Long Here's where I'm stuck. The list of 29 different Activities has ActivityIDs from 1 to 29 in an unbroken sequence. If a Volunteer is interested in, say, 4 Interests (from the NoOfInterests column in tblTempVols) I'd like to insert 4 rows for this Volunteer into this tblTempActList table and randomly pick the ActivityIDs. Now, of course, if I use the Rnd function to select 4 ActivityIDs there's a chance that there will be duplicate ActivityIDs for this Volunteer. So what I'd like to do is pick the ActivityIDs like they pick lottery numbers; that is, removing the selected numbers from the pool before picking the next one. How do I accomplish that is the question. Does anybody have, say, a PickLotteryNumber() function where the function would take a list of numbers and pick one while removing the selected number from the list of available numbers? I've been fooling with arrays, but I can't "erase" an array element from the middle with a ReDim statement. If this problem is solved then I can take the next step Any ideas? -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From Gustav at cactus.dk Fri Mar 4 05:17:42 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 12:17:42 +0100 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Hi Lambert To me this _does_ look like the missing reference problem. Did you try to reestablish the references by removing one and adding it back (old trick)? /gustav >>> Lambert.Heenan at AIG.com 03-03-2005 23:13:49 >>> I've just been dealing with a similar problem where I was using Left() in a combo's rowsource (I was taking the left 255 characters from a memo field so that I could sort on it). The combo would show blank rows on certain machines. Here is what I've found: This is an Access 97 application. The application uses Outlook to send email, so it has a reference set to the Outlook object library - for Outlook 97. It is running on a group of machines, some of which have Outlook 2000 and other have 97. This does not cause the 'usual' missing reference problem, rather Left() and Now() and such would need seem to function in Queries. Here's how I fixed it. I wrote a little module that wrapped the VBA functions Left, Right, Mid, Now and Date like this... Option Compare Database Option Explicit ' This module wraps a bunch of common VBA functions to help avoid problems with ' different versions of Outlook Function uLeft(strSource As String, nPos As Long) As String uLeft = VBA.Left$(strSource, nPos) End Function Function uRight(strSource As String, nPos As Long) As String uRight = VBA.Right$(strSource, nPos) End Function Function uMid(strSource As String, nStart As Long, Optional nEnd As Long = 0) If nEnd > 0 Then uMid = VBA.Mid$(strSource, nStart, nEnd) Else uMid = VBA.Mid$(strSource, nStart) End If End Function Function uNow() As Date uNow = VBA.Now() End Function Function uDate() As Date uDate = VBA.Date() End Function Function uFormat(sExpression As Variant, sFormat As String, Optional nFirstDayOfweek As Long = vbSunday, Optional nFirstWeekOfYear As Long = vbFirstJan1) As Variant uFormat = VBA.Format$(sExpression, sFormat, nFirstDayOfweek, nFirstWeekOfYear) End Function What this code does is prefix the calls to the VBA function with the explicit object library reference (VBA.) and this seems to have fixed my problem, so perhaps it can do the same for yours. Having written the module I then used Rick Fisher's Find and Replace to seek out and change all the calls to these functions to my 'universal' versions (hence the 'u' suffix in the function names). HTH Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, March 03, 2005 4:45 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > We're trying to find out *why* it's happening so we can prevent it, and > the form is shared with the Access version, so an sproc or view is out > of the question. The client is in Oklahoma and using a runtime > executable, so there isn't any printing to the immediate window. The > fact that the dates appear if we remove the Format function from the > rowsource strongly suggests that the dates are there but that something > is interfering in rendering them. > > Charlotte Foust > > > -----Original Message----- > From: dmcafee at pacbell.net [mailto:dmcafee at pacbell.net] > Sent: Thursday, March 03, 2005 11:15 AM > To: Access Developers discussion and problem solving > Cc: Steve White > Subject: RE: [AccessD] AXP Combobox Shows blank formatted date column > > > Have you printed to the immediate window to see if the value is actually > in the combo (just not displaying)? > > What about changing the resource to a view or sproc that formats the > number for you? > > D > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Thursday, March 03, 2005 11:04 AM > To: AccessD at databaseadvisors.com > Cc: Steve White > Subject: [AccessD] AXP Combobox Shows blank formatted date column > > > We have a client installation where certain machines running Windows > 2000 are seeing an odd behavior in a combobox that displays two columns, > a report number and a medium formatted date. We have not been able to > reproduce the behavior here even on Win2k, so I need some ideas. The > back end is SQL Server 2000 and the combobox has this for a rowsource: > > SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") > FROM DailyDrillHdr WHERE > ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by > ReportNo desc; > > This works fine when the form opens and a WellID is selected. It breaks > when the user brings up a popup form that allows them to select a > different WellID and hand that back to the initial form. The initial > form obligingly changes the WellID in its Well combobox, which > repopulates the subform, and it specifically requeries the report number > combobox in the AfterUpdate event of the WellID combobox. > > At this point, however, on those problem machines, the date column of > the report number combo is blank and it doesn't show dates again until > the form is closed and reopened. The combobox is being requeried, > because the correct report numbers do show up in it, but not the dates > associated with them. The really odd part is that if you take the > formatting out of the combobox rowsource, the dates show up every time. > > > Has anyone else seen something like this? I know I have, but it's been > years ago and I can't remember what caused it! > > Charlotte Foust > Infostat Systems, Inc. From Gustav at cactus.dk Fri Mar 4 05:27:49 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 04 Mar 2005 12:27:49 +0100 Subject: [AccessD] AXP Combobox Shows blank formatted date column Message-ID: Hi Charlotte I would try up to four things until success: 1. Replace the format string with "dd\-mmm\-yy" 2. Adjust the query using Group By. 3. Save the query as a stored query and use this. 4. Replace [Forms]![frmDailyRpt]![cboWellID] with a function GetSelectedWellID() which retrieves the WellID but returns a Long as I guess your ID is. /gustav >>> cfoust at infostatsystems.com 03-03-2005 20:03:45 >>> We have a client installation where certain machines running Windows 2000 are seeing an odd behavior in a combobox that displays two columns, a report number and a medium formatted date. We have not been able to reproduce the behavior here even on Win2k, so I need some ideas. The back end is SQL Server 2000 and the combobox has this for a rowsource: SELECT ReportNo, ReportNo as [Number], Format(ReportDate, "dd-mmm-yy") FROM DailyDrillHdr WHERE ((DailyDrillHdr.WellID=[Forms]![frmDailyRpt]![cboWellID])) Order by ReportNo desc; This works fine when the form opens and a WellID is selected. It breaks when the user brings up a popup form that allows them to select a different WellID and hand that back to the initial form. The initial form obligingly changes the WellID in its Well combobox, which repopulates the subform, and it specifically requeries the report number combobox in the AfterUpdate event of the WellID combobox. At this point, however, on those problem machines, the date column of the report number combo is blank and it doesn't show dates again until the form is closed and reopened. The combobox is being requeried, because the correct report numbers do show up in it, but not the dates associated with them. The really odd part is that if you take the formatting out of the combobox rowsource, the dates show up every time. Has anyone else seen something like this? I know I have, but it's been years ago and I can't remember what caused it! Charlotte Foust Infostat Systems, Inc. From accessd666 at yahoo.com Fri Mar 4 08:21:54 2005 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 4 Mar 2005 06:21:54 -0800 (PST) Subject: [AccessD] Run stored action query Message-ID: <20050304142154.40043.qmail@web90103.mail.scd.yahoo.com> Hi group, how do I run a stored action query using VBA? I'm using A2K. I know how to run a select query. I tried the same for my action query but Access didn't like that :-( TIA Sander __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From andy at minstersystems.co.uk Fri Mar 4 08:09:07 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 4 Mar 2005 15:09:07 +0100 Subject: [AccessD] Run stored action query Message-ID: <20050304150904.463A22C0BBC@smtp.nildram.co.uk> Hi Sander Dim db as Database Dim qdf as Querydef Set db = CurrentDb Set qdf=db.Querydefs("xxxxquery") qdf.Execute set qdf = nothing set db = nothing HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Acces User Group Subject: [AccessD] Run stored action query Date: 04/03/05 14:24 > > Hi group, > > how do I run a stored action query using VBA? > I'm using A2K. > > I know how to run a select query. I tried the same for > my action query but Access didn't like that :-( > > TIA > > Sander > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From reuben at gfconsultants.com Fri Mar 4 09:45:00 2005 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 4 Mar 2005 10:45:00 -0500 Subject: [AccessD] Run stored action query In-Reply-To: <20050304150904.463A22C0BBC@smtp.nildram.co.uk> Message-ID: You should be able to use Docmd.OpenQuery("queryname") You may also want to use "docmd.setwarnings False" before the query and "docmd.setwarnings True" after the query so the user doesn't have to answer the prompts about adding, editing, or deleting records associated with action queries. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, March 04, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Run stored action query Hi Sander Dim db as Database Dim qdf as Querydef Set db = CurrentDb Set qdf=db.Querydefs("xxxxquery") qdf.Execute set qdf = nothing set db = nothing HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Acces User Group Subject: [AccessD] Run stored action query Date: 04/03/05 14:24 > > Hi group, > > how do I run a stored action query using VBA? > I'm using A2K. > > I know how to run a select query. I tried the same for > my action query but Access didn't like that :-( > > TIA > > Sander > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Mar 4 13:13:38 2005 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 4 Mar 2005 13:13:38 -0600 Subject: [AccessD] OT: VB.NET code window Message-ID: <100F91B31300334B89EC531C9DCB08656F0A96@tccexch01.tappeconstruction.net> I've run across a new "feature" of Visual Studio.net, but have no idea what it is used for. In the left hand margin of the code window, where breakpoints would normally display, certain lines have a light blue rectangular marker. Can someone tell me what this is all about? Even my buddy Google is going "huh?" Brett Barabash Lead Software Developer Tappe Construction, Co. Eagan, MN Email: bbarabash at tappeconstruction.com Phone: (651) 256-6831 "If you go through a lot of hammers each month, I don't think it necessarily means you're a hard worker. It may just mean that you have a lot to learn about proper hammer maintenance." - Jack Handey -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From BBarabash at TappeConstruction.com Fri Mar 4 13:19:00 2005 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 4 Mar 2005 13:19:00 -0600 Subject: [AccessD] RE: OT: VB.NET code window Message-ID: <100F91B31300334B89EC531C9DCB08656F0A97@tccexch01.tappeconstruction.net> Sorry, please disregard my previous message. Apparently I have just discovered the "bookmark" feature of the code editor. ________________________________ From: Brett Barabash Sent: Friday, March 04, 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: OT: VB.NET code window I've run across a new "feature" of Visual Studio.net, but have no idea what it is used for. In the left hand margin of the code window, where breakpoints would normally display, certain lines have a light blue rectangular marker. Can someone tell me what this is all about? Even my buddy Google is going "huh?" Brett Barabash Lead Software Developer Tappe Construction, Co. Eagan, MN Email: bbarabash at tappeconstruction.com Phone: (651) 256-6831 "If you go through a lot of hammers each month, I don't think it necessarily means you're a hard worker. It may just mean that you have a lot to learn about proper hammer maintenance." - Jack Handey -------------------------------------------------------------------------------------------------------------------- The information in this email may contain confidential information that is legally privileged. The information is only for the use of the intended recipient(s) named above. If you are not the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or the taking of any action in regard to the content of this email is strictly prohibited. If transmission is incorrect, unclear, or incomplete, please notify the sender immediately. The authorized recipient(s) of this information is/are prohibited from disclosing this information to any other party and is/are required to destroy the information after its stated need has been fulfilled. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. This footer also confirms that this email message has been scanned for the presence of computer viruses.Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From martyconnelly at shaw.ca Fri Mar 4 14:34:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 04 Mar 2005 12:34:41 -0800 Subject: [AccessD] Dynamicly build and use Import Specs References: <20050304081938.31270.qmail@web90107.mail.scd.yahoo.com> Message-ID: <4228C661.6000402@shaw.ca> Why not just use the Import File Wizard on the last form of the wizard there is the option under the advanced tab to save the .ini file. or the Link text Wizard has this option too under Access 2003. Sad Der wrote: >Hi group, > >is it possible to dynamicly build an import spec? > >So a user selects a CSV file to link to access. >However there is no Import Specification for this >file. > >Is it possible to build a Import Spec on the fly and >then use it to link the file? > >Regards, > >Sander > > > > >__________________________________ >Celebrate Yahoo!'s 10th Birthday! >Yahoo! Netrospective: 100 Moments of the Web >http://birthday.yahoo.com/netrospective/ > > -- Marty Connelly Victoria, B.C. Canada From mcaro at bigpond.net.au Fri Mar 4 15:01:51 2005 From: mcaro at bigpond.net.au (Martin Caro) Date: Sat, 5 Mar 2005 08:01:51 +1100 Subject: [AccessD] Back to Front Message-ID: <000a01c520fd$638c7010$0100000a@MITSERVER> Hi folks What's the simplest way to do the following... I have a table of hotels 1:M with a table of owners. (HotelID is my primary/foreign key) I want to select an owner from the owner table and for as many times as that owner appears in the child table, list (in a subform), the related hotels in the parent table. I'm OK with the mechanics its just that it's back to front from normal and it's the wrong end of the week (recursion?). Ta Martin From jeffrey.demulling at usbank.com Fri Mar 4 15:14:54 2005 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 4 Mar 2005 15:14:54 -0600 Subject: [AccessD] Back to Front In-Reply-To: <000a01c520fd$638c7010$0100000a@MITSERVER> Message-ID: try this, not tested, just off the top of my head... SELECT HotelName FROM OWNERS JOIN HOTELS ON OWNERS.HotelID = HOTELS.HotelID WHERE OWNERS.OwnerID = <> Jeffrey F. Demulling Project Manager U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Martin Caro" To Sent by: "Access Developers discussion and accessd-bounces at d problem solving" atabaseadvisors.c om cc Subject 03/04/2005 03:01 [AccessD] Back to Front PM Please respond to "Access Developers discussion and problem solving" Hi folks What's the simplest way to do the following... I have a table of hotels 1:M with a table of owners. (HotelID is my primary/foreign key) I want to select an owner from the owner table and for as many times as that owner appears in the child table, list (in a subform), the related hotels in the parent table. I'm OK with the mechanics its just that it's back to front from normal and it's the wrong end of the week (recursion?). Ta Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From dmcafee at pacbell.net Fri Mar 4 15:42:01 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Fri, 4 Mar 2005 13:42:01 -0800 Subject: [AccessD] Back to Front In-Reply-To: <000a01c520fd$638c7010$0100000a@MITSERVER> Message-ID: There shouldn't be anything different here. On the parent form, create the combo, and set its rowsource to something like: SELECT OwnerID, Owner FROM tblOwners ORDER BY Owner ASC; Then as a quick test, to see if this is what you want, forget the subform for just a few minutes. Add a listbox to your parent form. Set the listbox rowsource to something like: SELECT * FROM tblHotels WHERE OwnerID = Forms![yourParentForm]![cboYourComboBoxNameHere] In the after update event of the combobox, place the following code: Me.listbox1.Requery Does this work? If so, then create you subform, set its recordsource to that of the Hotel Table (or Query) then clicking on the subform which is placed on the Parent Form, you should be able to select OwnerID as your Parent/Child Linking fields HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Caro Sent: Friday, March 04, 2005 1:02 PM To: Access Developers discussion and problem solving Subject: [AccessD] Back to Front Hi folks What's the simplest way to do the following... I have a table of hotels 1:M with a table of owners. (HotelID is my primary/foreign key) I want to select an owner from the owner table and for as many times as that owner appears in the child table, list (in a subform), the related hotels in the parent table. I'm OK with the mechanics its just that it's back to front from normal and it's the wrong end of the week (recursion?). Ta Martin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Fri Mar 4 15:44:40 2005 From: mcaro at bigpond.net.au (Martin Caro) Date: Sat, 5 Mar 2005 08:44:40 +1100 Subject: [AccessD] Back to Front References: Message-ID: <002101c52103$5e9fda00$0100000a@MITSERVER> Thanks Jeffery, I now have the query working with a LEFT JOIN Hotels Martin ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 8:14 AM Subject: Re: [AccessD] Back to Front > try this, not tested, just off the top of my head... > > SELECT > HotelName > FROM > OWNERS > JOIN HOTELS > ON OWNERS.HotelID = HOTELS.HotelID > WHERE > OWNERS.OwnerID = <> > > Jeffrey F. Demulling > Project Manager > U.S. Bank Corporate Trust Services > 60 Livingston Avenue > EP-MN-WS3C > St. Paul, MN 55107-2292 > Ph: 651-495-3925 > Fax: 651-495-8103 > email: jeffrey.demulling at usbank.com > > > > "Martin Caro" > t.au> To > Sent by: "Access Developers discussion and > accessd-bounces at d problem solving" > atabaseadvisors.c > om cc > > Subject > 03/04/2005 03:01 [AccessD] Back to Front > PM > > > Please respond to > "Access > Developers > discussion and > problem solving" > advisors.com> > > > > > > > Hi folks > What's the simplest way to do the following... > I have a table of hotels 1:M with a table of owners. (HotelID is my > primary/foreign key) > I want to select an owner from the owner table and for as many times as > that owner appears in the child table, list (in a subform), the related > hotels in the parent table. > I'm OK with the mechanics its just that it's back to front from normal and > it's the wrong end of the week (recursion?). > > Ta > Martin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > -------------------------------------------------------------------------- ---- > Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. > ============================================================================ == > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Fri Mar 4 15:48:11 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Sat, 5 Mar 2005 08:48:11 +1100 Subject: [AccessD] Am I missing something simple? - function inquerycriteria References: Message-ID: <002f01c52103$dcf8d280$8001a8c0@user> Thanks Andy / Gustav - the second part of your reply here solved it - Many thanks Kath ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, March 04, 2005 9:56 PM Subject: Re: [AccessD] Am I missing something simple? - function inquerycriteria Hit Kath This line is in error: "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Should read: "[AccountNo] = '" & StrAccountno & "'" & " And [reportcycleid] = " & IntRepCycleID & "")) Also, this should read: GetTemplateld = [Forms]![FrmClientDetails]![NameOfYourSubformControl].Form![TemplateID] /gustav >>> KP at sdsonline.net 04-03-2005 04:52:55 >>> Hi all - I am using a function in my query criteria. The function works and returns a value of 52275 (I can see that from the debug window). If I type in 52275 as the query criteria it rerurns a result, but if I use the function it doesn't. After much head banging I am looking for something basic I may be doing wrong. Any ideas? Function is: Public Function GetTemplateld() As Long Dim strerrormsg As String Dim StrAccountno As String Dim IntRepCycleID As Integer 'On Error GoTo Err_Handler If IsFormOpen("FrmClientDetails") = True Then GetTemplateld = [Forms]![FrmClientDetails]![FrmClientMarketValueHistorySubform]![TemplateID] ElseIf IsFormOpen("FrmReportCycleWorksheet_Master") = True Then GetTemplateld = [Forms]![FrmReportCycleWorksheet_Master]![TemplateID] ElseIf IsFormOpen("FrmMainMenu") = True Then StrAccountno = Forms![FrmMainMenu]![TxtReportingAccountNo] IntRepCycleID = Forms![FrmMainMenu]![TxtReportCycleID] gettemplateid = Nz(DLookup("[TemplateID]", "TblHistory_SubAccountTemplate", _ "[AccountNo] = '" & StrAccountno & " '" & " And [reportcycleid] = " & IntRepCycleID)) Else gettemplateid = 0 End If Debug.Print gettemplateid Normal_exit: Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" Resume Normal_exit End Function ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mcaro at bigpond.net.au Fri Mar 4 16:05:39 2005 From: mcaro at bigpond.net.au (Martin Caro) Date: Sat, 5 Mar 2005 09:05:39 +1100 Subject: [AccessD] Back to Front References: Message-ID: <002801c52106$4cf8eeb0$0100000a@MITSERVER> Thanks David for your procedure Now I'm certainly on the way to a solution Martin ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 8:42 AM Subject: RE: [AccessD] Back to Front > There shouldn't be anything different here. > > On the parent form, create the combo, and set its rowsource to something > like: > > SELECT OwnerID, Owner FROM tblOwners ORDER BY Owner ASC; > > Then as a quick test, to see if this is what you want, forget the subform > for just a few minutes. > Add a listbox to your parent form. Set the listbox rowsource to something > like: > > SELECT * FROM tblHotels WHERE OwnerID = > Forms![yourParentForm]![cboYourComboBoxNameHere] > > In the after update event of the combobox, place the following code: > > Me.listbox1.Requery > > Does this work? If so, then create you subform, set its recordsource to that > of the Hotel Table (or Query) then clicking on the subform which is placed > on the Parent Form, you should be able to select OwnerID as your > Parent/Child Linking fields > > HTH > David McAfee > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Caro > Sent: Friday, March 04, 2005 1:02 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Back to Front > > > Hi folks > What's the simplest way to do the following... > I have a table of hotels 1:M with a table of owners. (HotelID is my > primary/foreign key) > I want to select an owner from the owner table and for as many times as that > owner appears in the child table, list (in a subform), the related hotels in > the parent table. > I'm OK with the mechanics its just that it's back to front from normal and > it's the wrong end of the week (recursion?). > > Ta > Martin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From erbachs at gmail.com Fri Mar 4 20:13:07 2005 From: erbachs at gmail.com (Steve Erbach) Date: Fri, 4 Mar 2005 20:13:07 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: References: Message-ID: <39cb22f30503041813652ac096@mail.gmail.com> Gustav, Thank you for that analysis. It wasn't so much the randomness that I was interested in: it was the reduction in the pool of available items once one of them is "drawn." The trouble I was having with the collection for Interests I bypassed by using a function to build a string with all of the Interest numbers in it and then generate a random number based on the number of items in the collection and then find that one in the string, remove it from the string, leaving a shorter string. It worked. I finally was able to generate over 7000 sample data records that I can use for reporting. Thanks to everyone who helped out on this. I'm going to have to remember collections in the future, though I sure haven't figured out why that one didn't work. Steve Erbach On Fri, 04 Mar 2005 12:06:02 +0100, Gustav Brock wrote: > Hi Steve > > The last part can be solved by a function and a query. > You set Picked to True when a record is drawn. > > Calling Randomize outside the query (by an external function) takes > place in a different scope than that of the query, thus if Rnd(..) is > run in the query with the same seed initially it will, of course, return > the same sample or sequence of samples. > > The solution is to generate the random number in the external > function: > > Public Function RandomNumber( _ > Optional ByVal booRandomize As Boolean) _ > As Single > > Static booRandomized As Boolean > > If booRandomize = True Or booRandomized = False Then > ' A new seed is requested or this is the first run. > Randomize > booRandomized = True > End If > ' Generate and return a random number. > RandomNumber = Rnd() > > End Function > > Now the query would look something like this: > > SELECT TOP n > * > FROM > tblPick > WHERE > tblPick.Picked = False > ORDER BY > RandomNumber([ID] Is Null); > > where n is the count of records in the requested sample, and ID is a > field that is never Null like the primary key. > The use of ID in the parameter is needed to call RandomNumber not once > but for every record. > > /gustav From bchacc at san.rr.com Sat Mar 5 14:14:08 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 5 Mar 2005 12:14:08 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb Message-ID: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> Dear List: Can you control all of the functions of a second mdb from the first mdb - start, open forms, run reports, etc.? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From ksklos at comcast.net Sat Mar 5 15:22:45 2005 From: ksklos at comcast.net (ksklos at comcast.net) Date: Sat, 05 Mar 2005 21:22:45 +0000 Subject: [AccessD] Import objects from 2002 into 2000 Message-ID: <030520052122.5281.422A23250006A0DB000014A122007354469C0104059C05@comcast.net> I am using 2000 and need to import some objects from a 2002 database. Any ideas? I tried opening it at work where I have 2002 and saving it down to a 2000 database. That didn't seem to work. TIA From martyconnelly at shaw.ca Sat Mar 5 16:17:42 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 05 Mar 2005 14:17:42 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> Message-ID: <422A3006.4090403@shaw.ca> I know of two ways but this depends on program flow, you are running from one or the other mdb 1. Use an MDA but I don't know all the ramifications of using an MDA, there are exceptions like circular references See MDH Developers Handbook on Developing wizards or http://www.vb123.com/toolshed/00_Docs/buildwizards.htm 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL and VB6 runtime Rocky Smolin - Beach Access Software wrote: >Dear List: > >Can you control all of the functions of a second mdb from the first mdb - start, open forms, run reports, etc.? > >TIA > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Sat Mar 5 19:11:55 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 5 Mar 2005 17:11:55 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> Message-ID: <016601c521e9$7ce02c90$6b01a8c0@HAL9002> Marty: So far the code is: DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ "IN 'C:\ACESSDAT\Reports.mdb' " & _ "SELECT tUDGlobalMerge.* " & _ "FROM tUDGlobalMerge" This code is run from a database named Forms.mdb It deletes all the records in a table tUDGlobalMerge in the database named Reports. It then copies all the data from the table named tUDGlobalMerge in Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can then be run. What client wants now is, from the database Forms.mdb, open Reports.mdb hidden (so it doesn't show in the screen), print Report and close Reports.mdb. Can it be done with DoCmd.OpenReport specifying the report as the database and report name in the reports collection? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 2:17 PM Subject: Re: [AccessD] Contralling a second mdb from the first mdb >I know of two ways but this depends on program flow, you are running from >one or the other mdb > 1. Use an MDA but I don't know all the ramifications of using an MDA, > there are exceptions like circular references > See MDH Developers Handbook on Developing wizards > or > http://www.vb123.com/toolshed/00_Docs/buildwizards.htm > > 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL and > VB6 runtime > > Rocky Smolin - Beach Access Software wrote: > >>Dear List: >> >>Can you control all of the functions of a second mdb from the first mdb - >>start, open forms, run reports, etc.? >> >>TIA >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ksklos at comcast.net Sat Mar 5 22:01:19 2005 From: ksklos at comcast.net (ksklos at comcast.net) Date: Sun, 06 Mar 2005 04:01:19 +0000 Subject: [AccessD] Union Query Message-ID: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. From bchacc at san.rr.com Sun Mar 6 08:54:12 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 6 Mar 2005 06:54:12 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> Message-ID: <01d901c5225c$5c1590e0$6b01a8c0@HAL9002> Trying to run a report in a second database from the first database I tried DoCmd.OpenReport "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview Where xReports is the name of the mdb with the report I'm trying to run from an mdb called Forms.mdb, but the syntax is incorrect. Does anyone know the correct syntax? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Saturday, March 05, 2005 5:11 PM Subject: Re: [AccessD] Contralling a second mdb from the first mdb > Marty: > > So far the code is: > > DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" > DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ > "IN 'C:\ACESSDAT\Reports.mdb' " & _ > "SELECT tUDGlobalMerge.* " & _ > "FROM tUDGlobalMerge" > > > This code is run from a database named Forms.mdb > It deletes all the records in a table tUDGlobalMerge in the database named > Reports. > > It then copies all the data from the table named tUDGlobalMerge in > Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can then > be run. > > What client wants now is, from the database Forms.mdb, open Reports.mdb > hidden (so it doesn't show in the screen), print Report and close > Reports.mdb. > > Can it be done with DoCmd.OpenReport specifying the report as the database > and report name in the reports collection? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 2:17 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >>I know of two ways but this depends on program flow, you are running from >>one or the other mdb >> 1. Use an MDA but I don't know all the ramifications of using an MDA, >> there are exceptions like circular references >> See MDH Developers Handbook on Developing wizards >> or >> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >> >> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL and >> VB6 runtime >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>Can you control all of the functions of a second mdb from the first mdb - >>>start, open forms, run reports, etc.? >>> >>>TIA >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Sun Mar 6 23:37:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 06 Mar 2005 21:37:41 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> <01d901c5225c$5c1590e0$6b01a8c0@HAL9002> Message-ID: <422BE8A5.6020401@shaw.ca> Do you have a reference set to C:\Acessdat\xReports.mdb But this is where you may come a cropper on deployment, because the reference may not be correct. and cannot be modified in an mde It will search the library mdb first for the name.of the report also this command must execute from within a subroutine in the library mdb that has the report and you can call the subroutine name from the main mdb. DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview Rocky Smolin - Beach Access Software wrote: > Trying to run a report in a second database from the first database I > tried > > DoCmd.OpenReport > "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview > > > Where xReports is the name of the mdb with the report I'm trying to > run from an mdb called Forms.mdb, but the syntax is incorrect. > > Does anyone know the correct syntax? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > ----- Original Message ----- From: "Rocky Smolin - Beach Access > Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 5:11 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >> Marty: >> >> So far the code is: >> >> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >> "SELECT tUDGlobalMerge.* " & _ >> "FROM tUDGlobalMerge" >> >> >> This code is run from a database named Forms.mdb >> It deletes all the records in a table tUDGlobalMerge in the database >> named Reports. >> >> It then copies all the data from the table named tUDGlobalMerge in >> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can >> then be run. >> >> What client wants now is, from the database Forms.mdb, open >> Reports.mdb hidden (so it doesn't show in the screen), print Report >> and close Reports.mdb. >> >> Can it be done with DoCmd.OpenReport specifying the report as the >> database and report name in the reports collection? >> >> TIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> >> ----- Original Message ----- From: "MartyConnelly" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 2:17 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> I know of two ways but this depends on program flow, you are running >>> from one or the other mdb >>> 1. Use an MDA but I don't know all the ramifications of using an >>> MDA, there are exceptions like circular references >>> See MDH Developers Handbook on Developing wizards >>> or >>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>> >>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>> and VB6 runtime >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>> Dear List: >>>> >>>> Can you control all of the functions of a second mdb from the first >>>> mdb - start, open forms, run reports, etc.? >>>> >>>> TIA >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> http://www.e-z-mrp.com >>>> 858-259-4334 >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon Mar 7 00:16:50 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 6 Mar 2005 22:16:50 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> <01d901c5225c$5c1590e0$6b01a8c0@HAL9002> <422BE8A5.6020401@shaw.ca> Message-ID: <005f01c522dd$406c8de0$6b01a8c0@HAL9002> I got this from Michael Mattys: Dim acc As Access.Application Set acc = CreateObject("access.application") acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal acc.CloseCurrentDatabase Set acc = Nothing and it worked. Problem solved. Thanks and regards, Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, March 06, 2005 9:37 PM Subject: Re: [AccessD] Contralling a second mdb from the first mdb > Do you have a reference set to C:\Acessdat\xReports.mdb > But this is where you may come a cropper on deployment, because the > reference may not be correct. > and cannot be modified in an mde > It will search the library mdb first for the name.of the report > also this command must execute from within a subroutine in the library > mdb that has the report and you can call the > subroutine name from the main mdb. > > DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview > > Rocky Smolin - Beach Access Software wrote: > >> Trying to run a report in a second database from the first database I >> tried >> >> DoCmd.OpenReport >> "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview >> >> >> Where xReports is the name of the mdb with the report I'm trying to run >> from an mdb called Forms.mdb, but the syntax is incorrect. >> >> Does anyone know the correct syntax? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 5:11 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> Marty: >>> >>> So far the code is: >>> >>> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >>> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >>> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >>> "SELECT tUDGlobalMerge.* " & _ >>> "FROM tUDGlobalMerge" >>> >>> >>> This code is run from a database named Forms.mdb >>> It deletes all the records in a table tUDGlobalMerge in the database >>> named Reports. >>> >>> It then copies all the data from the table named tUDGlobalMerge in >>> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can then >>> be run. >>> >>> What client wants now is, from the database Forms.mdb, open Reports.mdb >>> hidden (so it doesn't show in the screen), print Report and close >>> Reports.mdb. >>> >>> Can it be done with DoCmd.OpenReport specifying the report as the >>> database and report name in the reports collection? >>> >>> TIA >>> >>> Rocky Smolin >>> Beach Access Software >>> http://www.e-z-mrp.com >>> 858-259-4334 >>> >>> >>> ----- Original Message ----- From: "MartyConnelly" >>> >>> To: "Access Developers discussion and problem solving" >>> >>> Sent: Saturday, March 05, 2005 2:17 PM >>> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >>> >>> >>>> I know of two ways but this depends on program flow, you are running >>>> from one or the other mdb >>>> 1. Use an MDA but I don't know all the ramifications of using an MDA, >>>> there are exceptions like circular references >>>> See MDH Developers Handbook on Developing wizards >>>> or >>>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>>> >>>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>>> and VB6 runtime >>>> >>>> Rocky Smolin - Beach Access Software wrote: >>>> >>>>> Dear List: >>>>> >>>>> Can you control all of the functions of a second mdb from the first >>>>> mdb - start, open forms, run reports, etc.? >>>>> >>>>> TIA >>>>> >>>>> Rocky Smolin >>>>> Beach Access Software >>>>> http://www.e-z-mrp.com >>>>> 858-259-4334 >>>>> >>>> >>>> -- >>>> Marty Connelly >>>> Victoria, B.C. >>>> Canada >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd666 at yahoo.com Mon Mar 7 00:40:18 2005 From: accessd666 at yahoo.com (Sad Der) Date: Sun, 6 Mar 2005 22:40:18 -0800 (PST) Subject: [AccessD] Run stored action query In-Reply-To: Message-ID: <20050307064018.16569.qmail@web31610.mail.mud.yahoo.com> Hi, I've tried both given solutions but they both failed! I keep getting the error: ?err.Number 3615 ?err.Description Type mismatch in expression. Can anybody please help me on this one? Thnx! Regards Sander --- Reuben Cummings wrote: > You should be able to use > > Docmd.OpenQuery("queryname") > > You may also want to use "docmd.setwarnings False" > before the query and > "docmd.setwarnings True" after the query so the user > doesn't have to answer > the prompts about adding, editing, or deleting > records associated with > action queries. > > > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On > Behalf Of Andy Lacey > Sent: Friday, March 04, 2005 9:09 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Run stored action query > > > Hi Sander > > Dim db as Database > Dim qdf as Querydef > > Set db = CurrentDb > Set qdf=db.Querydefs("xxxxquery") > qdf.Execute > > set qdf = nothing > set db = nothing > > HTH > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem > solving > > To: Acces User Group > Subject: [AccessD] Run stored action query > Date: 04/03/05 14:24 > > > > > Hi group, > > > > how do I run a stored action query using VBA? > > I'm using A2K. > > > > I know how to run a select query. I tried the same > for > > my action query but Access didn't like that :-( > > > > TIA > > > > Sander > > > > > > > > > > > > __________________________________ > > Celebrate Yahoo!'s 10th Birthday! > > Yahoo! Netrospective: 100 Moments of the Web > > http://birthday.yahoo.com/netrospective/ > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From bchacc at san.rr.com Mon Mar 7 01:07:06 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 6 Mar 2005 23:07:06 -0800 Subject: [AccessD] Run stored action query References: <20050307064018.16569.qmail@web31610.mail.mud.yahoo.com> Message-ID: <008601c522e4$45eec150$6b01a8c0@HAL9002> Can you run the query by itself from the database container? Can you see it in design view and SQL view? Can you post the SQL statement here? Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Sunday, March 06, 2005 10:40 PM Subject: RE: [AccessD] Run stored action query > Hi, > > I've tried both given solutions but they both failed! > I keep getting the error: > ?err.Number > 3615 > ?err.Description > Type mismatch in expression. > > Can anybody please help me on this one? > Thnx! > > Regards > Sander > > > --- Reuben Cummings wrote: > >> You should be able to use >> >> Docmd.OpenQuery("queryname") >> >> You may also want to use "docmd.setwarnings False" >> before the query and >> "docmd.setwarnings True" after the query so the user >> doesn't have to answer >> the prompts about adding, editing, or deleting >> records associated with >> action queries. >> >> >> >> Reuben Cummings >> GFC, LLC >> phone: 812.523.1017 >> email: reuben at gfconsultants.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On >> Behalf Of Andy Lacey >> Sent: Friday, March 04, 2005 9:09 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Run stored action query >> >> >> Hi Sander >> >> Dim db as Database >> Dim qdf as Querydef >> >> Set db = CurrentDb >> Set qdf=db.Querydefs("xxxxquery") >> qdf.Execute >> >> set qdf = nothing >> set db = nothing >> >> HTH >> >> -- >> Andy Lacey >> http://www.minstersystems.co.uk >> >> >> >> --------- Original Message -------- >> From: Access Developers discussion and problem >> solving >> >> To: Acces User Group >> Subject: [AccessD] Run stored action query >> Date: 04/03/05 14:24 >> >> > >> > Hi group, >> > >> > how do I run a stored action query using VBA? >> > I'm using A2K. >> > >> > I know how to run a select query. I tried the same >> for >> > my action query but Access didn't like that :-( >> > >> > TIA >> > >> > Sander >> > >> > >> > >> > >> > >> > __________________________________ >> > Celebrate Yahoo!'s 10th Birthday! >> > Yahoo! Netrospective: 100 Moments of the Web >> > http://birthday.yahoo.com/netrospective/ >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> > >> > >> > >> > >> >> ________________________________________________ >> Message sent using UebiMiau 2.7.2 >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd666 at yahoo.com Mon Mar 7 01:18:37 2005 From: accessd666 at yahoo.com (Sad Der) Date: Sun, 6 Mar 2005 23:18:37 -0800 (PST) Subject: [AccessD] Run stored action query In-Reply-To: <008601c522e4$45eec150$6b01a8c0@HAL9002> Message-ID: <20050307071837.49528.qmail@web31603.mail.mud.yahoo.com> Rocky, thnx for the reply. I was just about to update this item. I created some very simple queries: insert; update; make table; They all ran fine. Then I checked the query and noticed an "Expr1" field. It seems that the source file has changed and a field I need is missing!! Thnx for the help. Regards, Sander --- Rocky Smolin - Beach Access Software wrote: > Can you run the query by itself from the database > container? Can you see it > in design view and SQL view? Can you post the SQL > statement here? > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Sunday, March 06, 2005 10:40 PM > Subject: RE: [AccessD] Run stored action query > > > > Hi, > > > > I've tried both given solutions but they both > failed! > > I keep getting the error: > > ?err.Number > > 3615 > > ?err.Description > > Type mismatch in expression. > > > > Can anybody please help me on this one? > > Thnx! > > > > Regards > > Sander > > > > > > --- Reuben Cummings > wrote: > > > >> You should be able to use > >> > >> Docmd.OpenQuery("queryname") > >> > >> You may also want to use "docmd.setwarnings > False" > >> before the query and > >> "docmd.setwarnings True" after the query so the > user > >> doesn't have to answer > >> the prompts about adding, editing, or deleting > >> records associated with > >> action queries. > >> > >> > >> > >> Reuben Cummings > >> GFC, LLC > >> phone: 812.523.1017 > >> email: reuben at gfconsultants.com > >> > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com]On > >> Behalf Of Andy Lacey > >> Sent: Friday, March 04, 2005 9:09 AM > >> To: Access Developers discussion and problem > solving > >> Subject: Re: [AccessD] Run stored action query > >> > >> > >> Hi Sander > >> > >> Dim db as Database > >> Dim qdf as Querydef > >> > >> Set db = CurrentDb > >> Set qdf=db.Querydefs("xxxxquery") > >> qdf.Execute > >> > >> set qdf = nothing > >> set db = nothing > >> > >> HTH > >> > >> -- > >> Andy Lacey > >> http://www.minstersystems.co.uk > >> > >> > >> > >> --------- Original Message -------- > >> From: Access Developers discussion and problem > >> solving > >> > >> To: Acces User Group > > >> Subject: [AccessD] Run stored action query > >> Date: 04/03/05 14:24 > >> > >> > > >> > Hi group, > >> > > >> > how do I run a stored action query using VBA? > >> > I'm using A2K. > >> > > >> > I know how to run a select query. I tried the > same > >> for > >> > my action query but Access didn't like that :-( > >> > > >> > TIA > >> > > >> > Sander > >> > > >> > > >> > > >> > > >> > > >> > __________________________________ > >> > Celebrate Yahoo!'s 10th Birthday! > >> > Yahoo! Netrospective: 100 Moments of the Web > >> > http://birthday.yahoo.com/netrospective/ > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > > >> > > >> > > >> > > >> > >> ________________________________________________ > >> Message sent using UebiMiau 2.7.2 > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > > > > > > > > __________________________________ > > Celebrate Yahoo!'s 10th Birthday! > > Yahoo! Netrospective: 100 Moments of the Web > > http://birthday.yahoo.com/netrospective/ > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From ssharkins at bellsouth.net Mon Mar 7 07:23:13 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 7 Mar 2005 08:23:13 -0500 Subject: [AccessD] Union Query In-Reply-To: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Message-ID: <20050307132312.GCJW2073.imf18aec.mail.bellsouth.net@SUSANONE> My books are all still in storage (no rest of the wicked and all that), so I can't look this one up for you. I'm not aware of one, but if there is one that I just don't have memorized, it's probably large. How many statements do you need? I would think the number of records will slow you down way before the number of actual statements. Susan H. Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. From jimdettman at earthlink.net Mon Mar 7 07:53:32 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 7 Mar 2005 08:53:32 -0500 Subject: [AccessD] Union Query In-Reply-To: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Message-ID: Not on number of Unions per say, but on queries in general. Depending on how complex this is, you'll probably bump into one of these: 1. Limit of 255 columns in the output. 2. Limit of 32 tables in a query. 3. Approx limit of 64K characters in a SQL statement. 4. The nebulous "query too complex message" - Up until A95, queries needed to "compile" into a single 64K segment. Starting with A95, that limit was removed, but it was never specified exactly what the new limit was. You can fall within all the other specs and still get "query too complex". If you do, you hitting an internal limit that has not been specified. HTH, Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ksklos at comcast.net Sent: Saturday, March 05, 2005 11:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Union Query Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Mar 7 07:54:58 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 7 Mar 2005 08:54:58 -0500 Subject: [AccessD] Union Query In-Reply-To: <030620050401.3500.422A808F000C662900000DAC22007589429C0104059C05@comcast.net> Message-ID: Oh..one other you might bump into with a large number of Unions; the result set must be 1GB or less in size. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of ksklos at comcast.net Sent: Saturday, March 05, 2005 11:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Union Query Is there a limit to the number of sql statements you can have in a union query. I am using Access 2000. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Mon Mar 7 08:27:33 2005 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 7 Mar 2005 06:27:33 -0800 (PST) Subject: [AccessD] Run stored action query In-Reply-To: <20050307071837.49528.qmail@web31603.mail.mud.yahoo.com> Message-ID: <20050307142733.33788.qmail@web31608.mail.mud.yahoo.com> Hi, not only was a field missing there was also a datatype change. A field changed from text to Number-Double!?! Thnx for the help. Btw I solved it like this: Set rstQueries = New ADODB.Recordset strSQL = vbNullString strSQL = "SELECT tReportQuery.QueryName " & _ "FROM tReports INNER JOIN tReportQuery ON tReports.ID = tReportQuery.ReportID " & _ "WHERE tReports.ID = " & m_intReportID With rstQueries .ActiveConnection = CurrentProject.Connection .Source = strSQL .Open If (Not .BOF) And (Not .EOF) Then .MoveFirst Do While Not .EOF DoCmd.OpenQuery (.Fields(0)) .MoveNext Loop End If End With Regards, Sander --- Sad Der wrote: > Rocky, > > thnx for the reply. I was just about to update this > item. > > I created some very simple queries: > insert; > update; > make table; > > They all ran fine. > > Then I checked the query and noticed an "Expr1" > field. > It seems that the source file has changed and a > field > I need is missing!! > > Thnx for the help. > > Regards, > > Sander > --- Rocky Smolin - Beach Access Software > wrote: > > > Can you run the query by itself from the database > > container? Can you see it > > in design view and SQL view? Can you post the SQL > > statement here? > > > > Regards, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.com > > 858-259-4334 > > > > ----- Original Message ----- > > From: "Sad Der" > > To: "Access Developers discussion and problem > > solving" > > > > Sent: Sunday, March 06, 2005 10:40 PM > > Subject: RE: [AccessD] Run stored action query > > > > > > > Hi, > > > > > > I've tried both given solutions but they both > > failed! > > > I keep getting the error: > > > ?err.Number > > > 3615 > > > ?err.Description > > > Type mismatch in expression. > > > > > > Can anybody please help me on this one? > > > Thnx! > > > > > > Regards > > > Sander > > > > > > > > > --- Reuben Cummings > > wrote: > > > > > >> You should be able to use > > >> > > >> Docmd.OpenQuery("queryname") > > >> > > >> You may also want to use "docmd.setwarnings > > False" > > >> before the query and > > >> "docmd.setwarnings True" after the query so the > > user > > >> doesn't have to answer > > >> the prompts about adding, editing, or deleting > > >> records associated with > > >> action queries. > > >> > > >> > > >> > > >> Reuben Cummings > > >> GFC, LLC > > >> phone: 812.523.1017 > > >> email: reuben at gfconsultants.com > > >> > > >> > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com > > >> [mailto:accessd-bounces at databaseadvisors.com]On > > >> Behalf Of Andy Lacey > > >> Sent: Friday, March 04, 2005 9:09 AM > > >> To: Access Developers discussion and problem > > solving > > >> Subject: Re: [AccessD] Run stored action query > > >> > > >> > > >> Hi Sander > > >> > > >> Dim db as Database > > >> Dim qdf as Querydef > > >> > > >> Set db = CurrentDb > > >> Set qdf=db.Querydefs("xxxxquery") > > >> qdf.Execute > > >> > > >> set qdf = nothing > > >> set db = nothing > > >> > > >> HTH > > >> > > >> -- > > >> Andy Lacey > > >> http://www.minstersystems.co.uk > > >> > > >> > > >> > > >> --------- Original Message -------- > > >> From: Access Developers discussion and problem > > >> solving > > >> > > >> To: Acces User Group > > > > >> Subject: [AccessD] Run stored action query > > >> Date: 04/03/05 14:24 > > >> > > >> > > > >> > Hi group, > > >> > > > >> > how do I run a stored action query using VBA? > > >> > I'm using A2K. > > >> > > > >> > I know how to run a select query. I tried the > > same > > >> for > > >> > my action query but Access didn't like that > :-( > > >> > > > >> > TIA > > >> > > > >> > Sander > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > __________________________________ > > >> > Celebrate Yahoo!'s 10th Birthday! > > >> > Yahoo! Netrospective: 100 Moments of the Web > > >> > http://birthday.yahoo.com/netrospective/ > > >> > -- > > >> > AccessD mailing list > > >> > AccessD at databaseadvisors.com > > >> > > > >> > > > http://databaseadvisors.com/mailman/listinfo/accessd > > >> > Website: http://www.databaseadvisors.com > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > >> > ________________________________________________ > > >> Message sent using UebiMiau 2.7.2 > > >> > > >> -- > > >> AccessD mailing list > > >> AccessD at databaseadvisors.com > > >> > > > http://databaseadvisors.com/mailman/listinfo/accessd > > >> Website: http://www.databaseadvisors.com > > >> > > >> > > >> > > >> > > >> -- > > >> AccessD mailing list > > >> AccessD at databaseadvisors.com > > >> > > > http://databaseadvisors.com/mailman/listinfo/accessd > > >> Website: http://www.databaseadvisors.com > > >> > > > > > > > > > > > > > > > > > > __________________________________ > > > Celebrate Yahoo!'s 10th Birthday! > > > Yahoo! Netrospective: 100 Moments of the Web > > > http://birthday.yahoo.com/netrospective/ > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > === message truncated === __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From mikedorism at adelphia.net Mon Mar 7 08:31:04 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 7 Mar 2005 09:31:04 -0500 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: Message-ID: <000401c52322$4d981580$0b08a845@hargrove.internal> Does anyone have any code to detect if Outlook is open that works in Access2003? Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From andy at minstersystems.co.uk Mon Mar 7 07:52:43 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 7 Mar 2005 14:52:43 +0100 Subject: [AccessD] Code to detect if Outlook is open Message-ID: <20050307145240.50FD52BAF9D@smtp.nildram.co.uk> Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From mikedorism at adelphia.net Mon Mar 7 09:20:11 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 7 Mar 2005 10:20:11 -0500 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: <20050307145240.50FD52BAF9D@smtp.nildram.co.uk> Message-ID: <000901c52329$2a42cf60$0b08a845@hargrove.internal> Thanks, Andy, but that isn't quite what I was looking for. I had some API code I wrote for an AccessXP database that could detect whether Outlook was already open and process accordingly. I used API code because if Outlook was already open on the user's machine, I didn't want my code to close it. My old code used the EnumWindows process to look through the tabs but when I run it using Access2003, I don't get the same results. I was hoping someone had updated code. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 07, 2005 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code to detect if Outlook is open Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Mon Mar 7 09:26:32 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 7 Mar 2005 10:26:32 -0500 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1CE6A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE870@ADGSERVER> And if you do not want to be tied to a given version of Outlook, you can use late binding like so: Dim objOutlook As object 'note as object now, not outlook.application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") This is air code, so ymmv. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 07, 2005 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code to detect if Outlook is open Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com From dwaters at usinternet.com Mon Mar 7 09:52:26 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 7 Mar 2005 09:52:26 -0600 Subject: [AccessD] Code to detect if Outlook is open In-Reply-To: <10201791.1110209180867.JavaMail.root@sniper17> Message-ID: <001801c5232d$a96116e0$123a11d8@danwaters> Hi Doris, I use exactly what Andy is using, to my satisfaction. It works essentially like a Boolean value if Outlook is open or not, and won't close Outlook if it's open. If Outlook is closed the error code is 429 which you can trap. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Monday, March 07, 2005 9:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Code to detect if Outlook is open Thanks, Andy, but that isn't quite what I was looking for. I had some API code I wrote for an AccessXP database that could detect whether Outlook was already open and process accordingly. I used API code because if Outlook was already open on the user's machine, I didn't want my code to close it. My old code used the EnumWindows process to look through the tabs but when I run it using Access2003, I don't get the same results. I was hoping someone had updated code. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, March 07, 2005 8:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Code to detect if Outlook is open Hi Doris I can't test it in A2003 but this works in earlier versions Dim objOutlook As Outlook.Application On Error GoTo Err_NoOutlook Set objOutlook = GetObject(, "Outlook.Application") If it errors then Outlook's not running. Any use? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Code to detect if Outlook is open Date: 07/03/05 14:33 > > Does anyone have any code to detect if Outlook is open that works in > Access2003? > > Doris Manning > Database Administrator > Hargrove Inc. > www.hargroveinc.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Mar 7 10:29:43 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 07 Mar 2005 08:29:43 -0800 Subject: [AccessD] Code to detect if Outlook is open References: <000901c52329$2a42cf60$0b08a845@hargrove.internal> Message-ID: <422C8177.3080202@shaw.ca> Here is some rough code I use to determine all the names of tasks running. I don't know if different version of Outlook may have slightly different names Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Declare Function GetWindow Lib "user32" _ (ByVal hWnd As Long, ByVal wCmd As Long) As Long Private Declare Function GetParent Lib "user32" _ (ByVal hWnd As Long) As Long Private Declare Function GetWindowTextLength Lib _ "user32" Alias "GetWindowTextLengthA" (ByVal hWnd As Long) As Long Private Declare Function GetWindowText Lib "user32" _ Alias "GetWindowTextA" (ByVal hWnd As Long, ByVal _ lpString As String, ByVal cch As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" _ (ByVal hWnd As Long) As Long 'Determining Which Tasks Are Running 'With the Microsoft Windows operating system, 'you can run any number of applications simultaneously. 'Occasionally, you may need to determine which tasks are currently being 'run. 'This can be accomplished by using several Windows application programming 'interface '(API) functions. 'To find the names of all currently executing tasks, 'you must first determine the handle of the window that is currently 'at the top of the z-order. This, of course, would be the window of your 'own Microsoft Visual Basic application. 'You can use the Windows API GetWindow function to retrieve the handle 'of your application's window with the statement: ' CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' To use in Access replace with the following ' parent_hwnd = FindWindow(vbNullString, "Microsoft Access") 'The first argument of the GetWindow function is the handle of the window 'that is at the top of the z-order. In this case, this is the handle of 'Form1. 'The second argument of the GetWindow function specifies the window 'you want to retrieve the handle for. 'This argument can have one of the following values: ' GW_CHILD Retrieve the handle for the child window. ' GW_HWNDFIRST Retrieve the handle for the window at the top of the z- 'order. ' GW_HWNDLAST Retrieve the handle for the window at the bottom of the z- 'order. ' GW_HWNDNEXT Retrieve the handle of the window below the specified window 'in the z-order. ' GW_HWNDPREV Retrieve the handle of the window above the specified window 'in the z-order. ' GW_OWNER Retrieve the handle of the window that owns the specified 'window, if any. 'After you have retrieved the application's window handle, 'you can use the Windows API GetParent function to retrieve this window's 'child window handle. Next, you call the Windows API GetWindowText and 'GetWindowTextLength functions to retrieve the text in the window's title 'bar 'and the length of this text, respectively. You can then use the text string 'in your own application. For example, you can save the title bar text 'to a List Box control. 'All of the above steps are repeated until you have processed all running 'tasks. 'You know that you have gone through each task when the current window is 'that'of your own application. Function LoadTaskList() As String Dim CurrWnd As Long Dim Length As Long Dim TaskName As String Dim Parent As Long Dim parent_hwnd As Long Dim strMyTaskList As String strMyTaskList = " Task List " & vbCrLf ' This line below works from VB form 'CurrWnd = GetWindow(Form1.hwnd, GW_HWNDFIRST) ' get Parent Window Handle parent_hwnd = FindWindow(vbNullString, "Microsoft Access") If parent_hwnd = 0 Then MsgBox "Access Not Found" Exit Function End If 'SetFocusAPI parent_hwnd CurrWnd = parent_hwnd While CurrWnd <> 0 Parent = GetParent(CurrWnd) Length = GetWindowTextLength(CurrWnd) TaskName = Space$(Length + 1) Length = GetWindowText(CurrWnd, TaskName, Length + 1) TaskName = Left$(TaskName, Len(TaskName) - 1) If Length > 0 Then 'If TaskName <> Me.Caption Then 'If TaskName <> "Microsoft Access" Then 'List1.AddItem TaskName strMyTaskList = strMyTaskList & TaskName & vbCrLf Debug.Print TaskName 'End If End If CurrWnd = GetWindow(CurrWnd, GW_HWNDNEXT) DoEvents Wend LoadTaskList = strMyTaskList End Function Mike & Doris Manning wrote: >Thanks, Andy, but that isn't quite what I was looking for. I had some API >code I wrote for an AccessXP database that could detect whether Outlook was >already open and process accordingly. I used API code because if Outlook >was already open on the user's machine, I didn't want my code to close it. >My old code used the EnumWindows process to look through the tabs but when I >run it using Access2003, I don't get the same results. I was hoping someone >had updated code. > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey >Sent: Monday, March 07, 2005 8:53 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Code to detect if Outlook is open > > >Hi Doris >I can't test it in A2003 but this works in earlier versions > >Dim objOutlook As Outlook.Application > >On Error GoTo Err_NoOutlook >Set objOutlook = GetObject(, "Outlook.Application") > > >If it errors then Outlook's not running. > >Any use? > >-- >Andy Lacey >http://www.minstersystems.co.uk > > > >--------- Original Message -------- >From: Access Developers discussion and problem solving > >To: 'Access Developers discussion and problem solving' > >Subject: [AccessD] Code to detect if Outlook is open >Date: 07/03/05 14:33 > > > >>Does anyone have any code to detect if Outlook is open that works in >>Access2003? >> >>Doris Manning >>Database Administrator >>Hargrove Inc. >>www.hargroveinc.com >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> >> >> >> > >________________________________________________ >Message sent using UebiMiau 2.7.2 > > > -- Marty Connelly Victoria, B.C. Canada From Jdemarco at hudsonhealthplan.org Mon Mar 7 10:48:23 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Mon, 7 Mar 2005 11:48:23 -0500 Subject: [AccessD] Random numbers lottery-style Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D37@TTNEXCHCL2.hshhp.com> Steve, Sorry I was out sick on Friday. Is this problem not solved yet? You could try changing your line of code that adds a value to your colInt to this: colI.Add rstI("ActivityID").Value, CStr(lng1) or 'create a variable to hold the field value and add that to the collection instead intActivityID = rstI("ActivityID") colI.Add intActivityID, CStr(lng1) It sounds like you may be adding the field from the recordset to your collection as opposed to the field's value (hence the reference in your error to no current record and why the object is not valid). HTH, Jim D. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach Sent: Thursday, March 03, 2005 5:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Random numbers lottery-style Jim, Thanks. I've created a collection that holds the dates for each day of the year for a one-year period. I also have a collection for the list of volunteer interests for one volunteer. But something funny is happening. I'm using Access 2003. In one procedure I DIM the two New Collections, colDays and colInts. I fill the colDays collection with a procedure that looks like this (I pass the colDays collection as a parameter right after DIMing it): Private Sub FillDaysCol(colD As Collection) Dim i As Long Dim dat As Date On Error GoTo PROC_ERR ' Set the starting day dat = CDate("8/1/2003") ' 366 days because of the leap year For i = 1 To 366 colD.Add dat, CStr(i) dat = DateAdd("d", 1, dat) Next i PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillDaysCol" Resume PROC_EXIT End Sub This works champion. I can Remove items from the collection at will and the collection persists as I pass it from procedure to procedure as a parameter. On the other hand, the colInts doesn't work so well. I DIM the colInts and pass it as a parameter to another procedure to fill it with the values from a recordset: Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) Dim lng1 As Long On Error GoTo PROC_ERR lng1 = 1 Do While Not rstI.EOF colI.Add rstI("ActivityID"), CStr(lng1) lng1 = lng1 + 1 rstI.MoveNext Loop PROC_EXIT: Exit Sub PROC_ERR: MsgBox "Error " & Err.Number & " : " & Err.Description & _ " : Line " & Erl, vbCritical, "Error in FillIntsCol" Resume PROC_EXIT End Sub The procedure builds the collection all right, but when I try to refer to one of its items back in the calling procedure, I get the error: Error 3420 : Object invalid or no longer set Now, if I put a break in the code at the start of the Do While loop, I can check the item's value in the Immediate window right after it's been added to the collection. But when the loop finishes up, I check the Count of the collection and I get the right number of items...but then I try to check the value of one of those items in the Immediate window, I get the error: No current record (runtime error 3021) What's this about a "record"? I am stumped here. Why does one collection "building" procedure work, but the other one doesn't? Steve Erbach On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco wrote: > The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. > > Jim D. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From jwcolby at colbyconsulting.com Mon Mar 7 12:34:47 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 07 Mar 2005 13:34:47 -0500 Subject: [AccessD] Learned something new Message-ID: <000a01c52344$574d7710$697aa8c0@ColbyM6805> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From handyman at actcom.co.il Mon Mar 7 12:39:15 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Mon, 07 Mar 2005 20:39:15 +0200 Subject: [AccessD] "class not registered" error - revisited Message-ID: <5.1.0.14.2.20050307203233.00abb6b0@pop5.actcom.net.il> After all my problems with using wizards for list box and combo boxes, and getting the "class not registered" error, I installed Access2003. Now when using the wizard I get "Data cannot be retrieved from the source you have selected. You must select a different table or query to continue in the wizard." I checked out Microsoft kbid=839783, and even updated all the updates. Still no go. Now I really think there must be something wrong with my Windows2000 op. Perhaps someone has other insights. Thanks Gershon From erbachs at gmail.com Mon Mar 7 12:45:25 2005 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 7 Mar 2005 12:45:25 -0600 Subject: [AccessD] Random numbers lottery-style In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D37@TTNEXCHCL2.hshhp.com> References: <08F823FD83787D4BA0B99CA580AD3C749D2D37@TTNEXCHCL2.hshhp.com> Message-ID: <39cb22f3050307104565985fe4@mail.gmail.com> Jim, You may have something there. For now it's an academic point because I worked around it to make over 7000 test data records. I will, however, remember the .value bit for future reference. It makes sense. Thank you. Steve Erbach On Mon, 7 Mar 2005 11:48:23 -0500, Jim DeMarco wrote: > Steve, > > Sorry I was out sick on Friday. Is this problem not solved yet? You could try changing your line of code that adds a value to your colInt to this: > > colI.Add rstI("ActivityID").Value, CStr(lng1) > > or > > 'create a variable to hold the field value and add that to the collection instead > intActivityID = rstI("ActivityID") > colI.Add intActivityID, CStr(lng1) > > It sounds like you may be adding the field from the recordset to your collection as opposed to the field's value (hence the reference in your error to no current record and why the object is not valid). > > HTH, > > Jim D. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Erbach > Sent: Thursday, March 03, 2005 5:27 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Random numbers lottery-style > > Jim, > > Thanks. I've created a collection that holds the dates for each day of > the year for a one-year period. I also have a collection for the list > of volunteer interests for one volunteer. But something funny is > happening. > > I'm using Access 2003. In one procedure I DIM the two New Collections, > colDays and colInts. I fill the colDays collection with a procedure > that looks like this (I pass the colDays collection as a parameter > right after DIMing it): > > Private Sub FillDaysCol(colD As Collection) > Dim i As Long > Dim dat As Date > > On Error GoTo PROC_ERR > > ' Set the starting day > dat = CDate("8/1/2003") > ' 366 days because of the leap year > For i = 1 To 366 > colD.Add dat, CStr(i) > dat = DateAdd("d", 1, dat) > Next i > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillDaysCol" > Resume PROC_EXIT > End Sub > > This works champion. I can Remove items from the collection at will > and the collection persists as I pass it from procedure to procedure > as a parameter. > > On the other hand, the colInts doesn't work so well. I DIM the colInts > and pass it as a parameter to another procedure to fill it with the > values from a recordset: > > Private Sub FillIntsCol(rstI As DAO.Recordset, colI As Collection) > Dim lng1 As Long > > On Error GoTo PROC_ERR > > lng1 = 1 > Do While Not rstI.EOF > colI.Add rstI("ActivityID"), CStr(lng1) > lng1 = lng1 + 1 > rstI.MoveNext > Loop > > PROC_EXIT: > Exit Sub > PROC_ERR: > MsgBox "Error " & Err.Number & " : " & Err.Description & _ > " : Line " & Erl, vbCritical, "Error in FillIntsCol" > Resume PROC_EXIT > End Sub > > The procedure builds the collection all right, but when I try to refer > to one of its items back in the calling procedure, I get the error: > > Error 3420 : Object invalid or no longer set > > Now, if I put a break in the code at the start of the Do While loop, I > can check the item's value in the Immediate window right after it's > been added to the collection. But when the loop finishes up, I check > the Count of the collection and I get the right number of items...but > then I try to check the value of one of those items in the Immediate > window, I get the error: > > No current record (runtime error 3021) > > What's this about a "record"? I am stumped here. Why does one > collection "building" procedure work, but the other one doesn't? > > Steve Erbach > > On Thu, 3 Mar 2005 15:22:04 -0500, Jim DeMarco > wrote: > > The collection will reindex itself. There will be one less item for each iteration so you'll have to use the Count property of the Collection to determine the upper bound of the index in your random selection process. > > > > Jim D. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > *********************************************************************************** > "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". > *********************************************************************************** > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Regards, Steve Erbach Scientific Marketing Neenah, WI www.swerbach.com Security Page: www.swerbach.com/security From accessd at shaw.ca Mon Mar 7 13:38:26 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 07 Mar 2005 11:38:26 -0800 Subject: [AccessD] Learned something new In-Reply-To: <000a01c52344$574d7710$697aa8c0@ColbyM6805> Message-ID: <0ICZ00J9VYK0CX@l-daemon> Hi John: This is one of the 'gotyas' with bound data sets. What is your data source? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, March 07, 2005 10:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Learned something new Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Mar 7 15:51:25 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 07 Mar 2005 16:51:25 -0500 Subject: [AccessD] Learned something new In-Reply-To: <0ICZ00J9VYK0CX@l-daemon> Message-ID: <000b01c5235f$d2e53870$697aa8c0@ColbyM6805> This is indeed a bound data form but the query itself will not display the updates, even if opened directly. I have the class write the changes to the data source (live data). John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, March 07, 2005 2:38 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Hi John: This is one of the 'gotyas' with bound data sets. What is your data source? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Monday, March 07, 2005 10:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Learned something new Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Mon Mar 7 17:22:31 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 7 Mar 2005 15:22:31 -0800 (PST) Subject: [AccessD] My Subform won't show if I leave access and come back!!!! Message-ID: <20050307232231.201.qmail@web20426.mail.yahoo.com> I have a form and a subform. If I go to another program like ie explorer or outlook then come back to my access app, I can see my main form but the subform has a snapshot of whatever the prior program was that I was in. It's like the subform is frozen and won't come back. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web From Erwin.Craps at ithelps.be Mon Mar 7 21:10:23 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 8 Mar 2005 04:10:23 +0100 Subject: [AccessD] My Subform won't show if I leave access and come back!!!! Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5868@stekelbes.ithelps.local> That is probably a graphical card driver problem... I would advice you to first get a update to your graphical card driver and to try again... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, March 08, 2005 12:23 AM To: AccessD solving' Subject: [AccessD] My Subform won't show if I leave access and come back!!!! I have a form and a subform. If I go to another program like ie explorer or outlook then come back to my access app, I can see my main form but the subform has a snapshot of whatever the prior program was that I was in. It's like the subform is frozen and won't come back. May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 8 02:15:15 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 00:15:15 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... Message-ID: <20050308081515.63165.qmail@web31606.mail.mud.yahoo.com> Hi group, my story of the queries continues. I need to run a set of action queries. This works fine. Several queries have parameters. So that means the user has to watch the screen for a parameter to pop-up. Is it possible to add some parameter fields in the form to fill the required parameters...WITHOUT changing the query it self? So I have a parameters in my query: [Enter version:] [Enter startdate:] And I do not want to change these to: forms!frmReport!txtVersion forms!frmReport!txtStartDate TIA Sander __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Tue Mar 8 03:18:56 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 08 Mar 2005 10:18:56 +0100 Subject: [AccessD] Learned something new Message-ID: Hi John Thank you for bringing this. It's a good reminder that sometimes a temp table _is_ the choice and not just a quick work-around. /gustav >>> jwcolby at colbyconsulting.com 07-03-2005 19:34:47 >>> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com From cyx5 at cdc.gov Tue Mar 8 05:46:03 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 06:46:03 -0500 Subject: [AccessD] Learned something new Message-ID: I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 08, 2005 4:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Learned something new Hi John Thank you for bringing this. It's a good reminder that sometimes a temp table _is_ the choice and not just a quick work-around. /gustav >>> jwcolby at colbyconsulting.com 07-03-2005 19:34:47 >>> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Tue Mar 8 06:20:52 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 8 Mar 2005 17:50:52 +0530 Subject: [AccessD] Automating parameterized action queries..... References: <20050308081515.63165.qmail@web31606.mail.mud.yahoo.com> Message-ID: <00bb01c523d9$58cb48c0$1f1465cb@winxp> Sander, Any objection to using global variables ? A.D.Tejpal -------------- ----- Original Message ----- From: Sad Der To: Acces User Group Sent: Tuesday, March 08, 2005 13:45 Subject: [AccessD] Automating parameterized action queries..... Hi group, my story of the queries continues. I need to run a set of action queries. This works fine. Several queries have parameters. So that means the user has to watch the screen for a parameter to pop-up. Is it possible to add some parameter fields in the form to fill the required parameters...WITHOUT changing the query it self? So I have a parameters in my query: [Enter version:] [Enter startdate:] And I do not want to change these to: forms!frmReport!txtVersion forms!frmReport!txtStartDate TIA Sander From bheid at appdevgrp.com Tue Mar 8 06:23:32 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 07:23:32 -0500 Subject: [AccessD] Learned something new In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1CFF4@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE87E@ADGSERVER> I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. From bheid at appdevgrp.com Tue Mar 8 06:26:05 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 07:26:05 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1CFD6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE87F@ADGSERVER> If you are not wanting to encode a particular form field because the query is called from several forms, might I suggest that you create a new hidden form that contains fields for all of the fields that are used as parameters. Then the queries can access these fields. You would need to set the fields on the form before the queries were executed. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, March 08, 2005 3:15 AM To: Acces User Group Subject: [AccessD] Automating parameterized action queries..... Hi group, my story of the queries continues. I need to run a set of action queries. This works fine. Several queries have parameters. So that means the user has to watch the screen for a parameter to pop-up. Is it possible to add some parameter fields in the form to fill the required parameters...WITHOUT changing the query it self? So I have a parameters in my query: [Enter version:] [Enter startdate:] And I do not want to change these to: forms!frmReport!txtVersion forms!frmReport!txtStartDate TIA Sander From cyx5 at cdc.gov Tue Mar 8 06:37:58 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 07:37:58 -0500 Subject: [AccessD] Learned something new Message-ID: That is a great idea. I never thought of that. I am going to implement this in my applications. Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 7:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 8 06:52:16 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 08 Mar 2005 13:52:16 +0100 Subject: [AccessD] Learned something new Message-ID: Hi Karen and Bobby I find it easier just to (re)create the temp database when you launch the frontend. /gustav >>> cyx5 at cdc.gov 08-03-2005 13:37:58 >>> That is a great idea. I never thought of that. I am going to implement this in my applications. Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 7:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. From jwcolby at colbyconsulting.com Tue Mar 8 06:57:04 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 08 Mar 2005 07:57:04 -0500 Subject: [AccessD] Learned something new In-Reply-To: Message-ID: <001201c523de$53bcef50$697aa8c0@ColbyM6805> Yep exactly. We get so used to doing everything with queries because it is so easy that we kind of lose focus on the end objective. In this case I really didn't even know that this behavior existed but once I did a temp table was an easy solution. I actually use a table right in the FE because I usually implement a FE that is downloaded every morning from a server. That controls bloat since they get a new copy every morning. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 08, 2005 4:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Learned something new Hi John Thank you for bringing this. It's a good reminder that sometimes a temp table _is_ the choice and not just a quick work-around. /gustav >>> jwcolby at colbyconsulting.com 07-03-2005 19:34:47 >>> Well, I learned something new today. I have designed a data import system that pulls data from csv files into a raw data table. This data has a pair of IDs, a state ID and a Discipline ID which are FKs for a pair of tables. My live data table has these same fields. One of the objectives of this system is to compare personal data coming from state licensing boards to the personal data in our system. In order to do this I need to "narrow down" the live data and somehow pull a set of data from the "live data table" (our data) that corresponds one to one the "Raw data table" (the imported data). Originally I started by simply joining the STID, DIID and License Number from live to raw. It took FOREVER (as in 15 or 20 minutes) to return a data set when the live data has ~150K records and the raw data has ~5-10K records. While this result set was slow, it would allow changes made to the live data to be seen in the result set immediately. In search of something faster I discovered that if I ran a distinct query on the raw data pulling just the two ID fields and saved that as a query, I could then join THAT ID pair to the Live data table and pull a set of "potential matches" in less than 10 seconds. IOW, I would get all of the live data records that had the same state and discipline ID. I could then join the raw data to that data set on the license number and have a much faster result set that displayed the fields in live and the matching fields in raw. The end result set is fed to a form with a small subset of the fields displayed side by side (last name raw/live, first name raw/live etc) and then a class would decide if the two controls displayed different data and change the background color of the pair of controls if they were different to highlight that the data differed for those fields. All of which worked great. The problem is that if the data in live is changed to match raw (data coming from the state - address change for example) the change no longer displays in the form. Sigh. What I discovered today is that the "non update" is caused by the DISTINCT query, or a similar GroupedBy query. If I use either one of those two methods to select the set of live "potential matches" then the ultimate query will NOT display the changes made in the live data. However if I save that DISTINCT data (the state/disc IDs) in a table, then join the new table to live and raw, the resulting data set will display the changes in the live data table. In both cases (using the query directly or the saved data from the query) the resulting data set of live/raw is non-updateable, but in one case (using the saved ID data) changes in the underlying tables will be displayed in the result set, whereas if I just use the DSTINCT (or GROUPED BY) query the result set will never display changes in the underlying tables. So something about using a distinct or groupby causes the dataset to not display changes. I always knew the result sets were non-updateable but I was never aware that they wouldn't show updates either. John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 06:58:02 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 08 Mar 2005 07:58:02 -0500 Subject: [AccessD] Learned something new In-Reply-To: Message-ID: <001301c523de$795829a0$697aa8c0@ColbyM6805> And using the "IN" syntax you can often do it without even linking the tables to the FE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 08, 2005 7:52 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Learned something new Hi Karen and Bobby I find it easier just to (re)create the temp database when you launch the frontend. /gustav >>> cyx5 at cdc.gov 08-03-2005 13:37:58 >>> That is a great idea. I never thought of that. I am going to implement this in my applications. Thank you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 7:24 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 8 07:05:09 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 05:05:09 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050308130510.43137.qmail@web31607.mail.mud.yahoo.com> yes, the global variables need to be filled. If the user runs the query manually (thus by double clicking it in the database container) the global var isn't filled. Thnx anyway. --- "A.D.Tejpal" wrote: > Sander, > > Any objection to using global variables ? > > A.D.Tejpal > -------------- > > ----- Original Message ----- > From: Sad Der > To: Acces User Group > Sent: Tuesday, March 08, 2005 13:45 > Subject: [AccessD] Automating parameterized action > queries..... > > > Hi group, > > my story of the queries continues. I need to run a > set > of action queries. This works fine. > > Several queries have parameters. So that means the > user has to watch the screen for a parameter to > pop-up. Is it possible to add some parameter > fields in > the form to fill the required parameters...WITHOUT > changing the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: > forms!frmReport!txtVersion > forms!frmReport!txtStartDate > > TIA > > Sander > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From accessd666 at yahoo.com Tue Mar 8 07:09:53 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 05:09:53 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050308130953.43418.qmail@web31607.mail.mud.yahoo.com> You are correct. However the queries are not executed via from several forms but they are executed: 1- via one form 2- a user manually clicks it in the database container. The process is as follows: 1 - the reports (xls files) are stored in the database 2 - the queries that create the report are also stored in the database 3 - the user selects a report 4 - the necessary queries are executed one by one However, several times a week a manager requests a part of the report that is slightly different from the original. A user then must have the change to quickly adjust the query and run it manually. HTH Sander --- Bobby Heid wrote: > If you are not wanting to encode a particular form > field because the query > is called from several forms, might I suggest that > you create a new hidden > form that contains fields for all of the fields that > are used as parameters. > Then the queries can access these fields. > > You would need to set the fields on the form before > the queries were > executed. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 3:15 AM > To: Acces User Group > Subject: [AccessD] Automating parameterized action > queries..... > > > Hi group, > > my story of the queries continues. I need to run a > set > of action queries. This works fine. > > Several queries have parameters. So that means the > user has to watch the screen for a parameter to > pop-up. Is it possible to add some parameter fields > in > the form to fill the required parameters...WITHOUT > changing the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: > forms!frmReport!txtVersion > forms!frmReport!txtStartDate > > TIA > > Sander > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From bheid at appdevgrp.com Tue Mar 8 08:26:21 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 09:26:21 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D01B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE881@ADGSERVER> Why not have two sets of queries, one set that looks to a form (this one is called programmatically), and one set that queries the user for the parameters? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Tuesday, March 08, 2005 8:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries..... You are correct. However the queries are not executed via from several forms but they are executed: 1- via one form 2- a user manually clicks it in the database container. The process is as follows: 1 - the reports (xls files) are stored in the database 2 - the queries that create the report are also stored in the database 3 - the user selects a report 4 - the necessary queries are executed one by one However, several times a week a manager requests a part of the report that is slightly different from the original. A user then must have the change to quickly adjust the query and run it manually. HTH Sander --- Bobby Heid wrote: > If you are not wanting to encode a particular form > field because the query > is called from several forms, might I suggest that > you create a new hidden > form that contains fields for all of the fields that > are used as parameters. > Then the queries can access these fields. > > You would need to set the fields on the form before > the queries were > executed. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 3:15 AM > To: Acces User Group > Subject: [AccessD] Automating parameterized action queries..... > > > Hi group, > > my story of the queries continues. I need to run a > set > of action queries. This works fine. > > Several queries have parameters. So that means the > user has to watch the screen for a parameter to > pop-up. Is it possible to add some parameter fields > in > the form to fill the required parameters...WITHOUT > changing the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: forms!frmReport!txtVersion > forms!frmReport!txtStartDate > > TIA > > Sander > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Tue Mar 8 08:33:42 2005 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 8 Mar 2005 06:33:42 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050308143342.68438.qmail@web31605.mail.mud.yahoo.com> I also thought of that but I hoped their was a way to fill the parameters per query with form input. That way i could make a form for the users in wich they can enter: - a new report - queries per report - parameters per query - parametertype per parameter (eg date, number, etc) With this info I could, based on a report selection build a form dynamicly. Well I have to look at this some more and let the customer decide. Regards, Sander --- Bobby Heid wrote: > Why not have two sets of queries, one set that looks > to a form (this one is > called programmatically), and one set that queries > the user for the > parameters? > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 8:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Automating parameterized > action queries..... > > > You are correct. However the queries are not > executed > via from several forms but they are executed: > 1- via one form > 2- a user manually clicks it in the database > container. > > The process is as follows: > 1 - the reports (xls files) are stored in the > database > 2 - the queries that create the report are also > stored > in the database > 3 - the user selects a report > 4 - the necessary queries are executed one by one > > However, several times a week a manager requests a > part of the report that is slightly different from > the original. A user then > must have the change to quickly adjust the query and > run it manually. > > HTH > > Sander > > > --- Bobby Heid wrote: > > If you are not wanting to encode a particular form > > field because the query > > is called from several forms, might I suggest that > > you create a new hidden > > form that contains fields for all of the fields > that > > are used as parameters. > > Then the queries can access these fields. > > > > You would need to set the fields on the form > before > > the queries were > > executed. > > > > Bobby > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Sad Der > > Sent: Tuesday, March 08, 2005 3:15 AM > > To: Acces User Group > > Subject: [AccessD] Automating parameterized action > queries..... > > > > > > Hi group, > > > > my story of the queries continues. I need to run a > > set > > of action queries. This works fine. > > > > Several queries have parameters. So that means the > > user has to watch the screen for a parameter to > > pop-up. Is it possible to add some parameter > fields > > in > > the form to fill the required parameters...WITHOUT > > changing the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > TIA > > > > Sander > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From scapistrant at symphonyinfo.com Tue Mar 8 08:40:42 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Tue, 8 Mar 2005 08:40:42 -0600 Subject: [AccessD] Learned something new Message-ID: <855499653F55AD4190B242717DF132BC04EE33@dewey.Symphony.local> What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 08:49:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 8 Mar 2005 09:49:49 -0500 Subject: [AccessD] Learned something new In-Reply-To: <855499653F55AD4190B242717DF132BC04EE33@dewey.Symphony.local> Message-ID: <001701c523ee$183f7e10$697aa8c0@ColbyM6805> Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Tue Mar 8 08:51:44 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 8 Mar 2005 09:51:44 -0500 Subject: [AccessD] Automating parameterized action queries..... Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2D45@TTNEXCHCL2.hshhp.com> Sander, I'm not 100% positive but I believe I've seen a technique that did allow you to programatically fill "Enter xxx" prompts. Have you searched the web? I'm sorry I don't have anything more concrete to offer other than a vague recollection. A quick search of Dev Ashish's site turns up this code: Dim db As Database 'current database Dim rs As Recordset 'holds query resultset Dim qdfParmQry As QueryDef 'the actual query object Set db = CurrentDb() Set qdfParmQry = db.QueryDefs("Qry1") qdfParmQry("Please Enter Code:") = 3 qdef.parameters(1) = "[Enter xxx]= " & yourvaluehere Maybe that will help you figure out how to handle that situation. HTH Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Sad Der Sent: Tuesday, March 08, 2005 9:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries..... I also thought of that but I hoped their was a way to fill the parameters per query with form input. That way i could make a form for the users in wich they can enter: - a new report - queries per report - parameters per query - parametertype per parameter (eg date, number, etc) With this info I could, based on a report selection build a form dynamicly. Well I have to look at this some more and let the customer decide. Regards, Sander --- Bobby Heid wrote: > Why not have two sets of queries, one set that looks > to a form (this one is > called programmatically), and one set that queries > the user for the > parameters? > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Sad Der > Sent: Tuesday, March 08, 2005 8:10 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Automating parameterized > action queries..... > > > You are correct. However the queries are not > executed > via from several forms but they are executed: > 1- via one form > 2- a user manually clicks it in the database > container. > > The process is as follows: > 1 - the reports (xls files) are stored in the > database > 2 - the queries that create the report are also > stored > in the database > 3 - the user selects a report > 4 - the necessary queries are executed one by one > > However, several times a week a manager requests a > part of the report that is slightly different from > the original. A user then > must have the change to quickly adjust the query and > run it manually. > > HTH > > Sander > > > --- Bobby Heid wrote: > > If you are not wanting to encode a particular form > > field because the query > > is called from several forms, might I suggest that > > you create a new hidden > > form that contains fields for all of the fields > that > > are used as parameters. > > Then the queries can access these fields. > > > > You would need to set the fields on the form > before > > the queries were > > executed. > > > > Bobby > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On > > Behalf Of Sad Der > > Sent: Tuesday, March 08, 2005 3:15 AM > > To: Acces User Group > > Subject: [AccessD] Automating parameterized action > queries..... > > > > > > Hi group, > > > > my story of the queries continues. I need to run a > > set > > of action queries. This works fine. > > > > Several queries have parameters. So that means the > > user has to watch the screen for a parameter to > > pop-up. Is it possible to add some parameter > fields > > in > > the form to fill the required parameters...WITHOUT > > changing the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > TIA > > > > Sander > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bheid at appdevgrp.com Tue Mar 8 09:06:18 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 10:06:18 -0500 Subject: [AccessD] Learned something new In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D04F@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE883@ADGSERVER> Steve, Yes, it is a separate database that is password protected. The FE links to the work tables at the same time that it links to the BE tables. Due to linking problems in the past, the FE re-links to the BE and work tables at every start up. To handle the linking, I have two arrays of table names to link to. Array 1, holds tables in the BE, Array 2 holds tables in the work db. I actually have another array that holds tables in a configuration db (legacy). Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. From bheid at appdevgrp.com Tue Mar 8 09:07:21 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 8 Mar 2005 10:07:21 -0500 Subject: [AccessD] Learned something new In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D056@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE884@ADGSERVER> Interesting idea John. I may look into doing something like that in the future. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, March 08, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com From scapistrant at symphonyinfo.com Tue Mar 8 09:15:36 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Tue, 8 Mar 2005 09:15:36 -0600 Subject: [AccessD] Learned something new Message-ID: <855499653F55AD4190B242717DF132BC04EE38@dewey.Symphony.local> John, I like the elegance of that solution, since our "compact on close" routine takes time and really fouls up users who exit and try immediately to reenter. However, our FE files usually carry a number of user-defined settings (preferences, defaults, etc), and these get wiped out with upgrades, so your system of daily refreshes would be a problem. But now I'm wondering if we could store the user-defined settings outside of the FE...perhaps in a text file, or a little companion mdb. Have you tried this? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, March 08, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 09:24:15 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 8 Mar 2005 10:24:15 -0500 Subject: [AccessD] Learned something new In-Reply-To: <855499653F55AD4190B242717DF132BC04EE38@dewey.Symphony.local> Message-ID: <001a01c523f2$e6f682e0$697aa8c0@ColbyM6805> LOL, that is what the registry is for. Also known as "little companion db". 8-) And yes, you should use the registry to store user specific settings. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 10:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new John, I like the elegance of that solution, since our "compact on close" routine takes time and really fouls up users who exit and try immediately to reenter. However, our FE files usually carry a number of user-defined settings (preferences, defaults, etc), and these get wiped out with upgrades, so your system of daily refreshes would be a problem. But now I'm wondering if we could store the user-defined settings outside of the FE...perhaps in a text file, or a little companion mdb. Have you tried this? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, March 08, 2005 9:00 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new Steve, that is certainly possible to do. If you set up your systems such that the FE is downloaded to the workstation daily so that users get the latest version whenever fixes are applied, then you no longer need to worry about bloating since the FE isn't around long enough to bloat. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Capistrant Sent: Tuesday, March 08, 2005 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new What is your work database? A separate dedicated to handling temp tables? Does your FE have permanent links to permanent tables in that work db? Does your FE's linking tool manage two sets of links -- to the BE and the WorkDb? Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Tuesday, March 08, 2005 6:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Learned something new I always use a "work" database, that is separate from the FE, but in the same location. I then compact it upon exiting the application. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 6:46 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Learned something new I use temp tables for similar purposes, but they bloat the database a bit, so I code it in to compact the puppy. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Tue Mar 8 09:26:12 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 8 Mar 2005 10:26:12 -0500 Subject: [AccessD] Error when using DoCmd.SendObject Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A16F@mercury.tnco-inc.com> Access 2000 no SP I have a database that uses DoCmd.SendObject to send a report in snapshot format. On some computers, the user gets an error message when it get to this line of code: DoCmd.SendObject acSendReport, "PRINT OUT CCR", acFormatSNP, "Ted Haley;Bob Glidden;Ken Campanale;Karin Gilman;Joe Talkowski;Dave McKenna", "Rose Anderson", , "CCR# " & Me.DocumentNum, "Open attached file for CCR info.", True The error message is: There isn't enough memory to perform this operation. Close unneeded programs and try the operation again. I have tried rebooting the computer and then tried again with no luck. I checked out MS and had no luck. JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From bchacc at san.rr.com Tue Mar 8 10:10:27 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 08:10:27 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050308143342.68438.qmail@web31605.mail.mud.yahoo.com> Message-ID: <007801c523f9$582166a0$6b01a8c0@HAL9002> Sander: I always take parameters from a form. Don't like to let the users muck around in the database container. So get the parameter into the query I make a Public Function GetParameterX GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter End Function Then in the query under criteria I put GetParameterX() and it fetches the contents of the text box from the form when it runs. Probably not the most elegant solution but it works and its easy. But you have to run the query from the form. The users I write for prefer it. Almost none of them would know how to run a query from the database container and most don't even know what a query is. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 08, 2005 6:33 AM Subject: RE: [AccessD] Automating parameterized action queries..... >I also thought of that but I hoped their was a way to > fill the parameters per query with form input. > > That way i could make a form for the users in wich > they can enter: > - a new report > - queries per report > - parameters per query > - parametertype per parameter (eg date, number, etc) > > With this info I could, based on a report selection > build a form dynamicly. > > Well I have to look at this some more and let the > customer decide. > > Regards, > > Sander > > --- Bobby Heid wrote: >> Why not have two sets of queries, one set that looks >> to a form (this one is >> called programmatically), and one set that queries >> the user for the >> parameters? >> >> Bobby >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On >> Behalf Of Sad Der >> Sent: Tuesday, March 08, 2005 8:10 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> You are correct. However the queries are not >> executed >> via from several forms but they are executed: >> 1- via one form >> 2- a user manually clicks it in the database >> container. >> >> The process is as follows: >> 1 - the reports (xls files) are stored in the >> database >> 2 - the queries that create the report are also >> stored >> in the database >> 3 - the user selects a report >> 4 - the necessary queries are executed one by one >> >> However, several times a week a manager requests a >> part of the report that is slightly different from >> the original. A user then >> must have the change to quickly adjust the query and >> run it manually. >> >> HTH >> >> Sander >> >> >> --- Bobby Heid wrote: >> > If you are not wanting to encode a particular form >> > field because the query >> > is called from several forms, might I suggest that >> > you create a new hidden >> > form that contains fields for all of the fields >> that >> > are used as parameters. >> > Then the queries can access these fields. >> > >> > You would need to set the fields on the form >> before >> > the queries were >> > executed. >> > >> > Bobby >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On >> > Behalf Of Sad Der >> > Sent: Tuesday, March 08, 2005 3:15 AM >> > To: Acces User Group >> > Subject: [AccessD] Automating parameterized action >> queries..... >> > >> > >> > Hi group, >> > >> > my story of the queries continues. I need to run a >> > set >> > of action queries. This works fine. >> > >> > Several queries have parameters. So that means the >> > user has to watch the screen for a parameter to >> > pop-up. Is it possible to add some parameter >> fields >> > in >> > the form to fill the required parameters...WITHOUT >> > changing the query it self? >> > >> > So I have a parameters in my query: >> > [Enter version:] >> > [Enter startdate:] >> > >> > And I do not want to change these to: >> forms!frmReport!txtVersion >> > forms!frmReport!txtStartDate >> > >> > TIA >> > >> > Sander >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Mar 8 10:17:37 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 8 Mar 2005 11:17:37 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <007801c523f9$582166a0$6b01a8c0@HAL9002> Message-ID: <20050308161733.KMRX10694.imf25aec.mail.bellsouth.net@SUSANONE> Rocky -- so you've got a fixed query that's using a function to retrieve the selected item in a list or combo box? Susan H. Sander: I always take parameters from a form. Don't like to let the users muck around in the database container. So get the parameter into the query I make a Public Function GetParameterX GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter End Function Then in the query under criteria I put GetParameterX() and it fetches the contents of the text box from the form when it runs. Probably not the most elegant solution but it works and its easy. But you have to run the query from the form. The users I write for prefer it. Almost none of them would know how to run a query from the database container and most don't even know what a query is. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 08, 2005 6:33 AM Subject: RE: [AccessD] Automating parameterized action queries..... >I also thought of that but I hoped their was a way to > fill the parameters per query with form input. > > That way i could make a form for the users in wich > they can enter: > - a new report > - queries per report > - parameters per query > - parametertype per parameter (eg date, number, etc) > > With this info I could, based on a report selection > build a form dynamicly. > > Well I have to look at this some more and let the > customer decide. > > Regards, > > Sander > > --- Bobby Heid wrote: >> Why not have two sets of queries, one set that looks >> to a form (this one is >> called programmatically), and one set that queries >> the user for the >> parameters? >> >> Bobby >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On >> Behalf Of Sad Der >> Sent: Tuesday, March 08, 2005 8:10 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> You are correct. However the queries are not >> executed >> via from several forms but they are executed: >> 1- via one form >> 2- a user manually clicks it in the database >> container. >> >> The process is as follows: >> 1 - the reports (xls files) are stored in the >> database >> 2 - the queries that create the report are also >> stored >> in the database >> 3 - the user selects a report >> 4 - the necessary queries are executed one by one >> >> However, several times a week a manager requests a >> part of the report that is slightly different from >> the original. A user then >> must have the change to quickly adjust the query and >> run it manually. >> >> HTH >> >> Sander >> >> >> --- Bobby Heid wrote: >> > If you are not wanting to encode a particular form >> > field because the query >> > is called from several forms, might I suggest that >> > you create a new hidden >> > form that contains fields for all of the fields >> that >> > are used as parameters. >> > Then the queries can access these fields. >> > >> > You would need to set the fields on the form >> before >> > the queries were >> > executed. >> > >> > Bobby >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On >> > Behalf Of Sad Der >> > Sent: Tuesday, March 08, 2005 3:15 AM >> > To: Acces User Group >> > Subject: [AccessD] Automating parameterized action >> queries..... >> > >> > >> > Hi group, >> > >> > my story of the queries continues. I need to run a >> > set >> > of action queries. This works fine. >> > >> > Several queries have parameters. So that means the >> > user has to watch the screen for a parameter to >> > pop-up. Is it possible to add some parameter >> fields >> > in >> > the form to fill the required parameters...WITHOUT >> > changing the query it self? >> > >> > So I have a parameters in my query: >> > [Enter version:] >> > [Enter startdate:] >> > >> > And I do not want to change these to: >> forms!frmReport!txtVersion >> > forms!frmReport!txtStartDate >> > >> > TIA >> > >> > Sander >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 10:26:29 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 8 Mar 2005 11:26:29 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <007801c523f9$582166a0$6b01a8c0@HAL9002> Message-ID: <001b01c523fb$98903c00$697aa8c0@ColbyM6805> Rocky, See my posts re "Filters". The downside to your method is you have to have a function GetParameterX for each form / control. Which means building a new function for every one of these. Another downside is that the form has to be open or the query won't run. BTW I call this "pull" technology as it "pulls" the information from the form. For testing purposes it is sometimes convenient to not need the form open, just feed values in from the debug window. Furthermore you can use OnCurrent to feed PK values into a filter etc without needing a text box to hold the PK value for your method. The alternative is "push" where the form "pushes" the value into a Fltr() as the control changes. Thus in AfterUpdate of a text box you would use: Fltr "MyTxtBoxName", MyTxtBox.Value The query now uses Fltr("MyTxtBoxName") instead of GetParameterX(). You now just add new filter values to the Fltr() as you need them. No writing a new function every time. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Tuesday, March 08, 2005 11:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating parameterized action queries..... Sander: I always take parameters from a form. Don't like to let the users muck around in the database container. So get the parameter into the query I make a Public Function GetParameterX GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter End Function Then in the query under criteria I put GetParameterX() and it fetches the contents of the text box from the form when it runs. Probably not the most elegant solution but it works and its easy. But you have to run the query from the form. The users I write for prefer it. Almost none of them would know how to run a query from the database container and most don't even know what a query is. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 08, 2005 6:33 AM Subject: RE: [AccessD] Automating parameterized action queries..... >I also thought of that but I hoped their was a way to > fill the parameters per query with form input. > > That way i could make a form for the users in wich > they can enter: > - a new report > - queries per report > - parameters per query > - parametertype per parameter (eg date, number, etc) > > With this info I could, based on a report selection > build a form dynamicly. > > Well I have to look at this some more and let the > customer decide. > > Regards, > > Sander > > --- Bobby Heid wrote: >> Why not have two sets of queries, one set that looks >> to a form (this one is >> called programmatically), and one set that queries >> the user for the >> parameters? >> >> Bobby >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On >> Behalf Of Sad Der >> Sent: Tuesday, March 08, 2005 8:10 AM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> You are correct. However the queries are not >> executed >> via from several forms but they are executed: >> 1- via one form >> 2- a user manually clicks it in the database >> container. >> >> The process is as follows: >> 1 - the reports (xls files) are stored in the >> database >> 2 - the queries that create the report are also >> stored >> in the database >> 3 - the user selects a report >> 4 - the necessary queries are executed one by one >> >> However, several times a week a manager requests a >> part of the report that is slightly different from >> the original. A user then >> must have the change to quickly adjust the query and >> run it manually. >> >> HTH >> >> Sander >> >> >> --- Bobby Heid wrote: >> > If you are not wanting to encode a particular form >> > field because the query >> > is called from several forms, might I suggest that >> > you create a new hidden >> > form that contains fields for all of the fields >> that >> > are used as parameters. >> > Then the queries can access these fields. >> > >> > You would need to set the fields on the form >> before >> > the queries were >> > executed. >> > >> > Bobby >> > >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On >> > Behalf Of Sad Der >> > Sent: Tuesday, March 08, 2005 3:15 AM >> > To: Acces User Group >> > Subject: [AccessD] Automating parameterized action >> queries..... >> > >> > >> > Hi group, >> > >> > my story of the queries continues. I need to run a >> > set >> > of action queries. This works fine. >> > >> > Several queries have parameters. So that means the >> > user has to watch the screen for a parameter to >> > pop-up. Is it possible to add some parameter >> fields >> > in >> > the form to fill the required parameters...WITHOUT changing the >> > query it self? >> > >> > So I have a parameters in my query: >> > [Enter version:] >> > [Enter startdate:] >> > >> > And I do not want to change these to: >> forms!frmReport!txtVersion >> > forms!frmReport!txtStartDate >> > >> > TIA >> > >> > Sander >> > >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > >> http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam >> protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 8 10:37:08 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 08:37:08 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050308161733.KMRX10694.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <00b201c523fd$12701300$6b01a8c0@HAL9002> Yeah. Or a value in a text box. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 8:17 AM Subject: RE: [AccessD] Automating parameterized action queries..... > Rocky -- so you've got a fixed query that's using a function to retrieve > the > selected item in a list or combo box? > > Susan H. > > > Sander: > > I always take parameters from a form. Don't like to let the users muck > around in the database container. So get the parameter into the query I > make a > > Public Function GetParameterX > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > End Function > > Then in the query under criteria I put GetParameterX() and it fetches the > contents of the text box from the form when it runs. > > Probably not the most elegant solution but it works and its easy. But you > have to run the query from the form. > > The users I write for prefer it. Almost none of them would know how to > run > a query from the database container and most don't even know what a query > is. > > HTH > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, March 08, 2005 6:33 AM > Subject: RE: [AccessD] Automating parameterized action queries..... > > >>I also thought of that but I hoped their was a way to >> fill the parameters per query with form input. >> >> That way i could make a form for the users in wich >> they can enter: >> - a new report >> - queries per report >> - parameters per query >> - parametertype per parameter (eg date, number, etc) >> >> With this info I could, based on a report selection >> build a form dynamicly. >> >> Well I have to look at this some more and let the >> customer decide. >> >> Regards, >> >> Sander >> >> --- Bobby Heid wrote: >>> Why not have two sets of queries, one set that looks >>> to a form (this one is >>> called programmatically), and one set that queries >>> the user for the >>> parameters? >>> >>> Bobby >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On >>> Behalf Of Sad Der >>> Sent: Tuesday, March 08, 2005 8:10 AM >>> To: Access Developers discussion and problem solving >>> Subject: RE: [AccessD] Automating parameterized >>> action queries..... >>> >>> >>> You are correct. However the queries are not >>> executed >>> via from several forms but they are executed: >>> 1- via one form >>> 2- a user manually clicks it in the database >>> container. >>> >>> The process is as follows: >>> 1 - the reports (xls files) are stored in the >>> database >>> 2 - the queries that create the report are also >>> stored >>> in the database >>> 3 - the user selects a report >>> 4 - the necessary queries are executed one by one >>> >>> However, several times a week a manager requests a >>> part of the report that is slightly different from >>> the original. A user then >>> must have the change to quickly adjust the query and >>> run it manually. >>> >>> HTH >>> >>> Sander >>> >>> >>> --- Bobby Heid wrote: >>> > If you are not wanting to encode a particular form >>> > field because the query >>> > is called from several forms, might I suggest that >>> > you create a new hidden >>> > form that contains fields for all of the fields >>> that >>> > are used as parameters. >>> > Then the queries can access these fields. >>> > >>> > You would need to set the fields on the form >>> before >>> > the queries were >>> > executed. >>> > >>> > Bobby >>> > >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [mailto:accessd-bounces at databaseadvisors.com] On >>> > Behalf Of Sad Der >>> > Sent: Tuesday, March 08, 2005 3:15 AM >>> > To: Acces User Group >>> > Subject: [AccessD] Automating parameterized action >>> queries..... >>> > >>> > >>> > Hi group, >>> > >>> > my story of the queries continues. I need to run a >>> > set >>> > of action queries. This works fine. >>> > >>> > Several queries have parameters. So that means the >>> > user has to watch the screen for a parameter to >>> > pop-up. Is it possible to add some parameter >>> fields >>> > in >>> > the form to fill the required parameters...WITHOUT >>> > changing the query it self? >>> > >>> > So I have a parameters in my query: >>> > [Enter version:] >>> > [Enter startdate:] >>> > >>> > And I do not want to change these to: >>> forms!frmReport!txtVersion >>> > forms!frmReport!txtStartDate >>> > >>> > TIA >>> > >>> > Sander >>> > >>> > -- >>> > AccessD mailing list >>> > AccessD at databaseadvisors.com >>> > >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> > Website: http://www.databaseadvisors.com >>> > >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam >>> protection around >>> http://mail.yahoo.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Tue Mar 8 10:40:45 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 08:40:45 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <001b01c523fb$98903c00$697aa8c0@ColbyM6805> Message-ID: <00b701c523fd$93d86e60$6b01a8c0@HAL9002> John: All true. But where I have a lot of parameter values - like the data selection criteria in the manufacturing system, I actually build the SQL statement or report filter in code and push it into the record source or filter of the report instead of using a stored query. Another brute force solution. :) Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 8:26 AM Subject: RE: [AccessD] Automating parameterized action queries..... > Rocky, > > See my posts re "Filters". > > The downside to your method is you have to have a function GetParameterX > for > each form / control. Which means building a new function for every one of > these. Another downside is that the form has to be open or the query > won't > run. BTW I call this "pull" technology as it "pulls" the information from > the form. > > For testing purposes it is sometimes convenient to not need the form open, > just feed values in from the debug window. Furthermore you can use > OnCurrent to feed PK values into a filter etc without needing a text box > to > hold the PK value for your method. > > The alternative is "push" where the form "pushes" the value into a Fltr() > as > the control changes. Thus in AfterUpdate of a text box you would use: > > Fltr "MyTxtBoxName", MyTxtBox.Value > > The query now uses Fltr("MyTxtBoxName") instead of GetParameterX(). You > now > just add new filter values to the Fltr() as you need them. No writing a > new > function every time. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Tuesday, March 08, 2005 11:10 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating parameterized action queries..... > > > Sander: > > I always take parameters from a form. Don't like to let the users muck > around in the database container. So get the parameter into the query I > make a > > Public Function GetParameterX > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > End Function > > Then in the query under criteria I put GetParameterX() and it fetches the > contents of the text box from the form when it runs. > > Probably not the most elegant solution but it works and its easy. But you > have to run the query from the form. > > The users I write for prefer it. Almost none of them would know how to > run > a query from the database container and most don't even know what a query > is. > > HTH > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, March 08, 2005 6:33 AM > Subject: RE: [AccessD] Automating parameterized action queries..... > > >>I also thought of that but I hoped their was a way to >> fill the parameters per query with form input. >> >> That way i could make a form for the users in wich >> they can enter: >> - a new report >> - queries per report >> - parameters per query >> - parametertype per parameter (eg date, number, etc) >> >> With this info I could, based on a report selection >> build a form dynamicly. >> >> Well I have to look at this some more and let the >> customer decide. >> >> Regards, >> >> Sander >> >> --- Bobby Heid wrote: >>> Why not have two sets of queries, one set that looks >>> to a form (this one is >>> called programmatically), and one set that queries >>> the user for the >>> parameters? >>> >>> Bobby >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On >>> Behalf Of Sad Der >>> Sent: Tuesday, March 08, 2005 8:10 AM >>> To: Access Developers discussion and problem solving >>> Subject: RE: [AccessD] Automating parameterized >>> action queries..... >>> >>> >>> You are correct. However the queries are not >>> executed >>> via from several forms but they are executed: >>> 1- via one form >>> 2- a user manually clicks it in the database >>> container. >>> >>> The process is as follows: >>> 1 - the reports (xls files) are stored in the >>> database >>> 2 - the queries that create the report are also >>> stored >>> in the database >>> 3 - the user selects a report >>> 4 - the necessary queries are executed one by one >>> >>> However, several times a week a manager requests a >>> part of the report that is slightly different from >>> the original. A user then >>> must have the change to quickly adjust the query and >>> run it manually. >>> >>> HTH >>> >>> Sander >>> >>> >>> --- Bobby Heid wrote: >>> > If you are not wanting to encode a particular form >>> > field because the query >>> > is called from several forms, might I suggest that >>> > you create a new hidden >>> > form that contains fields for all of the fields >>> that >>> > are used as parameters. >>> > Then the queries can access these fields. >>> > >>> > You would need to set the fields on the form >>> before >>> > the queries were >>> > executed. >>> > >>> > Bobby >>> > >>> > -----Original Message----- >>> > From: accessd-bounces at databaseadvisors.com >>> > [mailto:accessd-bounces at databaseadvisors.com] On >>> > Behalf Of Sad Der >>> > Sent: Tuesday, March 08, 2005 3:15 AM >>> > To: Acces User Group >>> > Subject: [AccessD] Automating parameterized action >>> queries..... >>> > >>> > >>> > Hi group, >>> > >>> > my story of the queries continues. I need to run a >>> > set >>> > of action queries. This works fine. >>> > >>> > Several queries have parameters. So that means the >>> > user has to watch the screen for a parameter to >>> > pop-up. Is it possible to add some parameter >>> fields >>> > in >>> > the form to fill the required parameters...WITHOUT changing the >>> > query it self? >>> > >>> > So I have a parameters in my query: >>> > [Enter version:] >>> > [Enter startdate:] >>> > >>> > And I do not want to change these to: >>> forms!frmReport!txtVersion >>> > forms!frmReport!txtStartDate >>> > >>> > TIA >>> > >>> > Sander >>> > >>> > -- >>> > AccessD mailing list >>> > AccessD at databaseadvisors.com >>> > >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> > Website: http://www.databaseadvisors.com >>> > >>> >>> __________________________________________________ >>> Do You Yahoo!? >>> Tired of spam? Yahoo! Mail has the best spam >>> protection around >>> http://mail.yahoo.com >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Tue Mar 8 11:03:32 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Tue, 8 Mar 2005 17:03:32 -0000 Subject: [AccessD] report grouping on the fly? Message-ID: <61F915314798D311A2F800A0C9C831880722564A@dibble.observatory.donnslaw.co.uk> Dear all My colleague Tom and I are working on a reporting tool. The principles are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing amount of fiddle to get We are finding that the demand for bespoke report 'templates' (i.e. pre-created reports that they can then set criteria against) is outstripping our ability to provide them, because users constantly want different sorting and grouping. Has anyone ever built anything that created group headers & footers on the fly? I am trying to conceptualize it but it seems like a big task. Thinking aloud here - I can see that we need to limit the options presented to the user. They will have little understanding of the data or the principles of data interrogation. So we will need to determine which grouping functions to make available and which report fields each function can apply to. We will then need to create the appropriate report sections and populate them with controls, nicely positioned, suitably formatted and containing the correct data binding / grouping function. I think positioning them will turn out to be the hardest part; it's such a visual task when you put total controls on manually. Any thoughts or advice would be welcome Cheers Roz -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From donald.a.Mcgillivray at mail.sprint.com Tue Mar 8 11:27:18 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Tue, 8 Mar 2005 11:27:18 -0600 Subject: [AccessD] report grouping on the fly? Message-ID: Hi, Roz (and Tom), I used the following approach to create a report grouped according to user preferences. Not near as complex as what you're proposing, but this might be helpful as a starting point for where you're going. Here's what I did: 1. Built a query using generic aliases for the variable grouping/sorting fields (EmployeeName as GroupSortVal1, EmployeeNumber as GroupSortVal2, etc.) 2. Designed a report based on the query, using the generic field names as the group/sort values. 3. Designed a report spec form with combo boxe(s) offering a selection of grouping options. 4. User selects the desired group field(s), and I use the choice(s) to build the SQL for a new query, assigning the chosen grouping fields to the appropriate aliases. 5. Update the query's SQL property with the new SQL string. 6. Open the report. Since the grouping/sorting is being done in the report on generic aliases, the report doesn't care which fields/values from the query the aliases represent. Could get kinda ugly, but I'd guess you could pre-position other controls bound to aliased fields, and assign fields to the aliases as needed for other elements of the report, too. HTH Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke Sent: Tuesday, March 08, 2005 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] report grouping on the fly? Dear all My colleague Tom and I are working on a reporting tool. The principles are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing amount of fiddle to get We are finding that the demand for bespoke report 'templates' (i.e. pre-created reports that they can then set criteria against) is outstripping our ability to provide them, because users constantly want different sorting and grouping. Has anyone ever built anything that created group headers & footers on the fly? I am trying to conceptualize it but it seems like a big task. Thinking aloud here - I can see that we need to limit the options presented to the user. They will have little understanding of the data or the principles of data interrogation. So we will need to determine which grouping functions to make available and which report fields each function can apply to. We will then need to create the appropriate report sections and populate them with controls, nicely positioned, suitably formatted and containing the correct data binding / grouping function. I think positioning them will turn out to be the hardest part; it's such a visual task when you put total controls on manually. Any thoughts or advice would be welcome Cheers Roz From Gustav at cactus.dk Tue Mar 8 11:34:13 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 08 Mar 2005 18:34:13 +0100 Subject: [AccessD] report grouping on the fly? Message-ID: Hi Roz Perhaps you can leave all this to DBxtra: www.dbxtra.com /gustav >>> roz.clarke at donnslaw.co.uk 08-03-2005 18:03:32 >>> Dear all My colleague Tom and I are working on a reporting tool. The principles are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing amount of fiddle to get We are finding that the demand for bespoke report 'templates' (i.e. pre-created reports that they can then set criteria against) is outstripping our ability to provide them, because users constantly want different sorting and grouping. Has anyone ever built anything that created group headers & footers on the fly? I am trying to conceptualize it but it seems like a big task. Thinking aloud here - I can see that we need to limit the options presented to the user. They will have little understanding of the data or the principles of data interrogation. So we will need to determine which grouping functions to make available and which report fields each function can apply to. We will then need to create the appropriate report sections and populate them with controls, nicely positioned, suitably formatted and containing the correct data binding / grouping function. I think positioning them will turn out to be the hardest part; it's such a visual task when you put total controls on manually. Any thoughts or advice would be welcome Cheers Roz From bchacc at san.rr.com Tue Mar 8 11:59:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 09:59:43 -0800 Subject: [AccessD] report grouping on the fly? References: <61F915314798D311A2F800A0C9C831880722564A@dibble.observatory.donnslaw.co.uk> Message-ID: <012101c52409$005b3490$6b01a8c0@HAL9002> Roz: On many of the reports in the manufacturing app I give the users three levels of sorting on fields which they select from a combo box. The report is set up with three groupings defaulted to some low level field like part number. Then, in the Open event of the report I set the grouping field: Me.GroupLevel(0).ControlSource = Forms!frmSupplySideReport!cboSort1.Column(0) Me.GroupLevel(1).ControlSource = Forms!frmSupplySideReport!cboSort2.Column(0) Me.GroupLevel(2).ControlSource = Forms!frmSupplySideReport!cboSort3.Column(0) HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Roz Clarke" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 9:03 AM Subject: [AccessD] report grouping on the fly? > Dear all > > My colleague Tom and I are working on a reporting tool. The principles are > borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing > amount of fiddle to get > > We are finding that the demand for bespoke report 'templates' (i.e. > pre-created reports that they can then set criteria against) is > outstripping > our ability to provide them, because users constantly want different > sorting > and grouping. > > Has anyone ever built anything that created group headers & footers on the > fly? I am trying to conceptualize it but it seems like a big task. > > Thinking aloud here - I can see that we need to limit the options > presented > to the user. They will have little understanding of the data or the > principles of data interrogation. So we will need to determine which > grouping functions to make available and which report fields each function > can apply to. > > We will then need to create the appropriate report sections and populate > them with controls, nicely positioned, suitably formatted and containing > the > correct data binding / grouping function. > > I think positioning them will turn out to be the hardest part; it's such a > visual task when you put total controls on manually. > > Any thoughts or advice would be welcome > > Cheers > > Roz > -------------------------------------------------------------------------------- > > The contents of this message and any attachments are the property of Donns > Solicitors > and are intended for the confidential use of the named recipient only. > They may be legally > privileged and should not be communicated to, or relied upon, by any other > party without > our written consent. If you are not the addressee, please notify us > immediately so that we > can make arrangements for its return. You should not show this e-mail to > any person or > take copies as you may be committing a criminal or civil offence for which > you may be > liable. The statement and opinions expressed in this e-mail message are > those of the > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > to this e-mail will have been checked with virus protection software prior > to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss > which may be caused > by software viruses... > -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Mar 8 12:07:24 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 8 Mar 2005 13:07:24 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <00b201c523fd$12701300$6b01a8c0@HAL9002> Message-ID: <20050308180721.LVBD5764.imf19aec.mail.bellsouth.net@SUSANONE> So, are you using the query as the basis for another form or report? I've seen that -- done it myself -- to create dynamic (kind of) reports where the report design doesn't necessarily change, but the data does. Susan H. Yeah. Or a value in a text box. From martyconnelly at shaw.ca Tue Mar 8 12:25:18 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 08 Mar 2005 10:25:18 -0800 Subject: [AccessD] report grouping on the fly? References: <61F915314798D311A2F800A0C9C831880722564A@dibble.observatory.donnslaw.co.uk> Message-ID: <422DEE0E.6070702@shaw.ca> Here is another approach to customizable reports; download and docs are at bottom of page from Armen Stein. http://www.jstreettech.com/Downloads.asp Roz Clarke wrote: >Dear all > >My colleague Tom and I are working on a reporting tool. The principles are >borrowed from Steve Nyberg's very lovely RFil. (Wih a quite astonishing >amount of fiddle to get > >We are finding that the demand for bespoke report 'templates' (i.e. >pre-created reports that they can then set criteria against) is outstripping >our ability to provide them, because users constantly want different sorting >and grouping. > >Has anyone ever built anything that created group headers & footers on the >fly? I am trying to conceptualize it but it seems like a big task. > >Thinking aloud here - I can see that we need to limit the options presented >to the user. They will have little understanding of the data or the >principles of data interrogation. So we will need to determine which >grouping functions to make available and which report fields each function >can apply to. > >We will then need to create the appropriate report sections and populate >them with controls, nicely positioned, suitably formatted and containing the >correct data binding / grouping function. > >I think positioning them will turn out to be the hardest part; it's such a >visual task when you put total controls on manually. > >Any thoughts or advice would be welcome > >Cheers > >Roz > > >------------------------------------------------------------------------ > > >The contents of this message and any attachments are the property of Donns Solicitors >and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without >our written consent. If you are not the addressee, please notify us immediately so that we >can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the >writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, >you should carry out your own virus check before opening any attachment. >Donns Solicitors does not accept any liability for any damage or loss which may be caused >by software viruses... > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Tue Mar 8 12:26:56 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 10:26:56 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050308180721.LVBD5764.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <013901c5240c$6903ee80$6b01a8c0@HAL9002> Exactly. Since I make apps for end users who are not guaranteed to be tech savvy, I rarely write a query designed to be run by itself. They're always record sources for forms or reports. So the form where the report is run has to have all of the sort and data select options on the form. Then, in the open event of the report, I create the filter on the fly from their data selections and set the sorting and grouping. I can send you something off-line if you want. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 10:07 AM Subject: RE: [AccessD] Automating parameterized action queries..... > So, are you using the query as the basis for another form or report? I've > seen that -- done it myself -- to create dynamic (kind of) reports where > the > report design doesn't necessarily change, but the data does. > > Susan H. > > Yeah. Or a value in a text box. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KIsmert at TexasSystems.com Tue Mar 8 12:46:32 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 8 Mar 2005 12:46:32 -0600 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <08F823FD83787D4BA0B99CA580AD3C749D2D45@TTNEXCHCL2.hshhp.com> Message-ID: <00a301c5240f$25801eb0$2a3ca8c0@TEXASSYSTEMS.COM> Sander, There is a class-based approach: Define a class, CReportParms, with two variant properties, Version and StartDate: Private mVersion As Variant Private mStartDate As Variant Property Get Version() As Variant Version = mVersion End Property Property Let Version(VersionIn As Variant) mVersion = VersionIn End Property ' (Similar Get/Let for StartDate) Private Sub Class_Initialize() mVersion = Null mStartDate = Null End Sub Declare it as global in one of your modules: Public gRptParms As New CReportParms Provide two global functions to use in your queries in place of your parameters: Public Function ParmVersion() As Variant Parms = gRptParms.Version End Function Public Function ParmStartDate() As Variant Parms = gRptParms.StartDate End Function You can set these properties in your form before you run your report: gRptParms.Version = txtVersion gRptParms.StartDate = txtStartDate If you can calculate reasonable values for Version and StartDate, you can do so in the CReportParms Initialize event. Alternately, you can prompt the user in the class when the queries are run standalone: Property Get Version() As Variant Dim sVersion As String If IsNull(mVersion) Then sVersion = InputBox("Enter Version:") If sVersion > "" Then mVersion = CLng(sVersion) End If End If Version = mVersion End Property You could also have a third property, FormDriven, that, when set to True, doesn't prompt the user. Only your frmReport form will set this property, and clear it upon exit. That way, the user is always prompted when running the queries stand-alone. -Ken > Hi group, > > my story of the queries continues. I need to > run a set of action queries. This works fine. > > Several queries have parameters. So that means > the user has to watch the screen for a > parameter to pop-up. Is it possible to add > some parameter fields in the form to fill > the required parameters...WITHOUT changing > the query it self? > > So I have a parameters in my query: > [Enter version:] > [Enter startdate:] > > And I do not want to change these to: > forms!frmReport!txtVersion > forms!frmReport!txtStartDate From ssharkins at bellsouth.net Tue Mar 8 12:47:33 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 8 Mar 2005 13:47:33 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <013901c5240c$6903ee80$6b01a8c0@HAL9002> Message-ID: <20050308184730.QYAZ2031.imf17aec.mail.bellsouth.net@SUSANONE> I can send you something off-line if you want. ==========No thank you -- I've already written about it. :) Always working, always working... ;) Susan H. From cyx5 at cdc.gov Tue Mar 8 13:18:00 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 14:18:00 -0500 Subject: [AccessD] Windows Key - ASCII Code - OT Message-ID: Anyone know what the ASCII code is to invoke the functionality that is provided by the Windows key (the little flying window) on the keyboard? From cyx5 at cdc.gov Tue Mar 8 13:24:47 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 8 Mar 2005 14:24:47 -0500 Subject: [AccessD] Windows Key - ASCII Code - OT Message-ID: Maybe I should say, how do I program in Access, what is the shortcut, like [page up], etc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, March 08, 2005 2:18 PM To: accessd at databaseadvisors.com Subject: [AccessD] Windows Key - ASCII Code - OT Anyone know what the ASCII code is to invoke the functionality that is provided by the Windows key (the little flying window) on the keyboard? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Tue Mar 8 13:37:35 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 08 Mar 2005 13:37:35 -0600 Subject: [AccessD] Re: Learned something new In-Reply-To: <200503081800.j28I0Ai03265@databaseadvisors.com> Message-ID: <5.1.0.14.2.20050308133646.03d87c80@pop3.highstream.net> Steve, Why not save them in a table in the FE? Robert At 12:00 PM 3/8/2005 -0600, you wrote: >Date: Tue, 8 Mar 2005 09:15:36 -0600 >From: "Steve Capistrant" >Subject: RE: [AccessD] Learned something new >To: "Access Developers discussion and problem solving" > >Message-ID: > <855499653F55AD4190B242717DF132BC04EE38 at dewey.Symphony.local> >Content-Type: text/plain; charset="us-ascii" > >John, I like the elegance of that solution, since our "compact on close" >routine takes time and really fouls up users who exit and try >immediately to reenter. However, our FE files usually carry a number of >user-defined settings (preferences, defaults, etc), and these get wiped >out with upgrades, so your system of daily refreshes would be a problem. >But now I'm wondering if we could store the user-defined settings >outside of the FE...perhaps in a text file, or a little companion mdb. >Have you tried this? > >Steve Capistrant >scapistrant at symphonyinfo.com >Symphony Information Services >7308 Aspen Lane North, Suite 132 >Brooklyn Park, MN 55428 >763-391-7400 >www.symphonyinfo.com From rl_stewart at highstream.net Tue Mar 8 13:43:01 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 08 Mar 2005 13:43:01 -0600 Subject: [AccessD] Re: Automating parameterized action queries..... In-Reply-To: <200503081800.j28I0Ai03265@databaseadvisors.com> Message-ID: <5.1.0.14.2.20050308134018.03c040f8@pop3.highstream.net> Rocky, It is the right solution if you take it a step further. 2 queries MyQuery_0 and MyQuery_1 _0 has the straight SQL without a WHERE clause Open it, get the SQL, build the WHERE clause and append the 2 statements together. Replace the SQL statement in _1 Reports and such are based on _1 Robert At 12:00 PM 3/8/2005 -0600, you wrote: >Date: Tue, 8 Mar 2005 08:40:45 -0800 >From: "Rocky Smolin - Beach Access Software" >Subject: Re: [AccessD] Automating parameterized action queries..... >To: "Access Developers discussion and problem solving" > >Message-ID: <00b701c523fd$93d86e60$6b01a8c0 at HAL9002> >Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > >John: > >All true. But where I have a lot of parameter values - like the data >selection criteria in the manufacturing system, I actually build the SQL >statement or report filter in code and push it into the record source or >filter of the report instead of using a stored query. Another brute force >solution. :) > >Rocky From martyconnelly at shaw.ca Tue Mar 8 13:53:33 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 08 Mar 2005 11:53:33 -0800 Subject: [AccessD] Windows Key - ASCII Code - OT References: Message-ID: <422E02BD.3000104@shaw.ca> Here is how I do it The constant is VK_LWIN so it is hex 5B some keyboards have two windows buttons Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Sub OpenWindowsHelp() ' Open the Windows Help Windows - F1 ' ' You can use the same technique to programmatically "press" any other ' key, including Shift, Ctrl, Alt and keys combinations that can't be ' simulated through SendKeys 'vbKey constants partially definined in Access Help ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the F1 key keybd_event vbKeyF1, 0, 0, 0 keybd_event vbKeyF1, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Sub CloseAllWindows() ' Minimize all open windows Windows-M 'Const acaltMask ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the M key keybd_event vbKeyM, 0, 0, 0 keybd_event vbKeyM, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Nicholson, Karen wrote: >Maybe I should say, how do I program in Access, what is the shortcut, >like [page up], etc. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Tuesday, March 08, 2005 2:18 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Windows Key - ASCII Code - OT > > >Anyone know what the ASCII code is to invoke the functionality that is >provided by the Windows key (the little flying window) on the keyboard? > > -- Marty Connelly Victoria, B.C. Canada From tdd-inc at shaw.ca Tue Mar 8 14:25:47 2005 From: tdd-inc at shaw.ca (Technical Designs) Date: Tue, 08 Mar 2005 12:25:47 -0800 Subject: [AccessD] what is the total number of e-mails which can be sent at once In-Reply-To: <200503081800.j28I0Ai03229@databaseadvisors.com> Message-ID: <003501c5241d$04158d60$6701a8c0@PortaPower> Hi I am using sendobject to send emails out of Access It goes through and creates a BCC list of email addresses to send to from a table... does anyone know what the maximum number of addresses Outlook will send to a one time as I thought I read somewhere that MicroSoft put in a limit to stop spamming... I would like to know the 'magic number' thanks Phil From scapistrant at symphonyinfo.com Tue Mar 8 14:26:05 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Tue, 8 Mar 2005 14:26:05 -0600 Subject: [AccessD] Re: Learned something new Message-ID: <855499653F55AD4190B242717DF132BC04EE62@dewey.Symphony.local> Robert, that's what we currently do. Works great. Until it comes time to provide a program update, which overwrites the FE file. It would also get overwritten each day if you implemented a daily FE replacement like John Colby does. Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Tuesday, March 08, 2005 2:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Learned something new Steve, Why not save them in a table in the FE? Robert At 12:00 PM 3/8/2005 -0600, you wrote: >Date: Tue, 8 Mar 2005 09:15:36 -0600 >From: "Steve Capistrant" >Subject: RE: [AccessD] Learned something new >To: "Access Developers discussion and problem solving" > >Message-ID: > <855499653F55AD4190B242717DF132BC04EE38 at dewey.Symphony.local> >Content-Type: text/plain; charset="us-ascii" > >John, I like the elegance of that solution, since our "compact on close" >routine takes time and really fouls up users who exit and try >immediately to reenter. However, our FE files usually carry a number of >user-defined settings (preferences, defaults, etc), and these get wiped >out with upgrades, so your system of daily refreshes would be a problem. >But now I'm wondering if we could store the user-defined settings >outside of the FE...perhaps in a text file, or a little companion mdb. >Have you tried this? > >Steve Capistrant >scapistrant at symphonyinfo.com >Symphony Information Services >7308 Aspen Lane North, Suite 132 >Brooklyn Park, MN 55428 >763-391-7400 >www.symphonyinfo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 8 15:24:46 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 8 Mar 2005 22:24:46 +0100 Subject: [AccessD] what is the total number of e-mails which can be sent atonce Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B586F@stekelbes.ithelps.local> I'm not aware of any limitation in Outlook but I supose there is a theoretical one. But I'm aware of most ISP have a limitation on the relay (SMTP) server. This depends on the ISP in question. You should asked the question to them. Some allow no more than 100, some 999. I supose this can be avoided when u use DNS/SMTP instead of a relay server. This would require your own SMTP server. But the disadvantage is that each email (per domain) goes out seperatly over your connection. So the time between first and last mail will be greater and you get more bandwith utilization over a long period. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Technical Designs Sent: Tuesday, March 08, 2005 9:26 PM To: accessd at databaseadvisors.com Subject: [AccessD] what is the total number of e-mails which can be sent atonce Hi I am using sendobject to send emails out of Access It goes through and creates a BCC list of email addresses to send to from a table... does anyone know what the maximum number of addresses Outlook will send to a one time as I thought I read somewhere that MicroSoft put in a limit to stop spamming... I would like to know the 'magic number' thanks Phil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Tue Mar 8 15:25:50 2005 From: dmcafee at pacbell.net (David Mcafee) Date: Tue, 8 Mar 2005 13:25:50 -0800 (PST) Subject: [AccessD] Windows Key - ASCII Code - OT In-Reply-To: Message-ID: <20050308212550.14208.qmail@web80808.mail.yahoo.com> The ASCII code of the Windows Key is 57. THe Keycode for the left "Start" button is 91 and the keycode for the right button is 92. But I believe you are asking how to pop up the start menu? I believe Marty may have answered this question. David --- "Nicholson, Karen" wrote: > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Nicholson, > Karen > Sent: Tuesday, March 08, 2005 2:18 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Windows Key - ASCII Code - OT > > > Anyone know what the ASCII code is to invoke the > functionality that is > provided by the Windows key (the little flying > window) on the keyboard? > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Tue Mar 8 15:34:31 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 8 Mar 2005 22:34:31 +0100 Subject: [AccessD] Error when using DoCmd.SendObject Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5870@stekelbes.ithelps.local> I believe he give this when a person is not recognised or more than 1 posible resolved recipients are available. Instead of using names use real e-mail addresses. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Tuesday, March 08, 2005 4:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Error when using DoCmd.SendObject Access 2000 no SP I have a database that uses DoCmd.SendObject to send a report in snapshot format. On some computers, the user gets an error message when it get to this line of code: DoCmd.SendObject acSendReport, "PRINT OUT CCR", acFormatSNP, "Ted Haley;Bob Glidden;Ken Campanale;Karin Gilman;Joe Talkowski;Dave McKenna", "Rose Anderson", , "CCR# " & Me.DocumentNum, "Open attached file for CCR info.", True The error message is: There isn't enough memory to perform this operation. Close unneeded programs and try the operation again. I have tried rebooting the computer and then tried again with no luck. I checked out MS and had no luck. JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 8 20:27:39 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 8 Mar 2005 18:27:39 -0800 Subject: [AccessD] Form event when record changes Message-ID: <200503090227.j292RMi04108@databaseadvisors.com> I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g From chris at denverdb.com Tue Mar 8 20:39:48 2005 From: chris at denverdb.com (Chris Mackin) Date: Tue, 8 Mar 2005 19:39:48 -0700 Subject: [AccessD] Form event when record changes In-Reply-To: <200503090227.j292RMi04108@databaseadvisors.com> Message-ID: See the Current event. -Chris Mackin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Tuesday, March 08, 2005 7:28 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Form event when record changes I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Mar 8 21:03:40 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 9 Mar 2005 14:03:40 +1100 Subject: [AccessD] Form event when record changes In-Reply-To: <200503090227.j292RMi04108@databaseadvisors.com> Message-ID: <200503090303.j2933slE023055@cooper.uws.edu.au> Hi Joe Can't you use the On_Current event Eg Private Sub Form_Current() If me.newrecord = true then Msgbox "It's a brand new 'fresh', untouched record" Else msgbox "I have just loaded another record: " & me.YourPK End if End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 9 March 2005 1:28 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Form event when record changes I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 8 21:06:52 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 8 Mar 2005 19:06:52 -0800 Subject: [AccessD] Form event when record changes In-Reply-To: <200503090303.j2933slE023055@cooper.uws.edu.au> Message-ID: <200503090306.j2936Yi13994@databaseadvisors.com> Thanks Darrin and Dick. You Too Duane Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, March 08, 2005 7:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form event when record changes Hi Joe Can't you use the On_Current event Eg Private Sub Form_Current() If me.newrecord = true then Msgbox "It's a brand new 'fresh', untouched record" Else msgbox "I have just loaded another record: " & me.YourPK End if End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, 9 March 2005 1:28 PM To: 'Access Developers discussion and problem solving'; ACCESS-L at PEACH.EASE.LSOFT.COM Subject: [AccessD] Form event when record changes I have a form that lists products. I need an event that happens on the form as the user scrolls through the records on the same form. The view is single form. I need to do something like. When new record is loaded into form If me.somecondition is true then Me.sfrmSamplesize. visible = true End if Thanks Joe Hecht jmhla at earthlink.net 28g -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 8 21:57:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 08 Mar 2005 22:57:13 -0500 Subject: [AccessD] Learned something else new today Message-ID: <000d01c5245c$13b69090$697aa8c0@ColbyM6805> I wrote an app for an insurance call center. The head tech cheese was trying to get a bunch of report queries to work "easier" which were written by a young lady they assigned that task. She had been pulling a result set with dozens of event records for each claim then "cutting and pasting" the right ones into excel. JohnS had turned it into a group by and successfully caused it to pull just the result set he wanted. However a memo field was displaying a pair of Chinese characters (literally). Very strange looking, and definitely not what we wanted to see. It turns out that he had a group by on that field. Can you guess what it was doing (or my educated guess anyway)? It took me a few minutes to figure it out!!! As you probably know, memo fields are not stored in the record, but rather a (32 bit?) pointer to the memo is stored. The GroupBy was causing the memo field to be evaluated literally, thus it was taking the POINTER and displaying (and grouping by) that. I am also guessing that Access knew that a memo is supposed to be text so it was doing an implicit cstr() on the pointer to attempt to coerce the value back to text and to display the value as a string. Thus it was displaying Chinese (and other odd) characters. By changing the GroupBy to a Max (I think anyway) the memo field text reappeared. I have never actually seen, or found any way to see the actual pointer to the memo field out in the memo area but it certainly appears that using a groupby on that field caused the pointer data itself to be exposed as the "value" of the memo. Cool huh? So if your ever seeing a pair of totally weird characters in a group by query, see if the field is a memo with a group by under it. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bchacc at san.rr.com Tue Mar 8 23:12:55 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 8 Mar 2005 21:12:55 -0800 Subject: [AccessD] Learned something else new today References: <000d01c5245c$13b69090$697aa8c0@ColbyM6805> Message-ID: <034601c52466$a73771e0$6b01a8c0@HAL9002> They would have had to have the Asian language support loaded as well. Why did they do that? Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 7:57 PM Subject: [AccessD] Learned something else new today >I wrote an app for an insurance call center. The head tech cheese was > trying to get a bunch of report queries to work "easier" which were > written > by a young lady they assigned that task. She had been pulling a result > set > with dozens of event records for each claim then "cutting and pasting" the > right ones into excel. JohnS had turned it into a group by and > successfully > caused it to pull just the result set he wanted. However a memo field was > displaying a pair of Chinese characters (literally). Very strange > looking, > and definitely not what we wanted to see. > > It turns out that he had a group by on that field. Can you guess what it > was doing (or my educated guess anyway)? It took me a few minutes to > figure > it out!!! > > As you probably know, memo fields are not stored in the record, but rather > a > (32 bit?) pointer to the memo is stored. The GroupBy was causing the memo > field to be evaluated literally, thus it was taking the POINTER and > displaying (and grouping by) that. I am also guessing that Access knew > that > a memo is supposed to be text so it was doing an implicit cstr() on the > pointer to attempt to coerce the value back to text and to display the > value > as a string. Thus it was displaying Chinese (and other odd) characters. > > By changing the GroupBy to a Max (I think anyway) the memo field text > reappeared. > > I have never actually seen, or found any way to see the actual pointer to > the memo field out in the memo area but it certainly appears that using a > groupby on that field caused the pointer data itself to be exposed as the > "value" of the memo. > > Cool huh? > > So if your ever seeing a pair of totally weird characters in a group by > query, see if the field is a memo with a group by under it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Wed Mar 9 03:10:23 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 9 Mar 2005 09:10:23 -0000 Subject: [AccessD] report grouping on the fly? Message-ID: <61F915314798D311A2F800A0C9C831880722564C@dibble.observatory.donnslaw.co.uk> Thanks for the responses, Marty, Don, Rocky and Gustav. We'll follow these links and ideas up. Roz -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: 08 March 2005 18:25 To: Access Developers discussion and problem solving Subject: Re: [AccessD] report grouping on the fly? Here is another approach to customizable reports; download and docs are at bottom of page from Armen Stein. http://www.jstreettech.com/Downloads.asp Roz Clarke wrote: >Dear all > >My colleague Tom and I are working on a reporting tool. The principles >are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite >astonishing amount of fiddle to get > >We are finding that the demand for bespoke report 'templates' (i.e. >pre-created reports that they can then set criteria against) is >outstripping our ability to provide them, because users constantly want >different sorting and grouping. > >Has anyone ever built anything that created group headers & footers on >the fly? I am trying to conceptualize it but it seems like a big task. > >Thinking aloud here - I can see that we need to limit the options >presented to the user. They will have little understanding of the data >or the principles of data interrogation. So we will need to determine >which grouping functions to make available and which report fields each >function can apply to. > >We will then need to create the appropriate report sections and >populate them with controls, nicely positioned, suitably formatted and >containing the correct data binding / grouping function. > >I think positioning them will turn out to be the hardest part; it's >such a visual task when you put total controls on manually. > >Any thoughts or advice would be welcome > >Cheers > >Roz > > >----------------------------------------------------------------------- >- > > >The contents of this message and any attachments are the property of >Donns Solicitors >and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without >our written consent. If you are not the addressee, please notify us immediately so that we >can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the >writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, >you should carry out your own virus check before opening any attachment. >Donns Solicitors does not accept any liability for any damage or loss which may be caused >by software viruses... > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From tom.bolton at donnslaw.co.uk Wed Mar 9 03:35:21 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 9 Mar 2005 09:35:21 -0000 Subject: [AccessD] report grouping on the fly? Message-ID: <61F915314798D311A2F800A0C9C831880731CA74@dibble.observatory.donnslaw.co.uk> Yep, thanks a lot guys. I'll let you know how we get on... I'm having a right 'Access Adventure' working for Roz, that's for sure! Cheers Tom -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: 09 March 2005 09:10 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] report grouping on the fly? Thanks for the responses, Marty, Don, Rocky and Gustav. We'll follow these links and ideas up. Roz -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: 08 March 2005 18:25 To: Access Developers discussion and problem solving Subject: Re: [AccessD] report grouping on the fly? Here is another approach to customizable reports; download and docs are at bottom of page from Armen Stein. http://www.jstreettech.com/Downloads.asp Roz Clarke wrote: >Dear all > >My colleague Tom and I are working on a reporting tool. The principles >are borrowed from Steve Nyberg's very lovely RFil. (Wih a quite >astonishing amount of fiddle to get > >We are finding that the demand for bespoke report 'templates' (i.e. >pre-created reports that they can then set criteria against) is >outstripping our ability to provide them, because users constantly want >different sorting and grouping. > >Has anyone ever built anything that created group headers & footers on >the fly? I am trying to conceptualize it but it seems like a big task. > >Thinking aloud here - I can see that we need to limit the options >presented to the user. They will have little understanding of the data >or the principles of data interrogation. So we will need to determine >which grouping functions to make available and which report fields each >function can apply to. > >We will then need to create the appropriate report sections and >populate them with controls, nicely positioned, suitably formatted and >containing the correct data binding / grouping function. > >I think positioning them will turn out to be the hardest part; it's >such a visual task when you put total controls on manually. > >Any thoughts or advice would be welcome > >Cheers > >Roz > > >----------------------------------------------------------------------- >- > > >The contents of this message and any attachments are the property of >Donns Solicitors >and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without >our written consent. If you are not the addressee, please notify us immediately so that we >can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the >writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, >you should carry out your own virus check before opening any attachment. >Donns Solicitors does not accept any liability for any damage or loss which may be caused >by software viruses... > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From accessd666 at yahoo.com Wed Mar 9 03:43:02 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 9 Mar 2005 01:43:02 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <007801c523f9$582166a0$6b01a8c0@HAL9002> Message-ID: <20050309094302.37154.qmail@web31613.mail.mud.yahoo.com> I completely agree user should not mess around in the database. However this is a very clear demand. Users must have access to the queries to alter them at any time!! Thnx anyway. --- Rocky Smolin - Beach Access Software wrote: > Sander: > > I always take parameters from a form. Don't like to > let the users muck > around in the database container. So get the > parameter into the query I > make a > > Public Function GetParameterX > > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > End Function > > Then in the query under criteria I put > GetParameterX() and it fetches the > contents of the text box from the form when it runs. > > Probably not the most elegant solution but it works > and its easy. But you > have to run the query from the form. > > The users I write for prefer it. Almost none of > them would know how to run > a query from the database container and most don't > even know what a query > is. > > HTH > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Tuesday, March 08, 2005 6:33 AM > Subject: RE: [AccessD] Automating parameterized > action queries..... > > > >I also thought of that but I hoped their was a way > to > > fill the parameters per query with form input. > > > > That way i could make a form for the users in wich > > they can enter: > > - a new report > > - queries per report > > - parameters per query > > - parametertype per parameter (eg date, number, > etc) > > > > With this info I could, based on a report > selection > > build a form dynamicly. > > > > Well I have to look at this some more and let the > > customer decide. > > > > Regards, > > > > Sander > > > > --- Bobby Heid wrote: > >> Why not have two sets of queries, one set that > looks > >> to a form (this one is > >> called programmatically), and one set that > queries > >> the user for the > >> parameters? > >> > >> Bobby > >> > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On > >> Behalf Of Sad Der > >> Sent: Tuesday, March 08, 2005 8:10 AM > >> To: Access Developers discussion and problem > solving > >> Subject: RE: [AccessD] Automating parameterized > >> action queries..... > >> > >> > >> You are correct. However the queries are not > >> executed > >> via from several forms but they are executed: > >> 1- via one form > >> 2- a user manually clicks it in the database > >> container. > >> > >> The process is as follows: > >> 1 - the reports (xls files) are stored in the > >> database > >> 2 - the queries that create the report are also > >> stored > >> in the database > >> 3 - the user selects a report > >> 4 - the necessary queries are executed one by one > >> > >> However, several times a week a manager requests > a > >> part of the report that is slightly different > from > >> the original. A user then > >> must have the change to quickly adjust the query > and > >> run it manually. > >> > >> HTH > >> > >> Sander > >> > >> > >> --- Bobby Heid wrote: > >> > If you are not wanting to encode a particular > form > >> > field because the query > >> > is called from several forms, might I suggest > that > >> > you create a new hidden > >> > form that contains fields for all of the fields > >> that > >> > are used as parameters. > >> > Then the queries can access these fields. > >> > > >> > You would need to set the fields on the form > >> before > >> > the queries were > >> > executed. > >> > > >> > Bobby > >> > > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] > On > >> > Behalf Of Sad Der > >> > Sent: Tuesday, March 08, 2005 3:15 AM > >> > To: Acces User Group > >> > Subject: [AccessD] Automating parameterized > action > >> queries..... > >> > > >> > > >> > Hi group, > >> > > >> > my story of the queries continues. I need to > run a > >> > set > >> > of action queries. This works fine. > >> > > >> > Several queries have parameters. So that means > the > >> > user has to watch the screen for a parameter to > >> > pop-up. Is it possible to add some parameter > >> fields > >> > in > >> > the form to fill the required > parameters...WITHOUT > >> > changing the query it self? > >> > > >> > So I have a parameters in my query: > >> > [Enter version:] > >> > [Enter startdate:] > >> > > >> > And I do not want to change these to: > >> forms!frmReport!txtVersion > >> > forms!frmReport!txtStartDate > >> > > >> > TIA > >> > > >> > Sander > >> > > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > >> > __________________________________________________ > >> Do You Yahoo!? > >> Tired of spam? Yahoo! Mail has the best spam > >> protection around > >> http://mail.yahoo.com > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > === message truncated === __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From accessd666 at yahoo.com Wed Mar 9 04:18:39 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 9 Mar 2005 02:18:39 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: 6667 Message-ID: <20050309101839.19515.qmail@web31610.mail.mud.yahoo.com> Thnx Ken, No idea how I should implement it but I've got a 'lost hour' so I'll give it a shot. This is exactly what I need...i think :-) Regards, Sander --- Ken Ismert wrote: > Sander, > > There is a class-based approach: > > Define a class, CReportParms, with two variant > properties, Version and > StartDate: > > Private mVersion As Variant > Private mStartDate As Variant > > Property Get Version() As Variant > Version = mVersion > End Property > Property Let Version(VersionIn As Variant) > mVersion = VersionIn > End Property > > ' (Similar Get/Let for StartDate) > > Private Sub Class_Initialize() > mVersion = Null > mStartDate = Null > End Sub > > Declare it as global in one of your modules: > > Public gRptParms As New CReportParms > > Provide two global functions to use in your queries > in place of your > parameters: > > Public Function ParmVersion() As Variant > Parms = gRptParms.Version > End Function > Public Function ParmStartDate() As Variant > Parms = gRptParms.StartDate > End Function > > You can set these properties in your form before you > run your report: > > gRptParms.Version = txtVersion > gRptParms.StartDate = txtStartDate > > If you can calculate reasonable values for Version > and StartDate, you can do > so in the CReportParms Initialize event. > Alternately, you can prompt the > user in the class when the queries are run > standalone: > > Property Get Version() As Variant > Dim sVersion As String > If IsNull(mVersion) Then > sVersion = InputBox("Enter Version:") > If sVersion > "" Then > mVersion = CLng(sVersion) > End If > End If > Version = mVersion > End Property > > You could also have a third property, FormDriven, > that, when set to True, > doesn't prompt the user. Only your frmReport form > will set this property, > and clear it upon exit. That way, the user is always > prompted when running > the queries stand-alone. > > -Ken > > > Hi group, > > > > my story of the queries continues. I need to > > run a set of action queries. This works fine. > > > > Several queries have parameters. So that means > > the user has to watch the screen for a > > parameter to pop-up. Is it possible to add > > some parameter fields in the form to fill > > the required parameters...WITHOUT changing > > the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From cyx5 at cdc.gov Wed Mar 9 05:57:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 9 Mar 2005 06:57:14 -0500 Subject: [AccessD] Windows Key - ASCII Code - OT Message-ID: This is what I needed. Thank you. I was googled out on this one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Tuesday, March 08, 2005 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Windows Key - ASCII Code - OT Here is how I do it The constant is VK_LWIN so it is hex 5B some keyboards have two windows buttons Private Const VK_LWIN = &H5B 'Left window button Private Const VK_RETURN = &HD 'ENTER key Private Const VK_SHIFT = &H10 'SHIFT key Private Const VK_CONTROL = &H11 'CTRL key Private Const VK_MENU = &H12 'ALT key Private Const VK_PAUSE = &H13 'PAUSE key Private Const VK_CAPITAL = &H14 'CAPS LOCK key Private Const VK_SNAPSHOT = &H2C 'Print Screen Private Const VK_APPS = &H5D 'Applications key on a Microsoft Natural Keyboard 'from http://support.microsoft.com/view/dev.asp?kb=242971 Const GW_HWNDFIRST = 0 Const GW_HWNDNEXT = 2 Private Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Sub OpenWindowsHelp() ' Open the Windows Help Windows - F1 ' ' You can use the same technique to programmatically "press" any other ' key, including Shift, Ctrl, Alt and keys combinations that can't be ' simulated through SendKeys 'vbKey constants partially definined in Access Help ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the F1 key keybd_event vbKeyF1, 0, 0, 0 keybd_event vbKeyF1, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Sub CloseAllWindows() ' Minimize all open windows Windows-M 'Const acaltMask ' programmatically press the Windows key keybd_event VK_LWIN, 0, 0, 0 ' then press and then release the M key keybd_event vbKeyM, 0, 0, 0 keybd_event vbKeyM, 0, KEYEVENTF_KEYUP, 0 ' and finally release the Windows Key keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 End Sub Nicholson, Karen wrote: >Maybe I should say, how do I program in Access, what is the shortcut, >like [page up], etc. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >Karen >Sent: Tuesday, March 08, 2005 2:18 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Windows Key - ASCII Code - OT > > >Anyone know what the ASCII code is to invoke the functionality that is >provided by the Windows key (the little flying window) on the keyboard? > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Wed Mar 9 06:06:58 2005 From: accessd666 at yahoo.com (Sad Der) Date: Wed, 9 Mar 2005 04:06:58 -0800 (PST) Subject: [AccessD] Automating parameterized action queries.....SOLVED! In-Reply-To: 6667 Message-ID: <20050309120658.43480.qmail@web31609.mail.mud.yahoo.com> Ken, this works great! thnx a lot. Regards, Sander --- Sad Der wrote: > Thnx Ken, > > No idea how I should implement it but I've got a > 'lost > hour' so I'll give it a shot. > > This is exactly what I need...i think :-) > > Regards, > > Sander > > --- Ken Ismert wrote: > > Sander, > > > > There is a class-based approach: > > > > Define a class, CReportParms, with two variant > > properties, Version and > > StartDate: > > > > Private mVersion As Variant > > Private mStartDate As Variant > > > > Property Get Version() As Variant > > Version = mVersion > > End Property > > Property Let Version(VersionIn As Variant) > > mVersion = VersionIn > > End Property > > > > ' (Similar Get/Let for StartDate) > > > > Private Sub Class_Initialize() > > mVersion = Null > > mStartDate = Null > > End Sub > > > > Declare it as global in one of your modules: > > > > Public gRptParms As New CReportParms > > > > Provide two global functions to use in your > queries > > in place of your > > parameters: > > > > Public Function ParmVersion() As Variant > > Parms = gRptParms.Version > > End Function > > Public Function ParmStartDate() As Variant > > Parms = gRptParms.StartDate > > End Function > > > > You can set these properties in your form before > you > > run your report: > > > > gRptParms.Version = txtVersion > > gRptParms.StartDate = txtStartDate > > > > If you can calculate reasonable values for Version > > and StartDate, you can do > > so in the CReportParms Initialize event. > > Alternately, you can prompt the > > user in the class when the queries are run > > standalone: > > > > Property Get Version() As Variant > > Dim sVersion As String > > If IsNull(mVersion) Then > > sVersion = InputBox("Enter Version:") > > If sVersion > "" Then > > mVersion = CLng(sVersion) > > End If > > End If > > Version = mVersion > > End Property > > > > You could also have a third property, FormDriven, > > that, when set to True, > > doesn't prompt the user. Only your frmReport form > > will set this property, > > and clear it upon exit. That way, the user is > always > > prompted when running > > the queries stand-alone. > > > > -Ken > > > > > Hi group, > > > > > > my story of the queries continues. I need to > > > run a set of action queries. This works fine. > > > > > > Several queries have parameters. So that means > > > the user has to watch the screen for a > > > parameter to pop-up. Is it possible to add > > > some parameter fields in the form to fill > > > the required parameters...WITHOUT changing > > > the query it self? > > > > > > So I have a parameters in my query: > > > [Enter version:] > > > [Enter startdate:] > > > > > > And I do not want to change these to: > > > forms!frmReport!txtVersion > > > forms!frmReport!txtStartDate > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ From jwcolby at colbyconsulting.com Wed Mar 9 06:26:31 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 09 Mar 2005 07:26:31 -0500 Subject: [AccessD] Learned something else new today In-Reply-To: <034601c52466$a73771e0$6b01a8c0@HAL9002> Message-ID: <002c01c524a3$39c66660$697aa8c0@ColbyM6805> No idea. Is that an Office thing or a Windows thing? I told him to always load the whole enchilada when installing Office because I was tired of not having the various pieces I needed to troubleshoot. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 09, 2005 12:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Learned something else new today They would have had to have the Asian language support loaded as well. Why did they do that? Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, March 08, 2005 7:57 PM Subject: [AccessD] Learned something else new today >I wrote an app for an insurance call center. The head tech cheese was >trying to get a bunch of report queries to work "easier" which were >written by a young lady they assigned that task. She had been pulling >a result set > with dozens of event records for each claim then "cutting and pasting" the > right ones into excel. JohnS had turned it into a group by and > successfully > caused it to pull just the result set he wanted. However a memo field was > displaying a pair of Chinese characters (literally). Very strange > looking, > and definitely not what we wanted to see. > > It turns out that he had a group by on that field. Can you guess what > it was doing (or my educated guess anyway)? It took me a few minutes > to figure it out!!! > > As you probably know, memo fields are not stored in the record, but > rather > a > (32 bit?) pointer to the memo is stored. The GroupBy was causing the memo > field to be evaluated literally, thus it was taking the POINTER and > displaying (and grouping by) that. I am also guessing that Access knew > that > a memo is supposed to be text so it was doing an implicit cstr() on the > pointer to attempt to coerce the value back to text and to display the > value > as a string. Thus it was displaying Chinese (and other odd) characters. > > By changing the GroupBy to a Max (I think anyway) the memo field text > reappeared. > > I have never actually seen, or found any way to see the actual pointer > to the memo field out in the memo area but it certainly appears that > using a groupby on that field caused the pointer data itself to be > exposed as the "value" of the memo. > > Cool huh? > > So if your ever seeing a pair of totally weird characters in a group > by query, see if the field is a memo with a group by under it. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 9 09:19:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 9 Mar 2005 07:19:43 -0800 Subject: [AccessD] Automating parameterized action queries..... References: <20050309094302.37154.qmail@web31613.mail.mud.yahoo.com> Message-ID: <009901c524bb$6beac740$6b01a8c0@HAL9002> Makes supporting a database pretty exciting, then, doesn't it? When it breaks, you just never know what you're going to find. So if they can handle modifying their own queries, can't they fill in the blank in the parameter prompt? Rocky ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 09, 2005 1:43 AM Subject: Re: [AccessD] Automating parameterized action queries..... >I completely agree user should not mess around in the > database. However this is a very clear demand. Users > must have access to the queries to alter them at any > time!! > > Thnx anyway. > --- Rocky Smolin - Beach Access Software > wrote: > >> Sander: >> >> I always take parameters from a form. Don't like to >> let the users muck >> around in the database container. So get the >> parameter into the query I >> make a >> >> Public Function GetParameterX >> >> > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter >> End Function >> >> Then in the query under criteria I put >> GetParameterX() and it fetches the >> contents of the text box from the form when it runs. >> >> Probably not the most elegant solution but it works >> and its easy. But you >> have to run the query from the form. >> >> The users I write for prefer it. Almost none of >> them would know how to run >> a query from the database container and most don't >> even know what a query >> is. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Sad Der" >> To: "Access Developers discussion and problem >> solving" >> >> Sent: Tuesday, March 08, 2005 6:33 AM >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> >I also thought of that but I hoped their was a way >> to >> > fill the parameters per query with form input. >> > >> > That way i could make a form for the users in wich >> > they can enter: >> > - a new report >> > - queries per report >> > - parameters per query >> > - parametertype per parameter (eg date, number, >> etc) >> > >> > With this info I could, based on a report >> selection >> > build a form dynamicly. >> > >> > Well I have to look at this some more and let the >> > customer decide. >> > >> > Regards, >> > >> > Sander >> > >> > --- Bobby Heid wrote: >> >> Why not have two sets of queries, one set that >> looks >> >> to a form (this one is >> >> called programmatically), and one set that >> queries >> >> the user for the >> >> parameters? >> >> >> >> Bobby >> >> >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On >> >> Behalf Of Sad Der >> >> Sent: Tuesday, March 08, 2005 8:10 AM >> >> To: Access Developers discussion and problem >> solving >> >> Subject: RE: [AccessD] Automating parameterized >> >> action queries..... >> >> >> >> >> >> You are correct. However the queries are not >> >> executed >> >> via from several forms but they are executed: >> >> 1- via one form >> >> 2- a user manually clicks it in the database >> >> container. >> >> >> >> The process is as follows: >> >> 1 - the reports (xls files) are stored in the >> >> database >> >> 2 - the queries that create the report are also >> >> stored >> >> in the database >> >> 3 - the user selects a report >> >> 4 - the necessary queries are executed one by one >> >> >> >> However, several times a week a manager requests >> a >> >> part of the report that is slightly different >> from >> >> the original. A user then >> >> must have the change to quickly adjust the query >> and >> >> run it manually. >> >> >> >> HTH >> >> >> >> Sander >> >> >> >> >> >> --- Bobby Heid wrote: >> >> > If you are not wanting to encode a particular >> form >> >> > field because the query >> >> > is called from several forms, might I suggest >> that >> >> > you create a new hidden >> >> > form that contains fields for all of the fields >> >> that >> >> > are used as parameters. >> >> > Then the queries can access these fields. >> >> > >> >> > You would need to set the fields on the form >> >> before >> >> > the queries were >> >> > executed. >> >> > >> >> > Bobby >> >> > >> >> > -----Original Message----- >> >> > From: accessd-bounces at databaseadvisors.com >> >> > [mailto:accessd-bounces at databaseadvisors.com] >> On >> >> > Behalf Of Sad Der >> >> > Sent: Tuesday, March 08, 2005 3:15 AM >> >> > To: Acces User Group >> >> > Subject: [AccessD] Automating parameterized >> action >> >> queries..... >> >> > >> >> > >> >> > Hi group, >> >> > >> >> > my story of the queries continues. I need to >> run a >> >> > set >> >> > of action queries. This works fine. >> >> > >> >> > Several queries have parameters. So that means >> the >> >> > user has to watch the screen for a parameter to >> >> > pop-up. Is it possible to add some parameter >> >> fields >> >> > in >> >> > the form to fill the required >> parameters...WITHOUT >> >> > changing the query it self? >> >> > >> >> > So I have a parameters in my query: >> >> > [Enter version:] >> >> > [Enter startdate:] >> >> > >> >> > And I do not want to change these to: >> >> forms!frmReport!txtVersion >> >> > forms!frmReport!txtStartDate >> >> > >> >> > TIA >> >> > >> >> > Sander >> >> > >> >> > -- >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> > >> >> >> >> >> __________________________________________________ >> >> Do You Yahoo!? >> >> Tired of spam? Yahoo! Mail has the best spam >> >> protection around >> >> http://mail.yahoo.com >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > === message truncated === > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Wed Mar 9 09:23:12 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 9 Mar 2005 07:23:12 -0800 Subject: [AccessD] Learned something else new today References: <002c01c524a3$39c66660$697aa8c0@ColbyM6805> Message-ID: <00a701c524bb$e8b6de30$6b01a8c0@HAL9002> It's Windows. Regional and Language options - language tab - just a check box and it installs. TO use it, though, you have to display in Unicode. Had to jump through this hoop for the Chinese version of the MRP system. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 09, 2005 4:26 AM Subject: RE: [AccessD] Learned something else new today > No idea. Is that an Office thing or a Windows thing? I told him to > always > load the whole enchilada when installing Office because I was tired of not > having the various pieces I needed to troubleshoot. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 09, 2005 12:13 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Learned something else new today > > > They would have had to have the Asian language support loaded as well. > Why > did they do that? > > Rocky > > ----- Original Message ----- > From: "John W. Colby" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, March 08, 2005 7:57 PM > Subject: [AccessD] Learned something else new today > > >>I wrote an app for an insurance call center. The head tech cheese was >>trying to get a bunch of report queries to work "easier" which were >>written by a young lady they assigned that task. She had been pulling >>a result set >> with dozens of event records for each claim then "cutting and pasting" >> the >> right ones into excel. JohnS had turned it into a group by and >> successfully >> caused it to pull just the result set he wanted. However a memo field >> was >> displaying a pair of Chinese characters (literally). Very strange >> looking, >> and definitely not what we wanted to see. >> >> It turns out that he had a group by on that field. Can you guess what >> it was doing (or my educated guess anyway)? It took me a few minutes >> to figure it out!!! >> >> As you probably know, memo fields are not stored in the record, but >> rather >> a >> (32 bit?) pointer to the memo is stored. The GroupBy was causing the >> memo >> field to be evaluated literally, thus it was taking the POINTER and >> displaying (and grouping by) that. I am also guessing that Access knew >> that >> a memo is supposed to be text so it was doing an implicit cstr() on the >> pointer to attempt to coerce the value back to text and to display the >> value >> as a string. Thus it was displaying Chinese (and other odd) characters. >> >> By changing the GroupBy to a Max (I think anyway) the memo field text >> reappeared. >> >> I have never actually seen, or found any way to see the actual pointer >> to the memo field out in the memo area but it certainly appears that >> using a groupby on that field caused the pointer data itself to be >> exposed as the "value" of the memo. >> >> Cool huh? >> >> So if your ever seeing a pair of totally weird characters in a group >> by query, see if the field is a memo with a group by under it. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Wed Mar 9 09:45:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 09 Mar 2005 10:45:28 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <009901c524bb$6beac740$6b01a8c0@HAL9002> Message-ID: <003101c524bf$07e44100$697aa8c0@ColbyM6805> When I have users that need to run their own queries I set them up with a local (to their machine) front end, linked to all the necessary tables. They can then build queries and reports to their heart's content. It is important to know that they know what they are doing because they are "directly in the tables" with queries and can trash the db pretty easily. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 09, 2005 10:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Automating parameterized action queries..... Makes supporting a database pretty exciting, then, doesn't it? When it breaks, you just never know what you're going to find. So if they can handle modifying their own queries, can't they fill in the blank in the parameter prompt? Rocky ----- Original Message ----- From: "Sad Der" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 09, 2005 1:43 AM Subject: Re: [AccessD] Automating parameterized action queries..... >I completely agree user should not mess around in the database. >However this is a very clear demand. Users must have access to the >queries to alter them at any time!! > > Thnx anyway. > --- Rocky Smolin - Beach Access Software > wrote: > >> Sander: >> >> I always take parameters from a form. Don't like to >> let the users muck >> around in the database container. So get the >> parameter into the query I >> make a >> >> Public Function GetParameterX >> >> > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter >> End Function >> >> Then in the query under criteria I put >> GetParameterX() and it fetches the >> contents of the text box from the form when it runs. >> >> Probably not the most elegant solution but it works >> and its easy. But you >> have to run the query from the form. >> >> The users I write for prefer it. Almost none of >> them would know how to run >> a query from the database container and most don't >> even know what a query >> is. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Sad Der" >> To: "Access Developers discussion and problem >> solving" >> >> Sent: Tuesday, March 08, 2005 6:33 AM >> Subject: RE: [AccessD] Automating parameterized >> action queries..... >> >> >> >I also thought of that but I hoped their was a way >> to >> > fill the parameters per query with form input. >> > >> > That way i could make a form for the users in wich >> > they can enter: >> > - a new report >> > - queries per report >> > - parameters per query >> > - parametertype per parameter (eg date, number, >> etc) >> > >> > With this info I could, based on a report >> selection >> > build a form dynamicly. >> > >> > Well I have to look at this some more and let the >> > customer decide. >> > >> > Regards, >> > >> > Sander >> > >> > --- Bobby Heid wrote: >> >> Why not have two sets of queries, one set that >> looks >> >> to a form (this one is >> >> called programmatically), and one set that >> queries >> >> the user for the >> >> parameters? >> >> >> >> Bobby >> >> >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [mailto:accessd-bounces at databaseadvisors.com] On >> >> Behalf Of Sad Der >> >> Sent: Tuesday, March 08, 2005 8:10 AM >> >> To: Access Developers discussion and problem >> solving >> >> Subject: RE: [AccessD] Automating parameterized >> >> action queries..... >> >> >> >> >> >> You are correct. However the queries are not >> >> executed >> >> via from several forms but they are executed: >> >> 1- via one form >> >> 2- a user manually clicks it in the database >> >> container. >> >> >> >> The process is as follows: >> >> 1 - the reports (xls files) are stored in the >> >> database >> >> 2 - the queries that create the report are also >> >> stored >> >> in the database >> >> 3 - the user selects a report >> >> 4 - the necessary queries are executed one by one >> >> >> >> However, several times a week a manager requests >> a >> >> part of the report that is slightly different >> from >> >> the original. A user then >> >> must have the change to quickly adjust the query >> and >> >> run it manually. >> >> >> >> HTH >> >> >> >> Sander >> >> >> >> >> >> --- Bobby Heid wrote: >> >> > If you are not wanting to encode a particular >> form >> >> > field because the query >> >> > is called from several forms, might I suggest >> that >> >> > you create a new hidden >> >> > form that contains fields for all of the fields >> >> that >> >> > are used as parameters. >> >> > Then the queries can access these fields. >> >> > >> >> > You would need to set the fields on the form >> >> before >> >> > the queries were >> >> > executed. >> >> > >> >> > Bobby >> >> > >> >> > -----Original Message----- >> >> > From: accessd-bounces at databaseadvisors.com >> >> > [mailto:accessd-bounces at databaseadvisors.com] >> On >> >> > Behalf Of Sad Der >> >> > Sent: Tuesday, March 08, 2005 3:15 AM >> >> > To: Acces User Group >> >> > Subject: [AccessD] Automating parameterized >> action >> >> queries..... >> >> > >> >> > >> >> > Hi group, >> >> > >> >> > my story of the queries continues. I need to >> run a >> >> > set >> >> > of action queries. This works fine. >> >> > >> >> > Several queries have parameters. So that means >> the >> >> > user has to watch the screen for a parameter to >> >> > pop-up. Is it possible to add some parameter >> >> fields >> >> > in >> >> > the form to fill the required >> parameters...WITHOUT >> >> > changing the query it self? >> >> > >> >> > So I have a parameters in my query: >> >> > [Enter version:] >> >> > [Enter startdate:] >> >> > >> >> > And I do not want to change these to: >> >> forms!frmReport!txtVersion >> >> > forms!frmReport!txtStartDate >> >> > >> >> > TIA >> >> > >> >> > Sander >> >> > >> >> > -- >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> > >> >> >> >> >> __________________________________________________ >> >> Do You Yahoo!? >> >> Tired of spam? Yahoo! Mail has the best spam >> >> protection around >> >> http://mail.yahoo.com >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > === message truncated === > > > > > > __________________________________ > Celebrate Yahoo!'s 10th Birthday! > Yahoo! Netrospective: 100 Moments of the Web > http://birthday.yahoo.com/netrospective/ > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From handyman at actcom.co.il Wed Mar 9 10:51:09 2005 From: handyman at actcom.co.il (handyman at actcom.co.il) Date: Wed, 09 Mar 2005 18:51:09 +0200 Subject: [AccessD] importing text files Message-ID: <5.1.0.14.2.20050309184550.034b19b8@pop5.actcom.net.il> Hi all, I am using Access2003, attempting to import a text file. When I was using Access2000, there I was able to import using file/get external data/import, and specified a txt file. Now *.txt,*.csv...etc doesn't appear on the dropdown box. Did this change in Access2003, or maybe this is also related to my listbox wizards problems that I have been having? Thanks Gershon From markamatte at hotmail.com Wed Mar 9 10:58:01 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 09 Mar 2005 16:58:01 +0000 Subject: [AccessD] importing text files In-Reply-To: <5.1.0.14.2.20050309184550.034b19b8@pop5.actcom.net.il> Message-ID: Gershon, I had a similar problem with A2K...and it has to do with the install...there are some options that have to be selected to have ALL file formats listed for import. Sorry, I don't remember the option name...I just remember having to run the install disk to change the properties. Thanks, Mark >From: handyman at actcom.co.il >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] importing text files >Date: Wed, 09 Mar 2005 18:51:09 +0200 > >Hi all, > >I am using Access2003, attempting to import a text file. When I was using >Access2000, there I was able to import using file/get external data/import, >and specified a txt file. Now *.txt,*.csv...etc doesn't appear on the >dropdown box. Did this change in Access2003, or maybe this is also related >to my listbox wizards problems that I have been having? > >Thanks > >Gershon > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Mar 9 11:01:26 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 9 Mar 2005 18:01:26 +0100 Subject: [AccessD] importing text files Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5876@stekelbes.ithelps.local> Txt etc is still there in A2K3. Probably same issue as your wizard rpob. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of handyman at actcom.co.il Sent: Wednesday, March 09, 2005 5:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] importing text files Hi all, I am using Access2003, attempting to import a text file. When I was using Access2000, there I was able to import using file/get external data/import, and specified a txt file. Now *.txt,*.csv...etc doesn't appear on the dropdown box. Did this change in Access2003, or maybe this is also related to my listbox wizards problems that I have been having? Thanks Gershon -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Wed Mar 9 11:41:03 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 9 Mar 2005 11:41:03 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Hello, All In my app I'm archiving text files via VBA using the Winzip command line and the ShellWait function I got from Dev Ashish's web site. It works well, but I need to be able to validate that the zip succeeds before moving on to the next step in my code. I've been experimenting with a sample I found that uses the Windows Script Host. Passing my Winzip command line string to it causes the process to hang. (The same string passed to ShellWait works in a flash.) I tried it using a command line string for "Blat" to send a test email, and that worked as expected - no hang. A code sample is below. Am I overlooking something? Has anybody a better solution for this requirement? Thanks! Don Function GetErrorLevel() Dim wsShell As Object, Proc As Object, strCommand As String, strErrLevel As String Dim strZipFileName As String, strTargetFile as String, strWinzipPath as String strWinzipPath = "C:\Archive\Winzip\WZZIP" strZipFileName = "C:\Archive\TestZipFile.zip" strTargetFile = "C:\Data\DM02TEST.txt" strCommand = strWinzipPath & " -a " & """" & strZipFileName & """" & " " & """" & strTargetFile & """" 'Testing command line using ShellWait 'ShellWait strCommand, vbHide Set wsShell = CreateObject("wscript.shell") Set Proc = wsShell.Exec(strCommand) Do While Proc.Status = 0 DoEvents 'Yields execution so that the operating system can process other events Loop 'Use proc.ExitCode to check for returned %errorlevel% strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" & Proc.ExitCode MsgBox (strErrLevel) Set wsShell = Nothing Set Proc = Nothing End Function From andy at minstersystems.co.uk Wed Mar 9 12:36:47 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 9 Mar 2005 18:36:47 -0000 Subject: [AccessD] Archiving files with Winzip Command Line version In-Reply-To: Message-ID: <008901c524d6$f3484c10$b274d0d5@minster33c3r25> Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Wed Mar 9 12:55:54 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 09 Mar 2005 10:55:54 -0800 Subject: [AccessD] Windows Key - ASCII Code - OT References: Message-ID: <422F46BA.9020700@shaw.ca> Ahh they moved the list of Virtual Key Codes again http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/WindowsUserInterface/UserInput/VirtualKeyCodes.asp I believe these are also listed in VB6 Help files. There are intrinsic Access keyboard constants in help file or you can find in object browser like vbKeyCancel or vbKeyA but it is incomplete list and does not include odd keys like Hangul IME.or Windows Nicholson, Karen wrote: >This is what I needed. Thank you. I was googled out on this one. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Tuesday, March 08, 2005 2:54 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Windows Key - ASCII Code - OT > > >Here is how I do it > The constant is VK_LWIN so it is hex 5B some keyboards have two >windows buttons > >Private Const VK_LWIN = &H5B 'Left window button >Private Const VK_RETURN = &HD 'ENTER key >Private Const VK_SHIFT = &H10 'SHIFT key >Private Const VK_CONTROL = &H11 'CTRL key >Private Const VK_MENU = &H12 'ALT key >Private Const VK_PAUSE = &H13 'PAUSE key >Private Const VK_CAPITAL = &H14 'CAPS LOCK key >Private Const VK_SNAPSHOT = &H2C 'Print Screen >Private Const VK_APPS = &H5D > 'Applications key on a Microsoft Natural Keyboard >'from http://support.microsoft.com/view/dev.asp?kb=242971 > >Const GW_HWNDFIRST = 0 >Const GW_HWNDNEXT = 2 >Private Const KEYEVENTF_KEYUP = &H2 > >Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ > ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As >Long) >Sub OpenWindowsHelp() >' Open the Windows Help Windows - F1 >' >' You can use the same technique to programmatically "press" any other >' key, including Shift, Ctrl, Alt and keys combinations that can't be >' simulated through SendKeys >'vbKey constants partially definined in Access Help > ' programmatically press the Windows key > keybd_event VK_LWIN, 0, 0, 0 > ' then press and then release the F1 key > keybd_event vbKeyF1, 0, 0, 0 > keybd_event vbKeyF1, 0, KEYEVENTF_KEYUP, 0 > ' and finally release the Windows Key > keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 >End Sub > >Sub CloseAllWindows() >' Minimize all open windows Windows-M >'Const acaltMask > ' programmatically press the Windows key > keybd_event VK_LWIN, 0, 0, 0 > ' then press and then release the M key > keybd_event vbKeyM, 0, 0, 0 > keybd_event vbKeyM, 0, KEYEVENTF_KEYUP, 0 > ' and finally release the Windows Key > keybd_event VK_LWIN, 0, KEYEVENTF_KEYUP, 0 >End Sub > >Nicholson, Karen wrote: > > > >>Maybe I should say, how do I program in Access, what is the shortcut, >>like [page up], etc. >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, >>Karen >>Sent: Tuesday, March 08, 2005 2:18 PM >>To: accessd at databaseadvisors.com >>Subject: [AccessD] Windows Key - ASCII Code - OT >> >> >>Anyone know what the ASCII code is to invoke the functionality that is >>provided by the Windows key (the little flying window) on the keyboard? >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From adtp at touchtelindia.net Wed Mar 9 12:56:46 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 10 Mar 2005 00:26:46 +0530 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca><016601c521e9$7ce02c90$6b01a8c0@HAL9002><01d901c5 225c$5c1590e0$6b01a8c0@HAL9002> <422BE8A5.6020401@shaw.ca> Message-ID: <00b501c524da$507b8570$5a1865cb@winxp> Rocky, The sub-routine given below should be able to get you the desired results. No need to set up any library reference to the remote db. The procedure will carry out background printing of target report located in the remote db. The user will not face any distraction as the remote db remains hidden throughout the process and is closed automatically after the report gets extracted. Best wishes, A.D.Tejpal -------------- ==================================== Private Sub P_OpenReportInRemoteDb(ByVal _ RepName As String, ByVal _ RemoteDbPath As String) Dim acp As Access.Application ' Create new instance of Access ' (This will remain hidden unless its visible property ' is set to True) Set acp = New Access.Application With acp .OpenCurrentDatabase RemoteDbPath .DoCmd.OpenReport RepName .Quit acQuitSaveAll End With Set acp = Nothing End Sub ==================================== ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Monday, March 07, 2005 11:07 Subject: Re: [AccessD] Contralling a second mdb from the first mdb Do you have a reference set to C:\Acessdat\xReports.mdb But this is where you may come a cropper on deployment, because the reference may not be correct. and cannot be modified in an mde It will search the library mdb first for the name.of the report also this command must execute from within a subroutine in the library mdb that has the report and you can call the subroutine name from the main mdb. DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview Rocky Smolin - Beach Access Software wrote: > Trying to run a report in a second database from the first database I > tried > > DoCmd.OpenReport > "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview > > > Where xReports is the name of the mdb with the report I'm trying to > run from an mdb called Forms.mdb, but the syntax is incorrect. > > Does anyone know the correct syntax? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > ----- Original Message ----- From: "Rocky Smolin - Beach Access > Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 5:11 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >> Marty: >> >> So far the code is: >> >> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >> "SELECT tUDGlobalMerge.* " & _ >> "FROM tUDGlobalMerge" >> >> >> This code is run from a database named Forms.mdb >> It deletes all the records in a table tUDGlobalMerge in the database >> named Reports. >> >> It then copies all the data from the table named tUDGlobalMerge in >> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can >> then be run. >> >> What client wants now is, from the database Forms.mdb, open >> Reports.mdb hidden (so it doesn't show in the screen), print Report >> and close Reports.mdb. >> >> Can it be done with DoCmd.OpenReport specifying the report as the >> database and report name in the reports collection? >> >> TIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> >> ----- Original Message ----- From: "MartyConnelly" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 2:17 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> I know of two ways but this depends on program flow, you are running >>> from one or the other mdb >>> 1. Use an MDA but I don't know all the ramifications of using an >>> MDA, there are exceptions like circular references >>> See MDH Developers Handbook on Developing wizards >>> or >>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>> >>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>> and VB6 runtime >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>> Dear List: >>>> >>>> Can you control all of the functions of a second mdb from the first >>>> mdb - start, open forms, run reports, etc.? >>>> >>>> TIA >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> http://www.e-z-mrp.com >>>> 858-259-4334 From donald.a.Mcgillivray at mail.sprint.com Wed Mar 9 13:02:43 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 9 Mar 2005 13:02:43 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 9 13:13:23 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 9 Mar 2005 11:13:23 -0800 Subject: [AccessD] Contralling a second mdb from the first mdb References: <00f901c521bf$e39a2f50$6b01a8c0@HAL9002> <422A3006.4090403@shaw.ca> <016601c521e9$7ce02c90$6b01a8c0@HAL9002> <"01d901c5 225c$5c1590e0$6b01a8c0"@HAL9002> <422BE8A5.6020401@shaw.ca> <00b501c524da$507b8570$5a1865cb@winxp> Message-ID: <018101c524dc$111a79c0$6b01a8c0@HAL9002> That will work! Thank you. Rocky ----- Original Message ----- From: "A.D.Tejpal" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 09, 2005 10:56 AM Subject: Re: [AccessD] Contralling a second mdb from the first mdb Rocky, The sub-routine given below should be able to get you the desired results. No need to set up any library reference to the remote db. The procedure will carry out background printing of target report located in the remote db. The user will not face any distraction as the remote db remains hidden throughout the process and is closed automatically after the report gets extracted. Best wishes, A.D.Tejpal -------------- ==================================== Private Sub P_OpenReportInRemoteDb(ByVal _ RepName As String, ByVal _ RemoteDbPath As String) Dim acp As Access.Application ' Create new instance of Access ' (This will remain hidden unless its visible property ' is set to True) Set acp = New Access.Application With acp .OpenCurrentDatabase RemoteDbPath .DoCmd.OpenReport RepName .Quit acQuitSaveAll End With Set acp = Nothing End Sub ==================================== ----- Original Message ----- From: MartyConnelly To: Access Developers discussion and problem solving Sent: Monday, March 07, 2005 11:07 Subject: Re: [AccessD] Contralling a second mdb from the first mdb Do you have a reference set to C:\Acessdat\xReports.mdb But this is where you may come a cropper on deployment, because the reference may not be correct. and cannot be modified in an mde It will search the library mdb first for the name.of the report also this command must execute from within a subroutine in the library mdb that has the report and you can call the subroutine name from the main mdb. DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewPreview Rocky Smolin - Beach Access Software wrote: > Trying to run a report in a second database from the first database I > tried > > DoCmd.OpenReport > "C:\Acessdat\xReports.Reports!rptEvictionCase-MemoToSet", acViewPreview > > > Where xReports is the name of the mdb with the report I'm trying to > run from an mdb called Forms.mdb, but the syntax is incorrect. > > Does anyone know the correct syntax? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > ----- Original Message ----- From: "Rocky Smolin - Beach Access > Software" > To: "Access Developers discussion and problem solving" > > Sent: Saturday, March 05, 2005 5:11 PM > Subject: Re: [AccessD] Contralling a second mdb from the first mdb > > >> Marty: >> >> So far the code is: >> >> DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" >> DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ >> "IN 'C:\ACESSDAT\Reports.mdb' " & _ >> "SELECT tUDGlobalMerge.* " & _ >> "FROM tUDGlobalMerge" >> >> >> This code is run from a database named Forms.mdb >> It deletes all the records in a table tUDGlobalMerge in the database >> named Reports. >> >> It then copies all the data from the table named tUDGlobalMerge in >> Forms.mdb to the table tUDGlobalMerge in Reports.mdb. Where it can >> then be run. >> >> What client wants now is, from the database Forms.mdb, open >> Reports.mdb hidden (so it doesn't show in the screen), print Report >> and close Reports.mdb. >> >> Can it be done with DoCmd.OpenReport specifying the report as the >> database and report name in the reports collection? >> >> TIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> >> ----- Original Message ----- From: "MartyConnelly" >> >> To: "Access Developers discussion and problem solving" >> >> Sent: Saturday, March 05, 2005 2:17 PM >> Subject: Re: [AccessD] Contralling a second mdb from the first mdb >> >> >>> I know of two ways but this depends on program flow, you are running >>> from one or the other mdb >>> 1. Use an MDA but I don't know all the ramifications of using an >>> MDA, there are exceptions like circular references >>> See MDH Developers Handbook on Developing wizards >>> or >>> http://www.vb123.com/toolshed/00_Docs/buildwizards.htm >>> >>> 2. TSI SOON from Michael Kaplan (Shut One, Open New) requires a DLL >>> and VB6 runtime >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>> Dear List: >>>> >>>> Can you control all of the functions of a second mdb from the first >>>> mdb - start, open forms, run reports, etc.? >>>> >>>> TIA >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> http://www.e-z-mrp.com >>>> 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Wed Mar 9 13:40:01 2005 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 9 Mar 2005 20:40:01 +0100 Subject: [AccessD] importing text files References: <5.1.0.14.2.20050309184550.034b19b8@pop5.actcom.net.il> Message-ID: <006701c524df$ca4fc6e0$fcc581d5@pedro> Hello Gershon, we had the same troubles after installing A2003 (the whole CD was installed) when importing textfiles. Also we couldn't rename the fieldnames with the wizard. After installing the newest servicepack the problem was gone. Pedro Janssen ----- Original Message ----- From: To: Sent: Wednesday, March 09, 2005 5:51 PM Subject: [AccessD] importing text files > Hi all, > > I am using Access2003, attempting to import a text file. When I was > using Access2000, there I was able to import using file/get external > data/import, and specified a txt file. Now *.txt,*.csv...etc doesn't > appear on the dropdown box. Did this change in Access2003, or maybe this > is also related to my listbox wizards problems that I have been having? > > Thanks > > Gershon > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Wed Mar 9 13:59:04 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 9 Mar 2005 11:59:04 -0800 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Why not unzip the archive to a temp folder, add the files you want and then rezip the whole thing? Charlotte Foust -----Original Message----- From: Mcgillivray, Don [ITS] [mailto:donald.a.Mcgillivray at mail.sprint.com] Sent: Wednesday, March 09, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Wed Mar 9 14:53:28 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 9 Mar 2005 14:53:28 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Sorry, can't do that either . . . Maybe I should more fully describe what this system is doing. Nutshell version (much detail excluded for the sake of clarity): The system monitors folders on three remote servers - West coast, Midwest, and East coast. Taking each server in turn, the system detects text files with specific characteristics, logs their appearance to a table of tracking records, FTPs them to a local server, and deletes the originals from the remote server. Data from the transferred files is then loaded to a temp table and a series of summaries is produced from the data, with the results being pushed into tables for each type of summary. When complete, the tracking record is updated to reflect the completion, and the transferred files are zipped to an archive named for the date they were archived (yyymmdd.zip). The name of the archive file is then written to the file's tracking record so the file can be easily retrieved if necessary. Then, the files are deleted from the local server. This system monitors the remote servers 24 x 7 and processes over 20,000 files per month, ranging in size from 0 bytes to 15 megabytes. Finished zip files range in size from 1 to 80 megabytes, with the average falling somewhere around 30. Needless to say, a given zip file may contain hundreds of large files by the end of the day, and the overhead of un-zipping and re-zipping each time I want to add a file would bring the rest of the system to its knees. The system has been functioning very well for the last six months, but yesterday a brief outage on the server that holds the archives illustrated the risk of not validating the successful completion of the zip stage. (All other destructive actions are deferred until the safety of the data has been verified.) Unless I can come up with a reliable way to validate a successful zip, I may have to content myself with testing for connectivity to the archive server before and after writing to it, assuming that whatever happens in between is probably OK. Any other idears out there? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 09, 2005 11:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Why not unzip the archive to a temp folder, add the files you want and then rezip the whole thing? Charlotte Foust -----Original Message----- From: Mcgillivray, Don [ITS] [mailto:donald.a.Mcgillivray at mail.sprint.com] Sent: Wednesday, March 09, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Mar 9 15:51:49 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 9 Mar 2005 16:51:49 -0500 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DAE@xlivmbx21.aig.com> "Needless to say, a given zip file may contain hundreds of large files by the end of the day, and the overhead of un-zipping and re-zipping each time I want to add a file would bring the rest of the system to its knees. The system has been functioning very well for the last six months, but yesterday a brief outage on the server that holds the archives illustrated the risk of not validating the successful completion of the zip stage. (All other destructive actions are deferred until the safety of the data has been verified.) " I believe that when you ask Winzip to 'add' files to an existing zip file is that it actually extracts all the existing files to a temporary folder, then it zips them all back up, including the additional files. That's when you see the 'Copying Zip File" message. So you really don't have any performance hit to contend with if you do this manually. Lambert From Gustav at cactus.dk Thu Mar 10 03:46:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 Mar 2005 10:46:34 +0100 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Hi Donald One method could be to replace the direct call of Winzip in the command line with a call of a batch file. This batch file should run Winzip and then create a log file: echo Winzip completed > winzip.log or similar. Then test for the existence of the log file; it will not be created before Winzip has finished. You may also wish to check out cab files in favour of zip file. If I recall correctly they could be faster at adding single files, indeed for extracting. /gustav >>> donald.a.Mcgillivray at mail.sprint.com 09-03-2005 21:53:28 >>> Sorry, can't do that either . . . Maybe I should more fully describe what this system is doing. Nutshell version (much detail excluded for the sake of clarity): The system monitors folders on three remote servers - West coast, Midwest, and East coast. Taking each server in turn, the system detects text files with specific characteristics, logs their appearance to a table of tracking records, FTPs them to a local server, and deletes the originals from the remote server. Data from the transferred files is then loaded to a temp table and a series of summaries is produced from the data, with the results being pushed into tables for each type of summary. When complete, the tracking record is updated to reflect the completion, and the transferred files are zipped to an archive named for the date they were archived (yyymmdd.zip). The name of the archive file is then written to the file's tracking record so the file can be easily retrieved if necessary. Then, the files are deleted from the local server. This system monitors the remote servers 24 x 7 and processes over 20,000 files per month, ranging in size from 0 bytes to 15 megabytes. Finished zip files range in size from 1 to 80 megabytes, with the average falling somewhere around 30. Needless to say, a given zip file may contain hundreds of large files by the end of the day, and the overhead of un-zipping and re-zipping each time I want to add a file would bring the rest of the system to its knees. The system has been functioning very well for the last six months, but yesterday a brief outage on the server that holds the archives illustrated the risk of not validating the successful completion of the zip stage. (All other destructive actions are deferred until the safety of the data has been verified.) Unless I can come up with a reliable way to validate a successful zip, I may have to content myself with testing for connectivity to the archive server before and after writing to it, assuming that whatever happens in between is probably OK. Any other idears out there? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 09, 2005 11:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Why not unzip the archive to a temp folder, add the files you want and then rezip the whole thing? Charlotte Foust -----Original Message----- From: Mcgillivray, Don [ITS] [mailto:donald.a.Mcgillivray at mail.sprint.com] Sent: Wednesday, March 09, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Archiving files with Winzip Command Line version Andy, That would work, except that in actual practice I'm *adding* files to an existing archive, named according to the date the files are added to it. So, the zip may legitimately exist before starting the archive, and I can't kill it. Thanks for the input, though. Cheers! Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 09, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Archiving files with Winzip Command Line version Don You could use Dir in a loop to test for the zip existing. You'd have to Kill the file before too. Then set a time limit and drop out of the loop if the zip still didn't exist after that time. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mcgillivray, Don [ITS] > Sent: 09 March 2005 17:41 > To: AccessD > Subject: [AccessD] Archiving files with Winzip Command Line version > > > Hello, All > > In my app I'm archiving text files via VBA using the Winzip > command line and the ShellWait function I got from Dev > Ashish's web site. It works well, but I need to be able to > validate that the zip succeeds before moving on to the next > step in my code. I've been experimenting with a sample I > found that uses the Windows Script Host. Passing my Winzip > command line string to it causes the process to hang. (The > same string passed to ShellWait works in a flash.) I tried > it using a command line string for "Blat" to send a test > email, and that worked as expected - no hang. A code sample > is below. Am I overlooking something? Has anybody a better > solution for this requirement? > > Thanks! > > Don > > Function GetErrorLevel() > Dim wsShell As Object, Proc As Object, strCommand As > String, strErrLevel As String > Dim strZipFileName As String, strTargetFile as String, > strWinzipPath as String > > strWinzipPath = "C:\Archive\Winzip\WZZIP" > strZipFileName = "C:\Archive\TestZipFile.zip" > strTargetFile = "C:\Data\DM02TEST.txt" > > strCommand = strWinzipPath & " -a " & """" & > strZipFileName & """" & " " & """" & strTargetFile & """" > > 'Testing command line using ShellWait > 'ShellWait strCommand, vbHide > > Set wsShell = CreateObject("wscript.shell") > Set Proc = wsShell.Exec(strCommand) > > Do While Proc.Status = 0 > DoEvents 'Yields execution so that the operating system > can process other events > Loop > > 'Use proc.ExitCode to check for returned %errorlevel% > strErrLevel = "StdOut=" & Proc.StdOut.ReadAll() > strErrLevel = strErrLevel & Chr(13) & Chr(10) & "ExitCode=" > & Proc.ExitCode > > MsgBox (strErrLevel) > > Set wsShell = Nothing > Set Proc = Nothing > > End Function From paul.hartland at fsmail.net Thu Mar 10 04:02:53 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 10 Mar 2005 11:02:53 +0100 (CET) Subject: [AccessD] Outlook & Redemption Message-ID: <25686323.1110448973444.JavaMail.www@wwinf3003> To all, Has anyone any experience is using Outlook Redemption with Outlook 2000, I have never used this before so am looking for some easy to follow sample code, if anyone has any. Thanks in advance for all your help on this.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From andy at minstersystems.co.uk Thu Mar 10 04:41:04 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 10 Mar 2005 11:41:04 +0100 Subject: [AccessD] Outlook & Redemption Message-ID: <20050310114102.4591B2C4246@smtp.nildram.co.uk> Paul Yes. What do you want? Just code for sending an email? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd Subject: [AccessD] Outlook & Redemption Date: 10/03/05 10:05 > > To all, > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I have never used this before so am looking for some easy to follow sample code, if anyone has any. > > Thanks in advance for all your help on this.... > > Paul Hartland > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From paul.hartland at fsmail.net Thu Mar 10 05:50:39 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 10 Mar 2005 12:50:39 +0100 (CET) Subject: [AccessD] Outlook & Redemption Message-ID: <19085725.1110455439744.JavaMail.www@wwinf3001> Andy, Yes please, just code for sending an email with an attachment Thanks Paul Message date : Mar 10 2005, 11:42 AM >From : "Andy Lacey" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Outlook & Redemption Paul Yes. What do you want? Just code for sending an email? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd Subject: [AccessD] Outlook & Redemption Date: 10/03/05 10:05 > > To all, > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I have never used this before so am looking for some easy to follow sample code, if anyone has any. > > Thanks in advance for all your help on this.... > > Paul Hartland > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From andy at minstersystems.co.uk Thu Mar 10 05:16:42 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 10 Mar 2005 12:16:42 +0100 Subject: [AccessD] Outlook & Redemption Message-ID: <20050310121640.440C42C4379@smtp.nildram.co.uk> Paul This should get you going. I've trimmed extra stuff (error handling, filling arrays, etc) to keep it small. You'll work out those bits I'm sure. So this is the bare bones. Don't forget the reference to the Outlook library will you? Function RedemptionSendMessage(blnDisplay As Boolean) Dim astrTo() As String Dim astrCC() As String Dim astrBCC() As String Dim astrAttach() As String Dim intCounter As Integer Dim strBody As String Dim strSubject As String Dim objOutlook As Outlook.Application Dim objOutlookAttach As Outlook.Attachment Dim objOutlookMsg As Outlook.MailItem Dim objSafeMailItem As Object Dim objRecipient As Object 'Create the Outlook session Set objOutlook = CreateObject("Outlook.Application") 'Create the message Set objOutlookMsg = objOutlook.CreateItem(olMailItem) 'Attachments For intCounter = 1 To UBound(astrAttach) Set objOutlookAttach = objOutlookMsg.Attachments.Add(astrAttach(intCounter)) Next 'Create Redemption object Set objSafeMailItem = CreateObject("Redemption.SafeMailItem") 'Clone Outlook message as Redemption object objSafeMailItem.Item = objOutlookMsg 'Add recipients, (To, CC and BCC) With objSafeMailItem For intCounter = 1 To UBound(astrTo) Set objRecipient = .Recipients.Add(astrTo(intCounter)) objRecipient.Type = olTo Next For intCounter = 1 To UBound(astrCC) Set objRecipient = .Recipients.Add(astrCC(intCounter)) objRecipient.Type = olCC Next For intCounter = 1 To UBound(astrBCC) Set objRecipient = .Recipients.Add(astrBCC(intCounter)) objRecipient.Type = olBCC Next .Recipients.ResolveAll 'Subject and body .Subject = strSubject .Body = strBody 'Either display in Outlook or just send If blnDisplay = True Then .Display Else .Save .Send End If End With Set objRecipient = Nothing Set objOutlookAttach = Nothing Set objOutlookMsg = Nothing Set objOutlook = Nothing Set objSafeMailItem = Nothing End Function HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Outlook & Redemption Date: 10/03/05 11:51 > > Andy, > > Yes please, just code for sending an email with an attachment > > Thanks > > Paul > > > > > > Message date : Mar 10 2005, 11:42 AM > >From : "Andy Lacey" > To : "Access Developers discussion and problem solving" > Copy to : > Subject : Re: [AccessD] Outlook & Redemption > Paul > Yes. What do you want? Just code for sending an email? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: accessd > Subject: [AccessD] Outlook & Redemption > Date: 10/03/05 10:05 > > > > > To all, > > > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I > have never used this before so am looking for some easy to follow sample > code, if anyone has any. > > > > Thanks in advance for all your help on this.... > > > > Paul Hartland > > > > -- > > > > Whatever you Wanadoo: > > http://www.wanadoo.co.uk/time/ > > > > This email has been checked for most known viruses - find out more at: > http://www.wanadoo.co.uk/help/id/7098.htm > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From paul.hartland at fsmail.net Thu Mar 10 06:21:56 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 10 Mar 2005 13:21:56 +0100 (CET) Subject: [AccessD] Outlook & Redemption Message-ID: <12794241.1110457316111.JavaMail.www@wwinf3001> Thanks Andy, will have a play as soon as I get some free time today or tomorrow Message date : Mar 10 2005, 12:16 PM >From : "Andy Lacey" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: Re: [AccessD] Outlook & Redemption Paul This should get you going. I've trimmed extra stuff (error handling, filling arrays, etc) to keep it small. You'll work out those bits I'm sure. So this is the bare bones. Don't forget the reference to the Outlook library will you? Function RedemptionSendMessage(blnDisplay As Boolean) Dim astrTo() As String Dim astrCC() As String Dim astrBCC() As String Dim astrAttach() As String Dim intCounter As Integer Dim strBody As String Dim strSubject As String Dim objOutlook As Outlook.Application Dim objOutlookAttach As Outlook.Attachment Dim objOutlookMsg As Outlook.MailItem Dim objSafeMailItem As Object Dim objRecipient As Object 'Create the Outlook session Set objOutlook = CreateObject("Outlook.Application") 'Create the message Set objOutlookMsg = objOutlook.CreateItem(olMailItem) 'Attachments For intCounter = 1 To UBound(astrAttach) Set objOutlookAttach = objOutlookMsg.Attachments.Add(astrAttach(intCounter)) Next 'Create Redemption object Set objSafeMailItem = CreateObject("Redemption.SafeMailItem") 'Clone Outlook message as Redemption object objSafeMailItem.Item = objOutlookMsg 'Add recipients, (To, CC and BCC) With objSafeMailItem For intCounter = 1 To UBound(astrTo) Set objRecipient = .Recipients.Add(astrTo(intCounter)) objRecipient.Type = olTo Next For intCounter = 1 To UBound(astrCC) Set objRecipient = .Recipients.Add(astrCC(intCounter)) objRecipient.Type = olCC Next For intCounter = 1 To UBound(astrBCC) Set objRecipient = .Recipients.Add(astrBCC(intCounter)) objRecipient.Type = olBCC Next .Recipients.ResolveAll 'Subject and body .Subject = strSubject .Body = strBody 'Either display in Outlook or just send If blnDisplay = True Then .Display Else .Save .Send End If End With Set objRecipient = Nothing Set objOutlookAttach = Nothing Set objOutlookMsg = Nothing Set objOutlook = Nothing Set objSafeMailItem = Nothing End Function HTH -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Outlook & Redemption Date: 10/03/05 11:51 > > Andy, > > Yes please, just code for sending an email with an attachment > > Thanks > > Paul > > > > > > Message date : Mar 10 2005, 11:42 AM > >From : "Andy Lacey" > To : "Access Developers discussion and problem solving" > Copy to : > Subject : Re: [AccessD] Outlook & Redemption > Paul > Yes. What do you want? Just code for sending an email? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: accessd > Subject: [AccessD] Outlook & Redemption > Date: 10/03/05 10:05 > > > > > To all, > > > > Has anyone any experience is using Outlook Redemption with Outlook 2000, I > have never used this before so am looking for some easy to follow sample > code, if anyone has any. > > > > Thanks in advance for all your help on this.... > > > > Paul Hartland > > > > -- > > > > Whatever you Wanadoo: > > http://www.wanadoo.co.uk/time/ > > > > This email has been checked for most known viruses - find out more at: > http://www.wanadoo.co.uk/help/id/7098.htm > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > > Whatever you Wanadoo: > http://www.wanadoo.co.uk/time/ > > This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From bheid at appdevgrp.com Thu Mar 10 06:34:58 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 10 Mar 2005 07:34:58 -0500 Subject: [AccessD] Archiving files with Winzip Command Line version In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D345@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE896@ADGSERVER> I was under the impression that it was faster to add. When you add, it does not have to recompress the files that are already in the zip file. I think that it does copy all of the existing data to a new file, adds the new data to the file then copies it back over the original. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, March 09, 2005 4:52 PM To: 'Access Developers discussion and problem solving'; 'Mcgillivray, Don [ITS]' Subject: RE: [AccessD] Archiving files with Winzip Command Line version I believe that when you ask Winzip to 'add' files to an existing zip file is that it actually extracts all the existing files to a temporary folder, then it zips them all back up, including the additional files. That's when you see the 'Copying Zip File" message. So you really don't have any performance hit to contend with if you do this manually. Lambert From Lambert.Heenan at AIG.com Thu Mar 10 08:29:21 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 10 Mar 2005 09:29:21 -0500 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DB6@xlivmbx21.aig.com> It looks like your right. I just tested this by adding files to a large Zip and observing the contents of the Winzip working directory (and my Temp folder). All that happens is a single file appears (called _Z121234 or such like) and it grows to the size of the original Zip file then at the end of the append process it is deleted. So it seems like Winzip does not unzip and then rezip as I has assumed. Another demonstration of the old adage that " 'Assume' makes and ass out of u and me". :-) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid > Sent: Thursday, March 10, 2005 7:35 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Archiving files with Winzip Command Line > version > > I was under the impression that it was faster to add. When you add, it > does > not have to recompress the files that are already in the zip file. I > think > that it does copy all of the existing data to a new file, adds the new > data > to the file then copies it back over the original. > > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Wednesday, March 09, 2005 4:52 PM > To: 'Access Developers discussion and problem solving'; 'Mcgillivray, Don > [ITS]' > Subject: RE: [AccessD] Archiving files with Winzip Command Line version > > I believe that when you ask Winzip to 'add' files to an existing zip file > is > that it actually extracts all the existing files to a temporary folder, > then > it zips them all back up, including the additional files. That's when you > see the 'Copying Zip File" message. So you really don't have any > performance hit to contend with if you do this manually. > > Lambert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Mar 10 08:29:10 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 10 Mar 2005 09:29:10 -0500 Subject: [AccessD] Turn Off Up Down for Entire App Message-ID: Is there a way to apply keypreview=yes and apply turning the [pagedown] and [pageup] keys (code below) to my entire application as opposed to a form by form basis? This is strange. I created a function to call and placed =fnTurnOffUpDown() in the event for 'on key up' and 'on key down' and it does not work with that call. If I put the code in the event procedure, however, it does work. One more day and it is Friday.... What ever happened to the jokes that used to be posted on Friday? Select Case KeyCode Case 33, 34 KeyCode = 0 End Select From bchacc at san.rr.com Thu Mar 10 11:02:20 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 09:02:20 -0800 Subject: [AccessD] OT: Currency Display Message-ID: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Dear List: This is really a Windows question, I believe. I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. Does anyone know how to customize this setting so I can display RSh? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From jimdettman at earthlink.net Thu Mar 10 11:25:21 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 10 Mar 2005 12:25:21 -0500 Subject: [AccessD] OT: Currency Display In-Reply-To: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Message-ID: Rocky, You sure you need RSh? Swahili is Kenya's main language from what I remember, which gives you a S as the currency symbol, which is for shilling the official currency. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 10, 2005 12:02 PM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: Currency Display Dear List: This is really a Windows question, I believe. I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. Does anyone know how to customize this setting so I can display RSh? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Mar 10 11:28:07 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 10 Mar 2005 09:28:07 -0800 Subject: [AccessD] Turn Off Up Down for Entire App In-Reply-To: Message-ID: This is one of few times that it a macro should be used. AutoKeys macro should be able to take care of this, application wide. On another note... Q:Why did the Blond stare at the carton of Orange Juice? A:Because it said "Concentrate" ;) Q:Why did the blonde scale the chain-link fence? A: To see what was on the other side. Q: Why did the blonde keep a coat hanger in her back seat? A: In case she locks the keys in her car. David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Thursday, March 10, 2005 6:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] Turn Off Up Down for Entire App Is there a way to apply keypreview=yes and apply turning the [pagedown] and [pageup] keys (code below) to my entire application as opposed to a form by form basis? This is strange. I created a function to call and placed =fnTurnOffUpDown() in the event for 'on key up' and 'on key down' and it does not work with that call. If I put the code in the event procedure, however, it does work. One more day and it is Friday.... What ever happened to the jokes that used to be posted on Friday? Select Case KeyCode Case 33, 34 KeyCode = 0 End Select -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 10 11:26:28 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 12:26:28 -0500 Subject: [AccessD] Transfer complete? Message-ID: <001101c52596$4f688860$697aa8c0@ColbyM6805> How do you tell if a file transfer completes? I am working on a system where we send files to email addresses as attachments, and also FTP them to sites. We also receive Emails with attachments and may need to get them from FTP sites but that is another issue. The client is bring in a brand new software package at their end which gives me an opportunity to rewrite my end as well. I am developing a pair of classes - a transfer job and a transfer job supervisor - that can Email or FTP files from a directory location. The supervisor class of the whole system (which requests the documents) knows whether the file created is going to be emailed, FTPed or both and to where. As documents are created and stored on disk, records about the files are stored in a FileTransferJob table by this supervisor class along with the destination and type of transfer (Email or FTP). The TransferFile Supervisor then loads records from this table where the "TransferComplete" field is NULL, builds TransferFile class instances and saves them in a collection of files needing to be transmitted. Each TransferFile instance is then polled periodically telling it to perform the transfer. If the transfer completes successfully, the TransferFile instance updates it's associated record in the table and unloads itself from the supervisor's collection. The system sends New Claim Notices and Payment Requests (records) from my disability insurance call center software to the client insurer, and receives back from them claim numbers and check information. The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I am currently using a class (C)1998-99 Dev Ashish and Terry Kreft to do the FTP Transfer and I may be able to get feedback from the class on a variety of errors that may occur in their class - the remote site being down may be one of them. Unfortunately their class is poorly (not) documented so it is a problem trying to figure out how it works if something goes wrong. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From jwcolby at colbyconsulting.com Thu Mar 10 11:43:41 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 12:43:41 -0500 Subject: [AccessD] OT - Humor - a day early In-Reply-To: Message-ID: <001201c52598$b2ff9c40$697aa8c0@ColbyM6805> And of course... The blond is saying her evening prayers. "Please God let me win the lottery" The next day she does not win the lottery. The blond is saying her evening prayers. "Please, please God let me win the lottery" The next day she does not win the lottery. The blond is saying her evening prayers. "Please God, I REALLY need to win the lottery" The next day she does not win the lottery. The blond is saying her evening prayers. "Please God, I REALLY, REALLY, REAAAAAALLLLLY need to win the lottery" A voice from above - "Help me out here sweetheart, BUY A LOTTERY TICKET" John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ Q:Why did the Blond stare at the carton of Orange Juice? A:Because it said "Concentrate" ;) Q:Why did the blonde scale the chain-link fence? A: To see what was on the other side. Q: Why did the blonde keep a coat hanger in her back seat? A: In case she locks the keys in her car. David McAfee From cyx5 at cdc.gov Thu Mar 10 11:50:37 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 10 Mar 2005 12:50:37 -0500 Subject: [AccessD] Turn Off Up Down for Entire App Message-ID: So, have you seen the "BlondeStar" OnStar takeoff? I will send it to you off-line. The Blonde calling on-star for the locked keys syndrome. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, March 10, 2005 12:28 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Off Up Down for Entire App This is one of few times that it a macro should be used. AutoKeys macro should be able to take care of this, application wide. On another note... Q:Why did the Blond stare at the carton of Orange Juice? A:Because it said "Concentrate" ;) Q:Why did the blonde scale the chain-link fence? A: To see what was on the other side. Q: Why did the blonde keep a coat hanger in her back seat? A: In case she locks the keys in her car. David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Thursday, March 10, 2005 6:29 AM To: accessd at databaseadvisors.com Subject: [AccessD] Turn Off Up Down for Entire App Is there a way to apply keypreview=yes and apply turning the [pagedown] and [pageup] keys (code below) to my entire application as opposed to a form by form basis? This is strange. I created a function to call and placed =fnTurnOffUpDown() in the event for 'on key up' and 'on key down' and it does not work with that call. If I put the code in the event procedure, however, it does work. One more day and it is Friday.... What ever happened to the jokes that used to be posted on Friday? Select Case KeyCode Case 33, 34 KeyCode = 0 End Select -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Mar 10 11:55:44 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 Mar 2005 09:55:44 -0800 Subject: [AccessD] OT: Currency Display References: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Message-ID: <42308A20.2030809@shaw.ca> You might get some hints here, the Turkish lira switched symbols a couple of months back and dropped 6 zeros http://office.microsoft.com/en-us/assistance/HA011597031033.aspx Rocky Smolin - Beach Access Software wrote: >Dear List: > >This is really a Windows question, I believe. > >I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. > >Does anyone know how to customize this setting so I can display RSh? > >MTIA, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From bheid at appdevgrp.com Thu Mar 10 11:58:30 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Thu, 10 Mar 2005 12:58:30 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D4C7@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE89F@ADGSERVER> John, What if you had the receiving mail server reply that it got the e-mail? We had a system long ago where the client had an app that would mail in certain info. When the client e-mail was received at the main office, the e-mail was parsed and an "I got it" type of e-mail was sent back to the client with identifying info in it. When the client received this e-mail, it noted it in it's database. If the client did not receive the reply back in (I think) one hour, then it would resend the e-mail. I know that this was kind of kludgy, but it worked. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 10, 2005 12:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer complete? The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 10 11:58:01 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 Mar 2005 18:58:01 +0100 Subject: [AccessD] Transfer complete? Message-ID: Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 18:26:28 >>> How do you tell if a file transfer completes? From martyconnelly at shaw.ca Thu Mar 10 12:00:13 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 10 Mar 2005 10:00:13 -0800 Subject: [AccessD] OT: Currency Display References: <013101c52592$ec4cdb80$6601a8c0@HAL9002> Message-ID: <42308B2D.2080607@shaw.ca> Or maybe a display format like #,00"RSh"; -#,00"RSh" Rocky Smolin - Beach Access Software wrote: >Dear List: > >This is really a Windows question, I believe. > >I have a prospect in Kenya who needs the currency fields to display RSh instead of $. In the regional and language settings there are several selections for English, like Zimbabwe which displays Z$ for the currency field. You can also customize the currency symbol but only $ and the euro symbol are in my combo box. > >Does anyone know how to customize this setting so I can display RSh? > >MTIA, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From dmcafee at pacbell.net Thu Mar 10 12:09:39 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Thu, 10 Mar 2005 10:09:39 -0800 Subject: [AccessD] Turn Off Up Down for Entire App In-Reply-To: Message-ID: Is there a video to go with it? I heard the audio, and it was great! David -----Original Message----- From: Nicholson, Karen So, have you seen the "BlondeStar" OnStar takeoff? I will send it to you off-line. The Blonde calling on-star for the locked keys syndrome. From jwcolby at colbyconsulting.com Thu Mar 10 12:09:06 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 13:09:06 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: Message-ID: <001301c5259c$4008c690$697aa8c0@ColbyM6805> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 18:26:28 >>> How do you tell if a file transfer completes? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Mar 10 12:12:54 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 10 Mar 2005 13:12:54 -0500 Subject: [AccessD] Turn Off Up Down for Entire App Message-ID: No video, just audio. You can google Blondestar and the site holding it will come up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of dmcafee at pacbell.net Sent: Thursday, March 10, 2005 1:10 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Turn Off Up Down for Entire App Is there a video to go with it? I heard the audio, and it was great! David -----Original Message----- From: Nicholson, Karen So, have you seen the "BlondeStar" OnStar takeoff? I will send it to you off-line. The Blonde calling on-star for the locked keys syndrome. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 10 12:17:57 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 10 Mar 2005 19:17:57 +0100 Subject: [AccessD] Transfer complete? Message-ID: Hi John OK. For the client e-mail thing I used the dll from http://www.marshallsoft.com/ Not the cheapest but it has worked without a glitch. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 19:09:06 >>> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav From scapistrant at symphonyinfo.com Thu Mar 10 12:21:42 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Thu, 10 Mar 2005 12:21:42 -0600 Subject: [AccessD] You Send It Message-ID: <855499653F55AD4190B242717DF132BC04EED4@dewey.Symphony.local> On a related note, has anyone tried www.YouSendIt.com? Sorry if it's been discussed previously. Its a free website service that allows anyone to send large files, avoiding the complications of email attachments, zipping, and ftp software. We have struggled for years trying to talk clients through how to send their big MDBs to us (for fixing, enhancing, uncorrupting, etc). As developers, we have the know-how to zip a file and load it to an ftp site, but most clients do not, and that 30 minutes you spend with them is a horrible waste. Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Thursday, March 10, 2005 12:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Transfer complete? John, What if you had the receiving mail server reply that it got the e-mail? We had a system long ago where the client had an app that would mail in certain info. When the client e-mail was received at the main office, the e-mail was parsed and an "I got it" type of e-mail was sent back to the client with identifying info in it. When the client received this e-mail, it noted it in it's database. If the client did not receive the reply back in (I think) one hour, then it would resend the e-mail. I know that this was kind of kludgy, but it worked. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 10, 2005 12:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer complete? The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 10 13:52:38 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 10 Mar 2005 14:52:38 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: Message-ID: <001501c525aa$b9b14e00$697aa8c0@ColbyM6805> I just downloaded 3dFTP. Holy smoke batman, documentation! Ok a help file anyway. It sure looks good. I installed it an have code started already. Now I just need to read the api guide to see sample code. And the price is great, since I really only need a copy for my dev machine and a copy for the server at the client. Thanks again for sending that my way. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 1:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transfer complete? Hi John OK. For the client e-mail thing I used the dll from http://www.marshallsoft.com/ Not the cheapest but it has worked without a glitch. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 19:09:06 >>> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 10 15:09:56 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 13:09:56 -0800 Subject: [AccessD] OT: Currency Display References: Message-ID: <01b001c525b5$831c37a0$6601a8c0@HAL9002> That's what he says but I'll run the S by him to see if it will work. Rocky ----- Original Message ----- From: "Jim Dettman" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 9:25 AM Subject: RE: [AccessD] OT: Currency Display > Rocky, > > You sure you need RSh? > > Swahili is Kenya's main language from what I remember, which gives you a > S > as the currency symbol, which is for shilling the official currency. > > Jim. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, March 10, 2005 12:02 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] OT: Currency Display > > > Dear List: > > This is really a Windows question, I believe. > > I have a prospect in Kenya who needs the currency fields to display RSh > instead of $. In the regional and language settings there are several > selections for English, like Zimbabwe which displays Z$ for the currency > field. You can also customize the currency symbol but only $ and the euro > symbol are in my combo box. > > Does anyone know how to customize this setting so I can display RSh? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Thu Mar 10 15:12:44 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 13:12:44 -0800 Subject: [AccessD] OT: Currency Display References: <013101c52592$ec4cdb80$6601a8c0@HAL9002> <42308B2D.2080607@shaw.ca> Message-ID: <01c101c525b5$e74d5380$6601a8c0@HAL9002> What I may have to do is add a new option to my Preferences form - Currency symbol. Ack. Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 10:00 AM Subject: Re: [AccessD] OT: Currency Display > Or maybe a display format like > > #,00"RSh"; -#,00"RSh" > > Rocky Smolin - Beach Access Software wrote: > >>Dear List: >> >>This is really a Windows question, I believe. >>I have a prospect in Kenya who needs the currency fields to display RSh >>instead of $. In the regional and language settings there are several >>selections for English, like Zimbabwe which displays Z$ for the currency >>field. You can also customize the currency symbol but only $ and the euro >>symbol are in my combo box. >> >>Does anyone know how to customize this setting so I can display RSh? >> >>MTIA, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Thu Mar 10 15:46:34 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 10 Mar 2005 22:46:34 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B587D@stekelbes.ithelps.local> In the regional settings you can choose English sout Africa and you will have a R as prefix. If you really want RSh you can click on the buttom next to it (change?) and just type anything you want in curency symbol... However, this would be necesary on every computer. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 10, 2005 10:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display What I may have to do is add a new option to my Preferences form - Currency symbol. Ack. Rocky ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 10:00 AM Subject: Re: [AccessD] OT: Currency Display > Or maybe a display format like > > #,00"RSh"; -#,00"RSh" > > Rocky Smolin - Beach Access Software wrote: > >>Dear List: >> >>This is really a Windows question, I believe. >>I have a prospect in Kenya who needs the currency fields to display RSh >>instead of $. In the regional and language settings there are several >>selections for English, like Zimbabwe which displays Z$ for the currency >>field. You can also customize the currency symbol but only $ and the euro >>symbol are in my combo box. >> >>Does anyone know how to customize this setting so I can display RSh? >> >>MTIA, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Thu Mar 10 16:00:39 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Thu, 10 Mar 2005 16:00:39 -0600 Subject: [AccessD] Archiving files with Winzip Command Line version Message-ID: Thank you, Gustav. That approach would probably do the trick. I'll have a look at the cab option, too. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 1:47 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Archiving files with Winzip Command Line version Hi Donald One method could be to replace the direct call of Winzip in the command line with a call of a batch file. This batch file should run Winzip and then create a log file: echo Winzip completed > winzip.log or similar. Then test for the existence of the log file; it will not be created before Winzip has finished. You may also wish to check out cab files in favour of zip file. If I recall correctly they could be faster at adding single files, indeed for extracting. /gustav From robert at servicexp.com Thu Mar 10 16:36:54 2005 From: robert at servicexp.com (Robert Gracie) Date: Thu, 10 Mar 2005 17:36:54 -0500 Subject: [AccessD] TEST Message-ID: <3C6BD610FA11044CADFC8C13E6D5508F4E34@gbsserver.GBS.local> TEST From bchacc at san.rr.com Thu Mar 10 18:01:15 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 10 Mar 2005 16:01:15 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B587D@stekelbes.ithelps.local> Message-ID: <024b01c525cd$71b1d390$6601a8c0@HAL9002> Erwin: The button next to the language selection is labeled Customize and opens a dialog box where you can select a currency symbol from a combo box, but that only shows R, $ and the euro symbol. No option on my system to input your own symbol. Do you have that option on your system? Thanks and Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 1:46 PM Subject: RE: [AccessD] OT: Currency Display > In the regional settings you can choose English sout Africa and you will > have a R as prefix. > If you really want RSh you can click on the buttom next to it (change?) > and just type anything you want in curency symbol... > However, this would be necesary on every computer. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 10, 2005 10:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > What I may have to do is add a new option to my Preferences form - > Currency symbol. Ack. > > Rocky > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 10:00 AM > Subject: Re: [AccessD] OT: Currency Display > > >> Or maybe a display format like >> >> #,00"RSh"; -#,00"RSh" >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>This is really a Windows question, I believe. >>>I have a prospect in Kenya who needs the currency fields to display > RSh >>>instead of $. In the regional and language settings there are several > >>>selections for English, like Zimbabwe which displays Z$ for the > currency >>>field. You can also customize the currency symbol but only $ and the > euro >>>symbol are in my combo box. >>> >>>Does anyone know how to customize this setting so I can display RSh? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Mar 10 20:55:05 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 11 Mar 2005 13:55:05 +1100 Subject: [AccessD] A2003: Runtime Error Type Mismatch Message-ID: <200503110255.j2B2t9lE022144@cooper.uws.edu.au> (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ From d.dick at uws.edu.au Thu Mar 10 22:36:13 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 11 Mar 2005 15:36:13 +1100 Subject: [AccessD] FW: A2003: Runtime Error Type Mismatch (SOLVED) Message-ID: <200503110436.j2B4aIlE003468@cooper.uws.edu.au> Hello all Got an answer from Sue Needed to replace the early binding item... Dim myAppt As Outlook.AppointmentItem With Dim myAppt As object See y'all Darren ORIGINAL MESSAGE: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ From accessd666 at yahoo.com Fri Mar 11 00:53:17 2005 From: accessd666 at yahoo.com (Sad Der) Date: Thu, 10 Mar 2005 22:53:17 -0800 (PST) Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <003101c524bf$07e44100$697aa8c0@ColbyM6805> Message-ID: <20050311065317.55734.qmail@web31610.mail.mud.yahoo.com> You both have good points. I explained this to them and they understand the risks...if they do anything with it.... However, because the risk of users trashing the DB is so high this is a project in wich I do not take any responsible what so ever when anything crashes, data is incorrect etc. To avoid as much problems as possible in the future I created a lot of logging tables etc so I can see what tables were linked and wich queries run to create a certain Excel report. How many rows the report has etc. So, thnx a lot for the answers and discussion but now it's time to do some programming. ~Sander --- "John W. Colby" wrote: > When I have users that need to run their own queries > I set them up with a > local (to their machine) front end, linked to all > the necessary tables. > They can then build queries and reports to their > heart's content. It is > important to know that they know what they are doing > because they are > "directly in the tables" with queries and can trash > the db pretty easily. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 09, 2005 10:20 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > Makes supporting a database pretty exciting, then, > doesn't it? When it > breaks, you just never know what you're going to > find. > > So if they can handle modifying their own queries, > can't they fill in the > blank in the parameter prompt? > > Rocky > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Wednesday, March 09, 2005 1:43 AM > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > >I completely agree user should not mess around in > the database. > >However this is a very clear demand. Users must > have access to the > >queries to alter them at any time!! > > > > Thnx anyway. > > --- Rocky Smolin - Beach Access Software > > wrote: > > > >> Sander: > >> > >> I always take parameters from a form. Don't like > to > >> let the users muck > >> around in the database container. So get the > >> parameter into the query I > >> make a > >> > >> Public Function GetParameterX > >> > >> > > > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > >> End Function > >> > >> Then in the query under criteria I put > >> GetParameterX() and it fetches the > >> contents of the text box from the form when it > runs. > >> > >> Probably not the most elegant solution but it > works > >> and its easy. But you > >> have to run the query from the form. > >> > >> The users I write for prefer it. Almost none of > >> them would know how to run > >> a query from the database container and most > don't > >> even know what a query > >> is. > >> > >> HTH > >> > >> Rocky Smolin > >> Beach Access Software > >> http://www.e-z-mrp.com > >> 858-259-4334 > >> > >> ----- Original Message ----- > >> From: "Sad Der" > >> To: "Access Developers discussion and problem > >> solving" > >> > >> Sent: Tuesday, March 08, 2005 6:33 AM > >> Subject: RE: [AccessD] Automating parameterized > >> action queries..... > >> > >> > >> >I also thought of that but I hoped their was a > way > >> to > >> > fill the parameters per query with form input. > >> > > >> > That way i could make a form for the users in > wich > >> > they can enter: > >> > - a new report > >> > - queries per report > >> > - parameters per query > >> > - parametertype per parameter (eg date, number, > >> etc) > >> > > >> > With this info I could, based on a report > >> selection > >> > build a form dynamicly. > >> > > >> > Well I have to look at this some more and let > the > >> > customer decide. > >> > > >> > Regards, > >> > > >> > Sander > >> > > >> > --- Bobby Heid wrote: > >> >> Why not have two sets of queries, one set that > >> looks > >> >> to a form (this one is > >> >> called programmatically), and one set that > >> queries > >> >> the user for the > >> >> parameters? > >> >> > >> >> Bobby > >> >> > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [mailto:accessd-bounces at databaseadvisors.com] > On > >> >> Behalf Of Sad Der > >> >> Sent: Tuesday, March 08, 2005 8:10 AM > >> >> To: Access Developers discussion and problem > >> solving > >> >> Subject: RE: [AccessD] Automating > parameterized > >> >> action queries..... > >> >> > >> >> > >> >> You are correct. However the queries are not > >> >> executed > >> >> via from several forms but they are executed: > >> >> 1- via one form > >> >> 2- a user manually clicks it in the database > >> >> container. > >> >> > >> >> The process is as follows: > >> >> 1 - the reports (xls files) are stored in the > >> >> database > >> >> 2 - the queries that create the report are > also > >> >> stored > >> >> in the database > >> >> 3 - the user selects a report > >> >> 4 - the necessary queries are executed one by > one > >> >> > >> >> However, several times a week a manager > requests > >> a > >> >> part of the report that is slightly different > >> from > >> >> the original. A user then > >> >> must have the change to quickly adjust the > query > >> and > >> >> run it manually. > >> >> > >> >> HTH > >> >> > >> >> Sander > >> >> > >> >> > >> >> --- Bobby Heid wrote: > >> >> > If you are not wanting to encode a > particular > >> form > >> >> > field because the query > >> >> > is called from several forms, might I > suggest > >> that > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Erwin.Craps at ithelps.be Fri Mar 11 02:51:01 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 09:51:01 +0100 Subject: [AccessD] A2003: Runtime Error Type Mismatch Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5882@stekelbes.ithelps.local> I kown that one... Had same prob with E-mails... Not all items in your calender are necesary appointment items. Your code fails on one item in your calender that could be an another Outlook or customized type item. I had this with E-mails, the virus warnings but als incoming faxes where not an e-mail item. You should declare this way Dim myAppt As object But you will need to check each item to see if it is an appointment or not in your loop and do the appropriate thing with it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, March 11, 2005 3:55 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Runtime Error Type Mismatch (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 11 02:52:01 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 09:52:01 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5883@stekelbes.ithelps.local> I know But dont click on the combo box, just type any text you want in the field... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, March 11, 2005 1:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display Erwin: The button next to the language selection is labeled Customize and opens a dialog box where you can select a currency symbol from a combo box, but that only shows R, $ and the euro symbol. No option on my system to input your own symbol. Do you have that option on your system? Thanks and Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 1:46 PM Subject: RE: [AccessD] OT: Currency Display > In the regional settings you can choose English sout Africa and you will > have a R as prefix. > If you really want RSh you can click on the buttom next to it (change?) > and just type anything you want in curency symbol... > However, this would be necesary on every computer. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 10, 2005 10:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > What I may have to do is add a new option to my Preferences form - > Currency symbol. Ack. > > Rocky > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 10:00 AM > Subject: Re: [AccessD] OT: Currency Display > > >> Or maybe a display format like >> >> #,00"RSh"; -#,00"RSh" >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>This is really a Windows question, I believe. >>>I have a prospect in Kenya who needs the currency fields to display > RSh >>>instead of $. In the regional and language settings there are several > >>>selections for English, like Zimbabwe which displays Z$ for the > currency >>>field. You can also customize the currency symbol but only $ and the > euro >>>symbol are in my combo box. >>> >>>Does anyone know how to customize this setting so I can display RSh? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 11 02:54:09 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 09:54:09 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5884@stekelbes.ithelps.local> And yes I can type anything I want in that space. Always has been from W95 on... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Friday, March 11, 2005 9:52 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Currency Display I know But dont click on the combo box, just type any text you want in the field... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, March 11, 2005 1:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display Erwin: The button next to the language selection is labeled Customize and opens a dialog box where you can select a currency symbol from a combo box, but that only shows R, $ and the euro symbol. No option on my system to input your own symbol. Do you have that option on your system? Thanks and Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 10, 2005 1:46 PM Subject: RE: [AccessD] OT: Currency Display > In the regional settings you can choose English sout Africa and you will > have a R as prefix. > If you really want RSh you can click on the buttom next to it (change?) > and just type anything you want in curency symbol... > However, this would be necesary on every computer. > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 10, 2005 10:13 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > What I may have to do is add a new option to my Preferences form - > Currency symbol. Ack. > > Rocky > > ----- Original Message ----- > From: "MartyConnelly" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 10:00 AM > Subject: Re: [AccessD] OT: Currency Display > > >> Or maybe a display format like >> >> #,00"RSh"; -#,00"RSh" >> >> Rocky Smolin - Beach Access Software wrote: >> >>>Dear List: >>> >>>This is really a Windows question, I believe. >>>I have a prospect in Kenya who needs the currency fields to display > RSh >>>instead of $. In the regional and language settings there are several > >>>selections for English, like Zimbabwe which displays Z$ for the > currency >>>field. You can also customize the currency symbol but only $ and the > euro >>>symbol are in my combo box. >>> >>>Does anyone know how to customize this setting so I can display RSh? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.com >>>858-259-4334 >>> >> >> -- >> Marty Connelly >> Victoria, B.C. >> Canada >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 11 03:03:30 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 10:03:30 +0100 Subject: [AccessD] FW: A2003: Runtime Error Type Mismatch (SOLVED) Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5886@stekelbes.ithelps.local> Darren, It's not an early binding issue.... (read my other post) It's a type issue. Not all items in an outlook folder are necesary from the same type. So indeed you need to change your declaration to object BUT You also need to check in your loop to only process the appointment items.... And/or to process the other items appropriatly. You code can still fail if you request a specific appointment property on a non-appointment item... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, March 11, 2005 5:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: A2003: Runtime Error Type Mismatch (SOLVED) Hello all Got an answer from Sue Needed to replace the early binding item... Dim myAppt As Outlook.AppointmentItem With Dim myAppt As object See y'all Darren ORIGINAL MESSAGE: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (Cross Posted to Dmitry and Sue's List) Hello all I have the code below working fine until today It errors on the last line in this code The error is Runtime Error 13 Type Mismatch Can anyone explain why it used to work - now it doesn't? References are good - Though once this rubbish started I manually removed them and re attached them - no luck OFFICE 11 May thanks in Advance Darren '+++++++++++++++++++ Dim ol As Outlook.Application Dim olns As Outlook.NameSpace Dim objFolder As Outlook.MAPIFolder Dim AllAppts As Outlook.Items Dim myAppt As Outlook.AppointmentItem Set ol = New Outlook.Application Set olns = ol.GetNamespace("MAPI") Set objFolder = olns.GetDefaultFolder(olFolderCalendar) Set AllAppts = objFolder.Items Dim appSQL As String Dim strOutLookID As String For Each myAppt In AllAppts '<======ERROR IS HERE '++++++++++ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Fri Mar 11 03:36:05 2005 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 11 Mar 2005 01:36:05 -0800 (PST) Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: 6667 Message-ID: <20050311093605.74120.qmail@web31602.mail.mud.yahoo.com> Hi group, after almost 3 hours I give up. I'm using Ken's solution and it works great. I'm using for all my params....off course then I crashed into a F#$@ng date field. Can anybody tell me why code does not return a date? What am I missing? Module: mParams Option Compare Database Option Explicit Public oRptParam As cReportParams Public Function ParamVersion() As Variant 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If ParamVersion = oRptParam.Version If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function Public Function ParamNewBusinessDate() As Date 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If '???????????????????????????????????????????????????? '===> Somehow ParamNewBusinessDate stays 00:00:00???? '???????????????????????????????????????????????????? ParamNewBusinessDate = oRptParam.NewBusinessDate If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function CLASS cReportParams Option Compare Database Option Explicit Private mVersion As String Private mdtmNewBusinessDate As Variant 'This parameter checks if the query is run via a form! Private mFormDriven As Boolean Property Get Version() As String Dim strVersion As String If mFormDriven Then Version = mVersion Else If mVersion = "" Then strVersion = InputBox("Enter the version:") If strVersion > "" Then mVersion = strVersion End If Version = mVersion Else Version = mVersion End If End If End Property Property Let Version(VersionIn As String) mVersion = VersionIn End Property Property Get NewBusinessDate() As Variant Dim dtmNewBusinessDate As Date If mFormDriven Then NewBusinessDate = mdtmNewBusinessDate Else If mdtmNewBusinessDate = "00:00:00" Then 'I fill the InputBox with the value 22/02/2005 dtmNewBusinessDate = InputBox("Enter the new business date:") If Not dtmNewBusinessDate = "00:00:00" Then mdtmNewBusinessDate = dtmNewBusinessDate End If Else NewBusinessDate = mdtmNewBusinessDate End If End If End Property Property Let NewBusinessDate(NewBusinessDateIn As Variant) mdtmNewBusinessDate = NewBusinessDateIn End Property Property Let FormDriven(FormDrivenIN As Boolean) mFormDriven = FormDrivenIN End Property Property Get FormDriven() As Boolean FormDriven = mFormDriven End Property Private Sub Class_Initialize() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub Private Sub Class_Terminate() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub ----------------------------------------------------- If somebody needs more details....please ask! Thnx. Regards, Sander --- Ken Ismert wrote: > Sander, > > There is a class-based approach: > > Define a class, CReportParms, with two variant > properties, Version and > StartDate: > > Private mVersion As Variant > Private mStartDate As Variant > > Property Get Version() As Variant > Version = mVersion > End Property > Property Let Version(VersionIn As Variant) > mVersion = VersionIn > End Property > > ' (Similar Get/Let for StartDate) > > Private Sub Class_Initialize() > mVersion = Null > mStartDate = Null > End Sub > > Declare it as global in one of your modules: > > Public gRptParms As New CReportParms > > Provide two global functions to use in your queries > in place of your > parameters: > > Public Function ParmVersion() As Variant > Parms = gRptParms.Version > End Function > Public Function ParmStartDate() As Variant > Parms = gRptParms.StartDate > End Function > > You can set these properties in your form before you > run your report: > > gRptParms.Version = txtVersion > gRptParms.StartDate = txtStartDate > > If you can calculate reasonable values for Version > and StartDate, you can do > so in the CReportParms Initialize event. > Alternately, you can prompt the > user in the class when the queries are run > standalone: > > Property Get Version() As Variant > Dim sVersion As String > If IsNull(mVersion) Then > sVersion = InputBox("Enter Version:") > If sVersion > "" Then > mVersion = CLng(sVersion) > End If > End If > Version = mVersion > End Property > > You could also have a third property, FormDriven, > that, when set to True, > doesn't prompt the user. Only your frmReport form > will set this property, > and clear it upon exit. That way, the user is always > prompted when running > the queries stand-alone. > > -Ken > > > Hi group, > > > > my story of the queries continues. I need to > > run a set of action queries. This works fine. > > > > Several queries have parameters. So that means > > the user has to watch the screen for a > > parameter to pop-up. Is it possible to add > > some parameter fields in the form to fill > > the required parameters...WITHOUT changing > > the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Fri Mar 11 05:03:17 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Mar 2005 12:03:17 +0100 Subject: [AccessD] Transfer complete? Message-ID: Hi John Great. I've sent you off-line for inspiration the code I use for uploading. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 20:52:38 >>> I just downloaded 3dFTP. Holy smoke batman, documentation! Ok a help file anyway. It sure looks good. I installed it an have code started already. Now I just need to read the api guide to see sample code. And the price is great, since I really only need a copy for my dev machine and a copy for the server at the client. Thanks again for sending that my way. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 1:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Transfer complete? Hi John OK. For the client e-mail thing I used the dll from http://www.marshallsoft.com/ Not the cheapest but it has worked without a glitch. /gustav >>> jwcolby at colbyconsulting.com 10-03-2005 19:09:06 >>> Gustav, Thanks for the input. I will definitely check out the 3D-FTP. Unfortunately I have to ability to set up a mail server at the receiving end. In theory this whole thing will be done via FTP for the new software at their end, however I was told the other day we would still be sending email attachments for some claim types. These email TO lists can vary at a moment's notice and can have one or a dozen recipients. All I really want to know is that it made it out of my server. If it fails to be received by their end (occasionally) for some reason... then they will call and request a re-transmit. The docs I send out they know are coming and if they don't appear they ask for them. At least that is true for the Advise to Pay DOCS. The New Claim Notice docs we have set up a system for looking for a lack of a claim number coming back within X days. REALLY CRUDE. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, March 10, 2005 12:58 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Transfer complete? Hi John First, I will recommend using a package for this purpose like 3D-FTP: http://www.3dftp.com and the SDK: http://www.3dftp.com/api.htm It's only USD 40 and it will save you a lot of trouble. With this you can automate the whole thing using events and methods for all sort of things. Further it runs very fast if you have to transfer multiple files and it adds a status window so the user or operator is not lost during long transfers. We have it running at a client uploading batches of more than 1000 files a time and it has run without any error for three years. Second, to do it the traditional way with command line ftp where you have no access to the ftp session, upload as the last file in a batch a small log file containing a time stamp, rename it on the remote server, download it, compare it with the uploaded file - and if they match, rename it on the local server. Now check for this file; if and when it is present, the transfer can be considered successful as the file otherwise would not be present. For mail it is much more complicated. The only method I've found is to set up a custom mail server at the receiving end configured to send back a receipt which you check for. I used Mercury/32 and Access for this. Works nice but needs a little maintenance. If you can go the FTP route, do that. /gustav From jwcolby at colbyconsulting.com Fri Mar 11 05:50:57 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 11 Mar 2005 06:50:57 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <20050311065317.55734.qmail@web31610.mail.mud.yahoo.com> Message-ID: <001f01c52630$96653cf0$697aa8c0@ColbyM6805> BTW, you can create base queries, one for each table, which simply do a SELECT * FROM TBLX. Then open the properties for the query and make it a snapshot query. Now have them use those base queries instead of using the table directly. Because the base queries are snapshot queries, no data can be changed. If they go around those queries to use the tables all bets are off. You could of course use Access security to give them access to the queries but not the tables. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Friday, March 11, 2005 1:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries..... You both have good points. I explained this to them and they understand the risks...if they do anything with it.... However, because the risk of users trashing the DB is so high this is a project in wich I do not take any responsible what so ever when anything crashes, data is incorrect etc. To avoid as much problems as possible in the future I created a lot of logging tables etc so I can see what tables were linked and wich queries run to create a certain Excel report. How many rows the report has etc. So, thnx a lot for the answers and discussion but now it's time to do some programming. ~Sander --- "John W. Colby" wrote: > When I have users that need to run their own queries > I set them up with a > local (to their machine) front end, linked to all > the necessary tables. > They can then build queries and reports to their > heart's content. It is > important to know that they know what they are doing > because they are > "directly in the tables" with queries and can trash > the db pretty easily. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 09, 2005 10:20 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > Makes supporting a database pretty exciting, then, > doesn't it? When it > breaks, you just never know what you're going to > find. > > So if they can handle modifying their own queries, > can't they fill in the > blank in the parameter prompt? > > Rocky > > ----- Original Message ----- > From: "Sad Der" > To: "Access Developers discussion and problem > solving" > > Sent: Wednesday, March 09, 2005 1:43 AM > Subject: Re: [AccessD] Automating parameterized > action queries..... > > > >I completely agree user should not mess around in > the database. > >However this is a very clear demand. Users must > have access to the > >queries to alter them at any time!! > > > > Thnx anyway. > > --- Rocky Smolin - Beach Access Software wrote: > > > >> Sander: > >> > >> I always take parameters from a form. Don't like > to > >> let the users muck > >> around in the database container. So get the > >> parameter into the query I > >> make a > >> > >> Public Function GetParameterX > >> > >> > > > GetParameterX=Forms!frmWhatever!txtBoxHoldingParameter > >> End Function > >> > >> Then in the query under criteria I put > >> GetParameterX() and it fetches the > >> contents of the text box from the form when it > runs. > >> > >> Probably not the most elegant solution but it > works > >> and its easy. But you > >> have to run the query from the form. > >> > >> The users I write for prefer it. Almost none of > >> them would know how to run > >> a query from the database container and most > don't > >> even know what a query > >> is. > >> > >> HTH > >> > >> Rocky Smolin > >> Beach Access Software > >> http://www.e-z-mrp.com > >> 858-259-4334 > >> > >> ----- Original Message ----- > >> From: "Sad Der" > >> To: "Access Developers discussion and problem > >> solving" > >> > >> Sent: Tuesday, March 08, 2005 6:33 AM > >> Subject: RE: [AccessD] Automating parameterized > >> action queries..... > >> > >> > >> >I also thought of that but I hoped their was a > way > >> to > >> > fill the parameters per query with form input. > >> > > >> > That way i could make a form for the users in > wich > >> > they can enter: > >> > - a new report > >> > - queries per report > >> > - parameters per query > >> > - parametertype per parameter (eg date, number, > >> etc) > >> > > >> > With this info I could, based on a report > >> selection > >> > build a form dynamicly. > >> > > >> > Well I have to look at this some more and let > the > >> > customer decide. > >> > > >> > Regards, > >> > > >> > Sander > >> > > >> > --- Bobby Heid wrote: > >> >> Why not have two sets of queries, one set that > >> looks > >> >> to a form (this one is > >> >> called programmatically), and one set that > >> queries > >> >> the user for the > >> >> parameters? > >> >> > >> >> Bobby > >> >> > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [mailto:accessd-bounces at databaseadvisors.com] > On > >> >> Behalf Of Sad Der > >> >> Sent: Tuesday, March 08, 2005 8:10 AM > >> >> To: Access Developers discussion and problem > >> solving > >> >> Subject: RE: [AccessD] Automating > parameterized > >> >> action queries..... > >> >> > >> >> > >> >> You are correct. However the queries are not > >> >> executed > >> >> via from several forms but they are executed: > >> >> 1- via one form > >> >> 2- a user manually clicks it in the database > >> >> container. > >> >> > >> >> The process is as follows: > >> >> 1 - the reports (xls files) are stored in the > >> >> database > >> >> 2 - the queries that create the report are > also > >> >> stored > >> >> in the database > >> >> 3 - the user selects a report > >> >> 4 - the necessary queries are executed one by > one > >> >> > >> >> However, several times a week a manager > requests > >> a > >> >> part of the report that is slightly different > >> from > >> >> the original. A user then > >> >> must have the change to quickly adjust the > query > >> and > >> >> run it manually. > >> >> > >> >> HTH > >> >> > >> >> Sander > >> >> > >> >> > >> >> --- Bobby Heid wrote: > >> >> > If you are not wanting to encode a > particular > >> form > >> >> > field because the query > >> >> > is called from several forms, might I > suggest > >> that > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Mar 11 06:17:31 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 11 Mar 2005 13:17:31 +0100 (CET) Subject: [AccessD] Mapping API's Message-ID: <8660631.1110543451613.JavaMail.www@wwinf3101> To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From bheid at appdevgrp.com Fri Mar 11 06:39:28 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 11 Mar 2005 07:39:28 -0500 Subject: [AccessD] Mapping API's In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B1D61A@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE8A5@ADGSERVER> I have not done this, but something like Map Point may be what you are looking for. This is a Microsoft mapping solution. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, March 11, 2005 7:18 AM To: accessd Subject: [AccessD] Mapping API's To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland From jimdettman at earthlink.net Fri Mar 11 07:54:00 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 11 Mar 2005 08:54:00 -0500 Subject: [AccessD] Transfer complete? In-Reply-To: <001101c52596$4f688860$697aa8c0@ColbyM6805> Message-ID: John, For e-mail, all you can be sure of is that the SMTP server your talking to got the e-mail and sent it. As for FTP, I log the "conversation" between the two servers to a text file. Once the file transfer is complete, I parse the text file for: "File Transfer Complete" Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, March 10, 2005 12:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer complete? How do you tell if a file transfer completes? I am working on a system where we send files to email addresses as attachments, and also FTP them to sites. We also receive Emails with attachments and may need to get them from FTP sites but that is another issue. The client is bring in a brand new software package at their end which gives me an opportunity to rewrite my end as well. I am developing a pair of classes - a transfer job and a transfer job supervisor - that can Email or FTP files from a directory location. The supervisor class of the whole system (which requests the documents) knows whether the file created is going to be emailed, FTPed or both and to where. As documents are created and stored on disk, records about the files are stored in a FileTransferJob table by this supervisor class along with the destination and type of transfer (Email or FTP). The TransferFile Supervisor then loads records from this table where the "TransferComplete" field is NULL, builds TransferFile class instances and saves them in a collection of files needing to be transmitted. Each TransferFile instance is then polled periodically telling it to perform the transfer. If the transfer completes successfully, the TransferFile instance updates it's associated record in the table and unloads itself from the supervisor's collection. The system sends New Claim Notices and Payment Requests (records) from my disability insurance call center software to the client insurer, and receives back from them claim numbers and check information. The issue is how do you determine that an email (or FTP) transmitted correctly. My current rev of the software has problems where the email is "sent" but the email server at DIS was down for backup (for example) and while the documents are sitting out on the disk, the transfer did not complete correctly (no email sent). We are not doing FTPs yet but I foresee similar issues where the destination is not on the internet for some reason and the transfer does not occur. One of the reasons I want to build a generic system like this is that in the event of a failure, the file record TransferComplete field can be set back to null and it will just be re-transmitted automatically. I am currently using a class (C)1998-99 Dev Ashish and Terry Kreft to do the FTP Transfer and I may be able to get feedback from the class on a variety of errors that may occur in their class - the remote site being down may be one of them. Unfortunately their class is poorly (not) documented so it is a problem trying to figure out how it works if something goes wrong. I'm really looking for developers who have done this and can discuss their solutions to this issue. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Mar 11 08:11:48 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 11 Mar 2005 06:11:48 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B5883@stekelbes.ithelps.local> Message-ID: <004501c52644$4407f150$6601a8c0@HAL9002> Erwin: I can't believe it. It works! What a dope I feel like! Who'd have believed that they'd implement a not in list for that field? Anyway. Thanks. That solves a big problem. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Friday, March 11, 2005 12:52 AM Subject: RE: [AccessD] OT: Currency Display >I know > But dont click on the combo box, just type any text you want in the > field... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Friday, March 11, 2005 1:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > Erwin: > > The button next to the language selection is labeled Customize and opens > a dialog box where you can select a currency symbol from a combo box, > but that only shows R, $ and the euro symbol. No option on my system to > input your own symbol. Do you have that option on your system? > > Thanks and Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 1:46 PM > Subject: RE: [AccessD] OT: Currency Display > > >> In the regional settings you can choose English sout Africa and you > will >> have a R as prefix. >> If you really want RSh you can click on the buttom next to it > (change?) >> and just type anything you want in curency symbol... >> However, this would be necesary on every computer. >> >> Erwin >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Thursday, March 10, 2005 10:13 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Currency Display >> >> What I may have to do is add a new option to my Preferences form - >> Currency symbol. Ack. >> >> Rocky >> >> ----- Original Message ----- >> From: "MartyConnelly" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 10, 2005 10:00 AM >> Subject: Re: [AccessD] OT: Currency Display >> >> >>> Or maybe a display format like >>> >>> #,00"RSh"; -#,00"RSh" >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>>Dear List: >>>> >>>>This is really a Windows question, I believe. >>>>I have a prospect in Kenya who needs the currency fields to display >> RSh >>>>instead of $. In the regional and language settings there are > several >> >>>>selections for English, like Zimbabwe which displays Z$ for the >> currency >>>>field. You can also customize the currency symbol but only $ and the >> euro >>>>symbol are in my combo box. >>>> >>>>Does anyone know how to customize this setting so I can display RSh? >>>> >>>>MTIA, >>>> >>>>Rocky Smolin >>>>Beach Access Software >>>>http://www.e-z-mrp.com >>>>858-259-4334 >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Erwin.Craps at ithelps.be Fri Mar 11 08:36:25 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 11 Mar 2005 15:36:25 +0100 Subject: [AccessD] OT: Currency Display Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B588C@stekelbes.ithelps.local> Had to do this many times in W95/98 with early EURO migrations.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, March 11, 2005 3:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Currency Display Erwin: I can't believe it. It works! What a dope I feel like! Who'd have believed that they'd implement a not in list for that field? Anyway. Thanks. That solves a big problem. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Friday, March 11, 2005 12:52 AM Subject: RE: [AccessD] OT: Currency Display >I know > But dont click on the combo box, just type any text you want in the > field... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Friday, March 11, 2005 1:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Currency Display > > Erwin: > > The button next to the language selection is labeled Customize and opens > a dialog box where you can select a currency symbol from a combo box, > but that only shows R, $ and the euro symbol. No option on my system to > input your own symbol. Do you have that option on your system? > > Thanks and Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 10, 2005 1:46 PM > Subject: RE: [AccessD] OT: Currency Display > > >> In the regional settings you can choose English sout Africa and you > will >> have a R as prefix. >> If you really want RSh you can click on the buttom next to it > (change?) >> and just type anything you want in curency symbol... >> However, this would be necesary on every computer. >> >> Erwin >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Thursday, March 10, 2005 10:13 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Currency Display >> >> What I may have to do is add a new option to my Preferences form - >> Currency symbol. Ack. >> >> Rocky >> >> ----- Original Message ----- >> From: "MartyConnelly" >> To: "Access Developers discussion and problem solving" >> >> Sent: Thursday, March 10, 2005 10:00 AM >> Subject: Re: [AccessD] OT: Currency Display >> >> >>> Or maybe a display format like >>> >>> #,00"RSh"; -#,00"RSh" >>> >>> Rocky Smolin - Beach Access Software wrote: >>> >>>>Dear List: >>>> >>>>This is really a Windows question, I believe. >>>>I have a prospect in Kenya who needs the currency fields to display >> RSh >>>>instead of $. In the regional and language settings there are > several >> >>>>selections for English, like Zimbabwe which displays Z$ for the >> currency >>>>field. You can also customize the currency symbol but only $ and the >> euro >>>>symbol are in my combo box. >>>> >>>>Does anyone know how to customize this setting so I can display RSh? >>>> >>>>MTIA, >>>> >>>>Rocky Smolin >>>>Beach Access Software >>>>http://www.e-z-mrp.com >>>>858-259-4334 >>>> >>> >>> -- >>> Marty Connelly >>> Victoria, B.C. >>> Canada >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Fri Mar 11 08:47:23 2005 From: greggs at msn.com (Gregg) Date: Fri, 11 Mar 2005 08:47:23 -0600 Subject: [AccessD] Mapping API's References: <8660631.1110543451613.JavaMail.www@wwinf3101> Message-ID: MapPoint will find the closest employees and it interfaces well with Access. I have not tried automating the process in Access but it is probably your best bet for an easy solution. ----- Original Message ----- From: paul.hartland at fsmail.net To: accessd Sent: Friday, March 11, 2005 6:17 AM Subject: [AccessD] Mapping API's To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Fri Mar 11 09:51:23 2005 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 11 Mar 2005 09:51:23 -0600 Subject: [AccessD] OT: Farmer John Message-ID: Farmer John Farmer John lived on a quiet rural highway. But, as time went by, the traffic slowly built up to an alarming level. The traffic was so heavy and so fast that his chickens were being run over at a rate of three to six a day. So one day Farmer John called the sheriff's office and said, "You've got to do something about all of these people driving so fast and killing all of my chickens." "What do you want me to do?" asked the sheriff. "I don't care, just do something about those crazy drivers!" So the next day he had the county workers go out and erected a sign that said: SLOW: SCHOOL CROSSING Three days later Farmer John called the sheriff and said, "You've got to do something about these drivers. The 'school crossing' sign seems to make them go even faster." So, again, the sheriff sends out the county workers and they put up a new sign: SLOW: CHILDREN AT PLAY. That really sped them up. So Farmer John called and called and called every day for three weeks. Finally, he asked the sheriff, "Your signs are doing no good. Can I put up my own sign?" The sheriff told him, "Sure thing, put up your own sign." He was going to let Farmer John do just about anything in order to get him to stop calling every day to complain. The sheriff got no more calls from Farmer John. Three weeks later, curiosity got the best of the sheriff and he decided to give Farmer John a call. "How's the problem with those drivers. Did you put up your sign?" "Oh, I sure did. And not one chicken has been killed since then. I've got to go. I'm very busy." He hung up the phone. The sheriff was really curious now and he thought to himself, "I'd better go out there and take a look at that sign... it might be something that WE could use to slow down drivers..." So the sheriff drove out to Farmer John's house, and his jaw dropped the moment he saw the sign. It was spray-painted on a sheet of wood: "NUDIST COLONY" *** Go slow and watch out for the chicks *** -- Gary Kjos garykjos at gmail.com From DWUTKA at marlow.com Fri Mar 11 10:38:07 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 11 Mar 2005 10:38:07 -0600 Subject: [AccessD] Mapping API's Message-ID: <123701F54509D9119A4F00D0B747349016D320@main2.marlow.com> Talk to Mike Mattys, he's very good with Access and Mappoint. Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Friday, March 11, 2005 6:18 AM To: accessd Subject: [AccessD] Mapping API's To all, I'm sure I have asked this question before but I can't find the answer anywhere, I need a mapping API that I can link to from either Access or Visual Basic. Basically we have clients all over the UK and employees based all around the UK, I need a link into an API that when I select a client address, I can add code so that it calls the API and finds the closest employees to that client. Has anyone done this, or can give me a good starting point on which API to use.... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- 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 Mar 11 10:39:51 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 11 Mar 2005 11:39:51 -0500 Subject: [AccessD] Automating parameterized action queries..... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DD5@xlivmbx21.aig.com> If you want to use Access security to deny access to the tables (for writing) then you would also have to have all the other queries used by forms etc. be set up as RWOP (Run With Owners Permissions) so that the queries used for updating data will be able to do so. But then you are back to square one. How to prevent the users using the RWOP queries to gain access to the tables to change the data? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, March 11, 2005 6:51 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > BTW, you can create base queries, one for each table, which simply do a > SELECT * FROM TBLX. Then open the properties for the query and make it a > snapshot query. Now have them use those base queries instead of using the > table directly. Because the base queries are snapshot queries, no data > can > be changed. > > If they go around those queries to use the tables all bets are off. You > could of course use Access security to give them access to the queries but > not the tables. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > From andy at minstersystems.co.uk Fri Mar 11 09:40:31 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 11 Mar 2005 16:40:31 +0100 Subject: [AccessD] OT: Farmer John Message-ID: <20050311164029.44BC92BF3B2@smtp.nildram.co.uk> Hurray for the return of Friday Humour. And two in one week! -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: dba-OT , Access Developers discussion and problem solving Subject: [AccessD] OT: Farmer John Date: 11/03/05 15:52 > > Farmer John > > > Farmer John lived on a quiet rural highway. But, as time went by, > the traffic slowly built up to an alarming level. The traffic was so > heavy and so fast that his chickens were being run over at a rate of > three to six a day. > > So one day Farmer John called the sheriff's office and said, "You've > got to do something about all of these people driving so fast and > killing all of my chickens." > > "What do you want me to do?" asked the sheriff. "I don't care, just > do something about those crazy drivers!" > > So the next day he had the county workers go out and erected a sign > that said: SLOW: SCHOOL CROSSING Three days later Farmer John > called the sheriff and said, "You've got to do something about these > drivers. The 'school crossing' sign seems to make them go even faster." > > So, again, the sheriff sends out the county workers and they put up a > new sign: SLOW: CHILDREN AT PLAY. That really sped them up. > So Farmer John called and called and called every day for three weeks. > > Finally, he asked the sheriff, "Your signs are doing no good. Can I > put up my own sign?" > > The sheriff told him, "Sure thing, put up your own sign." He was > going to let Farmer John do just about anything in order to get him > to stop calling every day to complain. The sheriff got no more > calls from Farmer John. > > Three weeks later, curiosity got the best of the sheriff and he > decided to give Farmer John a call. "How's the problem with > those drivers. Did you put up your sign?" "Oh, I sure did. > And not one chicken has been killed since then. I've got to go. > I'm very busy." He hung up the phone. > > The sheriff was really curious now and he thought to himself, > "I'd better go out there and take a look at that sign... it might be > something that WE could use to slow down drivers..." > > So the sheriff drove out to Farmer John's house, and his jaw dropped > the moment he saw the sign. It was spray-painted on a sheet of wood: > > > > "NUDIST COLONY" > > *** Go slow and watch out for the chicks *** > > > > > -- > Gary Kjos > garykjos at gmail.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Fri Mar 11 10:52:24 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 11 Mar 2005 11:52:24 -0500 Subject: [AccessD] Automating parameterized action queries..... In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DD5@xlivmbx21.aig.com> Message-ID: <002a01c5265a$b2fc2bb0$697aa8c0@ColbyM6805> Yes, but I was discussing a system where the user has their own FE just for building their own custom queries. Thus you set up no access to tables, plus read-only queries for all tables needed. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, March 11, 2005 11:40 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Automating parameterized action queries..... If you want to use Access security to deny access to the tables (for writing) then you would also have to have all the other queries used by forms etc. be set up as RWOP (Run With Owners Permissions) so that the queries used for updating data will be able to do so. But then you are back to square one. How to prevent the users using the RWOP queries to gain access to the tables to change the data? Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, March 11, 2005 6:51 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > BTW, you can create base queries, one for each table, which simply do > a SELECT * FROM TBLX. Then open the properties for the query and make > it a snapshot query. Now have them use those base queries instead of > using the table directly. Because the base queries are snapshot > queries, no data can be changed. > > If they go around those queries to use the tables all bets are off. > You could of course use Access security to give them access to the > queries but not the tables. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Mar 11 12:01:25 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 11 Mar 2005 13:01:25 -0500 Subject: [AccessD] OT - Drawing Viewers Message-ID: What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. From KIsmert at TexasSystems.com Fri Mar 11 12:20:59 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 11 Mar 2005 12:20:59 -0600 Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: <20050311093605.74120.qmail@web31602.mail.mud.yahoo.com> Message-ID: <014901c52667$13d54c80$2a3ca8c0@TEXASSYSTEMS.COM> Sander: Your problem is with your date delimiters: use #00:00:00# instead of "00:00:00". This, by the way, is Microsoft Day 0, which is 12/30/1899. You will have to change this segment of your code, as well: dtmNewBusinessDate = InputBox("Enter the new business date:") You will need something like: Dim sNewDate As String sNewDate = InputBox("Enter the new business date:") If IsDate(sNewDate) Then mdtmNewBusinessDate = CDate(sNewDate) End If Also, a suggestion: If you use: Public oRptParam As NEW cReportParams Then you can get rid of this business in your functions: If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If ... If blnDestroyRepParam Then Set oRptParam = Nothing End If The New keyword sets oRptParam to a new instance of cReportParams automatically on first reference. A single instance of the object will remain active until you exit or set it to nothing. This seems to be a good fit for your code here. I have used this technique for years in many Access programs with no ill effects. It is a documented and valid part of the VBA spec, and it has a place in your toolbox. -Ken -----Original Message----- From: Sad Der [mailto:accessd666 at yahoo.com] Sent: Friday, March 11, 2005 3:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Automating parameterized action queries.....DATE?! Hi group, after almost 3 hours I give up. I'm using Ken's solution and it works great. I'm using for all my params....off course then I crashed into a F#$@ng date field. Can anybody tell me why code does not return a date? What am I missing? Module: mParams Option Compare Database Option Explicit Public oRptParam As cReportParams Public Function ParamVersion() As Variant 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If ParamVersion = oRptParam.Version If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function Public Function ParamNewBusinessDate() As Date 'Dim oRptParam As cReportParams Dim blnDestroyRepParam As Boolean If oRptParam Is Nothing Then Set oRptParam = New cReportParams blnDestroyRepParam = True Else blnDestroyRepParam = False End If '???????????????????????????????????????????????????? '===> Somehow ParamNewBusinessDate stays 00:00:00???? '???????????????????????????????????????????????????? ParamNewBusinessDate = oRptParam.NewBusinessDate If blnDestroyRepParam Then Set oRptParam = Nothing End If End Function CLASS cReportParams Option Compare Database Option Explicit Private mVersion As String Private mdtmNewBusinessDate As Variant 'This parameter checks if the query is run via a form! Private mFormDriven As Boolean Property Get Version() As String Dim strVersion As String If mFormDriven Then Version = mVersion Else If mVersion = "" Then strVersion = InputBox("Enter the version:") If strVersion > "" Then mVersion = strVersion End If Version = mVersion Else Version = mVersion End If End If End Property Property Let Version(VersionIn As String) mVersion = VersionIn End Property Property Get NewBusinessDate() As Variant Dim dtmNewBusinessDate As Date If mFormDriven Then NewBusinessDate = mdtmNewBusinessDate Else If mdtmNewBusinessDate = "00:00:00" Then 'I fill the InputBox with the value 22/02/2005 dtmNewBusinessDate = InputBox("Enter the new business date:") If Not dtmNewBusinessDate = "00:00:00" Then mdtmNewBusinessDate = dtmNewBusinessDate End If Else NewBusinessDate = mdtmNewBusinessDate End If End If End Property Property Let NewBusinessDate(NewBusinessDateIn As Variant) mdtmNewBusinessDate = NewBusinessDateIn End Property Property Let FormDriven(FormDrivenIN As Boolean) mFormDriven = FormDrivenIN End Property Property Get FormDriven() As Boolean FormDriven = mFormDriven End Property Private Sub Class_Initialize() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub Private Sub Class_Terminate() mVersion = "" mdtmNewBusinessDate = "00:00:00" mFormDriven = False End Sub ----------------------------------------------------- If somebody needs more details....please ask! Thnx. Regards, Sander --- Ken Ismert wrote: > Sander, > > There is a class-based approach: > > Define a class, CReportParms, with two variant > properties, Version and > StartDate: > > Private mVersion As Variant > Private mStartDate As Variant > > Property Get Version() As Variant > Version = mVersion > End Property > Property Let Version(VersionIn As Variant) > mVersion = VersionIn > End Property > > ' (Similar Get/Let for StartDate) > > Private Sub Class_Initialize() > mVersion = Null > mStartDate = Null > End Sub > > Declare it as global in one of your modules: > > Public gRptParms As New CReportParms > > Provide two global functions to use in your queries > in place of your > parameters: > > Public Function ParmVersion() As Variant > Parms = gRptParms.Version > End Function > Public Function ParmStartDate() As Variant > Parms = gRptParms.StartDate > End Function > > You can set these properties in your form before you > run your report: > > gRptParms.Version = txtVersion > gRptParms.StartDate = txtStartDate > > If you can calculate reasonable values for Version > and StartDate, you can do > so in the CReportParms Initialize event. > Alternately, you can prompt the > user in the class when the queries are run > standalone: > > Property Get Version() As Variant > Dim sVersion As String > If IsNull(mVersion) Then > sVersion = InputBox("Enter Version:") > If sVersion > "" Then > mVersion = CLng(sVersion) > End If > End If > Version = mVersion > End Property > > You could also have a third property, FormDriven, > that, when set to True, > doesn't prompt the user. Only your frmReport form > will set this property, > and clear it upon exit. That way, the user is always > prompted when running > the queries stand-alone. > > -Ken > > > Hi group, > > > > my story of the queries continues. I need to > > run a set of action queries. This works fine. > > > > Several queries have parameters. So that means > > the user has to watch the screen for a > > parameter to pop-up. Is it possible to add > > some parameter fields in the form to fill > > the required parameters...WITHOUT changing > > the query it self? > > > > So I have a parameters in my query: > > [Enter version:] > > [Enter startdate:] > > > > And I do not want to change these to: > > forms!frmReport!txtVersion > > forms!frmReport!txtStartDate > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Lambert.Heenan at AIG.com Fri Mar 11 12:34:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 11 Mar 2005 13:34:56 -0500 Subject: [AccessD] Automating parameterized action queries..... Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2DD7@xlivmbx21.aig.com> Yes I realized that you were looking at giving the users a FE of their own to play with, but I have not figured out how you can give them R/O queries with no tables. Don't you need tables for the queries to work with? ( turns back to Access to play with an Idea !!!) Ah Hah! Now I see how to do this: You build a bunch of queries in the 'real' database, one for each table, and make them all SnapShot queries. Then import all of the queries to an empty database, open each of the queries and change the source database property from "(current)" to the path to the actual database BE. Now all the queries return read-only data, and the FE has no tables at all. Neat! However, the user's also now know where the real data is located (by reading the source database property), so what's going to stop them from linking directly to the tables ... Access user security. :-) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Friday, March 11, 2005 11:52 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > Yes, but I was discussing a system where the user has their own FE just > for > building their own custom queries. Thus you set up no access to tables, > plus read-only queries for all tables needed. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert > Sent: Friday, March 11, 2005 11:40 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Automating parameterized action queries..... > > > If you want to use Access security to deny access to the tables (for > writing) then you would also have to have all the other queries used by > forms etc. be set up as RWOP (Run With Owners Permissions) so that the > queries used for updating data will be able to do so. But then you are > back > to square one. How to prevent the users using the RWOP queries to gain > access to the tables to change the data? > > Lambert > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > > Sent: Friday, March 11, 2005 6:51 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Automating parameterized action queries..... > > > > BTW, you can create base queries, one for each table, which simply do > > a SELECT * FROM TBLX. Then open the properties for the query and make > > it a snapshot query. Now have them use those base queries instead of > > using the table directly. Because the base queries are snapshot > > queries, no data can be changed. > > > > If they go around those queries to use the tables all bets are off. > > You could of course use Access security to give them access to the > > queries but not the tables. > > > > John W. Colby > > www.ColbyConsulting.com > > > > Contribute your unused CPU cycles to a good cause: > > http://folding.stanford.edu/ > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 11 12:52:07 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 Mar 2005 10:52:07 -0800 Subject: [AccessD] OT - Drawing Viewers Message-ID: I use Irfanview, and those two file types are not included in the list in 3.95. However, since I don't know what those file types *are*, I doubt that I will miss them. ;-> Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marcus at tsstech.com Fri Mar 11 13:14:17 2005 From: marcus at tsstech.com (Scott Marcus) Date: Fri, 11 Mar 2005 14:14:17 -0500 Subject: [AccessD] OT - Drawing Viewers Message-ID: You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 11 13:48:14 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 11 Mar 2005 11:48:14 -0800 Subject: [AccessD] OT - Drawing Viewers Message-ID: And you can't beat the price, since it's free. Charlotte Foust -----Original Message----- From: Scott Marcus [mailto:marcus at tsstech.com] Sent: Friday, March 11, 2005 11:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Drawing Viewers You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mar 11 14:09:42 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 11 Mar 2005 21:09:42 +0100 Subject: [AccessD] OT - Drawing Viewers Message-ID: Hi Charlotte Well, read carefully - for corporate use Irfan requests a fee. I asked him how much and that is a modest EUR 10 (~USD 14), not much but not free: Ok, here the prices/infos: IrfanView pricing (in EURO, net): 1 to 10 users: 10.00 each 11 to 50 users: 9.00 each 51 to 100 users: 8.50 each /gustav >>> cfoust at infostatsystems.com 11-03-2005 20:48:14 >>> And you can't beat the price, since it's free. Charlotte Foust -----Original Message----- From: Scott Marcus [mailto:marcus at tsstech.com] Sent: Friday, March 11, 2005 11:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Drawing Viewers You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- From martyconnelly at shaw.ca Fri Mar 11 15:17:41 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 11 Mar 2005 13:17:41 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B588C@stekelbes.ithelps.local> Message-ID: <42320AF5.60600@shaw.ca> This is a lot easier to handle in VB.net http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationregioninfoclassisocurrencysymboltopic.asp with System.Globalization.RegionInfo Class CurrencySymbol ISOCurrencySymbol Here is a list of all the currency symbols three characters ISO 4217 Currency names and code elements http://www.iso.org/iso/en/prods-services/popstds/currencycodeslist.html?printable=true Erwin Craps - IT Helps wrote: >Had to do this many times in W95/98 with early EURO migrations.... > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >- Beach Access Software >Sent: Friday, March 11, 2005 3:12 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Currency Display > >Erwin: > >I can't believe it. It works! What a dope I feel like! Who'd have >believed that they'd implement a not in list for that field? > >Anyway. Thanks. That solves a big problem. > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > >----- Original Message ----- >From: "Erwin Craps - IT Helps" >To: "Access Developers discussion and problem solving" > >Sent: Friday, March 11, 2005 12:52 AM >Subject: RE: [AccessD] OT: Currency Display > > > > >>I know >>But dont click on the combo box, just type any text you want in the >>field... >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >Smolin > > >>- Beach Access Software >>Sent: Friday, March 11, 2005 1:01 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Currency Display >> >>Erwin: >> >>The button next to the language selection is labeled Customize and >> >> >opens > > >>a dialog box where you can select a currency symbol from a combo box, >>but that only shows R, $ and the euro symbol. No option on my system >> >> >to > > >>input your own symbol. Do you have that option on your system? >> >>Thanks and Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >>----- Original Message ----- >>From: "Erwin Craps - IT Helps" >>To: "Access Developers discussion and problem solving" >> >>Sent: Thursday, March 10, 2005 1:46 PM >>Subject: RE: [AccessD] OT: Currency Display >> >> >> >> >>>In the regional settings you can choose English sout Africa and you >>> >>> >>will >> >> >>>have a R as prefix. >>>If you really want RSh you can click on the buttom next to it >>> >>> >>(change?) >> >> >>>and just type anything you want in curency symbol... >>>However, this would be necesary on every computer. >>> >>>Erwin >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>> >>> >>Smolin >> >> >>>- Beach Access Software >>>Sent: Thursday, March 10, 2005 10:13 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] OT: Currency Display >>> >>>What I may have to do is add a new option to my Preferences form - >>>Currency symbol. Ack. >>> >>>Rocky >>> >>>----- Original Message ----- >>>From: "MartyConnelly" >>>To: "Access Developers discussion and problem solving" >>> >>>Sent: Thursday, March 10, 2005 10:00 AM >>>Subject: Re: [AccessD] OT: Currency Display >>> >>> >>> >>> >>>>Or maybe a display format like >>>> >>>>#,00"RSh"; -#,00"RSh" >>>> >>>>Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>>>Dear List: >>>>> >>>>>This is really a Windows question, I believe. >>>>>I have a prospect in Kenya who needs the currency fields to display >>>>> >>>>> >>>RSh >>> >>> >>>>>instead of $. In the regional and language settings there are >>>>> >>>>> >>several >> >> >>>>>selections for English, like Zimbabwe which displays Z$ for the >>>>> >>>>> >>>currency >>> >>> >>>>>field. You can also customize the currency symbol but only $ and >>>>> >>>>> >the > > >>>euro >>> >>> >>>>>symbol are in my combo box. >>>>> >>>>>Does anyone know how to customize this setting so I can display RSh? >>>>> >>>>>MTIA, >>>>> >>>>>Rocky Smolin >>>>>Beach Access Software >>>>>http://www.e-z-mrp.com >>>>>858-259-4334 >>>>> >>>>> >>>>> >>>>-- >>>>Marty Connelly >>>>Victoria, B.C. >>>>Canada >>>> >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Fri Mar 11 16:26:21 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 11 Mar 2005 14:26:21 -0800 Subject: [AccessD] OT: Currency Display References: <46B976F2B698FF46A4FE7636509B22DF1B588C@stekelbes.ithelps.local> Message-ID: <42321B0D.7060303@shaw.ca> Here is another way via LCID to get a possible currency symbol Note difference in call to systemdefault and userdefault Mine is US for system but Canada for User If you want to get into the horrors , shudder, of say the thousand seperator symbols and differences in placement of - negative numbers for various currencies see Randy Birch's method http://vbnet.mvps.org/index.html?code/locale/index.html I notice if you choose Swahili which is Kenya's national language as opposed to English the Official language it uses an S as the currency symbol. But swahili is spoken in about 6 other countries Private Declare Function GetThreadLocale Lib "kernel32" () As Long Declare Function GetSystemDefaultLCID Lib "kernel32" () As Long Declare Function GetUserDefaultLCID Lib "kernel32" () As Long Private Declare Function GetLocaleInfo Lib "kernel32" _ Alias "GetLocaleInfoA" _ (ByVal Locale As Long, _ ByVal LCType As Long, _ ByVal lpLCData As String, _ ByVal cchData As Long) As Long Const LOCALE_ILANGUAGE As Long = &H1 'language id Const LOCALE_SLANGUAGE As Long = &H2 'localized name of lang Const LOCALE_SENGLANGUAGE As Long = &H1001 'English name of lang Const LOCALE_SABBREVLANGNAME As Long = &H3 'abbreviated lang name Const LOCALE_SNATIVELANGNAME As Long = &H4 'native name of lang Const LOCALE_ICOUNTRY As Long = &H5 'country code Const LOCALE_SCOUNTRY As Long = &H6 'localized name of country Const LOCALE_SENGCOUNTRY As Long = &H1002 'English name of country Const LOCALE_SABBREVCTRYNAME As Long = &H7 'abbreviated country name Const LOCALE_SNATIVECTRYNAME As Long = &H8 'native name of country Const LOCALE_SINTLSYMBOL As Long = &H15 'intl monetary symbol Const LOCALE_SCURRENCY As Long = &H14 'local monetary symbol Const LOCALE_IDEFAULTLANGUAGE As Long = &H9 'def language id Const LOCALE_IDEFAULTCOUNTRY As Long = &HA 'def country code Const LOCALE_IDEFAULTCODEPAGE As Long = &HB 'def oem code page Const LOCALE_IDEFAULTANSICODEPAGE As Long = &H1004 'def ansi code page Const LOCALE_IDEFAULTMACCODEPAGE As Long = &H1011 'def mac code page Const LOCALE_IMEASURE As Long = &HD '0 = metric, 1 = US '#if(WINVER >= &H0400) Const LOCALE_SISO639LANGNAME As Long = &H59 'ISO abbreviated language name Const LOCALE_SISO3166CTRYNAME As Long = &H5A 'ISO abbreviated country name '#endif /* WINVER >= as long = &H0400 */ '#if(WINVER >= &H0500) Const LOCALE_SNATIVECURRNAME As Long = &H1008 'native name of currency Const LOCALE_IDEFAULTEBCDICCODEPAGE As Long = &H1012 'default ebcdic code Page Const LOCALE_SSORTNAME As Long = &H1013 'sort name '#endif /* WINVER >= &H0500 */ Dim LCID As Long Sub test() Debug.Print GetCurrencyName Debug.Print GetLanguageName Debug.Print GetCountryName Debug.Print GetCurrencySymbol Debug.Print GetLocalCurrencySymbol End Sub '-----------------------------?------------------------------?---------------- Public Function GetUserLocaleInfo(ByVal dwLocaleID As Long, ByVal dwLCType As Long) _ As String '-----------------------------?------------------------------?---------------- Dim sReturn As String Dim r As Long 'call the function passing the Locale type 'variable to retrieve the required size of 'the string buffer needed r = GetLocaleInfo(dwLocaleID, dwLCType, sReturn, Len(sReturn)) 'if successful.. If r Then 'pad the buffer with spaces sReturn = Space$(r) 'and call again passing the buffer r = GetLocaleInfo(dwLocaleID, dwLCType, sReturn, Len(sReturn)) 'if successful (r > 0) If r Then 'r holds the size of the string 'including the terminating null GetUserLocaleInfo = Left$(sReturn, r - 1) End If End If End Function '-----------------------------?------------------------------?---------------- Public Function GetLanguageName() '-----------------------------?------------------------------?---------------- LCID = GetSystemDefaultLCID() GetLanguageName = GetUserLocaleInfo(LCID, LOCALE_SENGLANGUAGE) End Function Public Function GetCurrencyName() '-----------------------------?------------------------------?---------------- LCID = GetSystemDefaultLCID() GetCurrencyName = GetUserLocaleInfo(LCID, LOCALE_SNATIVECURRNAME) End Function Public Function GetCountryName() '-----------------------------?------------------------------?--------------- 'LCID = GetSystemDefaultLCID() LCID = GetUserDefaultLCID() GetCountryName = GetUserLocaleInfo(LCID, LOCALE_SNATIVECTRYNAME) End Function Public Function GetCurrencySymbol() '-----------------------------?------------------------------?---------------- 'LCID = GetSystemDefaultLCID() LCID = GetUserDefaultLCID() GetCurrencySymbol = GetUserLocaleInfo(LCID, LOCALE_SINTLSYMBOL) End Function Public Function GetLocalCurrencySymbol() '-----------------------------?------------------------------?---------------- 'LCID = GetSystemDefaultLCID() LCID = GetUserDefaultLCID() GetLocalCurrencySymbol = GetUserLocaleInfo(LCID, LOCALE_SCURRENCY) End Function Erwin Craps - IT Helps wrote: >Had to do this many times in W95/98 with early EURO migrations.... > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >- Beach Access Software >Sent: Friday, March 11, 2005 3:12 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: Currency Display > >Erwin: > >I can't believe it. It works! What a dope I feel like! Who'd have >believed that they'd implement a not in list for that field? > >Anyway. Thanks. That solves a big problem. > >Regards, > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > >----- Original Message ----- >From: "Erwin Craps - IT Helps" >To: "Access Developers discussion and problem solving" > >Sent: Friday, March 11, 2005 12:52 AM >Subject: RE: [AccessD] OT: Currency Display > > > > >>I know >>But dont click on the combo box, just type any text you want in the >>field... >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >Smolin > > >>- Beach Access Software >>Sent: Friday, March 11, 2005 1:01 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] OT: Currency Display >> >>Erwin: >> >>The button next to the language selection is labeled Customize and >> >> >opens > > >>a dialog box where you can select a currency symbol from a combo box, >>but that only shows R, $ and the euro symbol. No option on my system >> >> >to > > >>input your own symbol. Do you have that option on your system? >> >>Thanks and Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >>----- Original Message ----- >>From: "Erwin Craps - IT Helps" >>To: "Access Developers discussion and problem solving" >> >>Sent: Thursday, March 10, 2005 1:46 PM >>Subject: RE: [AccessD] OT: Currency Display >> >> >> >> >>>In the regional settings you can choose English sout Africa and you >>> >>> >>will >> >> >>>have a R as prefix. >>>If you really want RSh you can click on the buttom next to it >>> >>> >>(change?) >> >> >>>and just type anything you want in curency symbol... >>>However, this would be necesary on every computer. >>> >>>Erwin >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >>> >>> >>Smolin >> >> >>>- Beach Access Software >>>Sent: Thursday, March 10, 2005 10:13 PM >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] OT: Currency Display >>> >>>What I may have to do is add a new option to my Preferences form - >>>Currency symbol. Ack. >>> >>>Rocky >>> >>>----- Original Message ----- >>>From: "MartyConnelly" >>>To: "Access Developers discussion and problem solving" >>> >>>Sent: Thursday, March 10, 2005 10:00 AM >>>Subject: Re: [AccessD] OT: Currency Display >>> >>> >>> >>> >>>>Or maybe a display format like >>>> >>>>#,00"RSh"; -#,00"RSh" >>>> >>>>Rocky Smolin - Beach Access Software wrote: >>>> >>>> >>>> >>>>>Dear List: >>>>> >>>>>This is really a Windows question, I believe. >>>>>I have a prospect in Kenya who needs the currency fields to display >>>>> >>>>> >>>RSh >>> >>> >>>>>instead of $. In the regional and language settings there are >>>>> >>>>> >>several >> >> >>>>>selections for English, like Zimbabwe which displays Z$ for the >>>>> >>>>> >>>currency >>> >>> >>>>>field. You can also customize the currency symbol but only $ and >>>>> >>>>> >the > > >>>euro >>> >>> >>>>>symbol are in my combo box. >>>>> >>>>>Does anyone know how to customize this setting so I can display RSh? >>>>> >>>>>MTIA, >>>>> >>>>>Rocky Smolin >>>>>Beach Access Software >>>>>http://www.e-z-mrp.com >>>>>858-259-4334 >>>>> >>>>> >>>>> >>>>-- >>>>Marty Connelly >>>>Victoria, B.C. >>>>Canada >>>> >>>> >>>> >>>>-- >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Fri Mar 11 16:26:36 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Mar 2005 14:26:36 -0800 Subject: [AccessD] OT - Drawing Viewers In-Reply-To: Message-ID: <0ID70002HL0ADC@l-daemon> Hi Karen: There is a program that can be downloaded from Macromedia that scans pictures properties, once uploaded and can determine the size. I used it on a site, designed in cold-fusion, that would prompt a user to re- and re-send set their picture if it was too large. I can not remember the details but will look it up if it sounds like what you need. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 12 00:51:10 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 11 Mar 2005 22:51:10 -0800 Subject: [AccessD] OT Is ther a way to certified, notorized or digital signed an email document? In-Reply-To: <42321B0D.7060303@shaw.ca> Message-ID: <0ID800H8W8D7F1@l-daemon> Hi All: I have run into a bit of an issue with a client and their Domain registration. I was called in after the company that held the DNS went broke and the client's site when off line. Fortunately, the company that handled the actual Domain registration was unaffected. Another twist to this tale is that the Administration contact person was not the actual site owner but a friend. The friend has since left town and has traveled back east and is no longer checking her emails...(She may have abandoned her email as it was through a Shaw a cable provider.) In order to update or relocate the site the request has to be validated through the Administration Contact person's email. See the reply upon requesting an email change from the administration of the Domain Registrar. I wish I could, but ICANN rules forbid us from doing that, and they could shut us down if we change domain details without a signed letter of authorization from the legal registrant :( The question is, is there a way to pass a certified, registered and possibly notarized legal document through email? Now this is a good security question. MTIA Jim From Gustav at cactus.dk Sat Mar 12 03:39:36 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 12 Mar 2005 10:39:36 +0100 Subject: [AccessD] OT Is ther a way to certified,notorized or digital signed an email document? Message-ID: Hi Jim Things happen and all we need to do here in such cases is to mail or fax this properly signed and confirmed letter of authorization to the registrar. Of course, if the registrar accepts digitally signed email, that could be uses as well if you have a digital signature issued by a certifier accepted by the registrar. /gustav >>> accessd at shaw.ca 12-03-2005 07:51:10 >>> Hi All: I have run into a bit of an issue with a client and their Domain registration. I was called in after the company that held the DNS went broke and the client's site when off line. Fortunately, the company that handled the actual Domain registration was unaffected. Another twist to this tale is that the Administration contact person was not the actual site owner but a friend. The friend has since left town and has traveled back east and is no longer checking her emails...(She may have abandoned her email as it was through a Shaw a cable provider.) In order to update or relocate the site the request has to be validated through the Administration Contact person's email. See the reply upon requesting an email change from the administration of the Domain Registrar. I wish I could, but ICANN rules forbid us from doing that, and they could shut us down if we change domain details without a signed letter of authorization from the legal registrant :( The question is, is there a way to pass a certified, registered and possibly notarized legal document through email? Now this is a good security question. MTIA Jim From ssharkins at bellsouth.net Sat Mar 12 07:53:17 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 12 Mar 2005 08:53:17 -0500 Subject: [AccessD] I know it's not Friday anymore, but... Message-ID: <20050312135318.NINP7187.imf18aec.mail.bellsouth.net@SUSANONE> http://www.clientcopia.com/top.php Susan H. From Gustav at cactus.dk Sat Mar 12 08:30:02 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 12 Mar 2005 15:30:02 +0100 Subject: [AccessD] I know it's not Friday anymore, but... Message-ID: Thanks Susan! My favorites are #18 and #4. /gustav >>> ssharkins at bellsouth.net 12-03-2005 14:53:17 >>> http://www.clientcopia.com/top.php Susan H. From andy at minstersystems.co.uk Sat Mar 12 08:37:17 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 12 Mar 2005 14:37:17 -0000 Subject: [AccessD] I know it's not Friday anymore, but... In-Reply-To: Message-ID: <004001c52710$fda3fd30$b274d0d5@minster33c3r25> I like 10. Surreal. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 12 March 2005 14:30 > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] I know it's not Friday anymore, but... > > > Thanks Susan! > > My favorites are #18 and #4. > > /gustav > > >>> ssharkins at bellsouth.net 12-03-2005 14:53:17 >>> > http://www.clientcopia.com/top.php > > Susan H. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From accessd at shaw.ca Sat Mar 12 10:00:55 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 12 Mar 2005 08:00:55 -0800 Subject: [AccessD] I know it's not Friday anymore, but... In-Reply-To: <20050312135318.NINP7187.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <0ID80090EXTH29@l-daemon> Susan...Very funny. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, March 12, 2005 5:53 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] I know it's not Friday anymore, but... http://www.clientcopia.com/top.php Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Mar 12 10:04:37 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 12 Mar 2005 08:04:37 -0800 Subject: [AccessD] OT Is ther a way to certified,notorized or digital signed an email document? In-Reply-To: Message-ID: <0ID8006CMXZMUG@l-daemon> Hi Gustav: I had forgotten about faxes. I will send off an email to the ISP and see what they will accept. Thanks for the info Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, March 12, 2005 1:40 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT Is ther a way to certified,notorized or digital signed an email document? Hi Jim Things happen and all we need to do here in such cases is to mail or fax this properly signed and confirmed letter of authorization to the registrar. Of course, if the registrar accepts digitally signed email, that could be uses as well if you have a digital signature issued by a certifier accepted by the registrar. /gustav >>> accessd at shaw.ca 12-03-2005 07:51:10 >>> Hi All: I have run into a bit of an issue with a client and their Domain registration. I was called in after the company that held the DNS went broke and the client's site when off line. Fortunately, the company that handled the actual Domain registration was unaffected. Another twist to this tale is that the Administration contact person was not the actual site owner but a friend. The friend has since left town and has traveled back east and is no longer checking her emails...(She may have abandoned her email as it was through a Shaw a cable provider.) In order to update or relocate the site the request has to be validated through the Administration Contact person's email. See the reply upon requesting an email change from the administration of the Domain Registrar. I wish I could, but ICANN rules forbid us from doing that, and they could shut us down if we change domain details without a signed letter of authorization from the legal registrant :( The question is, is there a way to pass a certified, registered and possibly notarized legal document through email? Now this is a good security question. MTIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Mar 12 10:07:43 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 12 Mar 2005 11:07:43 -0500 Subject: [AccessD] OT -- Word question Message-ID: <20050312160747.QYML14338.imf17aec.mail.bellsouth.net@SUSANONE> I'm looking for a macro that counts words on a single page and prints the results. Anyone have something I could adapt? Susan H. From scapistrant at symphonyinfo.com Sat Mar 12 12:19:31 2005 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Sat, 12 Mar 2005 12:19:31 -0600 Subject: [AccessD] Listing open forms Message-ID: <855499653F55AD4190B242717DF132BC04EF2F@dewey.Symphony.local> Gang, I'm interested in displaying a list of open forms, allowing the user to toggle among currently open forms (but not any . Using the built in Windows menu is not an option because it exposes things I don't want the user messing with (e.g. Unhide...). I can alter the built in Windows menu to exclude unwanted items, but that is a global setting, affecting ALL Access apps. Option 1. Create a custom version of the WINDOWS menu on an Access menu bar. But I can't figure out how to reproduce the built in feature; its not a fixed "item" on the list with code I can copy. Also, how would I limit the objects to forms only? Option 2. Create a popup form, which can be called from any context, containing a listbox showing all open forms. This is my second choice, but acceptable if necessary. I assume it involves looping through the forms collection and applying an IsLoaded() function. Any tips or hints? Thanks. Steve Capistrant scapistrant at symphonyinfo.com Symphony Information Services 7308 Aspen Lane North, Suite 132 Brooklyn Park, MN 55428 763-391-7400 www.symphonyinfo.com From bchacc at san.rr.com Sat Mar 12 13:09:06 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 12 Mar 2005 11:09:06 -0800 Subject: [AccessD] Listing open forms References: <855499653F55AD4190B242717DF132BC04EF2F@dewey.Symphony.local> Message-ID: <00cf01c52736$f68d9bc0$6601a8c0@HAL9002> Steve: I think AllForms collection may be helpful. From the Access 2000 (usually totally bogus but in this case was actually some) Help: AllForms Collection Example The following example prints the name of each open AccessObject object in the AllForms collection. Sub AllForms() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject ' Search for open AccessObject objects in AllForms collection. For Each obj In dbs.AllForms If obj.IsLoaded = TRUE then ' Print name of obj. Debug.Print obj.Name End If Next obj End SubYou could use this to create a source for a combo box or a list box of all the loaded forms. I would use .Visible = True and False to hide and show the forms.HTHRocky SmolinBeach Access Softwarehttp://www.e-z-mrp.com858-259-4334----- Original Message ----- From: "Steve Capistrant" To: "Access Developers discussion and problem solving" Sent: Saturday, March 12, 2005 10:19 AM Subject: [AccessD] Listing open forms > Gang, > > I'm interested in displaying a list of open forms, allowing the user to > toggle among currently open forms (but not any . Using the built in > Windows menu is not an option because it exposes things I don't want the > user messing with (e.g. Unhide...). I can alter the built in Windows > menu to exclude unwanted items, but that is a global setting, affecting > ALL Access apps. > > Option 1. Create a custom version of the WINDOWS menu on an Access menu > bar. But I can't figure out how to reproduce the built in feature; its > not a fixed "item" on the list with code I can copy. Also, how would I > limit the objects to forms only? > > Option 2. Create a popup form, which can be called from any context, > containing a listbox showing all open forms. This is my second choice, > but acceptable if necessary. I assume it involves looping through the > forms collection and applying an IsLoaded() function. > > Any tips or hints? Thanks. > > Steve Capistrant > scapistrant at symphonyinfo.com > Symphony Information Services > 7308 Aspen Lane North, Suite 132 > Brooklyn Park, MN 55428 > 763-391-7400 > www.symphonyinfo.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kathryn at bassett.net Sat Mar 12 16:48:27 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sat, 12 Mar 2005 14:48:27 -0800 Subject: [AccessD] 2000 vs 97 - trim error Message-ID: <20050312224830.1B9153FC05@omta16.mta.everyone.net> Friend has Access97, and the data she's been using for a couple years now has been working fine. She received a new grouping of people, so I brought her 97 home, opened with 2k, imported and set up the new table (members), made a query and set up one of the reports. Everything working fine in 2k. Did the save to previous version, went to her house and put back on computer. Queries and forms work fine, but when I tried to do reports, the all give me this trim error. http://www.ourwebsite.org/storage/misc/trimerror1.jpg and here is what the design view looks like http://www.ourwebsite.org/storage/misc/trimerror2.jpg All the reports are similar, and give the same error, even though I never touched them. So it must be something about taking from 97 to 2k and back again that messed things up. What's wrong and how do I fix? If you need to see the actual mdb, I've zipped both versions and put them here: http://www.ourwebsite.org/storage/misc/pgch.zip Thanks, -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From martyconnelly at shaw.ca Sat Mar 12 18:17:31 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 16:17:31 -0800 Subject: [AccessD] OT -- Word question References: <20050312160747.QYML14338.imf17aec.mail.bellsouth.net@SUSANONE> Message-ID: <4233869B.9070206@shaw.ca> Don't know if you want from Word or a text file I suppose you could copy and paste a single page then run this macro Sub FullWordcount() 'intrinsic Word Count function does not count words in text boxes ' this also counts words in text boxes Dim Wordcount As Long Wordcount = ActiveDocument.BuiltInDocumentProperties(wdPropertyWords) For Each ashape In ActiveDocument.Shapes If ashape.TextFrame.HasText Then Wordcount = Wordcount + ashape.TextFrame.TextRange.ComputeStatistics(Statistic:= wdStatisticWords) End If Next ashape MsgBox ("The document has " & Wordcount & " words") End Sub This method counts words approximately in a text string using RegExp, need reference to Microsoft Script Regular Expressions 5.5 I haven't tested for all possibilities but should be within shooting distance on count. There are too many exceptions. Heck in France Marie-Claire is one word; two words in English Sub testwordcount2() WordCount2 ("How many words.. are there in this user's dummy,,, multi line " & _ vbCrLf & "string.Count them.") WordCount2 (" the quick lazy dog ""dumb fink""!// ," & _ vbCrLf & vbLf & " eat's the cat") End Sub Function WordCount2(ByVal strSearch As String) As Long 'This replace all delimeters (punctuations, spaces,etc) with a 'space, trim the result string and and then count words. This will also take 'care of the string ending with puncutation or spaces Dim strPattern As String Dim ss As String Dim matches As VBScript_RegExp_55.MatchCollection Dim count As Long Dim myRegExp As New VBScript_RegExp_55.RegExp ss = "" ' pattern we want to use for replacement of junk characters ' by " " 'strPattern = "[\.:;,\s']" ' this doesn't take care of quotes strPattern = "[\.:;,\s""]" Set myRegExp = New RegExp myRegExp.Pattern = strPattern myRegExp.Global = True ss = myRegExp.Replace(strSearch, " ") Debug.Print ss ss = Trim(ss) strPattern = "\s+" myRegExp.Pattern = strPattern myRegExp.Global = True Set matches = myRegExp.Execute(ss) count = matches.count Debug.Print count + 1 & " words found
" WordCount2 = count End Function Susan Harkins wrote: >I'm looking for a macro that counts words on a single page and prints the >results. Anyone have something I could adapt? > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sat Mar 12 18:23:30 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 16:23:30 -0800 Subject: [AccessD] OT -- Word question References: <20050312160747.QYML14338.imf17aec.mail.bellsouth.net@SUSANONE> Message-ID: <42338802.5010905@shaw.ca> Whilest footling around with regular expressions I came across this Generic method to call Regular expressions from within Access Queries by John Nurick [Microsoft Access MVP] One interesting point is destroying the object after running the query since it otherwise stays in memory. 'START OF CODE Function rgxReplace(Optional Target As Variant, _ Optional Pattern As String = "", _ Optional Replacement As String = "", _ Optional CaseSensitive As Boolean = False, _ Optional ReplaceAll As Boolean = True, _ Optional Multiline As Boolean = False, _ Optional FailOnError As Boolean = True, _ Optional Persist As Boolean = True) _ As Variant 'Regular expression replacement function suitable for use 'in VBA generally and in Access queries. '-- from John Nurick [Microsoft Access MVP] 'Takes a search string (Target), a regular expression '(Pattern), and a replacement string (Replacement). 'If a substring of Target matches Pattern, that substring 'is replaced by Replacement. (The substring can be the whole 'of Target.) 'CaseSensitive matches regardless of case 'but does not affect the case of Replacement. 'ReplaceAll controls whether all substrings 'that match Pattern are replaced or only the first. 'Multiline controls whether a Target containing 'newlines is parsed as one multiline string or a 'succession of one-line strings. 'Persist controls whether the compiled RegExp object 'remains in memory ready for the next call to the 'function or whether it is disposed of immediately. This 'means the function can be used in queries without having 'to create, compile, use and destroy 'a new RegExp object for each row being processed. 'But it also means that the object remains in memory 'after the query has run. To destroy the object and release 'the memory, call this function one last time with no arguments. ' 'Calling the function with different arguments (e.g. a new 'Pattern and/or Replacement) recompiles the RegExp object, so 'the function can be used in different queries. However there 'may be problems if two threads are calling the function at 'the same time. Const rgxPROC_NAME = "rgxReplace" Static oRE As Object 'Static declaration means we don't have to create 'and compile the RegExp object every time the function 'is called. On Error GoTo ErrHandler rgxReplace = Null 'Default return value 'NB: if FailOnError is false, returns Null on error If IsMissing(Target) Then 'This is the signal to dispose of oRE Set oRE = Nothing Exit Function 'with default value End If 'Create the RegExp object if necessary If oRE Is Nothing Then Set oRE = CreateObject("VBScript.Regexp") End If With oRE 'Check whether the current arguments (other than Target) 'are different from those stored in oRE, and update them '(thereby recompiling the regex) only if necessary. If CaseSensitive = .ignoreCase Then .ignoreCase = Not .ignoreCase End If If ReplaceAll <> .Global Then .Global = ReplaceAll End If If Multiline <> .Multiline Then .Multiline = Multiline End If If Pattern <> .Pattern Then .Pattern = Pattern End If 'Finally, do the replacement If IsNull(Target) Then rgxReplace = Null Else rgxReplace = .Replace(CStr(Target), Replacement) End If End With 'Tidy up and normal exit If Not Persist Then Set oRE = Nothing Exit Function ErrHandler: If FailOnError Then With Err Select Case .Number 'Replace the default "object-defined error" message Case 13: .Description = "Type mismatch, probably because " _ & "the ""Target"" argument could not be converted to a string" Case 5017: .Description = "Syntax error in regular expression" Case 5018: .Description = "Unexpected quantifier in regular expression" Case 5019: .Description = "Expected ']' in regular expression" Case 5020: .Description = "Expected ')' in regular expression" Case Else If oRE Is Nothing Then 'Failed to create Regexp object .Description = "Could not create VBScript.RegExp object. " & _ Err.Description Else 'Unexpected error .Description = rgxPROC_NAME & ": " & .Description End If End Select Set oRE = Nothing .Raise Err.Number, rgxPROC_NAME, _ rgxPROC_NAME & "(): " & .Description End With Else 'Fail silently Err.Clear Set oRE = Nothing End If End Function 'END OF CODE Susan Harkins wrote: >I'm looking for a macro that counts words on a single page and prints the >results. Anyone have something I could adapt? > >Susan H. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sat Mar 12 18:57:38 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 16:57:38 -0800 Subject: [AccessD] 2000 vs 97 - trim error References: <20050312224830.1B9153FC05@omta16.mta.everyone.net> Message-ID: <42339002.6070807@shaw.ca> I opened up the 97 version mdb, reports are okay on my machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 It could be Service Packs or did you remember to do a full recompile of 2000 before converting to 97 Kathryn Bassett wrote: >Friend has Access97, and the data she's been using for a couple years now has been working fine. She received a new grouping of people, so I brought her 97 home, opened with 2k, imported and set up the new table (members), made a query and set up one of the reports. Everything working fine in 2k. Did the save to previous version, went to her house and put back on computer. Queries and forms work fine, but when I tried to do reports, the all give me this trim error. >http://www.ourwebsite.org/storage/misc/trimerror1.jpg and here is what the design view looks like >http://www.ourwebsite.org/storage/misc/trimerror2.jpg > >All the reports are similar, and give the same error, even though I never touched them. So it must be something about taking from 97 to 2k and back again that messed things up. What's wrong and how do I fix? > >If you need to see the actual mdb, I've zipped both versions and put them here: >http://www.ourwebsite.org/storage/misc/pgch.zip > >Thanks, > >-- >Kathryn Rhinehart Bassett (Pasadena CA) >"Genealogy is my bag" "GH is my soap" >kathryn at bassett.net >http://bassett.net > > > -- Marty Connelly Victoria, B.C. Canada From ksklos at comcast.net Sat Mar 12 19:22:48 2005 From: ksklos at comcast.net (Susan Klos) Date: Sat, 12 Mar 2005 20:22:48 -0500 Subject: [AccessD] Strange date question Message-ID: I have a beginning date and an ending date in my events table. I need to find out how many days in any given month that one or more events happened. For example, Event 1 Beginning Date 1/3/05 Ending date 1/3/05 Event 2 Beginning Date 1/3/05 Ending date 1/4/05 Event 3 Beginning Date 1/3/05 Ending date 1/8/05 Event 4 Beginning Date 1/6/05 Ending date 1/7/05 Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 My query, function, module, whatever works needs to tell me: between 1/1/05 and 1/11/05 events happened on 6 days. I can not figure out how to disinclude events if they happened within the beginning and ending date of other events. From kathryn at bassett.net Sat Mar 12 23:01:18 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sat, 12 Mar 2005 21:01:18 -0800 Subject: [AccessD] 2000 vs 97 - trim error In-Reply-To: <42339002.6070807@shaw.ca> Message-ID: <20050313050122.5A81B3FC83@omta16.mta.everyone.net> No recompile because I didn't use any macros etc so didn't think about it. Too late to do it in 2k as she's now making changed in 97 version. So, what menu and command needs to be one on the 97 version to "compile" it? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: 12 Mar 2005 4:58 pm > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2000 vs 97 - trim error > > I opened up the 97 version mdb, reports are okay on my > machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 > It could be Service Packs or did you remember to do a full > recompile of 2000 before converting to 97 > > > Kathryn Bassett wrote: > > >Friend has Access97, and the data she's been using for a > couple years now has been working fine. She received a new > grouping of people, so I brought her 97 home, opened with 2k, > imported and set up the new table (members), made a query and > set up one of the reports. Everything working fine in 2k. Did > the save to previous version, went to her house and put back > on computer. Queries and forms work fine, but when I tried to > do reports, the all give me this trim error. > >http://www.ourwebsite.org/storage/misc/trimerror1.jpg and > here is what > >the design view looks like > >http://www.ourwebsite.org/storage/misc/trimerror2.jpg > > > >All the reports are similar, and give the same error, even > though I never touched them. So it must be something about > taking from 97 to 2k and back again that messed things up. > What's wrong and how do I fix? > > > >If you need to see the actual mdb, I've zipped both versions > and put them here: > >http://www.ourwebsite.org/storage/misc/pgch.zip > > > >Thanks, > > > >-- > >Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my > bag" "GH is my > >soap" > >kathryn at bassett.net > >http://bassett.net > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Sun Mar 13 01:16:11 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 13 Mar 2005 07:16:11 -0000 Subject: [AccessD] 2000 vs 97 - trim error In-Reply-To: <20050313050122.5A81B3FC83@omta16.mta.everyone.net> Message-ID: <005801c5279c$896646d0$b274d0d5@minster33c3r25> Kathryn Sounds to me like References. It's just not finding the Trim function. If you pu, say, a Left function in one I'll bet you get the same. Check the References. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Kathryn Bassett > Sent: 13 March 2005 05:01 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] 2000 vs 97 - trim error > > > No recompile because I didn't use any macros etc so didn't > think about it. Too late to do it in 2k as she's now making > changed in 97 version. So, what menu and command needs to be > one on the 97 version to "compile" it? > > -- > Kathryn Rhinehart Bassett (Pasadena CA) > "Genealogy is my bag" "GH is my soap" > kathryn at bassett.net > http://bassett.net > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > MartyConnelly > > Sent: 12 Mar 2005 4:58 pm > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] 2000 vs 97 - trim error > > > > I opened up the 97 version mdb, reports are okay on my > > machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 > > It could be Service Packs or did you remember to do a full > > recompile of 2000 before converting to 97 > > > > > > Kathryn Bassett wrote: > > > > >Friend has Access97, and the data she's been using for a > > couple years now has been working fine. She received a new > > grouping of people, so I brought her 97 home, opened with 2k, > > imported and set up the new table (members), made a query and > > set up one of the reports. Everything working fine in 2k. Did > > the save to previous version, went to her house and put back > > on computer. Queries and forms work fine, but when I tried to > > do reports, the all give me this trim error. > > >http://www.ourwebsite.org/storage/misc/trimerror1.jpg and > > here is what > > >the design view looks like > > >http://www.ourwebsite.org/storage/misc/trimerror2.jpg > > > > > >All the reports are similar, and give the same error, even > > though I never touched them. So it must be something about > > taking from 97 to 2k and back again that messed things up. > > What's wrong and how do I fix? > > > > > >If you need to see the actual mdb, I've zipped both versions > > and put them here: > > >http://www.ourwebsite.org/storage/misc/pgch.zip > > > > > >Thanks, > > > > > >-- > > >Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my > > bag" "GH is my > > >soap" > > >kathryn at bassett.net > > >http://bassett.net > > > > > > > > > > > > > -- > > Marty Connelly > > Victoria, B.C. > > Canada > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Sun Mar 13 01:16:11 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 13 Mar 2005 07:16:11 -0000 Subject: [AccessD] Listing open forms In-Reply-To: <855499653F55AD4190B242717DF132BC04EF2F@dewey.Symphony.local> Message-ID: <005901c5279c$89d13da0$b274d0d5@minster33c3r25> Steve Unless they've changed things in later versions the Forms collection is only open forms in A97. This shows them: Dim frm As Form ' Enumerate Forms collection. For Each frm In Forms ' Print name of form. Debug.Print frm.Name Next frm -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steve Capistrant > Sent: 12 March 2005 18:20 > To: Access Developers discussion and problem solving > Subject: [AccessD] Listing open forms > > > Gang, > > I'm interested in displaying a list of open forms, allowing > the user to toggle among currently open forms (but not any . > Using the built in Windows menu is not an option because it > exposes things I don't want the > user messing with (e.g. Unhide...). I can alter the built in Windows > menu to exclude unwanted items, but that is a global setting, > affecting ALL Access apps. > > Option 1. Create a custom version of the WINDOWS menu on an > Access menu bar. But I can't figure out how to reproduce the > built in feature; its not a fixed "item" on the list with > code I can copy. Also, how would I limit the objects to forms only? > > Option 2. Create a popup form, which can be called from any > context, containing a listbox showing all open forms. This > is my second choice, but acceptable if necessary. I assume > it involves looping through the forms collection and applying > an IsLoaded() function. > > Any tips or hints? Thanks. > > Steve Capistrant > scapistrant at symphonyinfo.com > Symphony Information Services > 7308 Aspen Lane North, Suite 132 > Brooklyn Park, MN 55428 > 763-391-7400 > www.symphonyinfo.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Sun Mar 13 01:19:33 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 23:19:33 -0800 Subject: [AccessD] 2000 vs 97 - trim error References: <20050313050122.5A81B3FC83@omta16.mta.everyone.net> Message-ID: <4233E985.4080702@shaw.ca> Just open up the code behind a report, there maybe no code there but there is still p-code attached to the form like the trim statement and save and compile all. But the error may have been the uncompiled code in the 2000 version causing it during a convert. To test just hit CTRL -G from database window and in debug window type ?Access.Application.IsCompiled For gory details on P-Code and canonical text (source code) in compilations http://www.trigeminal.com/usenet/usenet004.asp?1033 You might have to use the command line /decompile method to get things sorted out This will remove all the compiled p-code from the mdb go to Run and type in cmd then type in appropriate version of this line below or cut and paste to paste in the cmd window use a right click "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" "D:\FullPathTothe\Database.mdb" /decompile Or Check her menu -- > help--> about Microsoft Access to see if form says Microsoft (R) Access 97 SR-2 Kathryn Bassett wrote: >No recompile because I didn't use any macros etc so didn't think about it. Too late to do it in 2k as she's now making changed in 97 version. So, what menu and command needs to be one on the 97 version to "compile" it? > >-- >Kathryn Rhinehart Bassett (Pasadena CA) >"Genealogy is my bag" "GH is my soap" >kathryn at bassett.net >http://bassett.net > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>MartyConnelly >>Sent: 12 Mar 2005 4:58 pm >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] 2000 vs 97 - trim error >> >>I opened up the 97 version mdb, reports are okay on my >>machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 >>It could be Service Packs or did you remember to do a full >>recompile of 2000 before converting to 97 >> >> >>Kathryn Bassett wrote: >> >> >> >>>Friend has Access97, and the data she's been using for a >>> >>> >>couple years now has been working fine. She received a new >>grouping of people, so I brought her 97 home, opened with 2k, >>imported and set up the new table (members), made a query and >>set up one of the reports. Everything working fine in 2k. Did >>the save to previous version, went to her house and put back >>on computer. Queries and forms work fine, but when I tried to >>do reports, the all give me this trim error. >> >> >>>http://www.ourwebsite.org/storage/misc/trimerror1.jpg and >>> >>> >>here is what >> >> >>>the design view looks like >>>http://www.ourwebsite.org/storage/misc/trimerror2.jpg >>> >>>All the reports are similar, and give the same error, even >>> >>> >>though I never touched them. So it must be something about >>taking from 97 to 2k and back again that messed things up. >>What's wrong and how do I fix? >> >> >>>If you need to see the actual mdb, I've zipped both versions >>> >>> >>and put them here: >> >> >>>http://www.ourwebsite.org/storage/misc/pgch.zip >>> >>>Thanks, >>> >>>-- >>>Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my >>> >>> >>bag" "GH is my >> >> >>>soap" >>>kathryn at bassett.net >>>http://bassett.net >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Sun Mar 13 01:29:14 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 12 Mar 2005 23:29:14 -0800 Subject: [AccessD] 2000 vs 97 - trim error References: <005801c5279c$896646d0$b274d0d5@minster33c3r25> Message-ID: <4233EBCA.4080006@shaw.ca> You could be right; might be pointing at DAO 3.6 from 2000 and DAO 3.51 for 97 Or a missing newer version of ADO if running on Win 95 Andy Lacey wrote: >Kathryn >Sounds to me like References. It's just not finding the Trim function. If >you pu, say, a Left function in one I'll bet you get the same. Check the >References. > >-- Andy Lacey >http://www.minstersystems.co.uk > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Kathryn Bassett >>Sent: 13 March 2005 05:01 >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] 2000 vs 97 - trim error >> >> >>No recompile because I didn't use any macros etc so didn't >>think about it. Too late to do it in 2k as she's now making >>changed in 97 version. So, what menu and command needs to be >>one on the 97 version to "compile" it? >> >>-- >>Kathryn Rhinehart Bassett (Pasadena CA) >>"Genealogy is my bag" "GH is my soap" >>kathryn at bassett.net >>http://bassett.net >> >> >> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>MartyConnelly >>>Sent: 12 Mar 2005 4:58 pm >>>To: Access Developers discussion and problem solving >>>Subject: Re: [AccessD] 2000 vs 97 - trim error >>> >>>I opened up the 97 version mdb, reports are okay on my >>>machine I am running WinXP Home Access 97 SR-2 and Jet SP 8 >>>It could be Service Packs or did you remember to do a full >>>recompile of 2000 before converting to 97 >>> >>> >>>Kathryn Bassett wrote: >>> >>> >>> >>>>Friend has Access97, and the data she's been using for a >>>> >>>> >>>couple years now has been working fine. She received a new >>>grouping of people, so I brought her 97 home, opened with 2k, >>>imported and set up the new table (members), made a query and >>>set up one of the reports. Everything working fine in 2k. Did >>>the save to previous version, went to her house and put back >>>on computer. Queries and forms work fine, but when I tried to >>>do reports, the all give me this trim error. >>> >>> >>>>http://www.ourwebsite.org/storage/misc/trimerror1.jpg and >>>> >>>> >>>here is what >>> >>> >>>>the design view looks like >>>>http://www.ourwebsite.org/storage/misc/trimerror2.jpg >>>> >>>>All the reports are similar, and give the same error, even >>>> >>>> >>>though I never touched them. So it must be something about >>>taking from 97 to 2k and back again that messed things up. >>>What's wrong and how do I fix? >>> >>> >>>>If you need to see the actual mdb, I've zipped both versions >>>> >>>> >>>and put them here: >>> >>> >>>>http://www.ourwebsite.org/storage/misc/pgch.zip >>>> >>>>Thanks, >>>> >>>>-- >>>>Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my >>>> >>>> >>>bag" "GH is my >>> >>> >>>>soap" >>>>kathryn at bassett.net >>>>http://bassett.net >>>> >>>> >>>> >>>> >>>> >>>-- >>>Marty Connelly >>>Victoria, B.C. >>>Canada >>> >>> >>> >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From colin.spence at centrelink.gov.au Sun Mar 13 08:02:13 2005 From: colin.spence at centrelink.gov.au (colin.spence at centrelink.gov.au) Date: Mon, 14 Mar 2005 01:02:13 +1100 Subject: [AccessD] Colin Spence/NSO/CSDA is out of the office. Message-ID: I will be out of the office starting 10/03/2005 and will not return until 29/03/2005. I will respond to your message when I return on 29/3/05. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** From d.dick at uws.edu.au Sun Mar 13 23:33:56 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 14 Mar 2005 16:33:56 +1100 Subject: [AccessD] A2003:File copy copies an older version Message-ID: <200503140534.j2E5Y2lE007177@cooper.uws.edu.au> Hello all I have a routine that copies a file (Latest version of My App) from a network location to folder on the Users PC Everything works well The first time I ran the routine, the whole process took a bit less than a minute "That'll do" I thought - in relation to speed The next time I ran the routine (and subsequent times since) it only takes a few seconds This sounds good in theory, but I think it is only copying a version from 'cache' So the problem is. The first time this routine was run, if version 1.00 is on the network drive then that version ends up in 'cache' and is copied each and every time I run the routine Even if I have manually copied Version 1.10 to the network then run the routine. Version 1.00 is still being copied to and dropped into the local folder ARRRGGHH What is this? I have never experienced this behaviour and defeats the purpose of having An auto updater in my apps Is anyone familiar with this or do they know a way around it? Many thanks in advance Darren From accessd666 at yahoo.com Mon Mar 14 00:57:56 2005 From: accessd666 at yahoo.com (Sad Der) Date: Sun, 13 Mar 2005 22:57:56 -0800 (PST) Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: <014901c52667$13d54c80$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <20050314065756.76358.qmail@web31607.mail.mud.yahoo.com> Ken, thnx again...but I found out why it didn't return anything. A real DOH! moment :-) Here's the code from my class: If Not dtmNewBusinessDate = "00:00:00" Then mdtmNewBusinessDate = dtmNewBusinessDate End If Else NewBusinessDate = mdtmNewBusinessDate End If The IF NOT statement should always be true. So the code in the IF THEN statement is always executed...but then it doesn't return the value!!!!! it only does it in the ELSE part. DOH! Thnx. Btw I cannot use the Public oRptParam As NEW cReportParams line. Because it is possible that multiple reports are run within the same instance of a form...meaning that the object isn't destroyed and the last value is automagicly used. Regards, Sander --- Ken Ismert wrote: > > Sander: > > Your problem is with your date delimiters: use > #00:00:00# instead of > "00:00:00". This, by the way, is Microsoft Day 0, > which is 12/30/1899. > > You will have to change this segment of your code, > as well: > dtmNewBusinessDate = InputBox("Enter the new > business date:") > > You will need something like: > Dim sNewDate As String > sNewDate = InputBox("Enter the new business > date:") > If IsDate(sNewDate) Then > mdtmNewBusinessDate = CDate(sNewDate) > End If > > Also, a suggestion: > > If you use: > Public oRptParam As NEW cReportParams > > Then you can get rid of this business in your > functions: > If oRptParam Is Nothing Then > Set oRptParam = New cReportParams > blnDestroyRepParam = True > Else > blnDestroyRepParam = False > End If > ... > If blnDestroyRepParam Then > Set oRptParam = Nothing > End If > > The New keyword sets oRptParam to a new instance of > cReportParams > automatically on first reference. A single instance > of the object will > remain active until you exit or set it to nothing. > This seems to be a good > fit for your code here. I have used this technique > for years in many Access > programs with no ill effects. It is a documented and > valid part of the VBA > spec, and it has a place in your toolbox. > > -Ken > > Property Get NewBusinessDate() As Variant > Dim dtmNewBusinessDate As Date > > If mFormDriven Then > NewBusinessDate = mdtmNewBusinessDate > Else > If mdtmNewBusinessDate = "00:00:00" Then > 'I fill the InputBox with the value 22/02/2005 > dtmNewBusinessDate = InputBox("Enter the > new > business date:") > If Not dtmNewBusinessDate = "00:00:00" Then > mdtmNewBusinessDate = dtmNewBusinessDate > End If > Else > NewBusinessDate = mdtmNewBusinessDate > End If > End If > End Property __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ From Erwin.Craps at ithelps.be Mon Mar 14 04:37:53 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 11:37:53 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B589D@stekelbes.ithelps.local> Hi group Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Erwin.Craps at ithelps.be Mon Mar 14 04:45:23 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 11:45:23 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B589E@stekelbes.ithelps.local> (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Gustav at cactus.dk Mon Mar 14 05:19:57 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 14 Mar 2005 12:19:57 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin A union is an option. However, you could also open a recordset in VBA with the list properly ordered, then walk through this while counting. The result could be written to a temp table (they are not that dangerous) or - if you have control of the table and its design - set a mark on the selected records for later filtering. /gustav >>> Erwin.Craps at ithelps.be 14-03-2005 11:45:23 >>> (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin From erbachs at gmail.com Mon Mar 14 06:37:28 2005 From: erbachs at gmail.com (Steve Erbach) Date: Mon, 14 Mar 2005 06:37:28 -0600 Subject: [AccessD] Strange date question In-Reply-To: References: Message-ID: <39cb22f3050314043768cb1f43@mail.gmail.com> Susan, So, in your example, if an Event begins on 1/9 and runs to 1/14, then you want your query to DISinclude it, is that right? That is, the starting and ending dates of the events must fall within the given range. I only had one other question: the "answer" you gave for your example query was 6 days. Isn't it 8 days? Steve Erbach Neenah, WI On Sat, 12 Mar 2005 20:22:48 -0500, Susan Klos wrote: > I have a beginning date and an ending date in my events table. I need to > find out how many days in any given month that one or more events happened. > For example, > Event 1 Beginning Date 1/3/05 Ending date 1/3/05 > Event 2 Beginning Date 1/3/05 Ending date 1/4/05 > Event 3 Beginning Date 1/3/05 Ending date 1/8/05 > Event 4 Beginning Date 1/6/05 Ending date 1/7/05 > Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 > > My query, function, module, whatever works needs to tell me: > between 1/1/05 and 1/11/05 events happened on 6 days. > I can not figure out how to disinclude events if they happened within the > beginning and ending date of other events. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marcus at tsstech.com Mon Mar 14 06:41:30 2005 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 14 Mar 2005 07:41:30 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Would something like this work (at least it does on my computer)? SELECT B.TheatreID, B.Movie, B.Tickets FROM tblBoxoffice AS B WHERE B.id In (SELECT TOP 30 A.id FROM tblBoxoffice AS A WHERE A.TheatreID=B.TheatreID ORDER BY A.TICKETS DESC) ORDER BY B.TheatreID, B.Tickets DESC; Tables: tblBoxoffice id autonumber Movie Text Tickets Long TheatreID Long tblTheatre id autonumber Theatre Text Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Monday, March 14, 2005 5:38 AM To: accessd at databaseadvisors.com Subject: [AccessD] TOP 30 for multiple theaters. Hi group Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marcus at tsstech.com Mon Mar 14 06:53:57 2005 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 14 Mar 2005 07:53:57 -0500 Subject: [AccessD] Strange date question Message-ID: Do you really mean how many events occurred on a given day? Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Klos Sent: Saturday, March 12, 2005 8:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Strange date question I have a beginning date and an ending date in my events table. I need to find out how many days in any given month that one or more events happened. For example, Event 1 Beginning Date 1/3/05 Ending date 1/3/05 Event 2 Beginning Date 1/3/05 Ending date 1/4/05 Event 3 Beginning Date 1/3/05 Ending date 1/8/05 Event 4 Beginning Date 1/6/05 Ending date 1/7/05 Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 My query, function, module, whatever works needs to tell me: between 1/1/05 and 1/11/05 events happened on 6 days. I can not figure out how to disinclude events if they happened within the beginning and ending date of other events. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marklbreen at gmail.com Mon Mar 14 07:56:06 2005 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 14 Mar 2005 13:56:06 +0000 Subject: [AccessD] TOP 30 for multiple theaters. In-Reply-To: References: Message-ID: Hello Erwin and Scott, Nice one Scott, Erwin, I am presuming at you do not have an Oracle backend, but if you do, here is an alternative to Scott's elegant sql -- This is for Oracle 8i SELECT * FROM ( SELECT tabtype,tname,ROW_NUMBER() OVER ( PARTITION BY tabtype ORDER BY tname DESC ) Top3 FROM tab ) WHERE Top3 <= 3 This does the same thing really, you can see that it looks for a result set OVER a partition of data. A nice way to handle it. I do not think that Jet supports anything like this, but do you guys know any similiar MS SQL ways to do this? Mark On Mon, 14 Mar 2005 07:41:30 -0500, Scott Marcus wrote: > Would something like this work (at least it does on my computer)? > > SELECT B.TheatreID, B.Movie, B.Tickets > FROM tblBoxoffice AS B > WHERE B.id In (SELECT TOP 30 A.id > FROM tblBoxoffice AS A > WHERE A.TheatreID=B.TheatreID > ORDER BY A.TICKETS DESC) > ORDER BY B.TheatreID, B.Tickets DESC; > > Tables: > > tblBoxoffice > id autonumber > Movie Text > Tickets Long > TheatreID Long > > tblTheatre > id autonumber > Theatre Text > > Scott Marcus > TSS Technologies, Inc. > marcus at tsstech.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - > IT Helps > Sent: Monday, March 14, 2005 5:38 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] TOP 30 for multiple theaters. > > Hi group > > Is it posible, and how do I do this to create a query with the folowing > result. > > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > Movietheatre X, movie 1, tickets, boxoffice > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Mon Mar 14 09:07:13 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 14 Mar 2005 07:07:13 -0800 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B589E@stekelbes.ithelps.local> Message-ID: <007601c528a7$80e7ede0$6601a8c0@HAL9002> Erwin: It looks like a job for a summation query grouping on theatre and movie, count on tickets, and sum on box office. But that's too obvious. What's different about your requirement that it won't work that way? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: Sent: Monday, March 14, 2005 2:45 AM Subject: [AccessD] TOP 30 for multiple theaters. (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 14 10:55:03 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 Mar 2005 08:55:03 -0800 Subject: [AccessD] OT - Drawing Viewers Message-ID: Ah, I use it at home, so it doesn't apply. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Friday, March 11, 2005 12:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT - Drawing Viewers Hi Charlotte Well, read carefully - for corporate use Irfan requests a fee. I asked him how much and that is a modest EUR 10 (~USD 14), not much but not free: Ok, here the prices/infos: IrfanView pricing (in EURO, net): 1 to 10 users: 10.00 each 11 to 50 users: 9.00 each 51 to 100 users: 8.50 each /gustav >>> cfoust at infostatsystems.com 11-03-2005 20:48:14 >>> And you can't beat the price, since it's free. Charlotte Foust -----Original Message----- From: Scott Marcus [mailto:marcus at tsstech.com] Sent: Friday, March 11, 2005 11:14 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Drawing Viewers You can purchase the plug-in for Irfanview that will view these file types. http://www.irfanview.com/plugins.htm look for CADImage plugin. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Friday, March 11, 2005 10:01 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT - Drawing Viewers What is the opinion on the best viewer for opening a wide-variety of drawing files? We are using Irfanview and VoloView, but the users contend that the still need to use AutoView for files that have a .dxg or .dxf file type. We have no control over the drawing files that are submitted to us as they come from all over the world from over 100 manufacturers. Put on your thinking caps and keep telling good jokes. -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Mon Mar 14 11:32:22 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 14 Mar 2005 12:32:22 -0500 Subject: [AccessD] Resize/zoom form Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A194@mercury.tnco-inc.com> Hi All, (Access 2000) I have a user that recently got a new 17" LCD monitor. As those of you familiar with LCDs know, they are designed to have an optimum resolution. Well, at this optimum resolution, this user has a hard time reading the text on the forms in my Access database. Is there away to zoom or expanded a form and all of its contents so that she can read the form easier? I don't want to make this change for everyone, but if there was some way to allow users to specify their preference for this one access database, that would be great. Any ideas? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From bchacc at san.rr.com Mon Mar 14 11:44:32 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 14 Mar 2005 09:44:32 -0800 Subject: [AccessD] Resize/zoom form References: <0CC84C9461AE6445AD5A602001C41C4B05A194@mercury.tnco-inc.com> Message-ID: <015401c528bd$7ae539a0$6601a8c0@HAL9002> Joe: I use the form resizing routings in the ADH2000. They work pretty well and will resize the form to fit the full screen. Rocky ----- Original Message ----- From: "Joe Rojas" To: "'Access Developers discussion and problem solving'" Sent: Monday, March 14, 2005 9:32 AM Subject: [AccessD] Resize/zoom form > Hi All, > > (Access 2000) > I have a user that recently got a new 17" LCD monitor. As those of you > familiar with LCDs know, they are designed to have an optimum resolution. > > Well, at this optimum resolution, this user has a hard time reading the > text > on the forms in my Access database. > Is there away to zoom or expanded a form and all of its contents so that > she > can read the form easier? > I don't want to make this change for everyone, but if there was some way > to > allow users to specify their preference for this one access database, that > would be great. > > Any ideas? > > Thanks, > JR > > > > > This electronic transmission is strictly confidential to TNCO, Inc. and > intended solely for the addressee. It may contain information which is > covered by legal, professional, or other privileges. If you are not the > intended addressee, or someone authorized by the intended addressee to > receive transmissions on behalf of the addressee, you must not retain, > disclose in any form, copy, or take any action in reliance on this > transmission. If you have received this transmission in error, please > notify > the sender as soon as possible and destroy this message. While TNCO, Inc. > uses virus protection, the recipient should check this email and any > attachments for the presence of viruses. TNCO, Inc. accepts no liability > for > any damage caused by any virus transmitted by this email. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Mon Mar 14 11:46:21 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 14 Mar 2005 11:46:21 -0600 Subject: [AccessD] Resize/zoom form In-Reply-To: <29573457.1110821718726.JavaMail.root@sniper14> Message-ID: <002401c528bd$bc2a35a0$123a11d8@DANWATERS> Joe, Changing the resolution on an LCD monitor isn't optimum, but it isn't bad either. If this user can't see your forms, then perhaps everything is too small? My laptop has an optimum resolution of 1200 X 1600, but I change it to 1024 X 768 for presentations. Beforehand I explain about the 'fuzziness' and everyone is OK after that. If you go to Display Properties - Settings Tab - Advanced button, there is an option to increase the font size from normal (96 dpi) to larger (120 dpi). This increases the font size while maintaining the screen resolution. It helps me a lot because my screen is 1600 X 1200 on a 15" screen. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: Monday, March 14, 2005 11:32 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Resize/zoom form Hi All, (Access 2000) I have a user that recently got a new 17" LCD monitor. As those of you familiar with LCDs know, they are designed to have an optimum resolution. Well, at this optimum resolution, this user has a hard time reading the text on the forms in my Access database. Is there away to zoom or expanded a form and all of its contents so that she can read the form easier? I don't want to make this change for everyone, but if there was some way to allow users to specify their preference for this one access database, that would be great. Any ideas? Thanks, JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Mar 14 13:09:26 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 14 Mar 2005 11:09:26 -0800 Subject: [AccessD] Resize/zoom form References: <0CC84C9461AE6445AD5A602001C41C4B05A194@mercury.tnco-inc.com> Message-ID: <4235E166.6050903@shaw.ca> Probably the quickest way is you could use Peter De Baets Shrinker Stretcher Addin ,5 licenses for $35 Demo with nag screens available. http://www.peterssoftware.com/ss.htm However I believe the methods are written up in Getz's ADH book For just a field it's Sub cmdZoom_Click() Screen.PreviousControl.SetFocu?s RunCommand acCmdZoomBox End Sub Joe Rojas wrote: >Hi All, > >(Access 2000) >I have a user that recently got a new 17" LCD monitor. As those of you >familiar with LCDs know, they are designed to have an optimum resolution. > >Well, at this optimum resolution, this user has a hard time reading the text >on the forms in my Access database. >Is there away to zoom or expanded a form and all of its contents so that she >can read the form easier? >I don't want to make this change for everyone, but if there was some way to >allow users to specify their preference for this one access database, that >would be great. > >Any ideas? > >Thanks, >JR > > > > >This electronic transmission is strictly confidential to TNCO, Inc. and >intended solely for the addressee. It may contain information which is >covered by legal, professional, or other privileges. If you are not the >intended addressee, or someone authorized by the intended addressee to >receive transmissions on behalf of the addressee, you must not retain, >disclose in any form, copy, or take any action in reliance on this >transmission. If you have received this transmission in error, please notify >the sender as soon as possible and destroy this message. While TNCO, Inc. >uses virus protection, the recipient should check this email and any >attachments for the presence of viruses. TNCO, Inc. accepts no liability for >any damage caused by any virus transmitted by this email. > > -- Marty Connelly Victoria, B.C. Canada From KIsmert at TexasSystems.com Mon Mar 14 13:23:59 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 14 Mar 2005 13:23:59 -0600 Subject: [AccessD] Automating parameterized action queries.....DATE?! In-Reply-To: <20050314065756.76358.qmail@web31607.mail.mud.yahoo.com> Message-ID: <01c001c528cb$5fe989e0$2a3ca8c0@TEXASSYSTEMS.COM> Sander, On this line: If Not dtmNewBusinessDate = "00:00:00" Then A date is never equal to a string; they are incompatible data types. Yet the code does work because the VBA interpreter attempts an implicit conversion of the string into a date, in order to compare apples to apples. The problem is, you can put any string value in this comparison. While: If Not dtmNewBusinessDate = "hello" Then compiles correctly, it will give a type mismatch error at runtime. But, this line: If Not dtmNewBusinessDate = #hello# Then will give you a syntax error when you compile. Implicit conversions are tricky because they rely on (largely undocumented) rules for variable coercion, which may not always work the way you expect. They also assume the reader understands that what you are writing is equivalent to: If Not dtmNewBusinessDate = CDate("00:00:00") Then Rather, be explicit: If Not dtmNewBusinessDate = #00:00:00# Then Or, better yet: Public Const GDT_Day0 As Date = 0 ... If Not dtmNewBusinessDate = GDT_Day0 Then -Ken Reference: See "Variant Data Type" section in: http://support.microsoft.com/kb/q110264/ -Ken From Erwin.Craps at ithelps.be Mon Mar 14 15:51:45 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 22:51:45 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B3@stekelbes.ithelps.local> I need a summation TOP 30 per theatre... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: It looks like a job for a summation query grouping on theatre and movie, count on tickets, and sum on box office. But that's too obvious. What's different about your requirement that it won't work that way? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: Sent: Monday, March 14, 2005 2:45 AM Subject: [AccessD] TOP 30 for multiple theaters. (sorry for sending previous message not compleeted....) Hi group I need a query that results in a list for a specific year, numerating all movietheaters and for each theatre a TOP 30 of movies. Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice I see only the posiblilty to create a query for each theatre and use a union query afterwards. Or by the use of a temp table, but I don't like using temp tables... The source table looks like this. movietheatre, year, week, movie, tickets, boxoffice thx Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Mar 14 15:52:52 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 14 Mar 2005 22:52:52 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B4@stekelbes.ithelps.local> I'll take a look in to this tomorow. I also need a sum but I supose that no prob. Let you know. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Monday, March 14, 2005 1:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Would something like this work (at least it does on my computer)? SELECT B.TheatreID, B.Movie, B.Tickets FROM tblBoxoffice AS B WHERE B.id In (SELECT TOP 30 A.id FROM tblBoxoffice AS A WHERE A.TheatreID=B.TheatreID ORDER BY A.TICKETS DESC) ORDER BY B.TheatreID, B.Tickets DESC; Tables: tblBoxoffice id autonumber Movie Text Tickets Long TheatreID Long tblTheatre id autonumber Theatre Text Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Monday, March 14, 2005 5:38 AM To: accessd at databaseadvisors.com Subject: [AccessD] TOP 30 for multiple theaters. Hi group Is it posible, and how do I do this to create a query with the folowing result. Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Movietheatre X, movie 1, tickets, boxoffice Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Mar 14 16:04:00 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 14 Mar 2005 14:04:00 -0800 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B58B3@stekelbes.ithelps.local> Message-ID: <024601c528e1$ba4ba740$6601a8c0@HAL9002> Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice > Movietheatre X, movie 02 , tickets, boxoffice > Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice > Movietheatre X, movie 30 , tickets, boxoffice > Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice > Movietheatre Y, movie ... , tickets, boxoffice > Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice > Movietheatre Z, movie 01, tickets, boxoffice > Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice > Movietheatre Z, movie 29 , tickets, boxoffice > Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From KP at sdsonline.net Mon Mar 14 18:48:37 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 11:48:37 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs Message-ID: <000a01c528f8$b9b73800$8001a8c0@user> Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net From cfoust at infostatsystems.com Mon Mar 14 18:55:50 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 Mar 2005 16:55:50 -0800 Subject: [AccessD] Urgent - missing Outllok in Refs Message-ID: Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 14 19:09:56 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 15 Mar 2005 12:09:56 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs In-Reply-To: <000a01c528f8$b9b73800$8001a8c0@user> Message-ID: <200503150110.j2F1A3lE014919@cooper.uws.edu.au> Hi Kath Need to have Outlook installed The Missing reference is something like "Microsoft Outlook XX Object Library" Usually lurks around C:\Program Files\Microsoft Office\Office XX\msoutl.OLB Where XX is the version NUmber Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 11:49 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 19:10:54 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 12:10:54 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: Message-ID: <001601c528fb$d673c1e0$8001a8c0@user> Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 19:17:26 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 12:17:26 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: <200503150110.j2F1A3lE014919@cooper.uws.edu.au> Message-ID: <002a01c528fc$c09fb990$8001a8c0@user> No - I have found that Darren - but there's obviously more to it..... ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Tuesday, March 15, 2005 12:09 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Hi Kath Need to have Outlook installed The Missing reference is something like "Microsoft Outlook XX Object Library" Usually lurks around C:\Program Files\Microsoft Office\Office XX\msoutl.OLB Where XX is the version NUmber Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 11:49 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Mar 14 19:20:01 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 14 Mar 2005 17:20:01 -0800 Subject: [AccessD] Urgent - missing Outllok in Refs Message-ID: Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 19:41:43 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 12:41:43 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: Message-ID: <003a01c52900$24e7b170$8001a8c0@user> OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 21:26:16 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 14:26:16 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: Message-ID: <009d01c5290e$bff25d60$8001a8c0@user> Charlotte- I've re-installed the CDO under Outlook install options and restarted the system. After trying a few other things as well - removing references and adding them again for Outlook I am still crashing with 'Automation error - the specified module cannot be found' on this line - Set nms = appOutlook.getnamespace ("MAPI") I have a little more background on this new PC: - PC was bought from Dell with Word and Powerpoint 2003 installed. - Office 2000 was then installed by another person. - Only now has the user tested our Access app with Outlook. Any tips? ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 14 21:36:17 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 15 Mar 2005 14:36:17 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs In-Reply-To: <003a01c52900$24e7b170$8001a8c0@user> Message-ID: <200503150336.j2F3aOlE024816@cooper.uws.edu.au> Hi Kath I posted to Outlook Dev mail group re this one and they want to know What is the error message? How are you instantiating the objOutlook? Can I see the code? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 21:42:41 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 14:42:41 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: <200503150336.j2F3aOlE024816@cooper.uws.edu.au> Message-ID: <00b001c52911$0a8e06b0$8001a8c0@user> Thanks Darren - code is below: Error is 'automation error - module not found' on line: Set nms = appOutlook.getnamespace ("MAPI") Kath Public Function ProcessMailMessagesInFolder() 'Adapted by K Pelletti from code from Helen Feddema 3-28-2002 Dim strerrormsg As String On Error GoTo Err_Handler Dim appOutlook As New Outlook.Application Dim nms As Outlook.NameSpace Dim fld As Outlook.MAPIFolder Dim myfld As Outlook.MAPIFolder 'itm declared as object because a folder can contain different 'types of objects Dim itm As Object Dim msg As Outlook.MailItem Dim strMessage As String Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim strsql As String Dim prj As Object Dim lngItemCount As Long Dim IntFolderNo As Integer Dim IntTotalNoFoldersInInbox As Integer Dim IntNoMailItems As Integer Dim BoolFolderFound As Boolean BoolFolderFound = False Set nms = appOutlook.GetNamespace("MAPI") 'CRASHES HERE Set fld = nms.GetDefaultFolder(olFolderInbox) IntFolderNo = 0 IntTotalNoFoldersInInbox = 0 IntNoMailItems = 0 IntTotalNoFoldersInInbox = fld.Folders.Count ' MsgBox ("Inbox has: " & fld.Folders.Count & "subfolders.") Do Until IntFolderNo = IntTotalNoFoldersInInbox ' Inner loop. IntFolderNo = IntFolderNo + 1 Set myfld = fld.Folders(IntFolderNo) If myfld.Name = "Customer Inquiries" Then BoolFolderFound = True IntNoMailItems = myfld.Items.Count ' MsgBox ("No messages is: " & IntNoMailItems) Exit Do End If Loop If BoolFolderFound = False Then MsgBox ("Unable to find the Customer Inquiries Folder in Outlook." & vbCrLf & vbCrLf & "(The folder should be a subfolder of inbox.)"), , "Hudsons Database" GoTo Normal_exit End If If myfld Is Nothing Then GoTo Err_Handler End If Debug.Print "Folder default item type: " & myfld.DefaultItemType If myfld.DefaultItemType <> olMailItem Then MsgBox "Folder does not contain mail messages; Exiting", , "Importing Mail" GoTo Normal_exit End If lngItemCount = myfld.Items.Count ' Debug.Print "Number of messages in folder: " _ ' & lngItemCount If lngItemCount = 0 Then MsgBox ("There are no mail messages in the Customer Inquiries folder."), , "Hudsons Database" GoTo Normal_exit End If 'Process items in selected folder strsql = "DELETE * FROM tblOutlookMail" DoCmd.SetWarnings False DoCmd.RunSQL strsql Set dbs = CurrentDb Set rst = dbs.OpenRecordset("tblOutlookMail") For Each itm In myfld.Items If itm.Class = olMail Then Set msg = itm With rst .AddNew !Subject = msg.Subject !Body = msg.Body !CC = msg.CC !BCC = msg.BCC !Sent = msg.SentOn !FromName = msg.SenderName .Update End With End If Next itm rst.Close Set prj = Application.CurrentProject If prj.AllForms("frmOutlookMail").IsLoaded = True Then Forms("frmOutlookMail").Requery Else DoCmd.OpenForm "frmOutlookMail", , , , , acDialog End If 'Forms("frmOutlookMail").SetFocus Normal_exit: ' MsgBox ("No of new mail messages: " & IntNoMailItems), , "Mail Import" Exit Function Err_Handler: MsgBox "Error: [" & Err.Number & "] " & IIf(Len(strerrormsg) > 0, strerrormsg, Err.Description), vbCritical, "Error Message" hCursor = CursorID RetVal = SetCursor(hCursor) Resume Normal_exit End Function ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Tuesday, March 15, 2005 2:36 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Hi Kath I posted to Outlook Dev mail group re this one and they want to know What is the error message? How are you instantiating the objOutlook? Can I see the code? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KP at sdsonline.net Mon Mar 14 23:37:42 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 15 Mar 2005 16:37:42 +1100 Subject: [AccessD] Urgent - missing Outllok in Refs References: <200503150336.j2F3aOlE024816@cooper.uws.edu.au> Message-ID: <001f01c52921$1c85fd90$8001a8c0@user> For now I have suggested to the client that their installations of Office be uninstalled, Windows uninstalled, Windows reinstalled, then Office 2000 reinstalled and we take it from there..... Charlotte was right that CDO wasn't installed but I think that the fact that there were multiple instances of Office installed (out of order) may have made it unfixable...? Kath ----- Original Message ----- From: Darren DICK To: 'Access Developers discussion and problem solving' Sent: Tuesday, March 15, 2005 2:36 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Hi Kath I posted to Outlook Dev mail group re this one and they want to know What is the error message? How are you instantiating the objOutlook? Can I see the code? Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kath Pelletti Sent: Tuesday, 15 March 2005 12:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs OK - got it. I can see that they aren't installed and will now get them couriered over from the other side of town.... Thanks - I could have wasted a lot more time on this Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 12:20 PM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Yup, that's the missing CDO, Collaborative Data Objects. When you install Office, you have to drill down in the Outlook part and check the CDO item to include it in the install. Otherwise, no MAPI calls. You can ONLY install CDO using a custom installation, not the default. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent - missing Outllok in Refs Hi Charlotte - yes Outlook is installed. I have removed the old ref to Outlook 9 and then gone back thru' the ref list and found Outlook 11 and ticked that. But now when I use the function which looks for Outlook the code falls over with 'Automation error - the specified module cannot be found' Line where crash happens: Set nms = appOutlook.getnamespace ("MAPI") NB: This code has always worked until she has had Office re-installed (same version - 2000). I have had a look at the install and it seems fine - what else can I check? What is the CDO? THanks - Kath ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 11:55 AM Subject: RE: [AccessD] Urgent - missing Outllok in Refs Is Outlook installed on the machine? Even if it is, you can't use it from Access unless the CDO was installed as well. It isn't by default, but you can do a custom reinstall and add it. Charlotte Foust -----Original Message----- From: Kath Pelletti [mailto:KP at sdsonline.net] Sent: Monday, March 14, 2005 4:49 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Urgent - missing Outllok in Refs Hi all - quick question as I am out with a client - She has a new laptop so an existing app has been re-installed - Outllok functions in Access mdb no longr working - I went into vba and expected to find a missing reference in the References window - but Outlook isnt there at all - what isn;t installed? THanks ______________________________________________ Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 KP at SDSOnline.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 03:14:28 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 10:14:28 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B6@stekelbes.ithelps.local> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice > Movietheatre X, movie 02 , tickets, boxoffice > Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice > Movietheatre X, movie 30 , tickets, boxoffice > Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice > Movietheatre Y, movie ... , tickets, boxoffice > Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice > Movietheatre Z, movie 01, tickets, boxoffice > Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice > Movietheatre Z, movie 29 , tickets, boxoffice > Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 15 03:51:24 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 10:51:24 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice > Movietheatre X, movie 02 , tickets, boxoffice > Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice > Movietheatre X, movie 30 , tickets, boxoffice > Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice > Movietheatre Y, movie ... , tickets, boxoffice > Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice > Movietheatre Z, movie 01, tickets, boxoffice > Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice > Movietheatre Z, movie 29 , tickets, boxoffice > Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 04:12:20 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 11:12:20 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58B8@stekelbes.ithelps.local> You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Mar 15 04:24:30 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 15 Mar 2005 10:24:30 -0000 Subject: [AccessD] Rtf to text Message-ID: <200503151015.j2FAF1x00462@smarthost.yourcomms.net> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard From Gustav at cactus.dk Tue Mar 15 04:24:35 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 11:24:35 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin Ha, so you are stubborn too! OK, if it must be a query so be it. I think Scott's query is close but it seems like he needs some real data as you now provide for testing. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 11:12:20 >>> You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin From Gustav at cactus.dk Tue Mar 15 04:26:29 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 11:26:29 +0100 Subject: [AccessD] Rtf to text Message-ID: Hi Richard The Text property of the RichTextBox contains the clean text. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard -- From R.Griffiths at bury.gov.uk Tue Mar 15 04:43:25 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 15 Mar 2005 10:43:25 -0000 Subject: [AccessD] Rtf to text Message-ID: <200503151033.j2FAXux01989@smarthost.yourcomms.net> Hi The RichTextBox does not have a text property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 15 March 2005 10:26 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Rtf to text Hi Richard The Text property of the RichTextBox contains the clean text. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 15 05:59:13 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 12:59:13 +0100 Subject: [AccessD] Rtf to text Message-ID: Hi Richard It does: Property Text As String Member of RichTextLib.RichTextBox Returns/sets the text contained in an object. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:43:25 >>> Hi The RichTextBox does not have a text property -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 15 March 2005 10:26 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Rtf to text Hi Richard The Text property of the RichTextBox contains the clean text. /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard From marcus at tsstech.com Tue Mar 15 06:53:03 2005 From: marcus at tsstech.com (Scott Marcus) Date: Tue, 15 Mar 2005 07:53:03 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marcus at tsstech.com Tue Mar 15 06:57:34 2005 From: marcus at tsstech.com (Scott Marcus) Date: Tue, 15 Mar 2005 07:57:34 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 07:25:27 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 14:25:27 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58BB@stekelbes.ithelps.local> Humpf, me almost offended ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 08:28:36 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 15:28:36 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58BE@stekelbes.ithelps.local> Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 2:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Humpf, me almost offended ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Mar 15 15:48:33 2005 From: pedro at plex.nl (pedro at plex.nl) Date: Tue, 15 Mar 2005 15:48:33 (MET) Subject: [AccessD] error in A2003 Message-ID: <200503151448.j2FEmXB7010017@mailhostC.plex.net> Hello Group, the following code worked fine in A97. After conversion to A2003, the code itself doesn't give a compiling error, but the .bat that it is calling does give an error; the parameterisation isn't correct. When using the .bat file directly, it is working fine. Who can help. Pedro Janssen Option Compare Database Option Explicit Function label() On Error GoTo label_Err Beep If MsgBox("Wilt U een testlabel printen?", vbYesNoCancel, "Testlabel") = vbYes Then Call Shell("c:\command.com /c c:\label2.bat", 2) Else Exit Function End If label_Exit: Exit Function label_Err: MsgBox Error$ Resume label_Exit End Function From bchacc at san.rr.com Tue Mar 15 09:01:11 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 15 Mar 2005 07:01:11 -0800 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B58B8@stekelbes.ithelps.local> Message-ID: <005201c5296f$d38e1560$6501a8c0@HAL9002> Erwin: Would a possible solution, (not well thought through, and involving some code) be to start with a query (actually a SQL statement as the record source for a recordset) that returns all the theatre names - unique values. In code loop through this recordset creating a new query to return the top thirty films for each theatre. 22 theatres, 22 queries. Finally, create another query in code that UNIONs all of the theater queries as the record source for the report. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Tuesday, March 15, 2005 2:12 AM Subject: RE: [AccessD] TOP 30 for multiple theaters. > You not nice to me, now I'm crying :-( > But I want to solve this with a query, sniff, sniff... > > I'm not getting there with your SQL code Scott. > > I only get the result of the first week (each record is one week) and > not the sum for a year or a specific timeframe. > I changed the SQL string so the sub query is a group/sum query but then > I get errors saying that I only can have one field as a result. > > I created a small database to download from here: > http://www.ithelps.be/temp/BO_testA2K.mdb > > > HISTO_YearCalender is the table containing the data. > > As a result I need a movie TOP 30 per theatre based on the box office > figures > Theatre = CUST_GID > Movie = Product_LID > Tickets= Tickets > BoxOffice=Turnover > > Like this: > CUST_GID 1 > Product_LID 1, SumOfTickets, SumOfTurnover > Product_LID ... > Product_LID 30, SumOfTickets, SumOfTurnover > CUST_GID ... > Product_LID 1, SumOfTickets, SumOfTurnover > Product_LID ... > Product_LID 30, SumOfTickets, SumOfTurnover > CUST_GID 999 > Product_LID 1, SumOfTickets, SumOfTurnover > Product_LID... > Product_LID 30, SumOfTickets, SumOfTurnover > > > Furthermover I need to be able to set year/week criteria > > Let the challenge begin.... > > Erwin > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Tuesday, March 15, 2005 10:51 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] TOP 30 for multiple theaters. > > Hi Erwin > > Should we call you Erwin the Chicken? > > As I also wrote - sometimes a temp table is the solution. Neither do I > like them, but here we are talking about 100 records! It's not a > million. > If you still wish to avoid that, create a temp database and put the > table there. Mr. Colby has ready code on his site for this. Creating a > temp database with a temp table properly indexed takes no more than a > split second. > > About the speed, if you open the temp database directly you can use Seek > on the table which is so fast that you hardly will believe it. > > /gustav > >>>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> > > Thank you for the compliment ;-) > > Well indeed, this could be easely resolved with code But this would > require a temp table and I don't like the use of temp tables. > I also believe that a good query is faster than code when performing a > 'mass' approach. > > And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB > to SQL server very soon and probably need some SQL knowledge lift... > > Erwin > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 11:04 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > This is a really quick job with a bit of code ( I KNOW you're good at > that, > too) and a temp table. Queries are fun, especially the really tough > ones. > Like the NYT Crossword. You can spend all Sunday on it. Maybe it's > because I'm an old coder. But when the queries get this complicated, the > coding solution looks so much easier. > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Monday, March 14, 2005 1:51 PM > Subject: RE: [AccessD] TOP 30 for multiple theaters. > > >>I need a summation TOP 30 per theatre... >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin >> - Beach Access Software >> Sent: Monday, March 14, 2005 4:07 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] TOP 30 for multiple theaters. >> >> Erwin: >> >> It looks like a job for a summation query grouping on theatre and > movie, >> count on tickets, and sum on box office. But that's too obvious. >> What's different about your requirement that it won't work that way? >> >> Rocky >> >> ----- Original Message ----- >> From: "Erwin Craps - IT Helps" >> To: >> Sent: Monday, March 14, 2005 2:45 AM >> Subject: [AccessD] TOP 30 for multiple theaters. >> >> >> (sorry for sending previous message not compleeted....) >> >> Hi group >> >> I need a query that results in a list for a specific year, > numerating >> all movietheaters and for each theatre a TOP 30 of movies. >> >> Is it posible, and how do I do this to create a query with the > folowing >> result. >> Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 >> , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice >> Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > >> , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice >> Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie >> ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > >> Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie >> 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice >> Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > >> 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice >> >> I see only the posiblilty to create a query for each theatre and use > a >> union query afterwards. >> Or by the use of a temp table, but I don't like using temp tables... >> >> The source table looks like this. >> >> movietheatre, year, week, movie, tickets, boxoffice >> >> >> thx >> >> >> >> >> >> Erwin Craps >> >> Zaakvoerder >> >> www.ithelps.be/onsgezin >> >> >> >> This E-mail is confidential, may be legally privileged, and is for > the >> intended recipient only. Access, disclosure, copying, distribution, > or >> reliance on any of it by anyone else is prohibited and may be a > criminal >> offence. Please delete if obtained in error and E-mail confirmation > to >> the sender. >> >> IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg >> >> www.ithelps.be * www.boxoffice.be >> * www.stadleuven.be >> >> >> IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven >> >> IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: >> Info at ithelps.be >> >> Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: >> Staff at boxoffice.be >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From marcus at tsstech.com Tue Mar 15 10:52:51 2005 From: marcus at tsstech.com (Scott Marcus) Date: Tue, 15 Mar 2005 11:52:51 -0500 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Erwin, You could optimize the query runtime by adding indexes to relevant fields. That should improve the runtime tremendously. Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 9:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 2:25 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Humpf, me almost offended ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. I meant cryptic not archaic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Scott Marcus Sent: Tuesday, March 15, 2005 7:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. Erwin, Couple of problems... The data you sent, most customers do not have 30 or more products/movies. I still did the query. The table fields are very archaic but I think I interpreted them correctly. Finally, there are 2 queries... run the one named 'qryTop30ByCustomer'. My zipped attachment got filtered. So, here are the queries based on the tables you sent... qryTicketsByYear: SELECT CalendarYear, CUST_GID, Product_LID, Sum(Tickets) AS SumOfTickets FROM HISTO_YearCalender GROUP BY CalendarYear, CUST_GID, Product_LID HAVING CalendarYear=[What Year?]; qryTop30ByCustomer: SELECT B.CUST_GID, B.Product_LID, B.SumOfTickets FROM qryTicketsByYear AS B WHERE B.Product_LID In (SELECT TOP 30 A.Product_LID FROM qryTicketsByYear AS A WHERE A.cust_gid=B.cust_gid ORDER BY A.SumOfTickets DESC) ORDER BY B.CUST_GID, B.SumOfTickets DESC; Scott Marcus TSS Technologies, Inc. marcus at tsstech.com (513) 772-7000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, March 15, 2005 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Mar 15 11:22:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 15 Mar 2005 12:22:56 -0500 Subject: [AccessD] error in A2003 Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E01@xlivmbx21.aig.com> Pedro, It would help us if you could show us what the error message is. The code as such looks ok, but I would suggest you make a change... It is never safe to assume that the command line processor is called 'command.com'. Nor can you safely assume that it will be located in the Root for drive C. However Environ("COMSPEC") will always return the correct location of the command line processor. Therefore you should get used to doing this... Dim strCommand as String strCommand = Environ("COMSPEC") call Shell(strCommand & " /c C:\label2.bat",vbMinimizedFocus) Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of pedro at plex.nl > Sent: Tuesday, March 15, 2005 10:49 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] error in A2003 > > Hello Group, > > the following code worked fine in A97. After conversion to A2003, the code > itself doesn't give a compiling error, but the .bat that it is calling > does give an error; the parameterisation isn't correct. When using the > .bat file directly, it is working fine. > > Who can help. > > Pedro Janssen > > > > > Option Compare Database > Option Explicit > > Function label() > > On Error GoTo label_Err > > Beep > > If MsgBox("Wilt U een testlabel printen?", vbYesNoCancel, "Testlabel") > = vbYes Then > > Call Shell("c:\command.com /c c:\label2.bat", 2) > > Else > > Exit Function > > End If > > label_Exit: > > Exit Function > > > label_Err: > > MsgBox Error$ > > Resume label_Exit > > > End Function > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 15 12:33:25 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 19:33:25 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: Hi Erwin You didn't tell about website access. If that is the purpose, I would build a lookup table for that which I would recreate every night. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 15:28:36 >>> Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. From clh at christopherhawkins.com Tue Mar 15 13:11:22 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 12:11:22 -0700 Subject: [AccessD] Comparing two Access DBs? Message-ID: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas?and provide a report outlining the differences in the tables. Anybody remember this?? Even better, does anyone HAVE this tool still? -Christopher- From dejpolsys at hotmail.com Tue Mar 15 13:21:39 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 15 Mar 2005 14:21:39 -0500 Subject: [AccessD] Comparing two Access DBs? References: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Message-ID: Christopher http://www.fmsinc.com/ ..look at Total Access Detective ...relatively expensive for Access tools but it works exceptionally well ime. William Hindman ""Freedom of speech makes it much easier to spot the idiots." Jay Lessig ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, March 15, 2005 2:11 PM Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Mar 15 13:35:31 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 15 Mar 2005 11:35:31 -0800 Subject: [AccessD] Comparing two Access DBs? References: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Message-ID: <046001c52996$26c70ea0$6501a8c0@HAL9002> Chris: http://www.freedownloadscenter.com/Programming/Databases_and_Networks/MDBDiff.html I've used this. It's pretty good. And free. (Anything free is always worth it.) Rocky ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, March 15, 2005 11:11 AM Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ldoering at symphonyinfo.com Tue Mar 15 13:38:00 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Tue, 15 Mar 2005 13:38:00 -0600 Subject: [AccessD] Comparing two Access DBs? In-Reply-To: <6a4f5bff148742bb949a2135d0f0de52@christopherhawkins.com> Message-ID: Christopher, Check the archives for MDBDiff. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 1:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas?and provide a report outlining the differences in the tables. Anybody remember this?? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 15 13:42:45 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 15 Mar 2005 20:42:45 +0100 Subject: [AccessD] Comparing two Access DBs? Message-ID: Hi Christopher Could it be MdbDiff: http://www.matpie.drw.net/Downloads/ /gustav >>> clh at christopherhawkins.com 15-03-2005 20:11:22 >>> Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- From clh at christopherhawkins.com Tue Mar 15 14:43:42 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 13:43:42 -0700 Subject: [AccessD] Comparing two Access DBs? Message-ID: <9f444d7dd5e140328651445c305b5261@christopherhawkins.com> I think MDBDiff is it, Gustav.? I recall the tool being of the homemeade variety, not the professional software vendor variety like an FMS tool. Thanks, all! -Christopher Hawkins- ---------------------------------------- From: "Gustav Brock" Sent: Tuesday, March 15, 2005 12:47 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Comparing two Access DBs? Hi Christopher Could it be MdbDiff: http://www.matpie.drw.net/Downloads/ /gustav >>> clh at christopherhawkins.com 15-03-2005 20:11:22 >>> Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas and provide a report outlining the differences in the tables. Anybody remember this? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 15 14:53:48 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 13:53:48 -0700 Subject: [AccessD] Access FE & MSDE BE? Message-ID: I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- From Jdemarco at hudsonhealthplan.org Tue Mar 15 15:00:37 2005 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Tue, 15 Mar 2005 16:00:37 -0500 Subject: [AccessD] Access FE & MSDE BE? Message-ID: <08F823FD83787D4BA0B99CA580AD3C749D2DCC@TTNEXCHCL2.hshhp.com> You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Erwin.Craps at ithelps.be Tue Mar 15 15:10:01 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 22:10:01 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58CE@stekelbes.ithelps.local> Well indeed, thats one more to build over night... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 7:33 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin You didn't tell about website access. If that is the purpose, I would build a lookup table for that which I would recreate every night. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 15:28:36 >>> Ok, this seems to work, was not able to fully verify because: One downside. The query was already running for 20 minutes for the year 2004 when I interupted it.... (the table has about 300,000 records at this date) In the meanwhile I have wrote the VBA code to do this. I find it a petty because, using temp tables make parametrible website access far more difficult. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Mar 15 15:10:40 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 15 Mar 2005 22:10:40 +0100 Subject: [AccessD] Comparing two Access DBs? Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58CF@stekelbes.ithelps.local> FMS inc has this tool, use it all the time... Pretty expensive, but worth the money. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 8:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] Comparing two Access DBs? Greetings all. I vaguely remember some discussion waaaaaay back in 2001 or so (has it really been that loing?) about somebody having a tool that would compare two Access database schemas?and provide a report outlining the differences in the tables. Anybody remember this?? Even better, does anyone HAVE this tool still? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 15 17:44:45 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 16:44:45 -0700 Subject: [AccessD] Access FE & MSDE BE? Message-ID: <83d9b7532c454379a9fc977f39aecbed@christopherhawkins.com> 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -- 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 Mar 15 17:59:32 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 16 Mar 2005 12:59:32 +1300 Subject: [AccessD] Scatter Graph Message-ID: <6.2.1.2.0.20050316125239.03429690@mail.dalyn.co.nz> AccessXP I am having trouble getting the data source correct for a scatter graph. I have data in a table with the following fields - Series1X, Series1Y, Series2X, Series2Y. Using the Chart Wizard I can select the fields, and XY (scatter) chart. Where I get unstuck is in the "How do you want to lay out your data in the chart" screen. Does anyone have any examples of a scatter chart using two series that I could look at? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From cfoust at infostatsystems.com Tue Mar 15 18:01:07 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 15 Mar 2005 16:01:07 -0800 Subject: [AccessD] Access FE & MSDE BE? Message-ID: I thought the limit was on connections, not users. BTW, I've only worked with full SQL Server, so that isn't a smart aleck remark. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, March 15, 2005 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access FE & MSDE BE? 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Mar 15 18:07:14 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 15 Mar 2005 19:07:14 -0500 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <83d9b7532c454379a9fc977f39aecbed@christopherhawkins.com> Message-ID: <000a01c529bc$1bc987f0$697aa8c0@ColbyM6805> The connection limit is 5 not 25 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 6:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access FE & MSDE BE? 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Tue Mar 15 18:34:10 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Wed, 16 Mar 2005 11:34:10 +1100 Subject: [AccessD] Date function for adding year based on current month and year Message-ID: Hi all, I have been virtually trouble free for a while but as usual I have been asked to do something I am not sure how to go about it. can someone please point me in the right direction. I have a form with a start and an End date on it. I need to restrict the end date in the following way. End Date -- should only accept the following 30th June except where start date is in May (and then it should only accept the second 30th June from the start date). Any suggestions appreciated including telling me where to RTFM. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From clh at christopherhawkins.com Tue Mar 15 19:07:09 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 15 Mar 2005 18:07:09 -0700 Subject: [AccessD] Access FE & MSDE BE? Message-ID: Uh-oh.? I just read something that explicitly said 25.? Lemme go find a link... ---------------------------------------- From: "John W. Colby" Sent: Tuesday, March 15, 2005 5:10 PM To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Access FE & MSDE BE? The connection limit is 5 not 25 John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 6:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access FE & MSDE BE? 20, which puts us juuuuuust shy of the 25 limit.? Still, that makes me nervous.? Is the performance throttling gradual (i.e. it gets worse the closer you get to 25) or sudden (i.e. you hit 25, your app blows up). Anything else I should be wary of? -C- ---------------------------------------- From: "Jim DeMarco" Sent: Tuesday, March 15, 2005 2:04 PM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Access FE & MSDE BE? You're probably already aware of the connection limitation. How many users on this app? Jim DeMarco -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, March 15, 2005 3:54 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers.? I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB?? Any gotchas?? Horror storeis?? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Mar 15 19:19:20 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 11:19:20 +1000 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <000a01c529bc$1bc987f0$697aa8c0@ColbyM6805> References: <83d9b7532c454379a9fc977f39aecbed@christopherhawkins.com> Message-ID: <42381638.18620.3FC35E3@stuart.lexacorp.com.pg> On 15 Mar 2005 at 19:07, John W. Colby wrote: > The connection limit is 5 not 25 > Specifically, five concurrent batch workloads or 25 concurrent connections for websites in MSDE2000 -- Stuart From dwaters at usinternet.com Tue Mar 15 19:26:23 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 15 Mar 2005 19:26:23 -0600 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <3239124.1110936140270.JavaMail.root@sniper17> Message-ID: <002001c529c7$2afbc160$123a11d8@DANWATERS> Is this correct? The 25 limit is not based on the number of people logged on, but on the number of client computers concurrently connecting to the MSDE BE. More can be logged on. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, March 15, 2005 7:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:07, John W. Colby wrote: > The connection limit is 5 not 25 > Specifically, five concurrent batch workloads or 25 concurrent connections for websites in MSDE2000 -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Mar 15 19:29:42 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 15 Mar 2005 19:29:42 -0600 Subject: [AccessD] Scatter Graph In-Reply-To: <2859643.1110931374125.JavaMail.root@sniper23> Message-ID: <002101c529c7$a1b0b3b0$123a11d8@DANWATERS> Dave, A scattergraph only has one series. That series is made up of pairs of numbers: X and Y. So you need 2 columns, one for X and one for Y, where each data point is on one row. (Or transpose the rows and columns.) The rows do not need to be in any particular order. Good Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, March 15, 2005 6:00 PM To: accessd at databaseadvisors.com Subject: [AccessD] Scatter Graph AccessXP I am having trouble getting the data source correct for a scatter graph. I have data in a table with the following fields - Series1X, Series1Y, Series2X, Series2Y. Using the Chart Wizard I can select the fields, and XY (scatter) chart. Where I get unstuck is in the "How do you want to lay out your data in the chart" screen. Does anyone have any examples of a scatter chart using two series that I could look at? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Mar 15 19:38:51 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 16 Mar 2005 12:38:51 +1100 Subject: [AccessD] Date function for adding year based on current month andyear In-Reply-To: Message-ID: <200503160139.j2G1d0lE026925@cooper.uws.edu.au> Hi Connie Dunno if I read this right but Just check to see if start date is in May or not and add 2 years to a predefined date (or not) Private Sub txtStartDate_AfterUpdate() Dim dtMayDate As Date Dim dtNonMayDate As Date dtMayDate = Format("30/06/" & Year(Date) + 2, "dd/mm/yyyy") dtNonMayDate = Format("30/06/" & Year(Date), "dd/mm/yyyy") If Month(Me.txtStartDate) = 5 Then 'It's a May date Me.txtEndDate = dtMayDate Else Me.txtEndDate = dtNonMayDate End If End sub HTH See ya Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, 16 March 2005 11:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date function for adding year based on current month andyear Hi all, I have been virtually trouble free for a while but as usual I have been asked to do something I am not sure how to go about it. can someone please point me in the right direction. I have a form with a start and an End date on it. I need to restrict the end date in the following way. End Date -- should only accept the following 30th June except where start date is in May (and then it should only accept the second 30th June from the start date). Any suggestions appreciated including telling me where to RTFM. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Tue Mar 15 19:47:34 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 11:47:34 +1000 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <002001c529c7$2afbc160$123a11d8@DANWATERS> References: <3239124.1110936140270.JavaMail.root@sniper17> Message-ID: <42381CD6.3526.4160FEE@stuart.lexacorp.com.pg> On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on the > number of client computers concurrently connecting to the MSDE BE. More can > be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that?s ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart From stuart at lexacorp.com.pg Tue Mar 15 19:57:14 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 11:57:14 +1000 Subject: [AccessD] Date function for adding year based on current month and year In-Reply-To: Message-ID: <42381F1A.19501.41EEA88@stuart.lexacorp.com.pg> On 16 Mar 2005 at 11:34, connie.kamrowski at agric.nsw.go wrote: > > I have a form with a start and an End date on it. I need to restrict the > end date in the following way. > > End Date -- should only accept the following 30th June except where start > date is in May (and then it should only accept the second 30th June from > the start date). > > Any suggestions appreciated including telling me where to RTFM. > Why have them enter an End Date at all. Just calculate it in the Form.Before_Update EndYear = year(startdate) If Month(startdate) >4 then EndYear = EndYear + 1 EndDate = DateSerial(EndYear,6,30) -- Stuart From newsgrps at dalyn.co.nz Tue Mar 15 20:18:34 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 16 Mar 2005 15:18:34 +1300 Subject: [AccessD] Scatter Graph In-Reply-To: <002101c529c7$a1b0b3b0$123a11d8@DANWATERS> References: <2859643.1110931374125.JavaMail.root@sniper23> <002101c529c7$a1b0b3b0$123a11d8@DANWATERS> Message-ID: <6.2.1.2.0.20050316151036.03431430@mail.dalyn.co.nz> Thanks for the reply Dan. My client has two series of data he wants to show on the same graph. He has printed report examples of it being done. I am trying to find out how. David At 16/03/2005, you wrote: >Dave, > >A scattergraph only has one series. That series is made up of pairs of >numbers: X and Y. So you need 2 columns, one for X and one for Y, where >each data point is on one row. (Or transpose the rows and columns.) > >The rows do not need to be in any particular order. > >Good Luck! >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, March 15, 2005 6:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Scatter Graph > >AccessXP > >I am having trouble getting the data source correct for a scatter graph. I >have data in a table with the following fields - > >Series1X, Series1Y, Series2X, Series2Y. > >Using the Chart Wizard I can select the fields, and XY >(scatter) chart. Where I get unstuck is in the "How do you want to lay >out your data in the chart" screen. > >Does anyone have any examples of a scatter chart using two series that I >could look at? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (04) 478-7456 >Mobile 027-280-9348 From dwaters at usinternet.com Tue Mar 15 20:29:09 2005 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 15 Mar 2005 20:29:09 -0600 Subject: [AccessD] Scatter Graph In-Reply-To: <1871545.1110939670296.JavaMail.root@sniper16> Message-ID: <002201c529cf$efaae290$123a11d8@DANWATERS> I was wondering if that's what your were doing. I did a quick try in Excel. You put your X values in a column (or row). Then all your Y values go into additional columns (or rows). So for two series you'll have 3 columns. MS Graph can probably do this - it seems to some of the same capabilities as Excel. Hope that helps! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, March 15, 2005 8:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Scatter Graph Thanks for the reply Dan. My client has two series of data he wants to show on the same graph. He has printed report examples of it being done. I am trying to find out how. David At 16/03/2005, you wrote: >Dave, > >A scattergraph only has one series. That series is made up of pairs of >numbers: X and Y. So you need 2 columns, one for X and one for Y, where >each data point is on one row. (Or transpose the rows and columns.) > >The rows do not need to be in any particular order. > >Good Luck! >Dan Waters > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, March 15, 2005 6:00 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Scatter Graph > >AccessXP > >I am having trouble getting the data source correct for a scatter graph. I >have data in a table with the following fields - > >Series1X, Series1Y, Series2X, Series2Y. > >Using the Chart Wizard I can select the fields, and XY >(scatter) chart. Where I get unstuck is in the "How do you want to lay >out your data in the chart" screen. > >Does anyone have any examples of a scatter chart using two series that I >could look at? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (04) 478-7456 >Mobile 027-280-9348 -- 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 Mar 15 20:49:01 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Wed, 16 Mar 2005 15:49:01 +1300 Subject: [AccessD] Scatter Graph In-Reply-To: <002201c529cf$efaae290$123a11d8@DANWATERS> References: <1871545.1110939670296.JavaMail.root@sniper16> <002201c529cf$efaae290$123a11d8@DANWATERS> Message-ID: <6.2.1.2.0.20050316154650.03441b20@mail.dalyn.co.nz> Yes I discovered that. My only problem is that the x values are not the same between the two series. David At 16/03/2005, you wrote: >I was wondering if that's what your were doing. > >I did a quick try in Excel. You put your X values in a column (or row). >Then all your Y values go into additional columns (or rows). So for two >series you'll have 3 columns. > >MS Graph can probably do this - it seems to some of the same capabilities as >Excel. > >Hope that helps! >Dan > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson >Sent: Tuesday, March 15, 2005 8:19 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Scatter Graph > >Thanks for the reply Dan. > >My client has two series of data he wants to show on the same graph. He >has printed report examples of it being done. I am trying to find out how. > >David > >At 16/03/2005, you wrote: > >Dave, > > > >A scattergraph only has one series. That series is made up of pairs of > >numbers: X and Y. So you need 2 columns, one for X and one for Y, where > >each data point is on one row. (Or transpose the rows and columns.) > > > >The rows do not need to be in any particular order. > > > >Good Luck! > >Dan Waters > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson > >Sent: Tuesday, March 15, 2005 6:00 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Scatter Graph > > > >AccessXP > > > >I am having trouble getting the data source correct for a scatter graph. I > >have data in a table with the following fields - > > > >Series1X, Series1Y, Series2X, Series2Y. > > > >Using the Chart Wizard I can select the fields, and XY > >(scatter) chart. Where I get unstuck is in the "How do you want to lay > >out your data in the chart" screen. > > > >Does anyone have any examples of a scatter chart using two series that I > >could look at? > > > >Regards > > > >David Emerson > >Dalyn Software Ltd > >25 Cunliffe St, Churton Park > >Wellington, New Zealand > >Ph/Fax (04) 478-7456 > >Mobile 027-280-9348 From connie.kamrowski at agric.nsw.gov.au Tue Mar 15 20:58:41 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Wed, 16 Mar 2005 13:58:41 +1100 Subject: [AccessD] Date function for adding year based on current month and year Message-ID: Thanks Stuart, I checked with them and that was acceptable (isn't it funny how requirements change when you explain them). Thanks again for the help Connie Analyst/Programmer Information Technology NSW Department of Primary Industries Orange On 16 Mar 2005 at 11:34, connie.kamrowski at agric.nsw.go wrote: > > I have a form with a start and an End date on it. I need to restrict the > end date in the following way. > > End Date -- should only accept the following 30th June except where start > date is in May (and then it should only accept the second 30th June from > the start date). > > Any suggestions appreciated including telling me where to RTFM. > Why have them enter an End Date at all. Just calculate it in the Form.Before_Update EndYear = year(startdate) If Month(startdate) >4 then EndYear = EndYear + 1 EndDate = DateSerial(EndYear,6,30) -- Stuart This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From ksklos at comcast.net Tue Mar 15 20:59:05 2005 From: ksklos at comcast.net (Susan Klos) Date: Tue, 15 Mar 2005 21:59:05 -0500 Subject: [AccessD] Strange date question In-Reply-To: Message-ID: No! I think I could figure that out. How many days in the month had an event? i.e. between 1/3/ and 1/11, there were events on 6 days. Event 1, 2, 3 and 4 occurred between 1/3 and 1/8 and that would be 5 days. Event 5 occurred for 1 day 1/10 - 1/11. That would be 1 day. No events occurred between 1/7 and 1/10. So where there are 8 days when events could have occurred they only occurred on 6 of those 8 days. I thought about somehow placing the events on a calendar and counting only the days which were not null. But, I don't know how to do that. Any thoughts? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Scott Marcus Sent: Monday, March 14, 2005 7:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Strange date question Do you really mean how many events occurred on a given day? Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Klos Sent: Saturday, March 12, 2005 8:23 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Strange date question I have a beginning date and an ending date in my events table. I need to find out how many days in any given month that one or more events happened. For example, Event 1 Beginning Date 1/3/05 Ending date 1/3/05 Event 2 Beginning Date 1/3/05 Ending date 1/4/05 Event 3 Beginning Date 1/3/05 Ending date 1/8/05 Event 4 Beginning Date 1/6/05 Ending date 1/7/05 Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 My query, function, module, whatever works needs to tell me: between 1/1/05 and 1/11/05 events happened on 6 days. I can not figure out how to disinclude events if they happened within the beginning and ending date of other events. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Mar 15 22:00:15 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 16 Mar 2005 14:00:15 +1000 Subject: [AccessD] Strange date question In-Reply-To: References: Message-ID: <42383BEF.1957.48F87E0@stuart.lexacorp.com.pg> On 15 Mar 2005 at 21:59, Susan Klos wrote: > No! I think I could figure that out. How many days in the month had an > event? i.e. between 1/3/ and 1/11, there were events on 6 days. Event 1, 2, > 3 and 4 occurred between 1/3 and 1/8 and that would be 5 days. Event 5 > occurred for 1 day 1/10 - 1/11. That would be 1 day. No events occurred > between 1/7 and 1/10. So where there are 8 days when events could have > occurred they only occurred on 6 of those 8 days. I thought about somehow > placing the events on a calendar and counting only the days which were not > null. But, I don't know how to do that. Any thoughts? > >Event 1 Beginning Date 1/3/05 Ending date 1/3/05 >Event 2 Beginning Date 1/3/05 Ending date 1/4/05 >Event 3 Beginning Date 1/3/05 Ending date 1/8/05 >Event 4 Beginning Date 1/6/05 Ending date 1/7/05 >Event 5 Beginning Date 1/10/05 Ending Date 1/11/05 The way I read it, There were nine possible event days (3rd,4th,5th,6th,7th,8th,9th,10th,11th) Events 1 - 4 happend on six days (3rd,4th,5th,6th,7th,8th) Event 5 happened on two other days (10th and 11th) so there were eight days with events out of the 9 (the only day without an event was 9th. Anyhow, here's one solution. Step 1. Create temporary table tblTempDates with a single DateTime field called EventDate. Step 2 create a Form frmDates with two text boxes txtStartDate and txtEnddate and as button. Step 3: Create a query (paste this into the SQL view) called "qryEventDays" SELECT tblTempDates.EventDate FROM tblTempDates, tblEvents WHERE (((tblTempDates.EventDate) Between [begindate] And [enddate]) AND ((tblEvents.EndDate)>=[Forms]![frmDates]![txtStartDate]) AND ((tblEvents.BeginDate)<=[Forms]![frmDates]![txtENdDate])) GROUP BY tblTempDates.EventDate; Step 4: Put this code in the command button's On_click event in the form: Dim lngLoopcount as long Dim strSQL as string "Build the calendar for the period CurrentDb.Execute "Delete * from tblTempdates" For lngLoopcount = txtStartDate to txtEnddate strSQL = "INSERT INTO tblTempDates ( EventDate ) SELECT " & lngLoopcount CurrentDb.Execute strSQL Next 'Get the event days Msgbox "There were events on " & Dcount("*","qryEventDays") -- Stuart From mwp.reid at qub.ac.uk Wed Mar 16 03:14:23 2005 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 16 Mar 2005 09:14:23 -0000 Subject: [AccessD] Access FE & MSDE BE? References: <3239124.1110936140270.JavaMail.root@sniper17> <42381CD6.3526.4160FEE@stuart.lexacorp.com.pg> Message-ID: <001401c52a08$8b717260$9111758f@aine> Have a look at the new version http://www.microsoft.com/sql/express/ Martin ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, March 16, 2005 1:47 AM Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on the > number of client computers concurrently connecting to the MSDE BE. More > can > be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that's ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Mar 16 03:35:09 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 16 Mar 2005 10:35:09 +0100 Subject: [AccessD] Rtf to text Message-ID: Hi Richard Did you find out? /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard From pedro at plex.nl Wed Mar 16 10:53:12 2005 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 16 Mar 2005 10:53:12 (MET) Subject: [AccessD] conversion troubles Message-ID: <200503160953.j2G9rCur021532@mailhostC.plex.net> Hello group, i have problems when converting a code that was used in A2K to A2003 for merging access to word. In A2k i used: strTemplateDir = objWord.System.PrivateProfileString("", _ "HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\Common\FileNew\LocalTemplates", _ "") & "\" strTemplateDir = strTemplateDir & "Pap0\" strLetter = strTemplateDir & "pap0Herhaling.dot" I can't find this key after making the Templatefolder "Pap0" and changing the file locations in word. After that i changed this part of the code into: strDocsPath = objWord.Options.DefaultFilePath(wdDocumentsPath) & "\" strTemplatePath = objWord.Options.DefaultFilePath(wdUserTemplatesPath) strWordTemplate = strTemplatePath & "\" & "pap0Herhaling.dot" Then i get an error: Error 5: Procedure call or argument is not valid I am sure that the fieldnames in access the and properties in the dot file are correct. I checked them twice, and they always worked before in A2k and in this part of the code or dot fiel nothing changed. I placed the pap0Herhaling.dot file in C:\Documents and Settings\PathPedro\Application Data\Microsoft\Sjablonen (Sjablonen is Dutch for Templates). I also tried the user template folder C:\Documents and Settings\PathPedro\Sjablonen Who can help me? Pedro Janssen From dwaters at usinternet.com Wed Mar 16 06:28:40 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 16 Mar 2005 06:28:40 -0600 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <22075695.1110965179487.JavaMail.root@sniper17> Message-ID: <000201c52a23$afa6e6e0$123a11d8@DANWATERS> The last I heard was that SQL 2005 (and Express) would not support Access Data Projects. Still True? If so, what would be the best way to use SQL Server Express 2005 as the BE for an application using Access FE's? Any Pros/Cons or comparisons with other BE's? I did read that SQL Server Express 2005 would support more concurrent connections than MSDE 2000. Dan Waters ProMation Systems www.promationsystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, March 16, 2005 3:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access FE & MSDE BE? Have a look at the new version http://www.microsoft.com/sql/express/ Martin ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, March 16, 2005 1:47 AM Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on the > number of client computers concurrently connecting to the MSDE BE. More > can > be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that's ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 06:49:16 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 07:49:16 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. From dwaters at usinternet.com Wed Mar 16 07:25:33 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 16 Mar 2005 07:25:33 -0600 Subject: [AccessD] MSO.DLL He-- In-Reply-To: <23762971.1110977937173.JavaMail.root@sniper17> Message-ID: <000801c52a2b$a1fb04b0$123a11d8@DANWATERS> Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 07:36:14 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 08:36:14 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 07:37:36 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 08:37:36 -0500 Subject: [AccessD] Access FE & MSDE BE? In-Reply-To: <000201c52a23$afa6e6e0$123a11d8@DANWATERS> Message-ID: <001801c52a2d$5083ff90$697aa8c0@ColbyM6805> >I did read that SQL Server Express 2005 would support more concurrent connections than MSDE 2000. Where and how many more? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 7:29 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access FE & MSDE BE? The last I heard was that SQL 2005 (and Express) would not support Access Data Projects. Still True? If so, what would be the best way to use SQL Server Express 2005 as the BE for an application using Access FE's? Any Pros/Cons or comparisons with other BE's? I did read that SQL Server Express 2005 would support more concurrent connections than MSDE 2000. Dan Waters ProMation Systems www.promationsystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Wednesday, March 16, 2005 3:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access FE & MSDE BE? Have a look at the new version http://www.microsoft.com/sql/express/ Martin ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, March 16, 2005 1:47 AM Subject: RE: [AccessD] Access FE & MSDE BE? On 15 Mar 2005 at 19:26, Dan Waters wrote: > Is this correct? > > The 25 limit is not based on the number of people logged on, but on > the number of client computers concurrently connecting to the MSDE BE. > More can be logged on. > OK, I've just done it bit more searching. JC and I are both out of date with our 5. It's 8 in MSDE2000 http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnmsde2kwrk/html/msde2000webapp.asp MSDE 2000 employs what is known as a concurrent Workload Governor. The effect of the governor is to slow certain operations down by stalling user connections for a few milliseconds whenever there are more than eight concurrent operations. Some system-generated events in the database engine count against this eight-operation limit, so the governor may kick in even when your application code requests fewer than eight operations. The key is concurrent operations, such as executing a query. This is not the same as concurrent users. The supposed 25 limit (which appears to be an approximation of how many users before the slowdown becomes noticeable) comes from a number of different places including: http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable version of SQL Server. Third-party software developers can include it in applications they build that use SQL Server to store data. MSDE is an ideal solution for: Client applications that require an embedded database. Basic websites that serve up to 25 concurrent users. and http://www.microsoft.com/sql/msde/default.asp Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, redistributable version of SQL Server that's ideal for client applications that require an embedded database, new developers learning how to build data-driven applications, and Web sites serving up to 25 concurrent users. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dejpolsys at hotmail.com Tue Mar 15 15:20:23 2005 From: dejpolsys at hotmail.com (William Hindman) Date: Tue, 15 Mar 2005 16:20:23 -0500 Subject: [AccessD] Access FE & MSDE BE? References: Message-ID: ..its SQL Server without the management tools and some built in connection restraints ...but if you're looking to go this way you might want to also take a look at MS' new SQL Express beta which will replace the MSDE in their scheme of things ...its easier to use imnsho. William Hindman ""Freedom of speech makes it much easier to spot the idiots." Jay Lessig ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, March 15, 2005 3:53 PM Subject: [AccessD] Access FE & MSDE BE? I've been reading up on MSDE on Microsoft's site, but I'm aware that there is plenty of "market-tecture" in those white papers. I need to talk to developers who have actually used it, as I'm preparing to upgrade a client from an Access back-end with a history of record corruption. What kind of issues have you all encountered when using MSDE as a back-end for an Access DB? Any gotchas? Horror storeis? Big wins? -Christopher- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 10:03:06 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 08:03:06 -0800 Subject: [AccessD] MSO.DLL He-- Message-ID: It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 10:24:48 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 11:24:48 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 10:35:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 11:35:43 -0500 Subject: [AccessD] OT: North Carolina Message-ID: <001a01c52a46$32b4bc70$697aa8c0@ColbyM6805> I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From bchacc at san.rr.com Wed Mar 16 10:49:52 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 16 Mar 2005 08:49:52 -0800 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: <00bc01c52a48$2d241b00$6501a8c0@HAL9002> Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From jwcolby at colbyconsulting.com Wed Mar 16 11:10:10 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 12:10:10 -0500 Subject: [AccessD] Speed of 2000 vs 2003 In-Reply-To: <00bc01c52a48$2d241b00$6501a8c0@HAL9002> Message-ID: <001b01c52a4b$05b94970$697aa8c0@ColbyM6805> >Is the processing speed in Access 2003 any faster than 2000? ROTFLMAOBTC Have you EVER seen a Microsoft program get faster as they bloat it up? ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 16, 2005 11:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Mar 16 11:15:20 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 16 Mar 2005 11:15:20 -0600 Subject: [AccessD] OT: North Carolina In-Reply-To: <18165904.1110991233644.JavaMail.root@sniper17> Message-ID: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> John, I lived in Norfolk VA for about 10 years (military). I left in 1987. Because I grew up in Minnesota, some things were memorable to me because of the contrast. Weather: If you are going to live within 30 miles of the coast, be prepared for high humidity year round - including winter. When you go outside in winter, your clothes offer little insulation because the humidity passes heat through your clothes so quickly. I was warmer in MN because I could dress for the weather. Roads: Some of the roads in the older cities are, as you might expect, lacking in planning. If you're coming from a modern city you'll notice. Houses: No Basements is the norm. This was a surprise to me since a basement doubles your square footage. But in that climate they have no frost so basements aren't needed. And if you're near the coast, they could be below sea level. On the other hand, people who've been there all their lives are surprised at what a basement is! Culture: A few folks may still have trouble letting go of the Civil War and the 'Southern Culture'. I hope I don't offend anyone with this but it was true when I was there. Best of Luck! Dan Waters www.ProMationSystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 16, 2005 10:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Mar 16 11:24:14 2005 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 16 Mar 2005 22:54:14 +0530 Subject: [AccessD] TOP 30 for multiple theaters. References: <46B976F2B698FF46A4FE7636509B22DF1B58B8@stekelbes.ithelps.local> Message-ID: <009001c52a4d$097a8540$9d1865cb@winxp> Erwin, Query based solution will necessarily involve a totals query, which in turn becomes the source for the final select query. However, it is observed that any such query (using the totals query as a source) runs unacceptably slow. The solution lies in appending the output of totals query into a temporary table and using that table as the source for final query. The term temporary implies that data in this table is temporary. The table itself is permanent, like other regular tables. It is found that if the final select query is based upon a subquery using IN clause, the execution is extremely slow, even when using temp table as the source. On the other hand, if a subquery for getting running count of rank is used and all ranks per year per theatre lower than the desired one are filtered out, there is dramatic improvement in speed (the data in your sample db gets processed in less than a second). With the data in your sample db, query based solution for getting top five movies per theatre per year has been worked out (it can be easily modified to suit top 30 values). It is based upon following steps (a) Totals query (Q_Sales), grouping by year, theatre and movie, reflecting the sum of tickets sold and turnover (box office) (b) Append query (Q_App) transferring the output of (a) into temporary table T_Temp (after first clearing the temp table of any existing contents). (c) Select query (Q_TopFivePerYear) based upon T_Temp, showing top five movies (as per tickets sold) per year per theatre. If the top values are required to be as per turnover (instead of tickets sold), the query can be modified suitably. The code snippet given below displays the desired results on a form in datasheet view. Query Q_TopFivePerYear as per (c) above, serves as record source for this form. On your confirmation that you are in a position to successfully receive an attachment (for zipped mdb file), sample db demonstrating the solution can be sent to you. eMail address at which it is to be sent, may also please be indicated. Best wishes, A.D.Tejpal -------------- ==================================== Sub P_GetTopFivePerYear() CurrentDb.Execute "Delete * From T_Temp;" CurrentDb.Execute "Q_App" DoCmd.OpenForm "F_TopFivePerYear", acFormDS End Sub ==================================== ----- Original Message ----- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 15:42 Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin From cfoust at infostatsystems.com Wed Mar 16 11:31:18 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:31:18 -0800 Subject: [AccessD] MSO.DLL He-- Message-ID: You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 11:32:13 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:32:13 -0800 Subject: [AccessD] OT: North Carolina Message-ID: Getting fiddle-footed again hey, JC? ;-> Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 16, 2005 8:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 11:31:03 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 12:31:03 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> Message-ID: <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> Dan, You got to Norfolk just as I was leaving. I was on the USS Kennedy for 3.5 years from Jan 75 to June 78, and our home port was Norfolk. From everything I can find on the internet the area of NC up along the VA border is quite beautiful and lots of industry and jobs. I'm looking to live "out of town" but be near a big industrial area where I can build a client base, grow old, and die. Notice that retirement is not in there anywhere. ;-) I'm about to adopt my two foster children next month so it looks like I will never retire. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 12:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: North Carolina John, I lived in Norfolk VA for about 10 years (military). I left in 1987. Because I grew up in Minnesota, some things were memorable to me because of the contrast. Weather: If you are going to live within 30 miles of the coast, be prepared for high humidity year round - including winter. When you go outside in winter, your clothes offer little insulation because the humidity passes heat through your clothes so quickly. I was warmer in MN because I could dress for the weather. Roads: Some of the roads in the older cities are, as you might expect, lacking in planning. If you're coming from a modern city you'll notice. Houses: No Basements is the norm. This was a surprise to me since a basement doubles your square footage. But in that climate they have no frost so basements aren't needed. And if you're near the coast, they could be below sea level. On the other hand, people who've been there all their lives are surprised at what a basement is! Culture: A few folks may still have trouble letting go of the Civil War and the 'Southern Culture'. I hope I don't offend anyone with this but it was true when I was there. Best of Luck! Dan Waters www.ProMationSystems.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 16, 2005 10:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 11:33:43 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:33:43 -0800 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: Rocky, With two tables of over 2million records each, the processing speed will suck no matter what version you use. For heavens sake, go to SQL Server before the thing falls over and dies! Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 16, 2005 8:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 11:37:36 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 12:37:36 -0500 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: You tell him! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Speed of 2000 vs 2003 Rocky, With two tables of over 2million records each, the processing speed will suck no matter what version you use. For heavens sake, go to SQL Server before the thing falls over and dies! Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 16, 2005 8:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 16 11:40:24 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 12:40:24 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I have the full version of office 10, XP, installed. The ITSO installed just plain old Access 2003 for me, office 11. I am developing in XP. The Microsoft Office 10.0 is not in the references. I point to the location and it does not come on board. The one from the office 11 is there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Mar 16 11:45:46 2005 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 16 Mar 2005 11:45:46 -0600 Subject: [AccessD] Speed of 2000 vs 2003 Message-ID: <123701F54509D9119A4F00D0B747349016D32E@main2.marlow.com> You need to go with local processing, which doesn't necessarily mean SQL Server. Using an Access (Jet) .mdb with a Web interface, where the .mdb resides on the webserver, allows for very fast data access/searching. Drew -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 16, 2005 10:50 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Speed of 2000 vs 2003 Dear List: Is the processing speed in Access 2003 any faster than 2000? I have an mdb with two tables of over 2,000,000 records each and I'm looking for a way to speed up the queries without going to SQL. I have indexed all of the relevant fields in the tables. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 16 11:49:23 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 16 Mar 2005 09:49:23 -0800 Subject: [AccessD] MSO.DLL He-- Message-ID: Because that's the one you installed last. Have you tried a detect and repair on Access XP to see if that fixes it? What do you need the Office library for? You may be able to use something else as an alternative. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 9:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I have the full version of office 10, XP, installed. The ITSO installed just plain old Access 2003 for me, office 11. I am developing in XP. The Microsoft Office 10.0 is not in the references. I point to the location and it does not come on board. The one from the office 11 is there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 16 11:52:03 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 16 Mar 2005 12:52:03 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: Message-ID: <002501c52a50$df96a7f0$697aa8c0@ColbyM6805> 8~) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:32 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: North Carolina Getting fiddle-footed again hey, JC? ;-> Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 16, 2005 8:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fhtapia at gmail.com Wed Mar 16 12:02:38 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 16 Mar 2005 10:02:38 -0800 Subject: [AccessD] Speed of 2000 vs 2003 In-Reply-To: <123701F54509D9119A4F00D0B747349016D32E@main2.marlow.com> References: <123701F54509D9119A4F00D0B747349016D32E@main2.marlow.com> Message-ID: Rocky, If you are trying to avoid generating additional licensing fees for your customer, you can always push the mdb into MSDE or the newer Sql Server 2005 express which is acctually the best MSDE release to date because the governating process is off now, and you can run essentially all the queries you need at a time.. but it is restricted to 1 cpu. HTH On Wed, 16 Mar 2005 11:45:46 -0600, DWUTKA at marlow.com wrote: > You need to go with local processing, which doesn't necessarily mean SQL > Server. Using an Access (Jet) .mdb with a Web interface, where the .mdb > resides on the webserver, allows for very fast data access/searching. > > Drew > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, March 16, 2005 10:50 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Speed of 2000 vs 2003 > > Dear List: > > Is the processing speed in Access 2003 any faster than 2000? I have an mdb > with two tables of over 2,000,000 records each and I'm looking for a way to > speed up the queries without going to SQL. I have indexed all of the > relevant fields in the tables. > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From dmcafee at pacbell.net Wed Mar 16 12:05:01 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Wed, 16 Mar 2005 10:05:01 -0800 Subject: [AccessD] Date function for adding year based on current monthandyear In-Reply-To: <200503160139.j2G1d0lE026925@cooper.uws.edu.au> Message-ID: This reminds me of my boss at my last job: "I need a report for the last 12 months...February 1st, 2004 to Feb 28th 2005" "Uh, sir...that's 13 months" :) Anyway, are these just text boxes that a user is entering the both dates into, or are these fixed dates or a combination of the two? Can you automatically calculate the EndDate in the Start Date after event and fill it in for the user? such as: IF NOT ISNULL(me.txtStartDate) Me.txtEndDate = IIF(MONTH(me.txtStartDate)=5, CDATE("06/30/" &(YEAR(me.txtStartDate)+1)),CDATE("06/30/" & YEAR(me.txtStartDate)) ) END IF Or if you need do this in a query instead, simply take the IIF statement from above and place it in the query as the end date criteria. I formatted my date for US, you may have to change it around for use in Australia. I had to do something similar for my wife who originally asked to calculate a patients 90 day return date which changed to the Tuesday closest to the 90 (but not before). Then a new exception came up, if it is the 3rd Tuesday in the month, make that return date become a Thursday :S Dates are fun, because they always need to be modified to fit some weird requirement. HTH David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Wednesday, 16 March 2005 11:34 AM To: accessd at databaseadvisors.com Subject: [AccessD] Date function for adding year based on current month andyear Hi all, I have been virtually trouble free for a while but as usual I have been asked to do something I am not sure how to go about it. can someone please point me in the right direction. I have a form with a start and an End date on it. I need to restrict the end date in the following way. End Date -- should only accept the following 30th June except where start date is in May (and then it should only accept the second 30th June from the start date). Any suggestions appreciated including telling me where to RTFM. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange From cyx5 at cdc.gov Wed Mar 16 12:10:25 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 16 Mar 2005 13:10:25 -0500 Subject: [AccessD] MSO.DLL He-- Message-ID: I haven't tried the detect and repair... But this is the function. Public Function fcnBldFileSelect _ (strInitDir As String, strFileTitle As String, bolRepeat As Boolean, intDialogType) _ As String '****************************************************** '* Build File Select Dialog Box '* '* '* Purpose: This function creates a file dialog box '* that allows the user to select a single '* file. The default file type is ".mdb" '* However, the "All Files" option is also '* allowed. '* '* Notes: This function requires the loading of the '* Microsoft Office 10.0 Office Library. '* '* Call Line: '* strInitDir: String Variable containing the '* initial file path to search. '* strFileTitle: String Variable containing the '* text of both the file dialog '* title and the message box if '* a file MUST be selected. '* bolRepeat: Boolean Variable indicating '* whether a file MUST be chosen. '* intDialogType: Integer Variable containing a '* valid msoFileDialog Type '* '* Modifications: '* '****************************************************** 'Declare a variable as a FileDialog object Dim fdialog As Office.FileDialog 'Create a FileDialog object as a File Picker dialog box. Set fdialog = Application.FileDialog(intDialogType) 'Declare a variable to contain the path. Dim vrtSelectedItem As Variant FileLoop: With fdialog 'Allow user to make only one selection in the dialog box .AllowMultiSelect = False 'Set the path where the file dialog should initially start .InitialFileName = strInitDir 'Set the title string of the file dialog box .Title = strFileTitle If intDialogType = msoFileDialogFilePicker Then 'Clear out the current filters, and add our own. .Filters.Clear .Filters.Add "Access Databases", "*.MDB" .Filters.Add "All Files", "*.*" End If 'Use the Show method to display the File Picker dialog box and return the user's action. 'If the user presses the action button... If .Show = -1 Then 'Step through each string in the FileDialogSelectedItems collection. For Each vrtSelectedItem In .SelectedItems fcnBldFileSelect = vrtSelectedItem Next vrtSelectedItem 'If the user presses Cancel... Else fcnBldFileSelect = "False" End If End With 'Release the File Dialog variable. Set fdialog = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Because that's the one you installed last. Have you tried a detect and repair on Access XP to see if that fixes it? What do you need the Office library for? You may be able to use something else as an alternative. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 9:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I have the full version of office 10, XP, installed. The ITSO installed just plain old Access 2003 for me, office 11. I am developing in XP. The Microsoft Office 10.0 is not in the references. I point to the location and it does not come on board. The one from the office 11 is there. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 12:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- You should not have a problem if you have both installed. You said you did NOT have the Office 10 dll installed, but how could you not if you have Access XP installed? Are you using 2003 to develop for XP or what? Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 8:25 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- Darn. So I can not develop in my version of XP now for others with XP because I also have 2003 installed. I have to take the in between step and go to a PC that does not have 2003 installed and change the reference or distribute .mde's. An mde is not a bad idea. I will have to think on that. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 16, 2005 11:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- It will ALWAYS read Office 11 version on your machine. Unless you're distributing an MDE, it should resolve itself on the other machines. If it doesn't, then go to a machine with Office 10 installed and set the reference there. Then distribute copies of that one. Overwriting will most likely break your Office 11. Charlotte Foust -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Wednesday, March 16, 2005 5:36 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] MSO.DLL He-- I tried to do that, but my references don't update, it still reads Office 11 version. Would it kill something if I just took the one from the office 10 folder and overwrote the one in the office 11 folder? Warning warning, idiot approaching? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, March 16, 2005 8:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] MSO.DLL He-- Karen - You'll need to use the Browse button in the references dialog box to select the correct file. It's in the Office10 folder, but I don't know the file name. The ridiculous references dialog box won't show the full path. Dan Waters ProMation Systems -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 16, 2005 6:49 AM To: accessd at databaseadvisors.com Subject: [AccessD] MSO.DLL He-- I just love .dll's. I now have Access 2003 installed on my PC, and Access XP and Access 2000. The applications I develop for in-house are AccessXP. Moving right along, I set a reference to Microsoft Office 11.0 Object Library in an AccessXP database and sent it up to the server to deploy. Since my users don't have Access 2003 installed, they do not have the MSO.DLL for 11.0 so they are bombing out. Trouble is, I don't have Microsoft Office 10.0 available in my references anymore and see that this file is named the same in both versions. Anybody know how I can get the 10.0 version back in my references list? Feels like a Monday. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 16 13:19:09 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 16 Mar 2005 11:19:09 -0800 Subject: [AccessD] Speed of 2000 vs 2003 References: Message-ID: <00ff01c52a5d$084609a0$6501a8c0@HAL9002> I'm looking at MSDE as an interim step. The number of users will probably never be over 2-3. Right now, only 1. Rocky ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 16, 2005 9:33 AM Subject: RE: [AccessD] Speed of 2000 vs 2003 > Rocky, > > With two tables of over 2million records each, the processing speed will > suck no matter what version you use. For heavens sake, go to SQL Server > before the thing falls over and dies! > > Charlotte Foust > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, March 16, 2005 8:50 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Speed of 2000 vs 2003 > > > Dear List: > > Is the processing speed in Access 2003 any faster than 2000? I have an > mdb with two tables of over 2,000,000 records each and I'm looking for a > way to speed up the queries without going to SQL. I have indexed all of > the relevant fields in the tables. > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kwilliam at ashlandnet.com Wed Mar 16 14:55:29 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Wed, 16 Mar 2005 15:55:29 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <001a01c52a46$32b4bc70$697aa8c0@ColbyM6805> Message-ID: <000a01c52a6a$7d7a6380$64aba8c0@ashlandnet.com> My sister lives in Cary. It is a great area. I believe it was rated as one of the best areas in the country to live. Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 16, 2005 11:36 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: North Carolina I am looking at moving to North Carolina next summer (2006). If we have any members in (or from) that area who would like to advise me on where to look at living, where NOT to live etc, please email me off line. Any info would be much appreciated. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Mar 16 16:29:43 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 16 Mar 2005 17:29:43 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <000a01c52a6a$7d7a6380$64aba8c0@ashlandnet.com> Message-ID: <20050316222939.GAJO5558.imf24aec.mail.bellsouth.net@SUSANONE> I love the western part of the state -- I have two friends that live there -- one near Grandfather Mountain. It's a beautiful, beautiful place. If you're interested, I could probably get some information on the area -- but you'd need to like the mountains. :) Susan H. My sister lives in Cary. It is a great area. I believe it was rated as one of the best areas in the country to live. From martyconnelly at shaw.ca Wed Mar 16 17:13:02 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 16 Mar 2005 15:13:02 -0800 Subject: [AccessD] Access FE & MSDE BE? References: <3239124.1110936140270.JavaMail.root@sniper17> <42381CD6.3526.4160FEE@stuart.lexacorp.com.pg> <001401c52a08$8b717260$9111758f@aine> Message-ID: <4238BD7E.6070608@shaw.ca> There is no connection limit on SQL Express 2005 (new MSDE name) There is a 4 gig limit I think. ADP's will only connect to SQL Express with a lot of limits on creating tables through ADP etc. ADP's will work as before if SQL Express is in initially installed with some sort of backwards compatibilty mode kludge A new EM was released in Jan or Dec for SQL Express. Here are some notes I have collected off the SQL 2005 Beta newsgroups http://communities.microsoft.com/newsgroups/default.asp? icp=sqlserver2005&slcid=us It seems to suggest that ADP is being downgraded after 2003 so I would not rush to use ADP's for future development. One reason is DMO has been totally replaced by SMO. Also for this reason you can't easily run SQL Server 2000 and 2005 on same machine, so don't go installing SQL 2005 Express on machines willy nilly without expecting MSDE to get clobbered. So I would install the Betas on a test development sysytem. There have been a freeware new Beta QA and EM for 2005 from MS released in the last month. Just remember they are still tinkering with the Beta and another release in June. Thinking about Access and SQL Server 2005? Might I suggest: "Plan to plan and test carefully too." http://lab.msdn.microsoft.com/express/sql/ http://www.tegels.org/qara/ There's been an interesting thread on the SQL Server Newsgroups about this topic. A developer was trying to create an ADP to work against express and got this message: You have connected to a version of SQL Server later than SQL Server 2000. The version of Visual Studio or Access that you are using was released before the version of SQL Server to which you are connected. For this reason, you might encounter problems. Mary Chipman from Microsoft posted this response: You will not be able to use any of the designers with SQLS 2005 databases, whether it's SQL Express or the Developer edition. IOW, you won't be able to create databases, tables, views or any other database objects from an ADP. The only support that is envisioned is that you will be able to connect an Access front-end to a SQLS 2005 back end if it is running in SQLS 2000 compatibility mode, so your forms, reports and other local Access objects should still run. There is no service pack or quick fix being planned as far as I know because of the amount of work it would entail. If you stop to think about it, it's pretty hard to see how accomodating new Yukon features like CLR assemblies and complex data types in the ADP designers could be achieved without a complete rewrite. That said, with Access 2003, I was able to connect up to an instance of SQL 2005 (not in 2000 compatibility mode) and work with data with SQL2000 compatible data types. I was also able to stick XML into an XML-typed (but not strongly-typed) column and have it work as expected. The bottom line here seems to be that ADPs aren't worth investing new work into today if you plan to go to SQL Server 2005 with them. However, my limited testing of Access 2003 as the Frontend and SQL Server 2005 as backend using linked tables seems to be okay. Time will tell, of course. microsoft.private.sqlserver2005.dataaccess http://communities.microsoft.com/newsgroups/default.asp? icp=sqlserver2005&slcid=us To amplify what Kent said, there are no plans for supporting designing SQL Server objects using Access ADPs either now or in the future. You can use Access to connect to a SQL Server 2005 database in 2000 compatibility mode, but there is no support for new 2005 functionality being planned. It is recommended that you use the client tools in SQL Server for creating new SQL Server objects. There is also support in Whidbey for creating SQL Server objects. posted on Friday, August 20, 2004 2:03 PM Feedback # re: Thinking about Access and SQL Server 2005? 8/22/2004 12:26 PM Rick Heiges This is good info! I have connected and used several tools with warning messages stating that it probably will not work from Access 2003. From some other threads in the newsgroups, it sounds like ADPs are being hung out to dry. I have mixed feelings about this. ADPs would allow someone with a bunch of Access programming background to leverage that knowledge to work with a SQL Server backend, but there are lots of reasons to not do this too. Access 2000 and SQL Server 2005: Just say no! If memory serves me right, I've talked before about the lack of support that SQL Server 2005 will provide for Access 2000 and my advice has been just say no! The primary reason for this is that the internals of SQL Server 2005 will be considerable different: just consider the XML type, for example. Access 2000 was geared toward SQL Server 7. There's been reports of some features of Access 2000 just not working as well as they should with SQL Server 2000. But I feel that Mary Chipman put it best recently in one of the SQL Server 2005 newsgroups. ...the Access upsizing wizard will only work with SQL Server 2000 editions. There are no plans at this time to rewrite it to work with SQLS 2005. You will also not have the capability to create or modify SQLS 2005 database objects in an Access project (ADP), only to use it as a front-end connected to a "finished" SQLS 2005 database running in SQLS 2000 compatibility mode. Microsoft Moving Away from ADPs in Access Kent Tegels quotes Mary Chipman (who wrote the book) in the SSXE newsgroup as saying that Microsoft are now recommending moving away from ADP based solutions. It looks like this may be an experiment that has not been completely successful which leaves those of us who have implemented these solutions with an interesting support problem going forward. Here is the quote: However, for new application development, ADPs aren't looking so promising, especially if you are thinking in the Yukon timeframe. A couple of problematical issues are complex data types and CLR assemblies. Tackling these head-on in the ADP UI graphical tools in the next version of Access is a daunting challenge, to say the least. ...and... FWIW, the Access team has moved away from recommending ADPs as a front-end to SQLS apps over the last year or so, based on several public talks given by team members at industry conferences. If you are contemplating new development with Access as a FE to a SQLS BE, you'll likely be ahead of the game with an efficiently-designed MDB/linked table solution rather than an ADP. FAQ: How to connect to SQL Express from "downlevel clients"(Access 2003, VS 2003, VB 6, etc(basically anything that is not using .Net 2.0 or the new SQL Native Client)) http://blogs.msdn.com/sqlexpress/archive/2004/07/23/192044.aspx Martin Reid wrote: > Have a look at the new version > > http://www.microsoft.com/sql/express/ > > > Martin > > > > ----- Original Message ----- From: "Stuart McLachlan" > > To: "Access Developers discussion and problemsolving" > > Sent: Wednesday, March 16, 2005 1:47 AM > Subject: RE: [AccessD] Access FE & MSDE BE? > > > On 15 Mar 2005 at 19:26, Dan Waters wrote: > >> Is this correct? >> >> The 25 limit is not based on the number of people logged on, but on the >> number of client computers concurrently connecting to the MSDE BE. >> More can >> be logged on. >> > OK, I've just done it bit more searching. > > JC and I are both out of date with our 5. It's 8 in MSDE2000 > > http://msdn.microsoft.com/library/default.asp?url=/library/en- > us/dnmsde2kwrk/html/msde2000webapp.asp > > MSDE 2000 employs what is known as a concurrent Workload Governor. The > effect of the governor is to slow certain operations down by stalling > user > connections for a few milliseconds whenever there are more than eight > concurrent operations. Some system-generated events in the database > engine > count against this eight-operation limit, so the governor may kick in > even > when your application code requests fewer than eight operations. The > key is > concurrent operations, such as executing a query. This is not the same as > concurrent users. > > > The supposed 25 limit (which appears to be an approximation of how many > users before the slowdown becomes noticeable) comes from a number of > different places including: > http://www.microsoft.com/hk/sql/evaluation/overview/default.mspx > > SQL Server 2000 Desktop Engine (MSDE 2000) is a free, redistributable > version of SQL Server. Third-party software developers can include it in > applications they build that use SQL Server to store data. MSDE is an > ideal > solution for: > Client applications that require an embedded database. > Basic websites that serve up to 25 concurrent users. > > > and http://www.microsoft.com/sql/msde/default.asp > > Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) is the free, > redistributable version of SQL Server that's ideal for client > applications > that require an embedded database, new developers learning how to build > data-driven applications, and Web sites serving up to 25 concurrent > users. > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Wed Mar 16 17:29:11 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 16 Mar 2005 15:29:11 -0800 Subject: [AccessD] Scatter Graph References: <6.2.1.2.0.20050316125239.03429690@mail.dalyn.co.nz> Message-ID: <4238C147.8010902@shaw.ca> Gerry Robinson has some MS graph samples http://www.vb123.com/toolshed/99_graphs/msgraph1.htm unfortunately you need to buy his Toolshed to find the secrets of scatterplots ;) http://www.vb123.com/toolshed/99_graphs/scatterplot.htm David Emerson wrote: > AccessXP > > I am having trouble getting the data source correct for a scatter > graph. I have data in a table with the following fields - > > Series1X, Series1Y, Series2X, Series2Y. > > Using the Chart Wizard I can select the fields, and XY (scatter) > chart. Where I get unstuck is in the "How do you want to lay out your > data in the chart" screen. > > Does anyone have any examples of a scatter chart using two series that > I could look at? > > Regards > > David Emerson > Dalyn Software Ltd > 25 Cunliffe St, Churton Park > Wellington, New Zealand > Ph/Fax (04) 478-7456 > Mobile 027-280-9348 -- Marty Connelly Victoria, B.C. Canada From d.dick at uws.edu.au Wed Mar 16 17:38:03 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 17 Mar 2005 10:38:03 +1100 Subject: [AccessD] A2003:Sending Mail in Outlook Failing Using Redemption Message-ID: <200503162338.j2GNcDlE015855@cooper.uws.edu.au> Cross Posted to Sue and Dmitry's list Hello all I am putting together some email code that gets all the records from a temp table, loops through all the email address in that temp table and sends an email to those persons using Outlook (11) and Using redemtion If I have say.5 Email address in the temp table and I run the code , The first 2 records from the temp table have emails created for them and the emails can be 'seen' in the 'Drafts' folder of Outlook (As Expected) but the code then fails on the 3rd (Regardless of the email address) with the following error Run-time Error '-2147418113(8000fff) Method Update Not Supported By Automation Object CONTINUE END DEBUG HELP When I click on Debug It highlighs the .Send line in the code below I didn't think I was updating anything ith the code below Any suggestions welcome Many thanks Darren Dim db As DAO.Database Dim sel_SQL As String Dim rs As DAO.Recordset Dim intRecordCount As Integer Dim strFirstName As String Dim gappOutlook As New Outlook.Application Dim msg Dim omsg sel_SQL = "SELECT * FROM [tmptblEmailAddresses]" Set db = CurrentDb() Set rs = db.OpenRecordset(sel_SQL) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs If (rs.EOF) Then MsgBox "There are no Persons who have registered an interest in this Activity/Event", vbInformation, "No Registrations" Else With msg While (Not (rs.EOF)) strFirstName = rs!FirstName .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtAttachment .Body = "Hi " & strFirstName & vbCrLf & vbCrLf & Me.txtBody '.Display .Send '<========DEBUG COMES HERE WHEN IT ERRORS rs.MoveNext Wend End With End If End With From kathryn at bassett.net Wed Mar 16 23:18:16 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 16 Mar 2005 21:18:16 -0800 Subject: Solution RE: [AccessD] 2000 vs 97 - trim error In-Reply-To: <4233EBCA.4080006@shaw.ca> Message-ID: <20050317051817.28D143FC8A@omta16.mta.everyone.net> Solution is that I talked her into upgrading. Since my husband works for school district, we can get the Office2003 Pro for $200 which she can afford. So now, (well, next week after installation) I won't have to worry about things breaking since I won't have to save to previous version. Hmm, I though I had 2003 myself, I guess I'll have to hunt for it and get it installed. BTW, I tried following your various instructions and it still gave me the trim error, so the solution we ae using is not a solution for if we kept on the way we are. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > MartyConnelly > Sent: 12 Mar 2005 11:20 pm > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] 2000 vs 97 - trim error > > Just open up the code behind a report, there maybe no code > there but there is still p-code attached to the form like the > trim statement and save and compile all. But the error may > have been the uncompiled code in the 2000 version causing it > during a convert. > To test just hit CTRL -G from database window and in debug > window type ?Access.Application.IsCompiled From d.dick at uws.edu.au Wed Mar 16 23:22:45 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 17 Mar 2005 16:22:45 +1100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: <200503170523.j2H5MtlE011440@cooper.uws.edu.au> Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With From andy at minstersystems.co.uk Thu Mar 17 01:36:07 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 17 Mar 2005 07:36:07 -0000 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: <200503170523.j2H5MtlE011440@cooper.uws.edu.au> Message-ID: <000401c52ac3$fbd55a60$b274d0d5@minster33c3r25> I'm not sure if this is it Darren but when I send a batch of emails I'd call this routine for each. In other words I'd be recreating (and Set'ing to Nothing) the Outlook and Redemption items each time. You could try that. Move the lines > Set omsg = gappOutlook.CreateItem(olMailItem) > Set msg = New Redemption.SafeMailItem > > msg.Item = omsg inside the loop. It might help. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: 17 March 2005 05:23 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A2003: Outlook not working using > redemption -DESPERATE > > > Hi all > 2nd Posting > I have now wasted a total of 6 and a half hours on this > It can't be that difficult - surely > > Can someone please help? > > Code below modified from my previous post > > I have references to Outlook 11 > I have references to Redemption > All that side of things is OK > I can send up to 2 emails before the code chokes > The email addresses are real, they work > > All I want this thing to do is > Create the message then send it - loop the recordset then > Create the message then send it - loop the recordset then... > > Simple > > Many thanks > > Darren > > > Dim db As DAO.Database > Dim selSQL As String > Dim rs As DAO.Recordset > > Dim gappOutlook As New Outlook.Application > Dim omsg > Dim msg > > Set db = CurrentDb() > selSQL = "Select tmp_tblEmailAddresses.* from > tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, > dbOpenSnapshot) > > Set omsg = gappOutlook.CreateItem(olMailItem) > Set msg = New Redemption.SafeMailItem > > msg.Item = omsg > > With rs > Do While Not .EOF > With msg > .To = rs!EmailAddress > .cc = Me.txtCC > .bcc = Me.txtBCC > .Subject = Me.txtSubject > .Attachments.Add Me.txtATTACH > .Body = Me.txtBody > '.Display ' shows it in the email client > before sending > .Send > End With > .MoveNext > Loop > End With > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Thu Mar 17 03:16:02 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 17 Mar 2005 10:16:02 +0100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58DF@stekelbes.ithelps.local> Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Mar 17 03:25:20 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 17 Mar 2005 10:25:20 +0100 Subject: [AccessD] TOP 30 for multiple theaters. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B58E1@stekelbes.ithelps.local> Thank you You can send it to Erwin.Craps at ithelps.be Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Wednesday, March 16, 2005 6:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin, Query based solution will necessarily involve a totals query, which in turn becomes the source for the final select query. However, it is observed that any such query (using the totals query as a source) runs unacceptably slow. The solution lies in appending the output of totals query into a temporary table and using that table as the source for final query. The term temporary implies that data in this table is temporary. The table itself is permanent, like other regular tables. It is found that if the final select query is based upon a subquery using IN clause, the execution is extremely slow, even when using temp table as the source. On the other hand, if a subquery for getting running count of rank is used and all ranks per year per theatre lower than the desired one are filtered out, there is dramatic improvement in speed (the data in your sample db gets processed in less than a second). With the data in your sample db, query based solution for getting top five movies per theatre per year has been worked out (it can be easily modified to suit top 30 values). It is based upon following steps (a) Totals query (Q_Sales), grouping by year, theatre and movie, reflecting the sum of tickets sold and turnover (box office) (b) Append query (Q_App) transferring the output of (a) into temporary table T_Temp (after first clearing the temp table of any existing contents). (c) Select query (Q_TopFivePerYear) based upon T_Temp, showing top five movies (as per tickets sold) per year per theatre. If the top values are required to be as per turnover (instead of tickets sold), the query can be modified suitably. The code snippet given below displays the desired results on a form in datasheet view. Query Q_TopFivePerYear as per (c) above, serves as record source for this form. On your confirmation that you are in a position to successfully receive an attachment (for zipped mdb file), sample db demonstrating the solution can be sent to you. eMail address at which it is to be sent, may also please be indicated. Best wishes, A.D.Tejpal -------------- ==================================== Sub P_GetTopFivePerYear() CurrentDb.Execute "Delete * From T_Temp;" CurrentDb.Execute "Q_App" DoCmd.OpenForm "F_TopFivePerYear", acFormDS End Sub ==================================== ----- Original Message ----- From: Erwin Craps - IT Helps To: Access Developers discussion and problem solving Sent: Tuesday, March 15, 2005 15:42 Subject: RE: [AccessD] TOP 30 for multiple theaters. You not nice to me, now I'm crying :-( But I want to solve this with a query, sniff, sniff... I'm not getting there with your SQL code Scott. I only get the result of the first week (each record is one week) and not the sum for a year or a specific timeframe. I changed the SQL string so the sub query is a group/sum query but then I get errors saying that I only can have one field as a result. I created a small database to download from here: http://www.ithelps.be/temp/BO_testA2K.mdb HISTO_YearCalender is the table containing the data. As a result I need a movie TOP 30 per theatre based on the box office figures Theatre = CUST_GID Movie = Product_LID Tickets= Tickets BoxOffice=Turnover Like this: CUST_GID 1 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID ... Product_LID 1, SumOfTickets, SumOfTurnover Product_LID ... Product_LID 30, SumOfTickets, SumOfTurnover CUST_GID 999 Product_LID 1, SumOfTickets, SumOfTurnover Product_LID... Product_LID 30, SumOfTickets, SumOfTurnover Furthermover I need to be able to set year/week criteria Let the challenge begin.... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 15, 2005 10:51 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] TOP 30 for multiple theaters. Hi Erwin Should we call you Erwin the Chicken? As I also wrote - sometimes a temp table is the solution. Neither do I like them, but here we are talking about 100 records! It's not a million. If you still wish to avoid that, create a temp database and put the table there. Mr. Colby has ready code on his site for this. Creating a temp database with a temp table properly indexed takes no more than a split second. About the speed, if you open the temp database directly you can use Seek on the table which is so fast that you hardly will believe it. /gustav >>> Erwin.Craps at ithelps.be 15-03-2005 10:14:28 >>> Thank you for the compliment ;-) Well indeed, this could be easely resolved with code But this would require a temp table and I don't like the use of temp tables. I also believe that a good query is faster than code when performing a 'mass' approach. And ofcourse to enrich my SQL syntax, I need to migrate my biggest MDB to SQL server very soon and probably need some SQL knowledge lift... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, March 14, 2005 11:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TOP 30 for multiple theaters. Erwin: This is a really quick job with a bit of code ( I KNOW you're good at that, too) and a temp table. Queries are fun, especially the really tough ones. Like the NYT Crossword. You can spend all Sunday on it. Maybe it's because I'm an old coder. But when the queries get this complicated, the coding solution looks so much easier. Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Monday, March 14, 2005 1:51 PM Subject: RE: [AccessD] TOP 30 for multiple theaters. >I need a summation TOP 30 per theatre... > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Monday, March 14, 2005 4:07 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] TOP 30 for multiple theaters. > > Erwin: > > It looks like a job for a summation query grouping on theatre and movie, > count on tickets, and sum on box office. But that's too obvious. > What's different about your requirement that it won't work that way? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: > Sent: Monday, March 14, 2005 2:45 AM > Subject: [AccessD] TOP 30 for multiple theaters. > > > (sorry for sending previous message not compleeted....) > > Hi group > > I need a query that results in a list for a specific year, numerating > all movietheaters and for each theatre a TOP 30 of movies. > > Is it posible, and how do I do this to create a query with the folowing > result. > Movietheatre X, movie 01, tickets, boxoffice Movietheatre X, movie 02 > , tickets, boxoffice Movietheatre X, movie ... , tickets, boxoffice > Movietheatre X, movie 29 , tickets, boxoffice Movietheatre X, movie 30 > , tickets, boxoffice Movietheatre Y, movie 01, tickets, boxoffice > Movietheatre Y, movie 02 , tickets, boxoffice Movietheatre Y, movie > ... , tickets, boxoffice Movietheatre Y, movie 29 , tickets, boxoffice > Movietheatre Y, movie 30 , tickets, boxoffice Movietheatre Z, movie > 01, tickets, boxoffice Movietheatre Z, movie 02 , tickets, boxoffice > Movietheatre Z, movie ... , tickets, boxoffice Movietheatre Z, movie > 29 , tickets, boxoffice Movietheatre Z, movie 30 , tickets, boxoffice > > I see only the posiblilty to create a query for each theatre and use a > union query afterwards. > Or by the use of a temp table, but I don't like using temp tables... > > The source table looks like this. > > movietheatre, year, week, movie, tickets, boxoffice > > > thx > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/onsgezin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Thu Mar 17 07:44:37 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Thu, 17 Mar 2005 14:44:37 +0100 Subject: [AccessD] OT: Word - Find and replace in the text box Message-ID: <000d01c52af7$7afc9730$0100a8c0@RazvojErvin> Hi, I'm doing some Word automation. There is a .doc file with my control names from the Access form, and in the .doc file these control names have to be replaced with control's values. E.g. In the .doc file is: My name is txtName . And the procedure ReplacePara replaces the text txtName to the text box value from Access. And in .doc file is: My name is Ervin. My problem is that the text txtName in the .doc file is in text box!, and the sub ReplacePara can't enter into text box(it works fine with "ordinary" text). How can I find and replace some text in text boxes? The backgound of a .doc file is an inserted picture(can't put it in watermark because it is too light) . TIA Ervin ' Private Sub ReplacePara(Header As String, Data As String) ObjWord.ActiveDocument.Content.Find.Execute FindText:=Header, _ ReplaceWith:=Data, Replace:=wdReplaceAll End Sub Private Sub DeletePara(Header As String, Keep As Boolean) 'Loop ensures that all occurences are replaced 'Forward and backward loops ensure that all occurences (ahead or behind) ' current cursor position are replaced With ObjWord.Selection.Find .ClearFormatting Do While .Execute(FindText:=Header, Forward:=True, _ Format:=True) = True If Keep = False Then Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) End If ObjWord.Selection.Delete Loop End With With ObjWord.Selection.Find .ClearFormatting Do While .Execute(FindText:=Header, Forward:=False, _ Format:=True) = True If Keep = False Then Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) End If ObjWord.Selection.Delete Loop End With End Sub Private Sub ChekControls() ' Use the Tag property of the control to decide which ones ' will be used for reporting Dim Ctrl As Control For Each Ctrl In Me.Form If IsNull(Ctrl.Value) Or Len(Trim(Ctrl.Value)) = 0 Then Call DeletePara(Ctrl.Name, False) Else Call ReplacePara(Ctrl.Name, Ctrl.Value) End If Next Ctrl End Sub From dba.email at gmail.com Thu Mar 17 10:23:56 2005 From: dba.email at gmail.com (Admin Sparky) Date: Thu, 17 Mar 2005 11:23:56 -0500 Subject: [AccessD] OT: North Carolina In-Reply-To: <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> References: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> Message-ID: <5f2de24205031708236d7a0755@mail.gmail.com> Rocky, Some of us were stationed here, left, and came back...now living in Chesapeake, VA. Unfortunately I can only comment on the strip of NC from the area of Nags Head northward. Nice place to visit...in between hurricanes...:( I know that seems harsh and I don't mean to condemn people for choosing to live there. The entire Outer Banks really is a wonderful area if you can ignore the tourists and the occasional catastrophic storm. Mark M. On Wed, 16 Mar 2005 12:31:03 -0500, John W. Colby wrote: > Dan, > > You got to Norfolk just as I was leaving. I was on the USS Kennedy for 3.5 > years from Jan 75 to June 78, and our home port was Norfolk. From > everything I can find on the internet the area of NC up along the VA border > is quite beautiful and lots of industry and jobs. I'm looking to live "out > of town" but be near a big industrial area where I can build a client base, > grow old, and die. > > Notice that retirement is not in there anywhere. ;-) I'm about to adopt my > two foster children next month so it looks like I will never retire. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Wednesday, March 16, 2005 12:15 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: North Carolina > > John, > > I lived in Norfolk VA for about 10 years (military). I left in 1987. > Because I grew up in Minnesota, some things were memorable to me because of > the contrast. > > Weather: If you are going to live within 30 miles of the coast, be prepared > for high humidity year round - including winter. When you go outside in > winter, your clothes offer little insulation because the humidity passes > heat through your clothes so quickly. I was warmer in MN because I could > dress for the weather. > > Roads: Some of the roads in the older cities are, as you might expect, > lacking in planning. If you're coming from a modern city you'll notice. > > Houses: No Basements is the norm. This was a surprise to me since a > basement doubles your square footage. But in that climate they have no > frost so basements aren't needed. And if you're near the coast, they could > be below sea level. On the other hand, people who've been there all their > lives are surprised at what a basement is! > > Culture: A few folks may still have trouble letting go of the Civil War and > the 'Southern Culture'. I hope I don't offend anyone with this but it was > true when I was there. > > Best of Luck! > Dan Waters > www.ProMationSystems.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby > Sent: Wednesday, March 16, 2005 10:36 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] OT: North Carolina > > I am looking at moving to North Carolina next summer (2006). If we have any > members in (or from) that area who would like to advise me on where to look > at living, where NOT to live etc, please email me off line. Any info would > be much appreciated. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Thu Mar 17 10:58:56 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 Mar 2005 08:58:56 -0800 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 17 15:47:31 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 17 Mar 2005 13:47:31 -0800 Subject: [AccessD] OT: North Carolina References: <000601c52a4b$bbcc7660$123a11d8@DANWATERS> <001c01c52a4d$ed88a190$697aa8c0@ColbyM6805> <5f2de24205031708236d7a0755@mail.gmail.com> Message-ID: <022201c52b3a$ebd835c0$6501a8c0@HAL9002> We were there last summer for a family reunion. One of those big hoses on the beach that sleeps 20. Hurricane Alex blew in for a day with 70mph winds. It was wild. Rocky ----- Original Message ----- From: "Admin Sparky" To: "Access Developers discussion and problem solving" Sent: Thursday, March 17, 2005 8:23 AM Subject: Re: [AccessD] OT: North Carolina > Rocky, > > Some of us were stationed here, left, and came back...now living in > Chesapeake, VA. Unfortunately I can only comment on the strip of NC > from the area of Nags Head northward. Nice place to visit...in > between hurricanes...:( I know that seems harsh and I don't mean to > condemn people for choosing to live there. The entire Outer Banks > really is a wonderful area if you can ignore the tourists and the > occasional catastrophic storm. > > > Mark M. > > > > On Wed, 16 Mar 2005 12:31:03 -0500, John W. Colby > wrote: >> Dan, >> >> You got to Norfolk just as I was leaving. I was on the USS Kennedy for >> 3.5 >> years from Jan 75 to June 78, and our home port was Norfolk. From >> everything I can find on the internet the area of NC up along the VA >> border >> is quite beautiful and lots of industry and jobs. I'm looking to live >> "out >> of town" but be near a big industrial area where I can build a client >> base, >> grow old, and die. >> >> Notice that retirement is not in there anywhere. ;-) I'm about to adopt >> my >> two foster children next month so it looks like I will never retire. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters >> Sent: Wednesday, March 16, 2005 12:15 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] OT: North Carolina >> >> John, >> >> I lived in Norfolk VA for about 10 years (military). I left in 1987. >> Because I grew up in Minnesota, some things were memorable to me because >> of >> the contrast. >> >> Weather: If you are going to live within 30 miles of the coast, be >> prepared >> for high humidity year round - including winter. When you go outside in >> winter, your clothes offer little insulation because the humidity passes >> heat through your clothes so quickly. I was warmer in MN because I could >> dress for the weather. >> >> Roads: Some of the roads in the older cities are, as you might expect, >> lacking in planning. If you're coming from a modern city you'll notice. >> >> Houses: No Basements is the norm. This was a surprise to me since a >> basement doubles your square footage. But in that climate they have no >> frost so basements aren't needed. And if you're near the coast, they >> could >> be below sea level. On the other hand, people who've been there all >> their >> lives are surprised at what a basement is! >> >> Culture: A few folks may still have trouble letting go of the Civil War >> and >> the 'Southern Culture'. I hope I don't offend anyone with this but it >> was >> true when I was there. >> >> Best of Luck! >> Dan Waters >> www.ProMationSystems.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >> Sent: Wednesday, March 16, 2005 10:36 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] OT: North Carolina >> >> I am looking at moving to North Carolina next summer (2006). If we have >> any >> members in (or from) that area who would like to advise me on where to >> look >> at living, where NOT to live etc, please email me off line. Any info >> would >> be much appreciated. >> >> John W. Colby >> www.ColbyConsulting.com >> >> Contribute your unused CPU cycles to a good cause: >> http://folding.stanford.edu/ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From d.dick at uws.edu.au Thu Mar 17 16:04:42 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 18 Mar 2005 09:04:42 +1100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: Message-ID: <200503172204.j2HM4rlE006727@cooper.uws.edu.au> Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 17 17:27:11 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 17 Mar 2005 15:27:11 -0800 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: I'm not sure I understand the question. It will create one email with all the To addresses, but each addressee will get an email showing all the To addresses, and I don't think you would want that. We use this in our applications when a report is being sent to a number of different email addresses. We certainly don't create an email for each, but we also don't send a hundred of them at once! An alternative would be to added the recipients to the BCC, which only shows the individual addressee their own address. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, March 17, 2005 2:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Mar 17 18:45:25 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 18 Mar 2005 11:45:25 +1100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: Message-ID: <200503180045.j2I0jZlE013331@cooper.uws.edu.au> HI Charlotte Thanks for the reply This application potentially will be sending out multiples of hundreds (In one circumstance even thousands) of emails - No it's not spam :-)) So instead of using .To = rs!EmailAddress in the RS loop I can build a string of recipients by typing .Recipients.Add rs!EmailAddress somewhere in the RS loop Then at the end of the loop have something like .BCC = .recipients Is that right? So instead of sending multiple of hundreds, just send one with hundreds of BCC's Cool Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 10:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE I'm not sure I understand the question. It will create one email with all the To addresses, but each addressee will get an email showing all the To addresses, and I don't think you would want that. We use this in our applications when a report is being sent to a number of different email addresses. We certainly don't create an email for each, but we also don't send a hundred of them at once! An alternative would be to added the recipients to the BCC, which only shows the individual addressee their own address. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, March 17, 2005 2:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Thu Mar 17 19:27:57 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 17 Mar 2005 17:27:57 -0800 Subject: [AccessD] 2003 "permissions" Message-ID: <20050318012800.3BE3E3FC9C@omta16.mta.everyone.net> I just updated to Access 2004. Trying to open a database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? Another thing I get is the Security warning "This file may not be safe if it contains code that was intended to harm your computer. Do you want to open this file or cancel the operation?" How do I get it to NOT ask me that everytime I open it? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From stuart at lexacorp.com.pg Thu Mar 17 19:41:27 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 18 Mar 2005 11:41:27 +1000 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE In-Reply-To: <200503180045.j2I0jZlE013331@cooper.uws.edu.au> References: Message-ID: <423ABE67.10329.504FF69@stuart.lexacorp.com.pg> On 18 Mar 2005 at 11:45, Darren DICK wrote: > Is that right? > So instead of sending multiple of hundreds, just send one with hundreds of BCC's > Be careful - many mail servers have a limit of the number of recipients for a single message. This should be at least 100 according to the RFCs, but many ISPs are implementing a lower limit than this as an anti-spam measure. -- Stuart From jmoss111 at bellsouth.net Thu Mar 17 21:02:54 2005 From: jmoss111 at bellsouth.net (James Moss) Date: Thu, 17 Mar 2005 21:02:54 -0600 Subject: [AccessD] 2003 "permissions" In-Reply-To: <20050318012800.3BE3E3FC9C@omta16.mta.everyone.net> Message-ID: <20050318025715.SWPG12676.imf22aec.mail.bellsouth.net@jmoss3> The security warning can be disabled by clicking Tools|Macro|Security and set the security level to low. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Thursday, March 17, 2005 7:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] 2003 "permissions" I just updated to Access 2004. Trying to open a database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? Another thing I get is the Security warning "This file may not be safe if it contains code that was intended to harm your computer. Do you want to open this file or cancel the operation?" How do I get it to NOT ask me that everytime I open it? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Thu Mar 17 21:23:48 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 17 Mar 2005 19:23:48 -0800 Subject: [AccessD] 2003 "permissions" Thanks In-Reply-To: <20050318025715.SWPG12676.imf22aec.mail.bellsouth.net@jmoss3> Message-ID: <20050318032350.EF82F403BD@omta18.mta.everyone.net> I had been trying to find something in Tools|Security and didn't realize there was another Security area. Thanks. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of James Moss > Sent: 17 Mar 2005 7:03 pm > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] 2003 "permissions" > > The security warning can be disabled by clicking > Tools|Macro|Security and set the security level to low. From kathryn at bassett.net Thu Mar 17 21:26:11 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Thu, 17 Mar 2005 19:26:11 -0800 Subject: [AccessD] 2003 "permissions" - the other part In-Reply-To: <20050318012800.3BE3E3FC9C@omta16.mta.everyone.net> Message-ID: <20050318032614.2846E3FC21@omta16.mta.everyone.net> James Moss answered the securities part of my query, now back to the original part which only affects one database. I just updated to Access 2003. Trying to open a specifc database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net From martyconnelly at shaw.ca Fri Mar 18 01:12:22 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 17 Mar 2005 23:12:22 -0800 Subject: [AccessD] 2003 "permissions" - the other part References: <20050318032614.2846E3FC21@omta16.mta.everyone.net> Message-ID: <423A7F56.9080702@shaw.ca> 1 the database could be corrupt, 2 or this implies that there is an mdw file and you don't have permission to use something. 3 Right-click the mdb file and mdw file if there is one in the Windows Explorer. Is it read-only? Is there a security warning that the file is blocked, with an unblock button? 4 Did you use an mdw file originally ie When you open the database, do you enter a username and password? if so you may have to point to the original mdw rather than the new one established by Access 2003 You can build a shortcut to the mdb to use that particular mdw file as well. The target for the shortcut would be something like this: "C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" "C:\MyFolder\MyFile.mdb" /wrkgrp "C:\MyFolder\system.mdw" It could be a folder permision problem but unlikely if you truely installed to an admin account Kathryn Bassett wrote: >James Moss answered the securities part of my query, now back to the original part which only affects one database. > >I just updated to Access 2003. Trying to open a specifc database. Get: > >"You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." > >What the heck? I AM the administrator - what do I do (step by step please)? > >-- >Kathryn Rhinehart Bassett (Pasadena CA) >"Genealogy is my bag" "GH is my soap" >kathryn at bassett.net > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Fri Mar 18 01:23:16 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 18 Mar 2005 08:23:16 +0100 Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5903@stekelbes.ithelps.local> This is the code for dooing that Notice I also add customer company, last and first names, I find it more personal that if the display name is set correctly, but it's not obligated. Dim mItem As Outlook.MailItem '... Other code Set mRecip = mItem.Recipients.Add(rs.Fields("Company") & "-" & rs.Fields("Firstname") & " " & rs.Fields("surname") & " " & rs.Fields("Email")) mRecip.Type = olBCC mRecip.Resolve Set mRecip = Nothing As already said by stuart, keep in mind that the SMTP server that u use to relay your mails can have a maximum of x recipients (all in to, cc and bcc). If our company has an own SMTP server, ask your mail administrator. If u use the ISP SMTP server, ask your ISP. My ISP for example supports up to 999 recipients in 1 mail. Greetings Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Friday, March 18, 2005 1:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE HI Charlotte Thanks for the reply This application potentially will be sending out multiples of hundreds (In one circumstance even thousands) of emails - No it's not spam :-)) So instead of using .To = rs!EmailAddress in the RS loop I can build a string of recipients by typing .Recipients.Add rs!EmailAddress somewhere in the RS loop Then at the end of the loop have something like .BCC = .recipients Is that right? So instead of sending multiple of hundreds, just send one with hundreds of BCC's Cool Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 10:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE I'm not sure I understand the question. It will create one email with all the To addresses, but each addressee will get an email showing all the To addresses, and I don't think you would want that. We use this in our applications when a report is being sent to a number of different email addresses. We certainly don't create an email for each, but we also don't send a hundred of them at once! An alternative would be to added the recipients to the BCC, which only shows the individual addressee their own address. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, March 17, 2005 2:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi All Many thanks for the responses Andy's suggestion was the answer I was only setting up the email once I had to put it 'in the loop' so to speak Thanks to Erwin and Charlotte too for the info on resolving Charlotte I see in your response you have the line omsg.Recipients.Add rs!EmailAddress Does this mean I can build the string of addresses then push it out as one Super email or will it still 'produce' 100 emails if there are 100 email addresses? Many thanks Andy - you da man SYWYE Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 18 March 2005 3:59 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE It works the same way with Redemption. You must resolve the recipients. omsg.Recipients.Add rs!EmailAddress omsg.Recipients.ResolveAll Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Thursday, March 17, 2005 1:16 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2003: Outlook not working using redemption -DESPERATE Don't know redemption but I had some problems with Outlook 11 The e-mailadresses need to be resolved BEFORE sending. This can be done with mItem.Recipients.ResolveAll (mItem is a Outlook mailitem) Also I noticed there is a bug in Outlook with this resolve thing. When the new message is hidden the recipients do not resolve. So you first need to display the message and resolve again... I noticed that the folowing code works fine for me. mItem.Display 'Needed to resolve: bug??? mItem.Recipients.ResolveAll Debug.Print mItem.Recipients.ResolveAll Do While mItem.Recipients.ResolveAll = False DoEvents Debug.Print "Waiting for recipients resolve." mItem.Recipients.ResolveAll Loop mItem.Send Please bare in mind this is with a outlook message Item! Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Thursday, March 17, 2005 6:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003: Outlook not working using redemption -DESPERATE Hi all 2nd Posting I have now wasted a total of 6 and a half hours on this It can't be that difficult - surely Can someone please help? Code below modified from my previous post I have references to Outlook 11 I have references to Redemption All that side of things is OK I can send up to 2 emails before the code chokes The email addresses are real, they work All I want this thing to do is Create the message then send it - loop the recordset then Create the message then send it - loop the recordset then... Simple Many thanks Darren Dim db As DAO.Database Dim selSQL As String Dim rs As DAO.Recordset Dim gappOutlook As New Outlook.Application Dim omsg Dim msg Set db = CurrentDb() selSQL = "Select tmp_tblEmailAddresses.* from tmp_tblEmailAddresses" Set rs = db.OpenRecordset(selSQL, dbOpenSnapshot) Set omsg = gappOutlook.CreateItem(olMailItem) Set msg = New Redemption.SafeMailItem msg.Item = omsg With rs Do While Not .EOF With msg .To = rs!EmailAddress .cc = Me.txtCC .bcc = Me.txtBCC .Subject = Me.txtSubject .Attachments.Add Me.txtATTACH .Body = Me.txtBody '.Display ' shows it in the email client before sending .Send End With .MoveNext Loop End With -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Mar 18 01:31:26 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 18 Mar 2005 08:31:26 +0100 Subject: [AccessD] 2003 "permissions" - the other part Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5904@stekelbes.ithelps.local> When upgrading/installing A2K3 your MDW file get overwritten by the default one of Office 2K3. Or in case the MDW file was not in the default location, The MDW (workgroup) file path has been set to the default one. You will need to join the corrept MDW (workgroup) file before you will be able to do what you want to do. When it's overwritten you will need to restore from backup. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Friday, March 18, 2005 4:26 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] 2003 "permissions" - the other part James Moss answered the securities part of my query, now back to the original part which only affects one database. I just updated to Access 2003. Trying to open a specifc database. Get: "You do not have the necessary permissions to use the (path/filname) object. Have your system administator or the person who created this object establish the appropriate permissions for you." What the heck? I AM the administrator - what do I do (step by step please)? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Mar 18 02:56:52 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 9:56:52 +0100 Subject: [AccessD] Outlook/Redemption Recipients Message-ID: <20050318095651.63143256C7B@smtp.nildram.co.uk> Apologies for changing the subject. I'm at work on webmail and don't have the originals to look at. Darren, This is code I use to add recipients to a Redemption message then send. the object names will be different from yours and you'll need to replace my For loop with your recordset loop. add this to your Dim's Dim objRecipient As Object then With objSafeMailItem For x = 1 To UBound(prmBCCArr) Set objRecipient = .Recipients.Add(prmBCCArr(x)) objRecipient.Type = olBCC Next .Recipients.ResolveAll Which allows you to designate the recipients as BCCs. I'd also agree that you can only expect to put so many recipients on one email, so you could have a loop within a loop counting to, say, 100 in the inner loop, then sending one email then go round again until EOF. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From viner at EUnet.yu Fri Mar 18 04:37:54 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Fri, 18 Mar 2005 11:37:54 +0100 Subject: [AccessD] OT: Word - Find and replace in the text box References: <000d01c52af7$7afc9730$0100a8c0@RazvojErvin> Message-ID: <001101c52ba7$7375cd00$0100a8c0@RazvojErvin> Hi, I just found a solution on http://word.mvps.org Sorry for increasing List traffic... Ervin PS Feel free to ask for the solution privately! ----- Original Message ----- From: "Ervin Brindza" To: Sent: Thursday, March 17, 2005 2:44 PM Subject: [AccessD] OT: Word - Find and replace in the text box > Hi, > I'm doing some Word automation. There is a .doc file with my control names from the Access form, and in the .doc file these control names have to be replaced with control's values. > E.g. In the .doc file is: > My name is txtName . And the procedure ReplacePara replaces the text txtName to the text box value from Access. And in .doc file is: My name is Ervin. My problem is that the text txtName in the .doc file is in text box!, and the sub ReplacePara can't enter into text box(it works fine with "ordinary" text). How can I find and replace some text in text boxes? The backgound of a .doc file is an inserted picture(can't put it in watermark because it is too light) . > TIA > Ervin > > > ' > Private Sub ReplacePara(Header As String, Data As String) > ObjWord.ActiveDocument.Content.Find.Execute FindText:=Header, _ > ReplaceWith:=Data, Replace:=wdReplaceAll > End Sub > > > Private Sub DeletePara(Header As String, Keep As Boolean) > > 'Loop ensures that all occurences are replaced > 'Forward and backward loops ensure that all occurences (ahead or behind) > ' current cursor position are replaced > > With ObjWord.Selection.Find > .ClearFormatting > Do While .Execute(FindText:=Header, Forward:=True, _ > Format:=True) = True > If Keep = False Then > Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) > End If > ObjWord.Selection.Delete > Loop > End With > > With ObjWord.Selection.Find > .ClearFormatting > Do While .Execute(FindText:=Header, Forward:=False, _ > Format:=True) = True > If Keep = False Then > Call ObjWord.Selection.MoveDown(wdParagraph, 1, wdExtend) > End If > ObjWord.Selection.Delete > Loop > End With > > End Sub > > Private Sub ChekControls() > ' Use the Tag property of the control to decide which ones > ' will be used for reporting > > Dim Ctrl As Control > For Each Ctrl In Me.Form > > If IsNull(Ctrl.Value) Or Len(Trim(Ctrl.Value)) = 0 Then > Call DeletePara(Ctrl.Name, False) > Else > Call ReplacePara(Ctrl.Name, Ctrl.Value) > End If > Next Ctrl > End Sub > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Mar 18 06:19:32 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Mar 2005 13:19:32 +0100 (CET) Subject: [AccessD] Is one time between two other times Message-ID: <17068716.1111148372757.JavaMail.www@wwinf3003> To all, I can't seem to figure this out at all, I have a table of which one of the fields is a start time. I need to run a query to see if that time is between 07:00 and 19:00 or 19:00 and 07:00. Can any help me with this please. Thanks in advance for your help. Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From jwcolby at colbyconsulting.com Fri Mar 18 06:37:50 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 18 Mar 2005 07:37:50 -0500 Subject: [AccessD] Is one time between two other times In-Reply-To: <17068716.1111148372757.JavaMail.www@wwinf3003> Message-ID: <000801c52bb7$50497c90$697aa8c0@ColbyM6805> Option Compare Database Option Explicit '. '.========================================================================= '.Copyright : CColby Consulting 2001. All rights reserved. '.E-mail : jcolby at ColbyConsulting.com '.========================================================================= ' DO NOT DELETE THE COMMENTS ABOVE. All other comments in this module ' may be deleted from production code, but lines above must remain. '-------------------------------------------------------------------------- '.Description : '.Written By : John W. Colby '.Date Created : 06/08/2001 '.Rev. History : '.Comments : This module provides an "appointment collision" checking 'routine. Any two records with start and stop times and dates can be fed into 'this function to check for a collision. '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' '*+ custom constants declaration Private Const mcstrModuleName As String = "basCollisionCheck" Const DebugPrint = True '*- Custom constants declaration '*+ custom Variables declaration '*- custom Variables declaration ' 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict 'because it ends before the existing one starts (Et < Se) and 6 does not have a conflict 'since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision ' If IsNull(dtmSTNew) Or IsNull(dtmSTExist) Then ' ccApptCollision = False ' Exit Function ' End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew <= dtmETExist) And (dtmETNew >= dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: On Error Resume Next Exit Function Err_ccApptCollision: Select Case err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep msgbox err.description ' LogError mcstrModuleName, err.Number, err.Description, "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, March 18, 2005 7:20 AM To: accessd Subject: [AccessD] Is one time between two other times To all, I can't seem to figure this out at all, I have a table of which one of the fields is a start time. I need to run a query to see if that time is between 07:00 and 19:00 or 19:00 and 07:00. Can any help me with this please. Thanks in advance for your help. Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Fri Mar 18 07:01:59 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Fri, 18 Mar 2005 13:01:59 -0000 Subject: [AccessD] Rtf to text Message-ID: <200503181252.j2ICqOx18007@smarthost.yourcomms.net> Hi Been out-of-office. No I could not find the property, maybe the version I am using is different. I did find a solution albeit long-winded (but effective). Created a ms access form with tb1 (standard text box with raw rtf stringed data), tb2 (rtf activex control) and tb3 (standard text box). Write a prog to move thru the underlying rs, for each record set focus on tb2, use sendkeys to highlight text and do a ctrl C to copy the data. Then set focus on tb3. Here sendkeys to ctl V to paste the data in did not work so I used a docmd to use the menubar to do a paste function into tb3. Et voila Richard -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 16 March 2005 09:35 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Rtf to text Hi Richard Did you find out? /gustav >>> R.Griffiths at bury.gov.uk 15-03-2005 11:24:30 >>> Hi I have a table (converted from Paradox) that has a memo field that contains rtf data (ie rtf formatting and some readable text embedded). I am trying to extract the relevant text part. I have created a Access form that displays the raw data (raw1) and added a rtf activeX text box whose control source is the raw1 text box - this then shows the raw1 data correctly. If I msgbox the activex text box the rtf data with formtting is displayed - no good. If a add a further text box that references the activex textbox then it simply shows the rtf raw formatted data. If I copy and pasted the activex data into a third textbox I can msgbox that correctly - but I have 6000 records so this will not do. Any suggestions? Many thanks Richard -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Fri Mar 18 09:11:21 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 18 Mar 2005 10:11:21 -0500 Subject: [AccessD] Reminder - Joke Day Message-ID: I need to laugh. Any good links, jokes permitted today. From john at winhaven.net Fri Mar 18 09:33:25 2005 From: john at winhaven.net (John Bartow) Date: Fri, 18 Mar 2005 09:33:25 -0600 Subject: [AccessD] Reminder - Joke Day In-Reply-To: Message-ID: OK Karen, here's one my sister sent me. NEW DRUGS FOR WOMEN D A M N I T O L Take 2 and the rest of the world can go to hell for up to 8 full hours. ST. M O M M A'S W O R T Plant extract that treats mom's depression by rendering preschoolers unconscious for up to two days. E M P T Y N E S T R O G E N Suppository that eliminates melancholy and loneliness by reminding you of how awful they were as teenagers and how you couldn't wait till they moved out. P E P T O B I M B O Liquid silicone drink for single women. Two full cups swallowed before an evening out increases breast size, decreases intelligence, and prevents conception. D U M B E R O L When taken with Peptobimbo, can cause dangerously low IQ, resulting in enjoyment of country music and pickup trucks. F L I P I T O R Increases life expectancy of commuters by controlling road rage and the urge to flip off other drivers. M E N I C I L L I N Potent anti-boy-otic for older women. Increases resistance to such lethal lines as, "You make me want to be a better person . Can we get naked now?" B U Y A G R A Injectable stimulant taken prior to shopping. Increases potency, duration, and credit limit of spending spree.. J A C K A S S P I R I N Relieves headache caused by a man who can't remember your birthday, anniversary or phone number. A N T I - T A L K S I D E N T! A spray carried in a purse or wallet to be used on anyone too eager to share their life stories with total strangers in elevators or on airplanes. N A G A M E T When administered to a husband, provides the same irritation level as nagging him all weekend, saving the wife the time and trouble of doing it herself. From cyx5 at cdc.gov Fri Mar 18 10:32:46 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Fri, 18 Mar 2005 11:32:46 -0500 Subject: [AccessD] Friday - OT - Actual Courtroom Questioning Message-ID: These are from a book called Disorder in the American Courts, and are things people actually said in court, word for word, taken down and now published by court reporters that had the torment of staying calm while these exchanges were actually taking place. Q: Are you sexually active? A: No, I just lie there. _______________________________ Q: What is your date of birth? A: July 15. Q: What year? A: Every year. ______________________________________ Q: What gear were you in at the moment of the impact? A: Gucci sweats and Reeboks. ______________________________________ Q: This myasthenia gravis, does it affect your memory at all? A: Yes. Q: And in what ways does it affect your memory? A: I forget. Q: You forget? Can you give us an example of something that you've forgotten? _____________________________________ Q: How old is your son, the one living with you? A: Thirty-eight or thirty-five, I can't remember which. Q: How long has he lived with you? A: Forty-five years. _____________________________________ Q: What was the first thing your husband said to you when he woke up that morning? A: He said, "Where a m I, Cathy?" Q: And why did that upset you? A: My name is Susan. ______________________________________ Q: Do you know if your daughter has ever been involved in voodoo or the occult? A: We both do. Q: Voodoo? A: We do. Q: You do? A: Yes, voodoo. ______________________________________ Q: Now doctor, isn't it true that when a person dies in his sleep, he doesn't know about it until the next morning? A: Did you actually pass the bar exam? ___________________________________ Q: The youngest son, the twenty-year-old, how old is he? _____________________________________ Q: Were you present when your picture was taken? ______________________________________ Q: So the date of conception (of the baby) was August 8th? A: Yes. Q: And what were you doing at that time? ______________________________________ Q: She had three children, right? A: Yes. Q: How many were boys? A: None. Q: Were there any girls? ______________________________________ Q: How was your first marriage terminated? A: By death. Q: And by whose death was it terminated? ______________________________________ Q: Can you describe the individual? A: He was about medium height and had a beard. Q: Was this a male, or a female? ______________________________________ These are from a book called Disorder in the American Courts, and are things people actually said in court, word for word, taken down and now published by court reporters that had the torment of staying calm while these exchanges were actually taking place. Q: Is your appearance here this morning pursuant to a deposition notice which I sent to your attorney? A: No, this is how I dress when I! go to work. ______________________________________ Q: Doctor, how many autopsies have you performed on dead people? A: All my autopsies are performed on dead people. ______________________________________ Q: ALL your responses MUST be oral, OK? What school did you go to? A: Oral. ______________________________________ Q: Do you recall the time that you examined the body? A: The autopsy started around 8:30 p.m. Q: And Mr. Dennington was dead at the time? A: No, he was sitting on the table wondering why I was doing an autopsy. ______________________________________ Q: Are you qualified to give a urine sample? ______________________________________ Q: Doctor, before you performed the autopsy, did you check for a pulse? A: No. Q: Did you check for blood pressure? A: No. Q: Did you check for breathing?! A: No. Q: So, then it is possible that the patient was alive when you began the autopsy?A: No. Q: How can you be so sure, Doctor? A: Because his brain was sitting on my desk in a jar. Q: But could the patient have still been alive, nevertheless? A: Yes, it is possible that he could have been alive and practicing law somewhere From accessd at shaw.ca Fri Mar 18 10:39:38 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 18 Mar 2005 08:39:38 -0800 Subject: [AccessD] Reminder - Joke Day In-Reply-To: Message-ID: <0IDK00D3E3NGRJ@l-daemon> Hi Karen: A Few Stupid Client Quotes 1.) While working on an email-based support desk for an ISP, I received an email from a client who was having difficulty using her browser. I requested that she "paste the error message into an email" So that I knew exactly what the error was. She then proceeded to print it out, cut around the error message, glue it on to another piece of paper, scan it and send it as an attachment. And she wasn't trying to be funny. 2.) I work at a call center, tech support. User error of the Day: customer: "My printer isn't printing!" me: "have you turned it on?" customer: "no.." Customer: "its still not printing, do I have to do anything else?" me: "Have you installed the software?" customer: "software? eeh.. What do you mean?" me: "you have to install the software that came along on a CD. go find the CD and the manual that also came with the printer." customer hangs up and calls back ten minutes later. Customer: "now I found the CD!" so I help her install it. The printer made printer sounds and sounds all right, except.. Customer: "It's still not printing!" me: "it sounds like the paper feed is struggling. Did you give it paper at all?" customer: "paper?" 3.) Sys-admin: I will remote control to your machine, save everything; I may need to reboot your computer. User: Ok ... let me do that now. The user took over 5 minutes and I didn't know what she was doing until I remote control to her machine. She was opening every document, clicking on FILE > SAVE and then closing it just to open another one and do the same thing. Sys-admin: What are you doing? Confused User: You told me to save everything. 4.) I received a call from the help desk stating that the CEO's administrative assistant had crashed her machine and all of her files were stored locally because she did not trust the file shares. They were unable to get the machine up and asked if I could please come by and look at it. I stop by and I also was unable to get her machine to boot. It was a truly horrible screen of death. She explained that while working on her documents the machine "just blue screened" So... I boot from a Linux disk, mount her hard drive. I then turn to her and ask, "What exactly were you doing when the machine crashed?? She responded that she was organizing her files. And she was.... she had one folder labeled exe, another labeled dll, etc... 5.) Political correctness has gone too far. Don't believe me, here's proof. Client: I want to make sure our website isn't offensive to any people group. Can you guys make sure not to use any racial slurs or words that sound like racial slurs? Me: Sure, that shouldn't be a problem. Client: And, can we make a left handed version of the site? One of my kids is left handed and he loves that store where everything is for Lefty's. Me: How do you mean? Client: Well, maybe just post a disclaimer that this site is lefty-friendly. Then just make sure everything is on both sides of the screen, ya know, a menu on the right AND on the left. Me: Sure, I guess we can work that in, anything else? Client: And maybe we shouldn't have sound, because then deaf people would feel left out. Me: Ok.... That sounds fine. (Thinking: not that they would know, they're deaf) Client: Oh wait; do you have a sign language font? You could just do that. Me: No, there isn't a sign language font(confused), most deaf people can read, sir. Client: Yeah, but they can't hear. I mean, I want music, but it has to be deaf person friendly too, right? Just put up a subtitle that says "music playing" like it does on TV. Me: I have a feeling that will just make the deaf person feel ... Client: Oh how would you know, you're not deaf. I don't want to get sued. He got what he wanted, no racial slurs, a menu on both sides of the website, and subtitles. That's just too much folks. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Friday, March 18, 2005 7:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] Reminder - Joke Day I need to laugh. Any good links, jokes permitted today. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Fri Mar 18 10:49:52 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 18 Mar 2005 17:49:52 +0100 (CET) Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: <19746650.1111164592837.JavaMail.www@wwinf3002> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Gustav at cactus.dk Fri Mar 18 10:59:35 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 18 Mar 2005 17:59:35 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland From andy at minstersystems.co.uk Fri Mar 18 10:01:25 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 17:01:25 +0100 Subject: [AccessD] Reminder - Joke Day Message-ID: <20050318170122.143CE250FE0@smtp.nildram.co.uk> You know this one I'm sure. I may even have heard of it from the list. http://www.ghostplace.com/forum/topic.asp?TOPIC_ID=8196 -- Andy Lacey http://www.minstersystems.co.uk > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Friday, March 18, 2005 7:11 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Reminder - Joke Day > > I need to laugh. Any good links, jokes permitted today. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From john at winhaven.net Fri Mar 18 11:50:47 2005 From: john at winhaven.net (John Bartow) Date: Fri, 18 Mar 2005 11:50:47 -0600 Subject: [AccessD] Reminder - Joke Day In-Reply-To: <20050318170122.143CE250FE0@smtp.nildram.co.uk> Message-ID: :o) Those kinds of jokes are always good for the laundry! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, March 18, 2005 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Reminder - Joke Day You know this one I'm sure. I may even have heard of it from the list. http://www.ghostplace.com/forum/topic.asp?TOPIC_ID=8196 -- Andy Lacey http://www.minstersystems.co.uk > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen > Sent: Friday, March 18, 2005 7:11 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Reminder - Joke Day > > I need to laugh. Any good links, jokes permitted today. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Fri Mar 18 13:51:36 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 18 Mar 2005 15:51:36 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee9041202115974503750@mail.gmail.com> References: <3bf43ee9041202115974503750@mail.gmail.com> Message-ID: <3bf43ee905031811512173560c@mail.gmail.com> Hello Is there anyway to pack a linked dbf file programatically within Access 97? When I delete records in a dbf table using my .mdb app the records are still appearing in my ArcGIS software but not from the mdb app. A packing solution is needed. I hope it is available. Thanks BL From bchacc at san.rr.com Fri Mar 18 14:15:10 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 18 Mar 2005 12:15:10 -0800 Subject: [AccessD] Calling a routine in a sub form Message-ID: <001b01c52bf7$2faf6ef0$6501a8c0@HAL9002> Dear List: I can never remember how this syntax goes. I want to call a routine in a subform from a main form. It's actually in the after update event of a combo box. I want to set the focus to the first occurrence of the selected record in the sub-form to whatever the user selects in the combo box on the main form. So the routine in the subform does the RecodsetClone.FindFirst/Bookmark thing. Any help appreciated. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From cfoust at infostatsystems.com Fri Mar 18 15:17:22 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 18 Mar 2005 13:17:22 -0800 Subject: [AccessD] packing a dbf from within Access 97 Message-ID: There is no "pack" command for an Access database, which is what I assume the "dbf" file in question to be. When you delete records, they are gone immediately. If the records are still appearing in your ArcGIS application, then it doesn't sound like the fault is with Access, but with refreshing the links the ArcGIS software is holding. Charlotte Foust -----Original Message----- From: Boogie Loogie [mailto:boogieloogie at gmail.com] Sent: Friday, March 18, 2005 11:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] packing a dbf from within Access 97 Hello Is there anyway to pack a linked dbf file programatically within Access 97? When I delete records in a dbf table using my .mdb app the records are still appearing in my ArcGIS software but not from the mdb app. A packing solution is needed. I hope it is available. Thanks BL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 18 15:18:44 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 18 Mar 2005 13:18:44 -0800 Subject: [AccessD] Calling a routine in a sub form Message-ID: Rocky, the routine being called has to be a public method of the subform. Then you can call it like this: Call Me.SubformControl.Form.MyMethod() Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, March 18, 2005 12:15 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Calling a routine in a sub form Dear List: I can never remember how this syntax goes. I want to call a routine in a subform from a main form. It's actually in the after update event of a combo box. I want to set the focus to the first occurrence of the selected record in the sub-form to whatever the user selects in the combo box on the main form. So the routine in the subform does the RecodsetClone.FindFirst/Bookmark thing. Any help appreciated. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Mar 18 15:33:25 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 18 Mar 2005 13:33:25 -0800 Subject: [AccessD] Calling a routine in a sub form References: Message-ID: <005c01c52c02$1e5d87d0$6501a8c0@HAL9002> Charlotte: Wonderful! It was the Public in the subform module that I was missing. Thanks and regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, March 18, 2005 1:18 PM Subject: RE: [AccessD] Calling a routine in a sub form > Rocky, the routine being called has to be a public method of the > subform. Then you can call it like this: > > Call Me.SubformControl.Form.MyMethod() > > Charlotte Foust > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, March 18, 2005 12:15 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Calling a routine in a sub form > > > Dear List: > > I can never remember how this syntax goes. I want to call a routine in > a subform from a main form. It's actually in the after update event of > a combo box. I want to set the focus to the first occurrence of the > selected record in the sub-form to whatever the user selects in the > combo box on the main form. So the routine in the subform does the > RecodsetClone.FindFirst/Bookmark thing. > > Any help appreciated. > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 18 16:09:36 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 22:09:36 -0000 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee905031811512173560c@mail.gmail.com> Message-ID: <000201c52c07$2c153df0$b274d0d5@minster33c3r25> Hi BL Presumably if you're using a dbf you have Clipper, Foxpro or something which maintains it. Couldn't you write a small EXE in one of those and Shell to it? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Boogie Loogie > Sent: 18 March 2005 19:52 > To: Access Developers discussion and problem solving > Subject: [AccessD] packing a dbf from within Access 97 > > > Hello > > Is there anyway to pack a linked dbf file programatically > within Access 97? When I delete records in a dbf table using > my .mdb app the records are still appearing in my ArcGIS > software but not from the mdb app. > > A packing solution is needed. I hope it is available. > > Thanks > > BL > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From boogieloogie at gmail.com Fri Mar 18 16:12:47 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Fri, 18 Mar 2005 18:12:47 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: References: Message-ID: <3bf43ee905031814124abfafe8@mail.gmail.com> Actually when using access to delete records from a dbf file they are infact not deleted. They are only marked for delete. Access recognizes that files that are marked as deleted, flagged if you will, should not appear. Other programs need the dbf packed, thus a true delete, or else the records will display. Not really the fault of either software...just the way the manufacturers handled the situation when developing. Oh well I will try and write my own utility to see what I can come up with. Thanks anyway. BL On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust wrote: > There is no "pack" command for an Access database, which is what I > assume the "dbf" file in question to be. When you delete records, they > are gone immediately. If the records are still appearing in your ArcGIS > application, then it doesn't sound like the fault is with Access, but > with refreshing the links the ArcGIS software is holding. > > Charlotte Foust > > > -----Original Message----- > From: Boogie Loogie [mailto:boogieloogie at gmail.com] > Sent: Friday, March 18, 2005 11:52 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] packing a dbf from within Access 97 > > Hello > > Is there anyway to pack a linked dbf file programatically within Access > 97? When I delete records in a dbf table using my .mdb app the records > are still appearing in my ArcGIS software but not from the mdb app. > > A packing solution is needed. I hope it is available. > > Thanks > > BL > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Mar 18 16:41:36 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 18 Mar 2005 22:41:36 -0000 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee905031814124abfafe8@mail.gmail.com> Message-ID: <000001c52c0b$a4b820c0$b274d0d5@minster33c3r25> The other thing you need to cater for BL (and I'm probably teaching my grandmother to suck eggs, as we say) is that any indexes on the dbf must be open so they get reindexed. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Boogie Loogie > Sent: 18 March 2005 22:13 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] packing a dbf from within Access 97 > > > Actually when using access to delete records from a dbf file > they are infact not deleted. They are only marked for delete. > Access recognizes that files that are marked as deleted, > flagged if you will, should not appear. Other programs need > the dbf packed, thus a true delete, or else the records will > display. Not really the fault of either software...just the > way the manufacturers handled the situation when developing. > > Oh well I will try and write my own utility to see what I can > come up with. > > Thanks anyway. > > BL > > > On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust > wrote: > > There is no "pack" command for an Access database, which is what I > > assume the "dbf" file in question to be. When you delete records, > > they are gone immediately. If the records are still > appearing in your > > ArcGIS application, then it doesn't sound like the fault is with > > Access, but with refreshing the links the ArcGIS software > is holding. > > > > Charlotte Foust > > > > > > -----Original Message----- > > From: Boogie Loogie [mailto:boogieloogie at gmail.com] > > Sent: Friday, March 18, 2005 11:52 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] packing a dbf from within Access 97 > > > > Hello > > > > Is there anyway to pack a linked dbf file programatically within > > Access 97? When I delete records in a dbf table using my > .mdb app the > > records are still appearing in my ArcGIS software but not > from the mdb > > app. > > > > A packing solution is needed. I hope it is available. > > > > Thanks > > > > BL > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri Mar 18 16:48:46 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 18 Mar 2005 14:48:46 -0800 Subject: [AccessD] packing a dbf from within Access 97 Message-ID: Ah, it's been so long since I had to deal with a true dbf file, that I forget there really are such things. I'm sorry to say that I think that's your only real alternative. Charlotte Foust -----Original Message----- From: Boogie Loogie [mailto:boogieloogie at gmail.com] Sent: Friday, March 18, 2005 2:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] packing a dbf from within Access 97 Actually when using access to delete records from a dbf file they are infact not deleted. They are only marked for delete. Access recognizes that files that are marked as deleted, flagged if you will, should not appear. Other programs need the dbf packed, thus a true delete, or else the records will display. Not really the fault of either software...just the way the manufacturers handled the situation when developing. Oh well I will try and write my own utility to see what I can come up with. Thanks anyway. BL On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust wrote: > There is no "pack" command for an Access database, which is what I > assume the "dbf" file in question to be. When you delete records, > they are gone immediately. If the records are still appearing in your > ArcGIS application, then it doesn't sound like the fault is with > Access, but with refreshing the links the ArcGIS software is holding. > > Charlotte Foust > > > -----Original Message----- > From: Boogie Loogie [mailto:boogieloogie at gmail.com] > Sent: Friday, March 18, 2005 11:52 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] packing a dbf from within Access 97 > > Hello > > Is there anyway to pack a linked dbf file programatically within > Access 97? When I delete records in a dbf table using my .mdb app the > records are still appearing in my ArcGIS software but not from the mdb > app. > > A packing solution is needed. I hope it is available. > > Thanks > > BL > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mar 18 17:18:37 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 Mar 2005 09:18:37 +1000 Subject: [AccessD] Reminder - Joke Day In-Reply-To: Message-ID: <423BEE6D.6012.9A89746@stuart.lexacorp.com.pg> On 18 Mar 2005 at 10:11, Nicholson, Karen wrote: > I need to laugh. Any good links, jokes permitted today. > -- Here's an amazing piece of art that should keep you amused for a while. http://www.eviltree.de/zoomquilt/zoom.htm -- Stuart From martyconnelly at shaw.ca Fri Mar 18 17:22:54 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 18 Mar 2005 15:22:54 -0800 Subject: [AccessD] packing a dbf from within Access 97 References: <3bf43ee905031814124abfafe8@mail.gmail.com> Message-ID: <423B62CE.6070700@shaw.ca> Well you could pack dbf files from VBA if you have a copy of DBASE something like Shell (dbase mypack.prg" where prg file has pack and table name options. or The solutions below here is to export the table to new dbf and break the link then rename dbf file either in code or after exiting access Test this on copies.. DoCmd.TransferDatabase acExport, "dBase 5.0", "C:\mydir\",,"TableName", "mynewfile.dbf" The deleted records should then be removed. There are caveats with shape dbf files http://support.esri.com/index.cfm?fa=listserve.messageShow&m=13020 Boogie Loogie wrote: >Actually when using access to delete records from a dbf file they are >infact not deleted. They are only marked for delete. Access recognizes >that files that are marked as deleted, flagged if you will, should not >appear. Other programs need the dbf packed, thus a true delete, or >else the records will display. Not really the fault of either >software...just the way the manufacturers handled the situation when >developing. > >Oh well I will try and write my own utility to see what I can come up with. > >Thanks anyway. > >BL > > >On Fri, 18 Mar 2005 13:17:22 -0800, Charlotte Foust > wrote: > > >>There is no "pack" command for an Access database, which is what I >>assume the "dbf" file in question to be. When you delete records, they >>are gone immediately. If the records are still appearing in your ArcGIS >>application, then it doesn't sound like the fault is with Access, but >>with refreshing the links the ArcGIS software is holding. >> >>Charlotte Foust >> >> >>-----Original Message----- >>From: Boogie Loogie [mailto:boogieloogie at gmail.com] >>Sent: Friday, March 18, 2005 11:52 AM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] packing a dbf from within Access 97 >> >>Hello >> >>Is there anyway to pack a linked dbf file programatically within Access >>97? When I delete records in a dbf table using my .mdb app the records >>are still appearing in my ArcGIS software but not from the mdb app. >> >>A packing solution is needed. I hope it is available. >> >>Thanks >> >>BL >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Fri Mar 18 17:25:59 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 19 Mar 2005 09:25:59 +1000 Subject: [AccessD] Is one time between two other times In-Reply-To: <17068716.1111148372757.JavaMail.www@wwinf3003> Message-ID: <423BF027.6011.9AF55E6@stuart.lexacorp.com.pg> On 18 Mar 2005 at 13:19, paul.hartland at fsmail.net wrote: > To all, I can't seem to figure this out at all, I have a table of which > one of the fields is a start time. I need to run a query to see if that > time is between 07:00 and 19:00 Times are stored as the fractional part of a DateTime so just check whether the fractional part is > 7 / 24 and < 19 / 24 >or 19:00 and 07:00. > 19 / 24 or < 7 / 24 In sert equal signs as necessary to handle your desired boundary conditions (ie exactly 07:0 or 19:0)-- Stuart From Gustav at cactus.dk Sat Mar 19 03:58:56 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 19 Mar 2005 10:58:56 +0100 Subject: [AccessD] packing a dbf from within Access 97 Message-ID: Hi Boogie Loogie (?) Further to this I would say it may not even be needed to relink the table - it just has to be closed before you initiate the rewrite of the table. Do check, though, that indices are rebuilt correctly. /gustav >>> martyconnelly at shaw.ca 03/19 12:22 am >>> The solutions below here is to export the table to new dbf and break the link then rename dbf file either in code or after exiting access Test this on copies.. DoCmd.TransferDatabase acExport, "dBase 5.0", "C:\mydir\",,"TableName", "mynewfile.dbf" The deleted records should then be removed. There are caveats with shape dbf files http://support.esri.com/index.cfm?fa=listserve.messageShow&m=13020 Boogie Loogie wrote: >Actually when using access to delete records from a dbf file they are >infact not deleted. They are only marked for delete. Access recognizes >that files that are marked as deleted, flagged if you will, should not >appear. Other programs need the dbf packed, thus a true delete, or >else the records will display. Not really the fault of either >software...just the way the manufacturers handled the situation when >developing. > >Oh well I will try and write my own utility to see what I can come up with. From Gustav at cactus.dk Sat Mar 19 04:05:23 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 19 Mar 2005 11:05:23 +0100 Subject: [AccessD] Is one time between two other times Message-ID: Hi Paul and Stuart Why not use this for filtering: Hour(DateAdd("h", -7, [StartTime])) <= 12 /gustav >>> stuart at lexacorp.com.pg 03/19 12:25 am >>> On 18 Mar 2005 at 13:19, paul.hartland at fsmail.net wrote: > To all, I can't seem to figure this out at all, I have a table of which > one of the fields is a start time. I need to run a query to see if that > time is between 07:00 and 19:00 Times are stored as the fractional part of a DateTime so just check whether the fractional part is > 7 / 24 and < 19 / 24 >or 19:00 and 07:00. > 19 / 24 or < 7 / 24 In sert equal signs as necessary to handle your desired boundary conditions (ie exactly 07:0 or 19:0)-- Stuart From bchacc at san.rr.com Sat Mar 19 13:23:16 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 19 Mar 2005 11:23:16 -0800 Subject: [AccessD] Running a report in an external database Message-ID: <00b401c52cb9$1a6696f0$6501a8c0@HAL9002> Dear List: Per your instructions I added code to a client's db to run a report in an external mdb and it works just fine: Private Sub cmdPrintMemo2Set_Click() DoCmd.SetWarnings False DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ "IN 'C:\ACESSDAT\Reports.mdb' " & _ "SELECT tUDGlobalMerge.* " & _ "FROM tUDGlobalMerge" 'Open Reports.mdb hidden, print Report and close that mdb. Dim acc As Access.Application Set acc = CreateObject("access.application") acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal acc.CloseCurrentDatabase Set acc = Nothing End Sub Now I get an email from him with the following message: ******************************************** I have had a problem with the code you sent me. When I run it (that is, have Forms.mdb print the report in Report.mdb), my computer will no longer open an access program by double clicking a mdb, either shortcut or regular, until I reboot. In other words, I have the mdb I run my practice with. I have a short cut to open it on my desktop. Once I have run the Forms.mdb, clicking on the short cut on my desktop, exploring to where the mdb actually resides and double clicking on that, all get nothing. From the start button, I CAN open an instance of MS Access and then once it is open, open an mdb, but other than that, its as if I had unregistered all the mdbs. ???? Seems to me that there's an object open somewhere. If I went to the processes tab of the task manager I'll bet I'd see more than one instance of msaccess. ******************************************* Anyway, any hints as to how to solve this one? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From mastercafe at ctv.es Sat Mar 19 14:36:34 2005 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 19 Mar 2005 21:36:34 +0100 Subject: [AccessD] Running a report in an external database In-Reply-To: <00b401c52cb9$1a6696f0$6501a8c0@HAL9002> Message-ID: <002e01c52cc3$57dc08d0$0500a8c0@masterserv> We use a routine to Open a Remote report. We only have sometimes problems when close the MDB remote if you have Close and Compact, then the file could be convert to db1.mdb We check the state of this file before open. Normally we put an MDB with all reports external to MDE application, and make CONFIG.MDB to put parameters to all type reports (Printer, Top, Bottom, Format to export -xls-snp-txt-rtf-etc...) Function fOpenRemoteReport(StrMDB As String, StrReport As String, Optional linkCriteria As String, Optional intView As Variant) As Boolean Dim objAccess As Access.Application Dim lngRet As Long Dim agrega As String Dim origendatos As String agrega = StrReport origendatos = "Select * from ConfigFtra" On Error GoTo fOpenRemoteReport_Err If IsMissing(intView) Then intView = acNormal If IsMissing(linkCriteria) Then linkCriteria = "" If Len(Dir(StrMDB)) > 0 Then Set objAccess = New Access.Application With objAccess lngRet = apiSetForegroundWindow(.hWndAccessApp) lngRet = apiShowWindow(.hWndAccessApp, SW_HIDE) 'ANTES ESTABA EN EL EJEMPLO COMO NORMAL 'la primera no suele operar y repetimos la accion lngRet = apiShowWindow(.hWndAccessApp, SW_HIDE) .OpenCurrentDatabase StrMDB .DoCmd.OpenReport StrReport, intView, , linkCriteria 'Do While Len(.CurrentDb.Name) > 0 ' DoEvents 'Loop End With Else MsgBox "Archivo de facturas modelos no encontrado" & vbCrLf & "revise la configuraci?n del terminal." & vbCrLf & "Archivo= " & StrMDB, vbInformation + vbOKOnly, "GESTION DOCUMENTOS EXTERNOS" End If fOpenRemoteReport_Exit: On Error Resume Next objAccess.Quit Set objAccess = Nothing Exit Function fOpenRemoteReport_Err: fOpenRemoteReport = False Select Case Err.Number Case 7866: MsgBox "La base de datos esta abierta por otro usuario en modo exclusivo", vbCritical + vbOKOnly, "STEEL REPORT" Case 2103: MsgBox "El informe " & StrReport & " no se encuentra en la base de datos", vbCritical + vbOKOnly, "STEEL REPORT" Case 7952: fOpenRemoteReport = True Case Else: MsgBox "Error N?" & Err.Number & " - " & Err.Description, vbCritical + vbOKOnly, "STEEL REPORT" End Select Resume fOpenRemoteReport_Exit End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: s?bado, 19 de marzo de 2005 20:23 To: AccessD at databaseadvisors.com Subject: [AccessD] Running a report in an external database Dear List: Per your instructions I added code to a client's db to run a report in an external mdb and it works just fine: Private Sub cmdPrintMemo2Set_Click() DoCmd.SetWarnings False DoCmd.RunSQL "DELETE from C:\Acessdat\Reports.tUDGlobalMerge" DoCmd.RunSQL "INSERT INTO tUDGlobalMerge " & _ "IN 'C:\ACESSDAT\Reports.mdb' " & _ "SELECT tUDGlobalMerge.* " & _ "FROM tUDGlobalMerge" 'Open Reports.mdb hidden, print Report and close that mdb. Dim acc As Access.Application Set acc = CreateObject("access.application") acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal acc.CloseCurrentDatabase Set acc = Nothing End Sub Now I get an email from him with the following message: ******************************************** I have had a problem with the code you sent me. When I run it (that is, have Forms.mdb print the report in Report.mdb), my computer will no longer open an access program by double clicking a mdb, either shortcut or regular, until I reboot. In other words, I have the mdb I run my practice with. I have a short cut to open it on my desktop. Once I have run the Forms.mdb, clicking on the short cut on my desktop, exploring to where the mdb actually resides and double clicking on that, all get nothing. From the start button, I CAN open an instance of MS Access and then once it is open, open an mdb, but other than that, its as if I had unregistered all the mdbs. ???? Seems to me that there's an object open somewhere. If I went to the processes tab of the task manager I'll bet I'd see more than one instance of msaccess. ******************************************* Anyway, any hints as to how to solve this one? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- 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 Mar 19 17:03:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Mar 2005 09:03:17 +1000 Subject: [AccessD] Running a report in an external database In-Reply-To: <00b401c52cb9$1a6696f0$6501a8c0@HAL9002> Message-ID: <423D3C55.22468.EC0D785@stuart.lexacorp.com.pg> On 19 Mar 2005 at 11:23, Rocky Smolin - Beach Access S wrote: > > 'Open Reports.mdb hidden, print Report and close that mdb. > > Dim acc As Access.Application > Set acc = CreateObject("access.application") > acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") > acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal > acc.CloseCurrentDatabase > Set acc = Nothing You have told the hidden Access Application to close its current database, but not to close itself, so you still have a hidden instance of Access with no open database. Try acc.Quit instead of acc.CloseCurrentDatabase. -- Stuart From bchacc at san.rr.com Sat Mar 19 18:25:37 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sat, 19 Mar 2005 16:25:37 -0800 Subject: [AccessD] Running a report in an external database References: <423D3C55.22468.EC0D785@stuart.lexacorp.com.pg> Message-ID: <012801c52ce3$56f67d40$6501a8c0@HAL9002> Stuart: That did it. Thanks. Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Saturday, March 19, 2005 3:03 PM Subject: Re: [AccessD] Running a report in an external database > On 19 Mar 2005 at 11:23, Rocky Smolin - Beach Access S wrote: > >> >> 'Open Reports.mdb hidden, print Report and close that mdb. >> >> Dim acc As Access.Application >> Set acc = CreateObject("access.application") >> acc.OpenCurrentDatabase ("c:\Acessdat\Reports.mdb") >> acc.DoCmd.OpenReport "rptEvictionCase-MemoToSet", acViewNormal >> acc.CloseCurrentDatabase >> Set acc = Nothing > > You have told the hidden Access Application to close its current database, > but not to close itself, so you still have a hidden instance of Access > with > no open database. > > Try acc.Quit instead of acc.CloseCurrentDatabase. > > > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Sat Mar 19 19:41:30 2005 From: artful at rogers.com (Arthur Fuller) Date: Sat, 19 Mar 2005 20:41:30 -0500 Subject: [AccessD] Geography revisited Message-ID: <423CD4CA.6010600@rogers.com> I don't have to solve the world's address problems, but I do have to solve some of them. USA and CDN I have under control. Other nations of interest include basically everyone in the EU. I'm hoping for answers from people either from each nation or from people with knowledge of same. 1. What corresponds to states/provinces in Ireland, England, Scotland, Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland (I know it's cantons in the last, but I don't know their names). 2. Some countries, I know, place the street name before the street number. Can we define this arrangement more precisely (by nation)? 3. Not immediately relevant, but is Singapore a city-state or part of China or what? TIA, Arthur -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 From stuart at lexacorp.com.pg Sat Mar 19 22:18:18 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 20 Mar 2005 14:18:18 +1000 Subject: [AccessD] Geography revisited In-Reply-To: <423CD4CA.6010600@rogers.com> Message-ID: <423D862A.21083.FE13C22@stuart.lexacorp.com.pg> On 19 Mar 2005 at 20:41, Arthur Fuller wrote: > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > Singapore is a long way from China and has never been part of it. Geographically, it is part of the Malay Peninsula, forming the southern tip of the peninsula and bordering on Indonesia to the south. Colonised in early the 1800s by Britain; Singapore, along with Penang and Malacca were part of the "Straits Settlements" and were governed from India. In the 1860s, the Straits Settlements became a separate Crown Colony. Throughout the 1800s there was a large influx of of Chinese and Indians which has resulted in today's mix of ethnic groups - today it is about 75% Chinese, 15% Malay and 7% Indian. (It has four "official languages", Chinese, Malay, Tamil and English with Malay being designated the "national language") After WW2, Singapore became a British Colony in its own right in 1946, it became self governing in 1959. In 1963 it merged with Malaya, Sarawak and Sabah to become part of Malaysia but later split away and became an independent nation in 1965. -- Stuart From Gustav at cactus.dk Sun Mar 20 02:22:51 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 20 Mar 2005 09:22:51 +0100 Subject: [AccessD] Geography revisited Message-ID: Hi Arthur This was an easy one: http://www.admin.ch/ch/e/schweiz/kantone/ By the way, how are you storing the address formatting information? In some systematic way like expressions or sets of formulas for the format, or do you simply record country by country what it should be? /gustav >>> artful at rogers.com 03/20 2:41 am >>> I don't have to solve the world's address problems, but I do have to solve some of them. USA and CDN I have under control. Other nations of interest include basically everyone in the EU. I'm hoping for answers from people either from each nation or from people with knowledge of same. 1. What corresponds to states/provinces in Ireland, England, Scotland, Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland (I know it's cantons in the last, but I don't know their names). 2. Some countries, I know, place the street name before the street number. Can we define this arrangement more precisely (by nation)? 3. Not immediately relevant, but is Singapore a city-state or part of China or what? TIA, Arthur From martyconnelly at shaw.ca Sun Mar 20 02:36:38 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 20 Mar 2005 00:36:38 -0800 Subject: [AccessD] Geography revisited References: <423CD4CA.6010600@rogers.com> Message-ID: <423D3616.4070701@shaw.ca> Here is a site for mail addresses The whole thing is on CD for 750 Swiss Francs, otherwise you will have to pick off the countries one at time via PDF files from URL below. UPU S42 Standard on International Postal Address Components and Templates I don't know why the changed their name from the old International Postal Union to the Universal Postal Union maybe there are secret mail drops for Betelgeuse and Rigel. There is supposed to be something called the Universal POST*CODE database on this site somewhere but the pdfs will give you each countries basic standard God knows what they do with arondissements in Paris. http://www.upu.int/post_code/en/postal_addressing_systems_member_countries.shtml For example here is Singapore standard. http://www.upu.int/post_code/en/countries/SGP.pdf Arthur Fuller wrote: > I don't have to solve the world's address problems, but I do have to > solve some of them. USA and CDN I have under control. Other nations of > interest include basically everyone in the EU. I'm hoping for answers > from people either from each nation or from people with knowledge of > same. > > 1. What corresponds to states/provinces in Ireland, England, Scotland, > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, > Switzerland (I know it's cantons in the last, but I don't know their > names). > > 2. Some countries, I know, place the street name before the street > number. Can we define this arrangement more precisely (by nation)? > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > > TIA, > Arthur > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Sun Mar 20 04:17:02 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 20 Mar 2005 10:17:02 -0000 Subject: [AccessD] Geography revisited In-Reply-To: <423CD4CA.6010600@rogers.com> Message-ID: <000901c52d35$f5f18550$b274d0d5@minster33c3r25> Arthur, England, Wales, Scotland and Ireland have counties as their main geographic unit. The street number follows the street name. Also the postcode (your zip) comes at the end of the address (but before country if sending from abroad), which is not true elsewhere, hence Mr Bloggs 1 High St Little Place Mytown Unpronounceableshire UT6 7YOY As for Singapore, were you perhaps thinking of Hong Kong? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Arthur Fuller > Sent: 20 March 2005 01:42 > To: Access Developers discussion and problem solving > Subject: [AccessD] Geography revisited > > > I don't have to solve the world's address problems, but I do have to > solve some of them. USA and CDN I have under control. Other > nations of > interest include basically everyone in the EU. I'm hoping for answers > from people either from each nation or from people with > knowledge of same. > > 1. What corresponds to states/provinces in Ireland, England, > Scotland, > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, > Switzerland > (I know it's cantons in the last, but I don't know their names). > > 2. Some countries, I know, place the street name before the street > number. Can we define this arrangement more precisely (by nation)? > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > > TIA, > Arthur > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From spikee at oatlandspark.org.uk Sun Mar 20 04:57:16 2005 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Sun, 20 Mar 2005 10:57:16 -0000 Subject: [AccessD] Geography revisited In-Reply-To: <000901c52d35$f5f18550$b274d0d5@minster33c3r25> Message-ID: Good day Arthur, Just to follow on from what Andy has written about the postal address formatting in the UK. I think Andy meant to write "The street number _precedes" the street name". Some addresses may have a house name instead of, or as well as, a street number. ie "Bramwell" 1 Portmore Park Road Major cities often have their own "county" name which is the same as the city name ie London, Manchester,..... Best regards! Chris Foote -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: 20 March 2005 10:17 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Geography revisited Arthur, England, Wales, Scotland and Ireland have counties as their main geographic unit. The street number follows the street name. Also the postcode (your zip) comes at the end of the address (but before country if sending from abroad), which is not true elsewhere, hence Mr Bloggs 1 High St Little Place Mytown Unpronounceableshire UT6 7YOY As for Singapore, were you perhaps thinking of Hong Kong? -- Andy Lacey http://www.minstersystems.co.uk From andy at minstersystems.co.uk Sun Mar 20 05:50:32 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 20 Mar 2005 11:50:32 -0000 Subject: [AccessD] Geography revisited In-Reply-To: Message-ID: <000001c52d43$05c7b500$b274d0d5@minster33c3r25> Doh! I did. Thanks Chris. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Chris Foote (Spike) > Sent: 20 March 2005 10:57 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Geography revisited > > > > Good day Arthur, > > Just to follow on from what Andy has written about the postal > address formatting in the UK. > > I think Andy meant to write "The street number _precedes" the > street name". > > Some addresses may have a house name instead of, or as well > as, a street number. > > ie "Bramwell" > 1 Portmore Park Road > > > Major cities often have their own "county" name which is the > same as the city name ie London, Manchester,..... > > Best regards! > > Chris Foote > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: 20 March 2005 10:17 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Geography revisited > > > Arthur, England, Wales, Scotland and Ireland have counties as > their main geographic unit. The street number follows the > street name. Also the postcode (your zip) comes at the end of > the address (but before country if sending from abroad), > which is not true elsewhere, hence > > Mr Bloggs > 1 High St > Little Place > Mytown > Unpronounceableshire > UT6 7YOY > > > As for Singapore, were you perhaps thinking of Hong Kong? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bchacc at san.rr.com Sun Mar 20 12:33:53 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 20 Mar 2005 10:33:53 -0800 Subject: [AccessD] Digital Signature Message-ID: <00e201c52d7b$5e9445d0$6501a8c0@HAL9002> Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From pedro at plex.nl Sun Mar 20 13:22:27 2005 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 20 Mar 2005 20:22:27 +0100 Subject: [AccessD] Geography revisited References: <423CD4CA.6010600@rogers.com> Message-ID: <002101c52d82$28bc13a0$f5c581d5@pedro> Hello Arthur, in the Netherlands, we write our adress as below. If you need the names of provinces or places, just let me know. Pedro Janssen Mr. Test Teststraat 15 1515 AA TestCity ----- Original Message ----- From: "Arthur Fuller" To: "Access Developers discussion and problem solving" Sent: Sunday, March 20, 2005 2:41 AM Subject: [AccessD] Geography revisited > I don't have to solve the world's address problems, but I do have to > solve some of them. USA and CDN I have under control. Other nations of > interest include basically everyone in the EU. I'm hoping for answers > from people either from each nation or from people with knowledge of same. > > 1. What corresponds to states/provinces in Ireland, England, Scotland, > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland > (I know it's cantons in the last, but I don't know their names). > > 2. Some countries, I know, place the street name before the street > number. Can we define this arrangement more precisely (by nation)? > > 3. Not immediately relevant, but is Singapore a city-state or part of > China or what? > > TIA, > Arthur > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From lembit.soobik at t-online.de Sun Mar 20 13:36:11 2005 From: lembit.soobik at t-online.de (Lembit Soobik) Date: Sun, 20 Mar 2005 20:36:11 +0100 Subject: [AccessD] Geography revisited References: <423CD4CA.6010600@rogers.com> <423D3616.4070701@shaw.ca> Message-ID: <011101c52d84$13457820$0800a8c0@s856> Arthur, in addition to the below mentioned URL, states/provinces in Germany dont go in the postal address the zip code takes care of everything. Lembit ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Sunday, March 20, 2005 9:36 AM Subject: Re: [AccessD] Geography revisited > Here is a site for mail addresses > The whole thing is on CD for 750 Swiss Francs, otherwise you will have to > pick off the countries > one at time via PDF files from URL below. > UPU S42 Standard on International Postal Address Components and Templates > > I don't know why the changed their name from the old International Postal > Union > to the Universal Postal Union maybe there are secret mail drops for > Betelgeuse and Rigel. > > There is supposed to be something called the Universal POST*CODE database > on this > site somewhere but the pdfs will give you each countries basic standard > God knows what they do with arondissements in Paris. > > http://www.upu.int/post_code/en/postal_addressing_systems_member_countries.shtml > > For example here is Singapore standard. > http://www.upu.int/post_code/en/countries/SGP.pdf > > > > > Arthur Fuller wrote: > >> I don't have to solve the world's address problems, but I do have to >> solve some of them. USA and CDN I have under control. Other nations of >> interest include basically everyone in the EU. I'm hoping for answers >> from people either from each nation or from people with knowledge of >> same. >> >> 1. What corresponds to states/provinces in Ireland, England, Scotland, >> Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland >> (I know it's cantons in the last, but I don't know their names). >> >> 2. Some countries, I know, place the street name before the street >> number. Can we define this arrangement more precisely (by nation)? >> >> 3. Not immediately relevant, but is Singapore a city-state or part of >> China or what? >> >> TIA, >> Arthur >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18.03.2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 18.03.2005 From bchacc at san.rr.com Sun Mar 20 13:42:07 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 20 Mar 2005 11:42:07 -0800 Subject: [AccessD] Digital Signature References: <00e201c52d7b$5e9445d0$6501a8c0@HAL9002> Message-ID: <012101c52d84$e68d2570$6501a8c0@HAL9002> Just got a screen shot of the error message. IT says Microsoft Access cannot open (path and name of mdb) due to security restrictions. Security settings restrict access to the file because it is not digitally signed. So two questions - 1) is there a security setting he can change in his A2K3 to allow him to open the file (seems easiest) or 2) should I digitally sign this file (assuming I can figure out how). MTIA again Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Sunday, March 20, 2005 10:33 AM Subject: [AccessD] Digital Signature Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Sun Mar 20 14:28:03 2005 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 20 Mar 2005 21:28:03 +0100 Subject: [AccessD] Digital Signature References: <00e201c52d7b$5e9445d0$6501a8c0@HAL9002> <012101c52d84$e68d2570$6501a8c0@HAL9002> Message-ID: <005401c52d8b$520e9a80$f5c581d5@pedro> Hello Rocky, make your own digital signature certificate. Open de database. On the security warning. Go to certificate. Install your own signed certificate. Check; always trust this certificate. Greetings Pedro Janssen ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Sunday, March 20, 2005 8:42 PM Subject: Re: [AccessD] Digital Signature > Just got a screen shot of the error message. IT says Microsoft Access > cannot open (path and name of mdb) due to security restrictions. > > Security settings restrict access to the file because it is not digitally > signed. > > So two questions - 1) is there a security setting he can change in his A2K3 > to allow him to open the file (seems easiest) or 2) should I digitally sign > this file (assuming I can figure out how). > > MTIA again > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Sunday, March 20, 2005 10:33 AM > Subject: [AccessD] Digital Signature > > > Dear List: > > I converted an app from 2000 to 2003. When I send it to my partner, it says > it requires a digital signature and won't open. Is there a quick fix for > this? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From kathryn at bassett.net Sun Mar 20 14:43:41 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sun, 20 Mar 2005 12:43:41 -0800 Subject: [AccessD] 2003 "permissions" - the other part In-Reply-To: <423A7F56.9080702@shaw.ca> Message-ID: <20050320204346.180204007F@omta18.mta.everyone.net> Erwin Craps said: > When upgrading/installing A2K3 your MDW file get overwritten > by the default one of Office 2K3. > Or in case the MDW file was not in the default location, The MDW > (workgroup) file path has been set to the default one. > You will need to join the corrept MDW (workgroup) file before > you will be able to do what you want to do. > When it's overwritten you will need to restore from backup. I've not a clue what you said. I don't know what a workgroup is, and I don't know what MDW is. I have only an MDB. However,... MartyConnelly said: > 1 the database could be corrupt, > 2 or this implies that there is an mdw file and you don't > have permission to use something. > 3 Right-click the mdb file and mdw file if there is one in > the Windows Explorer. I had despaired because of what Erwin said about restoring from backup, because my nightly backup had already been done, so it would also be corrupted. But when I got to this point, I noticed that at the same date/time, there was ABC.bak as well as my ABC.mdb - so I renamed the .bak to filename.mdb and opened it and it worked fine! So I deleted the corrupt one, and renamed filename.mdb to ABC.mdb and I'm back in business (ABC is Altadena Baptist Church, not the tv network). So, now that my problem is solved, would you explain (in real simple terms) what the workgroup is/does? Is it something I should be doing that I've never done before? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From Erwin.Craps at ithelps.be Sun Mar 20 16:18:43 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sun, 20 Mar 2005 23:18:43 +0100 Subject: [AccessD] 2003 "permissions" - the other part Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B591D@stekelbes.ithelps.local> A workgroup file (an MDW file) is a file that access uses for Access security at object level. It contain all users and passwords you would create when using Access security. It is always present but by default u use the administrator account with no password so at that moment it is transparent for the user. If your database is secured with Access Security then overwriting this file, or joining another workgroup, or opening the database on another computer, would block your access to that database or to certain object depending how the security was set. There is a bug?!, I would call it that way, in A2K3 maybe also A2K2 that overwrites the workgroup file when it is maintained in the default location when reinstalling/repairing. This way you lose all your users and passwords from that file and could lock you out of any secured database. When using Access security the workgroup file should be place on the fileserver (in my opinion). But in my opinion Access security should never be used due to to the fact that it can be easely broken by some cheap passwordfinder tool. I can only be used to make changes or deletes somewhat more diffucult. For example my splashscreen form and my license text in one specific module are always protected. There have been some thread here that explain how to protect your mdb with access security but I dont know if somenone had proven to be unbreakable (if such a thing exists). To conclude. If you don't now what access security is, and don't want to loose time, then just forget about it. But that's my opnion. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: Sunday, March 20, 2005 9:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] 2003 "permissions" - the other part Erwin Craps said: > When upgrading/installing A2K3 your MDW file get overwritten by the > default one of Office 2K3. > Or in case the MDW file was not in the default location, The MDW > (workgroup) file path has been set to the default one. > You will need to join the corrept MDW (workgroup) file before you will > be able to do what you want to do. > When it's overwritten you will need to restore from backup. I've not a clue what you said. I don't know what a workgroup is, and I don't know what MDW is. I have only an MDB. However,... MartyConnelly said: > 1 the database could be corrupt, > 2 or this implies that there is an mdw file and you don't have > permission to use something. > 3 Right-click the mdb file and mdw file if there is one in the > Windows Explorer. I had despaired because of what Erwin said about restoring from backup, because my nightly backup had already been done, so it would also be corrupted. But when I got to this point, I noticed that at the same date/time, there was ABC.bak as well as my ABC.mdb - so I renamed the .bak to filename.mdb and opened it and it worked fine! So I deleted the corrupt one, and renamed filename.mdb to ABC.mdb and I'm back in business (ABC is Altadena Baptist Church, not the tv network). So, now that my problem is solved, would you explain (in real simple terms) what the workgroup is/does? Is it something I should be doing that I've never done before? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Sun Mar 20 16:29:12 2005 From: kathryn at bassett.net (Kathryn Bassett) Date: Sun, 20 Mar 2005 14:29:12 -0800 Subject: [AccessD] 2003 "permissions" - the other part In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF1B591D@stekelbes.ithelps.local> Message-ID: <20050320222917.6C533402BC@omta18.mta.everyone.net> Erwin explained: > A workgroup file (an MDW file) is a file that access uses for > Access security at object level. the rest Thanks Erwin. I followed most of that, and you are right, I have no need of any security stuff in Access. It's all my stuff, or a couple databases I maintain for clients (indiviual people, not companies). I think I now know what happened to mess things up. One of the earliest message I got when I opened the database when I first updated had some type of security message (didn't write it down) and I played around with trying to follow what it was talking about. I did do *something* that had to do with securty. But I forgot about that between the time I opened the first mdb (the ABC one) and successfully opening the other databases I was using. Anyway, that seems to explain why I could open the rest and not ABC - whatever I did must have locked up *only* the ABC file. So thanks all, I can file away this thread now. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From Gustav at cactus.dk Mon Mar 21 02:20:05 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 09:20:05 +0100 Subject: [AccessD] Digital Signature Message-ID: Hi Rocky Look up the recent thread (February) on: CAcert: Code signing certificates. Digital Certificates /gustav >>> bchacc at san.rr.com 03/20 7:33 pm >>> Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From paul.hartland at isharp.co.uk Mon Mar 21 05:10:31 2005 From: paul.hartland at isharp.co.uk (Paul Hartland (ISHARP)) Date: Mon, 21 Mar 2005 11:10:31 -0000 Subject: [AccessD] Running Access Query With Parameters From VB6 In-Reply-To: Message-ID: It works on all my other queries, just not this one....I have five query names in strQueries(), three of which I pass date parameters to, this is the only one not working -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 March 2005 17:00 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Mar 21 05:24:47 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 12:24:47 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul You may need to reveal to us what is returned ... /gustav >>> paul.hartland at isharp.co.uk 03/21 12:10 pm >>> It works on all my other queries, just not this one....I have five query names in strQueries(), three of which I pass date parameters to, this is the only one not working -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 March 2005 17:00 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland From paul.hartland at fsmail.net Mon Mar 21 05:26:33 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Mar 2005 12:26:33 +0100 (CET) Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: <7522198.1111404393557.JavaMail.www@wwinf3101> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Message date : Mar 21 2005, 11:25 AM >From : "Gustav Brock" To : accessd at databaseadvisors.com Copy to : Subject : RE: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You may need to reveal to us what is returned ... /gustav >>> paul.hartland at isharp.co.uk 03/21 12:10 pm >>> It works on all my other queries, just not this one....I have five query names in strQueries(), three of which I pass date parameters to, this is the only one not working -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 18 March 2005 17:00 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Running Access Query With Parameters From VB6 Hi Paul You need to pass an SQL string in strSQL. I doubt very much that this: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" will do that. /gustav >>> paul.hartland at fsmail.net 03/18 5:49 pm >>> To all, I have a query in an Access database which is used to produce KPI reports, the query is called qryKPI_SickDays_By_Region_By Month3 and expects a start and finish date. In my VB application I have a connection to the database inside a funtion called OpenDataConn and use the following code (dtKPIStart and dtKPIFinish are the start and end dates). strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I the following error message: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE Anyone any ideas what I am doing wrong ? Thanks for the help in advance. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Gustav at cactus.dk Mon Mar 21 05:41:34 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 12:41:34 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul It is the result of this expression we need: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" /gustav >>> paul.hartland at fsmail.net 03/21 12:26 pm >>> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE From paul.hartland at fsmail.net Mon Mar 21 05:51:29 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 21 Mar 2005 12:51:29 +0100 (CET) Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: <24716718.1111405889334.JavaMail.www@wwinf3101> it evaluates to strSQL = qryKPI_SickDays_By_Region_By Month3 '01/01/05', '31/01/05' which is inside Set rsKPIData = OpenDataConn.Execute(strSQL) Message date : Mar 21 2005, 11:42 AM >From : "Gustav Brock" To : accessd at databaseadvisors.com Copy to : Subject : Re: RE: [AccessD] Running Access Query With Parameters From VB6 Hi Paul It is the result of this expression we need: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" /gustav >>> paul.hartland at fsmail.net 03/21 12:26 pm >>> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Gustav at cactus.dk Mon Mar 21 06:05:58 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 21 Mar 2005 13:05:58 +0100 Subject: [AccessD] Running Access Query With Parameters From VB6 Message-ID: Hi Paul That's what I guessed. If you copy and paste qryKPI_SickDays_By_Region_By Month3 '01/01/05', '31/01/05' into an empty query in SQL desing view, you'll see it have no idea what to do with it. You will need to revise your code to generate some SQL code. /gustav >>> paul.hartland at fsmail.net 03/21 12:51 pm >>> it evaluates to strSQL = qryKPI_SickDays_By_Region_By Month3 '01/01/05', '31/01/05' which is inside Set rsKPIData = OpenDataConn.Execute(strSQL) Message date : Mar 21 2005, 11:42 AM >From : "Gustav Brock" To : accessd at databaseadvisors.com Copy to : Subject : Re: RE: [AccessD] Running Access Query With Parameters From VB6 Hi Paul It is the result of this expression we need: strQueries(intQuery) & " '" & dtKPIStart & "', '" & dtKPIFinish & "'" /gustav >>> paul.hartland at fsmail.net 03/21 12:26 pm >>> Just an error message like below: Run-time error '-2147217900 Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT' or 'UPDATE From stuart at lexacorp.com.pg Mon Mar 21 06:33:40 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 21 Mar 2005 22:33:40 +1000 Subject: [AccessD] Running Access Query With Parameters From VB6 In-Reply-To: <7522198.1111404393557.JavaMail.www@wwinf3101> Message-ID: <423F4BC4.16022.18E4DD2@stuart.lexacorp.com.pg> > > In my VB application I have a connection to the database inside a > funtion > called OpenDataConn and use the following code (dtKPIStart and > dtKPIFinish > are the start and end dates). > strSQL = strQueries(intQuery) & " '" & dtKPIStart & "', '" & > dtKPIFinish & > "'" > Set rsKPIData = OpenDataConn.Execute(strSQL) When I run the program I > the > following error message: > > Run-time error '-2147217900 > Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', > 'SELECT' or > 'UPDATE > Do a Msgbox StrSQL before the Set....and post the result. -- Stuart From vrm at tim-cms.com Mon Mar 21 08:26:46 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Mon, 21 Mar 2005 15:26:46 +0100 Subject: [AccessD] Digital Signature In-Reply-To: Message-ID: <200503210927531.SM01108@ORSLAPTOP> -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: maandag 21 maart 2005 9:20 Aan: accessd at databaseadvisors.com Onderwerp: Re: [AccessD] Digital Signature Hi Rocky Look up the recent thread (February) on: CAcert: Code signing certificates. Digital Certificates /gustav >>> bchacc at san.rr.com 03/20 7:33 pm >>> Dear List: I converted an app from 2000 to 2003. When I send it to my partner, it says it requires a digital signature and won't open. Is there a quick fix for this? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Mon Mar 21 09:03:25 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 21 Mar 2005 11:03:25 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <000201c52c07$2c153df0$b274d0d5@minster33c3r25> References: <3bf43ee905031811512173560c@mail.gmail.com> <000201c52c07$2c153df0$b274d0d5@minster33c3r25> Message-ID: <3bf43ee9050321070323e07cdc@mail.gmail.com> On Fri, 18 Mar 2005 22:09:36 -0000, Andy Lacey wrote: > Hi BL > Presumably if you're using a dbf you have Clipper, Foxpro or something which > maintains it. Couldn't you write a small EXE in one of those and Shell to > it? > > -- Andy Lacey > http://www.minstersystems.co.uk Actually I do not have that. The GIS and GPS software I use read and write shapefiles...a native format. A shapefile has numerous ( for lack of a better term) subfiles one of which is a dbf. Anyway stay tuned I am working on a utility with Access. I will post it here when I am done. Cheers BL From kwilliam at ashlandnet.com Mon Mar 21 09:42:51 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Mon, 21 Mar 2005 10:42:51 -0500 Subject: [AccessD] Pocket PC Access Message-ID: <000b01c52e2c$a4240570$64aba8c0@ashlandnet.com> Does anyone have a recommendation for a Pocket PC database application? Preferably one that I can develop an application (complete with decent forms) on the desktop, and download to my Pocket PC? Any advice would be greatly appreciated. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 From markamatte at hotmail.com Mon Mar 21 09:46:17 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 21 Mar 2005 15:46:17 +0000 Subject: [AccessD] OT: North Carolina Message-ID: John, Until now, I have never lived in one area for more than 3 years...since birth. I'm currently in Greensboro, NC and just crossed year number 4. This is probable not my final destination, but it has been the longest stay. Greensboro is in the center of the state...and as far as I'm concerned...its a great location: 3 hours to the beach...2 hours to the mountains...at least 6 lakes within 2 hours. You are more than welcome to come for a visit if you wanted to check out the major cities(or smaller ones). >From Greensboro: Charlotte 1.5 hours Raleigh Durham 1.5 hours Winston Salem 20 minutes High Point 15 minutes Wilmington 3 hours Asheville 3 hours Anyway, you can use my place as a staging area if you wanted. Good luck with the move. Mark A. Matte >From: "John W. Colby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] OT: North Carolina >Date: Wed, 16 Mar 2005 11:35:43 -0500 > >I am looking at moving to North Carolina next summer (2006). If we have >any >members in (or from) that area who would like to advise me on where to look >at living, where NOT to live etc, please email me off line. Any info would >be much appreciated. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From boogieloogie at gmail.com Mon Mar 21 10:21:48 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 21 Mar 2005 12:21:48 -0400 Subject: [AccessD] Pocket PC Access In-Reply-To: <000b01c52e2c$a4240570$64aba8c0@ashlandnet.com> References: <000b01c52e2c$a4240570$64aba8c0@ashlandnet.com> Message-ID: <3bf43ee9050321082175e434ef@mail.gmail.com> On Mon, 21 Mar 2005 10:42:51 -0500, Keith Williamson wrote: > Does anyone have a recommendation for a Pocket PC database application? > Preferably one that I can develop an application (complete with decent > forms) on the desktop, and download to my Pocket PC? Any advice would be > greatly appreciated. > > Regards, > > Keith E. Williamson > Ashland Equipment, Inc > phone # (410) 273-1856 > fax # (410) 273-1859 > An excellent freebie package XSForms and XS Designer from grandasoft Check it out at: http://www.grandasoft.com/ There are ton of pay ones too - go to www.devbuzz.com but grandasoft is quite powerful. Quite frankly I do not know how they can offer their product aux gratis...but hey don't look the ole gift horse in the mouth. HTH BL From kwilliam at ashlandnet.com Mon Mar 21 10:42:02 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Mon, 21 Mar 2005 11:42:02 -0500 Subject: [AccessD] Pocket PC Access In-Reply-To: <3bf43ee9050321082175e434ef@mail.gmail.com> Message-ID: <001301c52e34$e91965a0$64aba8c0@ashlandnet.com> This looks very interesting. I will try this out. THANKS!!! Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Boogie Loogie Sent: Monday, March 21, 2005 11:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Pocket PC Access On Mon, 21 Mar 2005 10:42:51 -0500, Keith Williamson wrote: > Does anyone have a recommendation for a Pocket PC database > application? Preferably one that I can develop an application > (complete with decent > forms) on the desktop, and download to my Pocket PC? Any advice would be > greatly appreciated. > > Regards, > > Keith E. Williamson > Ashland Equipment, Inc > phone # (410) 273-1856 > fax # (410) 273-1859 > An excellent freebie package XSForms and XS Designer from grandasoft Check it out at: http://www.grandasoft.com/ There are ton of pay ones too - go to www.devbuzz.com but grandasoft is quite powerful. Quite frankly I do not know how they can offer their product aux gratis...but hey don't look the ole gift horse in the mouth. HTH BL -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Mon Mar 21 12:28:50 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Tue, 22 Mar 2005 06:28:50 +1200 Subject: [AccessD] Scatter Graph Message-ID: <6.2.1.2.0.20050322062844.0348e230@mail.dalyn.co.nz> Thanks for the input. I purchased the Toolshed, and while it didn't directly have the answer, Garry was able to answer it for me. :-) The solution is to create a union query which combines the x values into one column and has the y values in separate rows. Eg X Yellow Green Blue 2.3 1.5 2.8 4.4 3.2 3.3 3.1 3.4 David At 17/03/2005, you wrote: >Gerry Robinson has some MS graph samples >http://www.vb123.com/toolshed/99_graphs/msgraph1.htm >unfortunately you need to buy his Toolshed to find the secrets of >scatterplots ;) >http://www.vb123.com/toolshed/99_graphs/scatterplot.htm > > >David Emerson wrote: > >>AccessXP >> >>I am having trouble getting the data source correct for a scatter >>graph. I have data in a table with the following fields - >> >>Series1X, Series1Y, Series2X, Series2Y. >> >>Using the Chart Wizard I can select the fields, and XY (scatter) >>chart. Where I get unstuck is in the "How do you want to lay out your >>data in the chart" screen. >> >>Does anyone have any examples of a scatter chart using two series that I >>could look at? >> >>Regards >> >>David Emerson >>Dalyn Software Ltd >>25 Cunliffe St, Churton Park >>Wellington, New Zealand >>Ph/Fax (04) 478-7456 >>Mobile 027-280-9348 > > >-- >Marty Connelly >Victoria, B.C. >Canada > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Mon Mar 21 12:48:33 2005 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 21 Mar 2005 12:48:33 -0600 Subject: [AccessD] Re: Geography revisited In-Reply-To: <200503211800.j2LI0Di23463@databaseadvisors.com> Message-ID: <5.1.0.14.2.20050321124541.013c0388@pop3.highstream.net> Arthur, While it was not in your list, Russia is this: Postal Code Country Republic City Street House Number - apartment number Last Name First Name Country (in Latin Letters) Robert At 12:00 PM 3/21/2005 -0600, you wrote: >From: "Arthur Fuller" >To: "Access Developers discussion and problem solving" > >Sent: Sunday, March 20, 2005 2:41 AM >Subject: [AccessD] Geography revisited > > > > I don't have to solve the world's address problems, but I do have to > > solve some of them. USA and CDN I have under control. Other nations of > > interest include basically everyone in the EU. I'm hoping for answers > > from people either from each nation or from people with knowledge of same. > > > > 1. What corresponds to states/provinces in Ireland, England, Scotland, > > Wales, Germany, France, Netherlands, Belgium, Spain, Italy, Switzerland > > (I know it's cantons in the last, but I don't know their names). > > > > 2. Some countries, I know, place the street name before the street > > number. Can we define this arrangement more precisely (by nation)? > > > > 3. Not immediately relevant, but is Singapore a city-state or part of > > China or what? > > > > TIA, > > Arthur From Lambert.Heenan at AIG.com Mon Mar 21 12:48:44 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 21 Mar 2005 13:48:44 -0500 Subject: [AccessD] RE: ActiveX Component can't create object (Run-time error 429) Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E66@xlivmbx21.aig.com> Try registering it with RegSvr32.exe? Lambert > -----Original Message----- > From: Microsoft Access Database Discussion List > [SMTP:ACCESS-L at PEACH.EASE.LSOFT.COM] On Behalf Of Anne Smith > Sent: Monday, March 21, 2005 1:43 PM > To: ACCESS-L at PEACH.EASE.LSOFT.COM > Subject: ActiveX Component can't create object (Run-time error 429) > > If I copy the file msinet.ocx to the user's machine, it still does not > work. > Is there anything else that needs to be done to run the code below? Do > I > need to reboot the machine or logout? Is there anything else that needs > to > be installed? > > Set INet = CreateObject("InetCtls.Inet") > > -------------------------------------------------------------------------- > The ACCESS-L list is hosted on a Windows(R) 2000 Server running L-Soft > international's LISTSERV(R) software. For subscription/signoff info > and archives, see http://peach.ease.lsoft.com/archives/access-l.html . > COPYRIGHT INFO: > http://peach.ease.lsoft.com/scripts/wa.exe?SHOWTPL=COPYRIGHT&L=ACCESS-L From boogieloogie at gmail.com Mon Mar 21 13:27:37 2005 From: boogieloogie at gmail.com (Boogie Loogie) Date: Mon, 21 Mar 2005 15:27:37 -0400 Subject: [AccessD] packing a dbf from within Access 97 In-Reply-To: <3bf43ee9050321070323e07cdc@mail.gmail.com> References: <3bf43ee905031811512173560c@mail.gmail.com> <000201c52c07$2c153df0$b274d0d5@minster33c3r25> <3bf43ee9050321070323e07cdc@mail.gmail.com> Message-ID: <3bf43ee905032111274cb99a50@mail.gmail.com> On Mon, 21 Mar 2005 11:03:25 -0400, Boogie Loogie wrote: > On Fri, 18 Mar 2005 22:09:36 -0000, Andy Lacey > wrote: > > Hi BL > > Presumably if you're using a dbf you have Clipper, Foxpro or something which > > maintains it. Couldn't you write a small EXE in one of those and Shell to > > it? > > > > -- Andy Lacey > > http://www.minstersystems.co.uk > > Actually I do not have that. The GIS and GPS software I use read and > write shapefiles...a native format. A shapefile has numerous ( for > lack of a better term) subfiles one of which is a dbf. > > Anyway stay tuned I am working on a utility with Access. I will post > it here when I am done. > > Cheers > > BL > FOR ACCESS 97: Ok I have a rough draft of a packing utility. Some of the code came from M$ web site and some from Experts-Exchange. Opinions, improvements are welcomed. Basically the code replaces the dbf with a new table with all of the 'junk' removed. It appears to be working for me in my inital tests. STEP 1: In a new form create a combobox called cboTables STEP 2: in the rowsource of cboTables place the following: SELECT MsysObjects.Name FROM MsysObjects WHERE (((Left([Name],1))<>'~') AND ((Left([Name],4))<>'Msys') AND ((MsysObjects.Type)=6)); STEP 3: Place a command button on the same form as cboTables and place this code behind it: Private Sub Command2_Click() On Error GoTo Packman Dim db As Database Set db = CurrentDb() If IsNull(Me!cboTables) Then Beep MsgBox "Select a table", vbInformation Me!cboTables.SetFocus Exit Sub End If Call rackempackem(db, Me!cboTables) Exit Sub Packman: MsgBox Error$ Exit Sub PackEnd: End Sub STEP 4: Create a new module with the following: Function tInstrRev(string1 As String, string2 As String) Dim tPos As Long tPos = InStr(1, string1, string2) While InStr(tPos + 1, string1, string2) <> 0 tPos = InStr(tPos + 1, string1, string2) Wend tInstrRev = tPos End Function STEP 5: Create a new module with the following: Public Sub rackempackem(db As Database, tblname As String) Const MB_YESNO = 4 ' Yes and No buttons Const MB_ICONEXCLAMATION = 48 ' Warning message Const IDYES = 6 ' Yes button pressed Dim dbdir As String, tmp As String 'Temp variables Dim i As Integer, ret As Integer 'Counter and return value of MsgBox Dim tdf As TableDef Dim flags As Integer 'Flags for MsgBox ReDim idxs(0) As New Index 'Holds indexes On Error GoTo PackErr flags = MB_YESNO Or MB_ICONEXCLAMATION ret = MsgBox("Do you want to pack " & tblname & ".dbf?", flags) If ret = IDYES Then dbdir = Left$(db.Name, tInstrRev(db.Name, "\")) 'Hold database directory 'Delete the temp file if it exists. If Dir$(dbdir & "p_a_c_k.*") <> "" Then Kill dbdir & "p_a_c_k.*" End If For Each tdf In db.TableDefs If tdf.Name = "p_a_c_k" Then db.Execute "DROP TABLE p_a_c_k;" End If Next 'Store the indexes. For i = 0 To db.TableDefs(tblname).Indexes.Count - 1 ReDim Preserve idxs(i + 1) idxs(i).Name = db.TableDefs(tblname).Indexes(i).Name idxs(i).Fields = db.TableDefs(tblname).Indexes(i).Fields idxs(i).Primary = db.TableDefs(tblname).Indexes(i).Primary idxs(i).Unique = db.TableDefs(tblname).Indexes(i).Unique Next 'Create the new table without the deleted records. db.Execute "Select * into [p_a_c_k] from " & tblname 'Delete the current table. 'delete all records db.Execute "DELETE *.* from " & tblname db.TableDefs.Delete tblname 'Rename the DBF file and any memo files. tmp = Dir$(dbdir & "p_a_c_k.*") Do While tmp <> "" 'Rename with the correct file extension; this should be on one line. Name dbdir & tmp As dbdir & tblname & Right$(tmp, Len(tmp) - InStr(tmp, ".") + 1) tmp = Dir$ Loop 'Refresh the tabledefs and add the indexes to the new table. db.TableDefs.Refresh For i = 0 To UBound(idxs) - 1 db.TableDefs(tblname).Indexes.Append idxs(i) Next MsgBox "'" & tblname & "' .dbf successfully Packed!", MB_ICONEXCLAMATION DoCmd.TransferDatabase acExport, "dBase 5.0", "C:\GIS\SILVI\", acTable, "P_A_C_K", tblname 'change path to suit your needs 'db.Execute "DROP TABLE P_A_C_K;" 'optional DoCmd.TransferDatabase acLink, "dBase 5.0", "C:\GIS\SILVI\", acTable, tblname, tblname 'change path to suit your needs End If RefreshDatabaseWindow Exit Sub PackErr: MsgBox Error$ Exit Sub PackEnd: End Sub Hopefully this is useful to someone. From KP at sdsonline.net Mon Mar 21 18:26:27 2005 From: KP at sdsonline.net (Kath Pelletti) Date: Tue, 22 Mar 2005 11:26:27 +1100 Subject: [AccessD] Free plug for dropload.com Message-ID: <005001c52e75$ca00d270$8001a8c0@user> Just a quick plug for a site that has been quite useful to me over the last 12 months - http://www.dropload.com This is *Free* and allows you to post a file up to 100MB at their site. You just enter an email address for the file recipient and the file name and your recipient will receive an email with a link to allow them to download. Nice and simple. Kath From d.dick at uws.edu.au Mon Mar 21 20:00:57 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 13:00:57 +1100 Subject: [AccessD] A2203: Determine if a folder exists Message-ID: <200503220201.j2M218lE029919@cooper.uws.edu.au> Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren From mikedorism at adelphia.net Mon Mar 21 20:13:57 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 21 Mar 2005 21:13:57 -0500 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220201.j2M218lE029919@cooper.uws.edu.au> Message-ID: <000001c52e84$d04b8c60$0b08a845@hargrove.internal> If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 20:59:45 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 13:59:45 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e84$d04b8c60$0b08a845@hargrove.internal> Message-ID: <200503220259.j2M2xulE009837@cooper.uws.edu.au> Hi Doris it's so simple when you see it Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 21:15:41 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 14:15:41 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e84$d04b8c60$0b08a845@hargrove.internal> Message-ID: <200503220315.j2M3FrlE028252@cooper.uws.edu.au> Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Mar 21 21:29:10 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 21 Mar 2005 22:29:10 -0500 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220315.j2M3FrlE028252@cooper.uws.edu.au> Message-ID: <000101c52e8f$53ded280$0b08a845@hargrove.internal> Through in a DoEvents somewhere to allow the system time to process the request...particularly if working with network folders.... Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 10:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Mar 21 21:31:06 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 21 Mar 2005 22:31:06 -0500 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220315.j2M3FrlE028252@cooper.uws.edu.au> Message-ID: <000201c52e8f$97136980$0b08a845@hargrove.internal> Another suggestion might be to switch over to FileSystemObject which provides much more robust properties than the simple DIR statement. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 10:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Mar 21 21:32:46 2005 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 21 Mar 2005 21:32:46 -0600 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <17108824.1111461886211.JavaMail.root@sniper19> Message-ID: <000001c52e8f$d1396dd0$123a11d8@danwaters> Darren, FileSystemObjects has a method to tell you if a folder exists. You'll need to set a reference to scrrun.dll. Dan Waters President ProMation Systems, Inc. 763-780-2496 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 21:57:49 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 14:57:49 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e8f$d1396dd0$123a11d8@danwaters> Message-ID: <200503220358.j2M3w1lE013322@cooper.uws.edu.au> Thanks Dan and Doris I was originally using FSO but could not find a FolderExist Method I found plenty else like...date created, attributes etc I was going to see if I got a return on one of those and then Assume, if I did get a return, that the folder Exists and go from there I'll go back and have another look Many thanks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, 22 March 2005 2:33 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Darren, FileSystemObjects has a method to tell you if a folder exists. You'll need to set a reference to scrrun.dll. Dan Waters President ProMation Systems, Inc. 763-780-2496 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 22:05:25 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 15:05:25 +1100 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <000001c52e8f$d1396dd0$123a11d8@danwaters> Message-ID: <200503220405.j2M45blE021057@cooper.uws.edu.au> Hi all Found the folder exist method Still no go I tried the following code and even if the folder existed or not I kept getting false (NOT EXIST) Dim fs Set fs = CreateObject("Scripting.FileSystemObject") If fs.FolderExists(Me.txtFolderPath) = True Then MsgBox "EXIST" ElseIf fs.FolderExists(Me.txtFolderPath) = False Then MsgBox "NOT EXIST" End If -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Tuesday, 22 March 2005 2:33 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Darren, FileSystemObjects has a method to tell you if a folder exists. You'll need to set a reference to scrrun.dll. Dan Waters President ProMation Systems, Inc. 763-780-2496 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:16 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists Hi Doris It looked like it might work But It tells me the Folder Exists even when I delete it??? If I msgbox the line Len(Dir(me.PathToDownloadTo)) It gives me 0 (That's a zero) both before and even after I delete the folder Any suggestions? Many thnks Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, 22 March 2005 1:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2203: Determine if a folder exists If Len(Dir(me.PathToDownloadTo)) > 0 Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:01 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2203: Determine if a folder exists Hello all This should be simple but it's causing me pain I have a folder (It does exist) C:\SomeFolder\SomeSubFolder\TheDestination If I type the following code and 'run' it If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then MsgBox "Folder Doesn't Exist" Else MsgBox "Folder exists" End If It still tells me the folder doesn't exist even though it does What is a 'proper' way to tell if a folder exists Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Mon Mar 21 22:16:20 2005 From: demulling at centurytel.net (Demulling Family) Date: Mon, 21 Mar 2005 22:16:20 -0600 Subject: [AccessD] A2203: Determine if a folder exists In-Reply-To: <200503220358.j2M3w1lE013322@cooper.uws.edu.au> References: <200503220358.j2M3w1lE013322@cooper.uws.edu.au> Message-ID: <423F9C14.9020506@centurytel.net> You could always use the APIs Private Declare Function PathIsDirectory Lib "shlwapi.dll" Alias "PathIsDirectoryA" (ByVal pszPath As String) As Long Private Declare Function PathIsDirectoryEmpty Lib "shlwapi.dll" Alias "PathIsDirectoryEmptyA" (ByVal pszPath As String) -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.8.0 - Release Date: 3/21/2005 From d.dick at uws.edu.au Mon Mar 21 22:19:24 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 15:19:24 +1100 Subject: [AccessD] A2203: Determine if a folder exists - SOLVED Message-ID: <200503220419.j2M4JalE007214@cooper.uws.edu.au> This Works - WooHoo Dim fs Dim x as integer Set fs = CreateObject("Scripting.FileSystemObject") x = fs.FolderExists(Me.txtFolderPath) If x = -1 Then MsgBox "Folder Exists" ElseIf x = 0 Then MsgBox "Folder doesn't Exist" End If So.for some reason I couldn't include the line fs.FolderExists(Me.txtFolderPath) Inside an if statement. But if I Dim'd X as an integer and Attached the line fs.FolderExists(Me.txtFolderPath) To the X then I could test the result value I am grateful, but does andyone know why?? Have a great day Many thanks to Dan and Doris See ya Darren From jmhla at earthlink.net Mon Mar 21 22:58:03 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 21 Mar 2005 20:58:03 -0800 Subject: [AccessD] Need code help again Please x posted Message-ID: <000001c52e9b$bb4d6fb0$6701a8c0@laptop1> I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe From connie.kamrowski at agric.nsw.gov.au Mon Mar 21 23:19:09 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Tue, 22 Mar 2005 16:19:09 +1100 Subject: [AccessD] Re: Compare first letter of String Message-ID: I have three sets of Strings to represent Authority Number they begin with one of three letters A, L or P. I need to limit access to the reports to the corresponding letter. ie For the Approval Certificate I only want the Authorities with A at the start to be able to open this form. I will put the limitation on the button to open the Certificate but I am not sure how to do this, do I use the LEFT$ Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From d.dick at uws.edu.au Mon Mar 21 23:33:54 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 16:33:54 +1100 Subject: [AccessD] Re: Compare first letter of String In-Reply-To: Message-ID: <200503220534.j2M5Y6lE023941@cooper.uws.edu.au> Hi Connie Try something like If left(YourString,1) = "A" then 'Do the stuff that only A's can do ElseIf left(YourString,1) = "L" then 'Do the stuff that only L's can do ElseIf left(YourString,1) = "P" then 'Do the stuff that only P's can do Else Msgbox "Unknown Auth. Number" end if HTH Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Tuesday, 22 March 2005 4:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Compare first letter of String I have three sets of Strings to represent Authority Number they begin with one of three letters A, L or P. I need to limit access to the reports to the corresponding letter. ie For the Approval Certificate I only want the Authorities with A at the start to be able to open this form. I will put the limitation on the button to open the Certificate but I am not sure how to do this, do I use the LEFT$ Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Mar 21 23:41:30 2005 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 22 Mar 2005 16:41:30 +1100 Subject: [AccessD] Need code help again Please x posted In-Reply-To: <000001c52e9b$bb4d6fb0$6701a8c0@laptop1> Message-ID: <200503220541.j2M5fhlE001418@cooper.uws.edu.au> Hi Joe At first glance... You have 3 lines at the end of your code that goes like this... Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False That is where ChkAllPieces is being 're-set' To avoid this make sure there is an "exit sub" before this if certain criteria are met Otherwise the code is processed from top to bottom, without 'skipping', and will eventually process the line Me.ChkAllPieces.Value = 0 if you haven't told it to exit. So make sure you exit the sub before that line if you don't want Me.ChkAllPieces to = 0 IE After you make 'em click OK after warning them put in Exit Sub Directly after Case vbOK Eg Select Case lngRetval Case vbOK End sub End Select Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 22 March 2005 3:58 PM To: 'Access Developers discussion and problem solving'; ACCESS-L Subject: [AccessD] Need code help again Please x posted I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Mar 21 23:50:17 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 22 Mar 2005 06:50:17 +0100 Subject: [AccessD] Re: Compare first letter of String Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B592D@stekelbes.ithelps.local> Or use "select case" for better readability. I also always use ucase or lcase just in case.... Select case ucase(left(YourString,1)) case "A" 'A stuff case "B" 'B stuff case "C" 'C stuff Case else 'else stuff End select -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Tuesday, March 22, 2005 6:34 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Compare first letter of String Hi Connie Try something like If left(YourString,1) = "A" then 'Do the stuff that only A's can do ElseIf left(YourString,1) = "L" then 'Do the stuff that only L's can do ElseIf left(YourString,1) = "P" then 'Do the stuff that only P's can do Else Msgbox "Unknown Auth. Number" end if HTH Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Tuesday, 22 March 2005 4:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Compare first letter of String I have three sets of Strings to represent Authority Number they begin with one of three letters A, L or P. I need to limit access to the reports to the corresponding letter. ie For the Approval Certificate I only want the Authorities with A at the start to be able to open this form. I will put the limitation on the button to open the Certificate but I am not sure how to do this, do I use the LEFT$ Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Mon Mar 21 23:56:06 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 21 Mar 2005 21:56:06 -0800 Subject: [AccessD] Need code help again Please x posted In-Reply-To: <200503220541.j2M5fhlE001418@cooper.uws.edu.au> Message-ID: <200503220555.j2M5tui13822@databaseadvisors.com> I want to reset the values if the message box triggers. If no message box then no reset. Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Need code help again Please x posted Hi Joe At first glance... You have 3 lines at the end of your code that goes like this... Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False That is where ChkAllPieces is being 're-set' To avoid this make sure there is an "exit sub" before this if certain criteria are met Otherwise the code is processed from top to bottom, without 'skipping', and will eventually process the line Me.ChkAllPieces.Value = 0 if you haven't told it to exit. So make sure you exit the sub before that line if you don't want Me.ChkAllPieces to = 0 IE After you make 'em click OK after warning them put in Exit Sub Directly after Case vbOK Eg Select Case lngRetval Case vbOK End sub End Select Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 22 March 2005 3:58 PM To: 'Access Developers discussion and problem solving'; ACCESS-L Subject: [AccessD] Need code help again Please x posted I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 22 00:01:26 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 21 Mar 2005 22:01:26 -0800 Subject: [AccessD] Need code help again Please x posted In-Reply-To: <200503220541.j2M5fhlE001418@cooper.uws.edu.au> Message-ID: <200503220601.j2M61Fi15331@databaseadvisors.com> Ok I moved the reset inside the IF and life is better. Do not know if it is good but it is better Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, March 21, 2005 9:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Need code help again Please x posted Hi Joe At first glance... You have 3 lines at the end of your code that goes like this... Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False That is where ChkAllPieces is being 're-set' To avoid this make sure there is an "exit sub" before this if certain criteria are met Otherwise the code is processed from top to bottom, without 'skipping', and will eventually process the line Me.ChkAllPieces.Value = 0 if you haven't told it to exit. So make sure you exit the sub before that line if you don't want Me.ChkAllPieces to = 0 IE After you make 'em click OK after warning them put in Exit Sub Directly after Case vbOK Eg Select Case lngRetval Case vbOK End sub End Select Hope this helps Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, 22 March 2005 3:58 PM To: 'Access Developers discussion and problem solving'; ACCESS-L Subject: [AccessD] Need code help again Please x posted I have a sub form where I need to do some logic checking. sfrmSampleSize User either selects all pieces (ChkAllPieces), a yes no field , txtPieces, a numeric txt box, (txtPieces) or N/A, (chkNA). If more then one field is changed from 0 or not selected I run the following code. Private Sub ChkAllPieces_AfterUpdate() DoCmd.SetWarnings False If Me.txtPieces.Value <> 0 Or Me.chkNA.Value = True Then Dim lngRetval As Long lngRetval = MsgBox( _ "You have selected conflicting instructions." & vbCrLf & "" & vbCrLf & "Please select one only:" & vbCrLf & "" & vbCrLf & "All samples, A number of samples or N/A" & vbCrLf & "" & vbCrLf & "", _ vbOKOnly + vbExclamation + vbDefaultButton1, _ "Conflicting Instructions") Select Case lngRetval Case vbOK End Select End If Me.txtPieces.Value = 0 Me.ChkAllPieces.Value = 0 Me.chkNA.Value = False DoCmd.SetWarnings True End Sub Problem : I can no longer set value of chkAllPieces to true. It automatically changes back to unchecked. Can anyone tell me why? Thanks Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Tue Mar 22 03:51:24 2005 From: lists at theopg.com (MarkH) Date: Tue, 22 Mar 2005 09:51:24 -0000 Subject: [AccessD] A2203: Determine if a folder exists - SOLVED In-Reply-To: <200503220419.j2M4JalE007214@cooper.uws.edu.au> Message-ID: <000401c52ec4$b720e060$b20b6bd5@netboxxp> Not sure what the problem was / is but this worked for me first time, no probs... Probably worth testing there is a value in txtFolderPath Private Sub Command0_Click() Dim fs Dim x As Integer Set fs = CreateObject("Scripting.FileSystemObject") If fs.FolderExists(Me.Text1) Then MsgBox "Folder Exists" ElseIf x = 0 Then MsgBox "Folder doesn't Exist" End If End Sub Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.859 / Virus Database: 585 - Release Date: 14/02/2005 From Lambert.Heenan at AIG.com Tue Mar 22 08:37:12 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 22 Mar 2005 09:37:12 -0500 Subject: [AccessD] A2203: Determine if a folder exists Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E76@xlivmbx21.aig.com> So many replies! So many differing approaches! So many references that need to be set! Not if you use this simple, effecting, all VBA solution... Function isDirectory(sDir As String) As Boolean On Error Resume Next isDirectory = (GetAttr(sDir) And vbDirectory) <> 0 If Err.Number <> 0 Then isDirectory = False On Error GoTo 0 End Function Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, March 21, 2005 9:01 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] A2203: Determine if a folder exists > > Hello all > This should be simple but it's causing me pain > I have a folder (It does exist) > C:\SomeFolder\SomeSubFolder\TheDestination > > If I type the following code and 'run' it > > If IsNull(Dir(Me.PathToDownloadTo)) Or Dir(Me.PathToDownloadTo) = "" Then > MsgBox "Folder Doesn't Exist" > Else > MsgBox "Folder exists" > End If > > It still tells me the folder doesn't exist even though it does > > What is a 'proper' way to tell if a folder exists > > Many thanks in advance > > Darren > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 22 12:19:15 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 22 Mar 2005 11:19:15 -0700 Subject: [AccessD] No column-wrapping on 2-column reports ? Message-ID: Hello all! I have an Access report that has been formatted with 2 columns. Each record has about 10 fields that take up maybe 3 vertical inches of space.? Some of the fields have CanGrow set to true, which means that some records are very "short" in a vertical sense, and others are "tall". Here's my problem; records do not appear to be wrapping from one column to another.? This is not a problem on pages with a bunch of "short" records, but it is on pages that have (for example) one "short" record and one "tall" record.? Instead of starting below the short record and wrapping from the bottom of the left-hand column to the top of the right-hand column, the "tall" record just starts at the top of the right-hand column, leaving a lot of space under the "short" record in the left-hand column. Is anyone aware of a way to make records wrap from one column to the other? -C- From cfoust at infostatsystems.com Tue Mar 22 12:29:02 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 22 Mar 2005 10:29:02 -0800 Subject: [AccessD] No column-wrapping on 2-column reports ? Message-ID: A field can't grow and wrap into the next column, to the whole field or whole record, depending on your keep together settings will get moved. As far as I recall, Access reports have always worked this way, which can make creating directories an interesting exercise. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, March 22, 2005 10:19 AM To: accessd at databaseadvisors.com Subject: [AccessD] No column-wrapping on 2-column reports ? Hello all! I have an Access report that has been formatted with 2 columns. Each record has about 10 fields that take up maybe 3 vertical inches of space.? Some of the fields have CanGrow set to true, which means that some records are very "short" in a vertical sense, and others are "tall". Here's my problem; records do not appear to be wrapping from one column to another.? This is not a problem on pages with a bunch of "short" records, but it is on pages that have (for example) one "short" record and one "tall" record.? Instead of starting below the short record and wrapping from the bottom of the left-hand column to the top of the right-hand column, the "tall" record just starts at the top of the right-hand column, leaving a lot of space under the "short" record in the left-hand column. Is anyone aware of a way to make records wrap from one column to the other? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Mar 22 13:09:53 2005 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 22 Mar 2005 12:09:53 -0700 Subject: [AccessD] No column-wrapping on 2-column reports ? Message-ID: <5c4da486385f45969e11542f201d11e3@christopherhawkins.com> Interesting is one word for it.? ;) I've opted to go with Word mail merge for this particular directory.? My clients will complain, but as we all know - the developer knows best!? ;) -C- ---------------------------------------- From: "Charlotte Foust" Sent: Tuesday, March 22, 2005 11:31 AM To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] No column-wrapping on 2-column reports ? A field can't grow and wrap into the next column, to the whole field or whole record, depending on your keep together settings will get moved. As far as I recall, Access reports have always worked this way, which can make creating directories an interesting exercise. Charlotte Foust -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, March 22, 2005 10:19 AM To: accessd at databaseadvisors.com Subject: [AccessD] No column-wrapping on 2-column reports ? Hello all! I have an Access report that has been formatted with 2 columns. Each record has about 10 fields that take up maybe 3 vertical inches of space.? Some of the fields have CanGrow set to true, which means that some records are very "short" in a vertical sense, and others are "tall". Here's my problem; records do not appear to be wrapping from one column to another.? This is not a problem on pages with a bunch of "short" records, but it is on pages that have (for example) one "short" record and one "tall" record.? Instead of starting below the short record and wrapping from the bottom of the left-hand column to the top of the right-hand column, the "tall" record just starts at the top of the right-hand column, leaving a lot of space under the "short" record in the left-hand column. Is anyone aware of a way to make records wrap from one column to the other? -C- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Tue Mar 22 23:12:58 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 22 Mar 2005 21:12:58 -0800 Subject: [AccessD] Is there a preferred style Message-ID: <000501c52f66$fb36f620$6701a8c0@laptop1> Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub From jwcolby at colbyconsulting.com Tue Mar 22 23:29:49 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 00:29:49 -0500 Subject: [AccessD] Is there a preferred style In-Reply-To: <000501c52f66$fb36f620$6701a8c0@laptop1> Message-ID: <002701c52f69$55347560$697aa8c0@ColbyM6805> The second. The nesting will prevent running the next tests if the first test passes. It is only an issue however if it is in code that runs continuously and the time difference will add up. Or... Where several different answers can be happening at the same time and the last should win. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is there a preferred style Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub -- 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 Mar 22 23:34:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 23 Mar 2005 15:34:17 +1000 Subject: [AccessD] Is there a preferred style In-Reply-To: <000501c52f66$fb36f620$6701a8c0@laptop1> Message-ID: <42418C79.13450.765D45@stuart.lexacorp.com.pg> On 22 Mar 2005 at 21:12, Joe Hecht wrote: > Working alone is the pits. > > I have three tests to set the value of a text box. What is considered to be > good coding practice? > I try to avoid nesting "If"s, they can get very messy. Assuming the cases are mutually exclusive, I find this sort of thing much easier to follow: Select Case Switch(TestOne = True, 1, TestTwo = True, 2, TestThree = True, 3) Case 1 dosomething Case 2 dosomethingelse Case 3 doathirdthing Case Else MsgBox "Nothing is true" End Select If they are not mutually exclusive, you could use a bitmask Flag = 0 If testOne = true then flag = flag +1 If testTwo = true then flag = flag +2 If testThree = true then flag = flag +4 Select Case flag Case 0 'Nothing is true Case 1 'testone is true Case 2 'testtwo is true Case 3 'testone and testtwo are true ....... -- Stuart From jmhla at earthlink.net Wed Mar 23 00:03:00 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 22 Mar 2005 22:03:00 -0800 Subject: [AccessD] Is there a preferred style In-Reply-To: <42418C79.13450.765D45@stuart.lexacorp.com.pg> Message-ID: <000001c52f6d$f8978ef0$6701a8c0@laptop1> Did not even think of select case. Thanks for reminder -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, March 22, 2005 9:34 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Is there a preferred style On 22 Mar 2005 at 21:12, Joe Hecht wrote: > Working alone is the pits. > > I have three tests to set the value of a text box. What is considered to be > good coding practice? > I try to avoid nesting "If"s, they can get very messy. Assuming the cases are mutually exclusive, I find this sort of thing much easier to follow: Select Case Switch(TestOne = True, 1, TestTwo = True, 2, TestThree = True, 3) Case 1 dosomething Case 2 dosomethingelse Case 3 doathirdthing Case Else MsgBox "Nothing is true" End Select If they are not mutually exclusive, you could use a bitmask Flag = 0 If testOne = true then flag = flag +1 If testTwo = true then flag = flag +2 If testThree = true then flag = flag +4 Select Case flag Case 0 'Nothing is true Case 1 'testone is true Case 2 'testtwo is true Case 3 'testone and testtwo are true ....... -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Mar 23 00:08:50 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 22 Mar 2005 22:08:50 -0800 Subject: [AccessD] Is there a preferred style In-Reply-To: <000501c52f66$fb36f620$6701a8c0@laptop1> Message-ID: <0IDS00878JQLA5@l-daemon> Hi Joe: The way I would do it is to create the whole test in one group with the most likely 'true' at the top and the rest in descending order like: if test one is true then do something elseif test two is true then do something elseif test three is true then do something 'else ' ' do something endif I always like to have an else at the bottom of statement if there is even the slightest chance the code will fail over if some value gets through. That is only necessary if that is what is required. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Tuesday, March 22, 2005 9:13 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is there a preferred style Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Wed Mar 23 06:05:51 2005 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 23 Mar 2005 07:05:51 -0500 Subject: [AccessD] Is there a preferred style In-Reply-To: <916187228923D311A6FE00A0CC3FAA30B44316@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA30ABE92E@ADGSERVER> I agree with John. The second version can stop unnecessary comparisons being made. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 23, 2005 12:30 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Is there a preferred style The second. The nesting will prevent running the next tests if the first test passes. It is only an issue however if it is in code that runs continuously and the time difference will add up. Or... Where several different answers can be happening at the same time and the last should win. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:13 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Is there a preferred style Working alone is the pits. I have three tests to set the value of a text box. What is considered to be good coding practice? 1. if test one is true then do something end if if test two is true then dosomething else do something end if end sub 2. if test one is true then do something else if test two is true then dosomething else do something end if end if end sub From Rich_Lavsa at pghcorning.com Wed Mar 23 07:27:25 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 23 Mar 2005 08:27:25 -0500 Subject: [AccessD] Normalize Pivot Table Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03ABEA@goexchange2.pghcorning.com> Hello all, I was just curious if anyone out there has ever written any code (ADO or DAO) to Normalize a Pivot or Crosstab data table. Reason: I get a data matrix that looks like a pivot table. The matrix is set up with formula's in excel so its easy for the outside company to update the entire matrix and email the updated matrix to our users. Problem is getting the updated data into a normalized state so it can be used in the database. I did try UNTOOLS (http://www.CleanDataSystems.com) which works great for a 1 time conversion, however I need this to be an automated approach where the user simply has to copy the file to a specified directory then push a button in the application to update the database. Yesterday I had a very clear vision of how I'd write the code but this morning my brain isn't working too clearly. Any help would be greatly appreciated Thanks, Rich From andy at minstersystems.co.uk Wed Mar 23 07:19:18 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 14:19:18 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323141916.1368825E46F@smtp.nildram.co.uk> Hi all Never used TS but may be doing so soon. I could use some advice from those of you who've done it. If I have an A97 application which I wanted to make available to a home user via TS would you expect there to be any code changes necessary? The FE links to a single BE, which is located on a Novell server - is that an issue? Can TS be setup so that all drive mappings are the same as a desktop's? The app emails via Outlook - will that just run as normal? Ah but we now use Redemption - so I guess Redemption would need loading on the TS server. Anyone done that? And we send faxes using Zetafax. I don't imagine anyone knows the answer to that one, but is it 100% reliable to say that if an app works on a W2000 workstation it will work just the same under TS? Any help much appreciated as ever. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From Gustav at cactus.dk Wed Mar 23 08:41:12 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 23 Mar 2005 15:41:12 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: Hi Andy If this is for a single user you could just use remote control. Or - for a setup like Termincal Server but at a fraction of the license cost - study here: http://www.thinsoftinc.com/products_winconserver_info.html /gustav >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> Hi all Never used TS but may be doing so soon. I could use some advice from those of you who've done it. If I have an A97 application which I wanted to make available to a home user via TS would you expect there to be any code changes necessary? The FE links to a single BE, which is located on a Novell server - is that an issue? Can TS be setup so that all drive mappings are the same as a desktop's? The app emails via Outlook - will that just run as normal? Ah but we now use Redemption - so I guess Redemption would need loading on the TS server. Anyone done that? And we send faxes using Zetafax. I don't imagine anyone knows the answer to that one, but is it 100% reliable to say that if an app works on a W2000 workstation it will work just the same under TS? From vrm at tim-cms.com Wed Mar 23 08:57:13 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Wed, 23 Mar 2005 15:57:13 +0100 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323141916.1368825E46F@smtp.nildram.co.uk> Message-ID: <200503230958796.SM02656@ORSLAPTOP> Hi Andy, I use TS over the internet in combination with ADSL and cable connections a lot with my customers. Finally get rid of pc-nowwhere, thightvnc,etc. What you have to do is a client install of your application on the TS. If your TS is an domainserver all drivemappings will be as usual conform the loginscript because users are authenticated by the domain controller. If not you have to be sure that the TS has the same drivemappings that are necessary for your app. What type of fileserver you are running does not matter. Outlook and PRINTING are difficult. If your TS is in a domain the domain profile will be used on the TS and also outlook is working ok. But this depends on the installation and architecture of your network. Printing is to the local available printers. Keep in mind local meens local for the TS and so mostly not on you own location. I did not have any code changes to my A97, A2k apps using TS and am using redemption also with my clients. No problemo As fax solution we use Winfax and Castell fax the both work well within TS My experience is that a app which works on windows NT and higher works well on TS. The main thing you have to get focussed on is that a TS session is a client session on the server so ALL software needed to run you app on the normal clients have to be installed on your TS server. Kind regards Marcel Vreuls ____________________________________________________________________________ ___________________________ From andy at minstersystems.co.uk Wed Mar 23 07:58:41 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 14:58:41 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323145839.1CAAD257659@smtp.nildram.co.uk> Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those > of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user > via TS would you expect there to be any code changes necessary? The FE > links > to a single BE, which is located on a Novell server - is that an issue? > Can > TS be setup so that all drive mappings are the same as a desktop's? The > app > emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone > knows the answer to that one, but is it 100% reliable to say that if an > app > works on a W2000 workstation it will work just the same under TS? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 08:08:07 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:08:07 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323150804.8398B257639@smtp.nildram.co.uk> Terrific Marcel. Just what I wanted to hear. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 14:55 > > Hi Andy, > > I use TS over the internet in combination with ADSL and cable connections a > lot with my customers. Finally get rid of pc-nowwhere, thightvnc,etc. > > What you have to do is a client install of your application on the TS. > > If your TS is an domainserver all drivemappings will be as usual conform the > loginscript because users are authenticated by the domain controller. If not > you have to be sure that the TS has the same drivemappings that are > necessary for your app. What type of fileserver you are running does not > matter. > > Outlook and PRINTING are difficult. If your TS is in a domain the domain > profile will be used on the TS and also outlook is working ok. But this > depends on the installation and architecture of your network. Printing is to > the local available printers. Keep in mind local meens local for the TS and > so mostly not on you own location. > > I did not have any code changes to my A97, A2k apps using TS and am using > redemption also with my clients. No problemo > As fax solution we use Winfax and Castell fax the both work well within TS > > My experience is that a app which works on windows NT and higher works well > on TS. The main thing you have to get focussed on is that a TS session is a > client session on the server so ALL software needed to run you app on the > normal clients have to be installed on your TS server. > > > > Kind regards > > Marcel Vreuls > > ____________________________________________________________________________ > ___________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 08:11:30 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:11:30 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323151128.11BB2256FC9@smtp.nildram.co.uk> Thinking about the printing. Presumably the user logging-in on TS has a separate profile from the user logging-in when in the office. If so then could we define his/her printer at home somehow as a network printer then set that as the TS profile's default printer? Would that work? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 14:55 > > Hi Andy, > > I use TS over the internet in combination with ADSL and cable connections a > lot with my customers. Finally get rid of pc-nowwhere, thightvnc,etc. > > What you have to do is a client install of your application on the TS. > > If your TS is an domainserver all drivemappings will be as usual conform the > loginscript because users are authenticated by the domain controller. If not > you have to be sure that the TS has the same drivemappings that are > necessary for your app. What type of fileserver you are running does not > matter. > > Outlook and PRINTING are difficult. If your TS is in a domain the domain > profile will be used on the TS and also outlook is working ok. But this > depends on the installation and architecture of your network. Printing is to > the local available printers. Keep in mind local meens local for the TS and > so mostly not on you own location. > > I did not have any code changes to my A97, A2k apps using TS and am using > redemption also with my clients. No problemo > As fax solution we use Winfax and Castell fax the both work well within TS > > My experience is that a app which works on windows NT and higher works well > on TS. The main thing you have to get focussed on is that a TS session is a > client session on the server so ALL software needed to run you app on the > normal clients have to be installed on your TS server. > > > > Kind regards > > Marcel Vreuls > > ____________________________________________________________________________ > ___________________________ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From tom.bolton at donnslaw.co.uk Wed Mar 23 09:14:10 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 23 Mar 2005 15:14:10 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAA5@dibble.observatory.donnslaw.co.uk> Hi Andy I've been building a complex Access app on TS (Win 2k) for Roz for some months now. It's a reporting tool that connects to either Informix (boo) or SQL Server (yay). Here are some of the problems I've come across: -- FE and BE in my case needed to be split as user info (saved queries etc.) is stored in Access and we have ~12 'production' terminal servers. These are load-balanced and users are kicked onto any one of them at random. If no split, then the user needs to be on the same server they were on when they saved their data. -- Anything that dynamically alters queries etc. needs to make a copy of these first to avoid locking issues. These are the biggies, otherwise everything seems to work/connect just as in a normal client/server situation. If you have specific questions I'd be more than happy to answer them as best I can. HTH Tom -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 23 March 2005 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access & Terminal Services Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From vrm at tim-cms.com Wed Mar 23 09:24:10 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Wed, 23 Mar 2005 16:24:10 +0100 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323151128.11BB2256FC9@smtp.nildram.co.uk> Message-ID: <200503231025890.SM01212@ORSLAPTOP> Andy, This could work. You have some configuration to do at home and in the office. On the TS you have to create a printer as \\ipadreshome\printername Then at home (and perhaps the company firewall as well) you have to open the firewall for incoming printbatches and route it to correct PC with shared printer. This needs some testing and setting up but it works, slowly but works. You could get problems with -timeouts. I have a batch file which pings the remote printer every 10 minutes to keep the session alive -disconnected printers because the internet is down or remote computer is rebooted. Take the time to test and configure. I costed me about 1 day to set one printer up. Kind regards Marcel Vreuls From andy at minstersystems.co.uk Wed Mar 23 08:23:11 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:23:11 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323152309.4B651257669@smtp.nildram.co.uk> Thanks Tom I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that you must mean dynamically altering queries in the BE. Am I right? Surely queries in the FE are ok. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:14 > Hi Andy > > I've been building a complex Access app on TS (Win 2k) for Roz for some > months now. It's a reporting tool that connects to either Informix (boo) or > SQL Server (yay). > > Here are some of the problems I've come across: > > -- FE and BE in my case needed to be split as user info (saved queries etc.) > is stored in Access and we have ~12 'production' terminal servers. These > are load-balanced and users are kicked onto any one of them at random. If > no split, then the user needs to be on the same server they were on when > they saved their data. > > -- Anything that dynamically alters queries etc. needs to make a copy of > these first to avoid locking issues. > > These are the biggies, otherwise everything seems to work/connect just as in > a normal client/server situation. If you have specific questions I'd be > more than happy to answer them as best I can. > > HTH > Tom > > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 13:59 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > Thanks Gustav, but the boss here is likely to want to go the TS route. We > have Remote Control working nicely for him from home, but for lesser > mortals, of whom there could be several, he doesn't want to have > workstations dotted around which have to left on and not used by other > workers, and other considerations. So I think TS would be right, but the > question is whether everything that my app does (as outlined below) will > work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if you > went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From nkling at co.montgomery.ny.us Wed Mar 23 09:27:07 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Wed, 23 Mar 2005 10:27:07 -0500 Subject: [AccessD] Access & Terminal Services Message-ID: <30BC111F638EB54082001A7E7282FE41114D0C@elmo.co.montgomery.ny.us> When you install W2000 server you have a choice as to whether you want Terminal Services to be in Application mode or Remote Administration mode. In Remote Administration mode you are limited to two concurrent users and it is licensed for two clients. In application mode you have (I believe) unlimited concurrent log ons, but each client must have it's own license. Win2K and XP come with a terminal services license; prior OSs do not and you have to pay. W2003 server comes with Remote Administration mode by default. To change to Application mode you install Terminal Services Server. Hope that helps, Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 8:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access & Terminal Services Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those > of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user > via TS would you expect there to be any code changes necessary? The FE > links > to a single BE, which is located on a Novell server - is that an issue? > Can > TS be setup so that all drive mappings are the same as a desktop's? The > app > emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone > knows the answer to that one, but is it 100% reliable to say that if an > app > works on a W2000 workstation it will work just the same under TS? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From roz.clarke at donnslaw.co.uk Wed Mar 23 09:42:27 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 23 Mar 2005 15:42:27 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880722574A@dibble.observatory.donnslaw.co.uk> Hi Andy Queries in the FE are only OK if you have 1 user per TS or you make a copy of your FE per user - we have up to 30 users per server and at the moment they are all accessing a single FE install on each server, so the FE is shared. We're considering going the FE-per-user route as we're going to have to start making run-time changes to report objects any time now. On our setup it's not straight forward but if you're starting small and working up it should be OK for you. Roz -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 23 March 2005 14:23 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Thanks Tom I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that you must mean dynamically altering queries in the BE. Am I right? Surely queries in the FE are ok. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:14 > Hi Andy > > I've been building a complex Access app on TS (Win 2k) for Roz for > some months now. It's a reporting tool that connects to either > Informix (boo) or > SQL Server (yay). > > Here are some of the problems I've come across: > > -- FE and BE in my case needed to be split as user info (saved queries etc.) > is stored in Access and we have ~12 'production' terminal servers. > These are load-balanced and users are kicked onto any one of them at > random. If no split, then the user needs to be on the same server > they were on when they saved their data. > > -- Anything that dynamically alters queries etc. needs to make a copy > of these first to avoid locking issues. > > These are the biggies, otherwise everything seems to work/connect just > as in > a normal client/server situation. If you have specific questions I'd > be more than happy to answer them as best I can. > > HTH > Tom > > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 13:59 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > Thanks Gustav, but the boss here is likely to want to go the TS route. > We have Remote Control working nicely for him from home, but for > lesser mortals, of whom there could be several, he doesn't want to > have workstations dotted around which have to left on and not used by > other workers, and other considerations. So I think TS would be right, > but the question is whether everything that my app does (as outlined > below) will work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if > you went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > > > > > The contents of this message and any attachments are the property of > Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail > to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message > are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any > attachment. Donns Solicitors does not accept any liability for any > damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From andy at minstersystems.co.uk Wed Mar 23 08:43:12 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:43:12 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323154309.527422546BC@smtp.nildram.co.uk> Thanks Neal. So, just to clarify, if we have TS running in Application server mode on a W2000 server, and clients coming on are all W2K Pro, then we need no other licenses (except for app'n software of course)? I started to look this up on the MS website but when I came across a White Paper on TS licensing I folded. I just want simple answers not a bloody disseration. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:29 > > When you install W2000 server you have a choice as to whether you want Terminal Services to be in Application mode or Remote Administration mode. In Remote Administration mode you are limited to two concurrent users and it is licensed for two clients. In application mode you have (I believe) unlimited concurrent log ons, but each client must have it's own license. Win2K and XP come with a terminal services license; prior OSs do not and you have to pay. > > W2003 server comes with Remote Administration mode by default. To change to Application mode you install Terminal Services Server. > > Hope that helps, > Neal > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 8:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > > Thanks Gustav, but the boss here is likely to want to go the TS route. We > have Remote Control working nicely for him from home, but for lesser > mortals, of whom there could be several, he doesn't want to have > workstations dotted around which have to left on and not used by other > workers, and other considerations. So I think TS would be right, but the > question is whether everything that my app does (as outlined below) will > work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if you > went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: Re: [AccessD] Access & Terminal Services > Date: 23/03/05 14:42 > > > > > Hi Andy > > > > If this is for a single user you could just use remote control. > > Or - for a setup like Termincal Server but at a fraction of the license > > cost - study here: > > > > http://www.thinsoftinc.com/products_winconserver_info.html > > > > /gustav > > > > &gt;&gt;&gt; andy at minstersystems.co.uk 03/23 2:19 pm &gt;&gt;&gt; > > Hi all > > > > Never used TS but may be doing so soon. I could use some advice from > > those > > of you who've done it. > > > > If I have an A97 application which I wanted to make available to a home > > user > > via TS would you expect there to be any code changes necessary? The FE > > links > > to a single BE, which is located on a Novell server - is that an issue? > > Can > > TS be setup so that all drive mappings are the same as a desktop's? The > > app > > emails via Outlook - will that just run as normal? Ah but we now use > > Redemption - so I guess Redemption would need loading on the TS > > server. > > Anyone done that? And we send faxes using Zetafax. I don't imagine > > anyone > > knows the answer to that one, but is it 100% reliable to say that if an > > app > > works on a W2000 workstation it will work just the same under TS? > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From accessd at shaw.ca Wed Mar 23 09:44:54 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 23 Mar 2005 07:44:54 -0800 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323145839.1CAAD257659@smtp.nildram.co.uk> Message-ID: <0IDT00B8FAEP1J@l-daemon> Hi Andy: TS should be part of Window2000 Server but it is an option the can be selected during installing and it has to be configured. There should four free licenses (W2K adv.) after that you will have to purchase more. (Not sure of the cost etc.) You can check to see if it got installed at start > Programs > Administration Tools > Terminal Service Configuration .... HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access & Terminal Services Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those > of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user > via TS would you expect there to be any code changes necessary? The FE > links > to a single BE, which is located on a Novell server - is that an issue? > Can > TS be setup so that all drive mappings are the same as a desktop's? The > app > emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone > knows the answer to that one, but is it 100% reliable to say that if an > app > works on a W2000 workstation it will work just the same under TS? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From nkling at co.montgomery.ny.us Wed Mar 23 09:51:45 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Wed, 23 Mar 2005 10:51:45 -0500 Subject: [AccessD] Access & Terminal Services Message-ID: <30BC111F638EB54082001A7E7282FE4107F1E9@elmo.co.montgomery.ny.us> Your summation is correct as I understand it. I ran it by our network admin and he agrees. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 9:43 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Thanks Neal. So, just to clarify, if we have TS running in Application server mode on a W2000 server, and clients coming on are all W2K Pro, then we need no other licenses (except for app'n software of course)? I started to look this up on the MS website but when I came across a White Paper on TS licensing I folded. I just want simple answers not a bloody disseration. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:29 > > When you install W2000 server you have a choice as to whether you want Terminal Services to be in Application mode or Remote Administration mode. In Remote Administration mode you are limited to two concurrent users and it is licensed for two clients. In application mode you have (I believe) unlimited concurrent log ons, but each client must have it's own license. Win2K and XP come with a terminal services license; prior OSs do not and you have to pay. > > W2003 server comes with Remote Administration mode by default. To change to Application mode you install Terminal Services Server. > > Hope that helps, > Neal > From andy at minstersystems.co.uk Wed Mar 23 08:55:28 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:55:28 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323155526.36D9E25E070@smtp.nildram.co.uk> Hi Roz, My ignorance here is total, so please bear with me. I envisaged that each user would be totally separate on TS, and hence would have a separate FE. Are you saying that's a choice I need to be careful to make at some point when setting-up? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:42 > Hi Andy > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > of your FE per user - we have up to 30 users per server and at the moment > they are all accessing a single FE install on each server, so the FE is > shared. > > We're considering going the FE-per-user route as we're going to have to > start making run-time changes to report objects any time now. On our setup > it's not straight forward but if you're starting small and working up it > should be OK for you. > > Roz > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:23 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Thanks Tom > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that > you must mean dynamically altering queries in the BE. Am I right? Surely > queries in the FE are ok. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:14 > > > Hi Andy > > > > I've been building a complex Access app on TS (Win 2k) for Roz for > > some months now. It's a reporting tool that connects to either > > Informix (boo) > or > > SQL Server (yay). > > > > Here are some of the problems I've come across: > > > > -- FE and BE in my case needed to be split as user info (saved queries > etc.) > > is stored in Access and we have ~12 'production' terminal servers. > > These are load-balanced and users are kicked onto any one of them at > > random. If no split, then the user needs to be on the same server > > they were on when they saved their data. > > > > -- Anything that dynamically alters queries etc. needs to make a copy > > of these first to avoid locking issues. > > > > These are the biggies, otherwise everything seems to work/connect just > > as > in > > a normal client/server situation. If you have specific questions I'd > > be more than happy to answer them as best I can. > > > > HTH > > Tom > > > > > > > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 13:59 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access &amp; Terminal Services > > > > Thanks Gustav, but the boss here is likely to want to go the TS route. > > We have Remote Control working nicely for him from home, but for > > lesser mortals, of whom there could be several, he doesn't want to > > have workstations dotted around which have to left on and not used by > > other workers, and other considerations. So I think TS would be right, > > but the question is whether everything that my app does (as outlined > > below) will work unaltered under TS. > > > > BTW what's the license cost implication of TS? Must be considerable if > > you went for an alternative. I thought it was part of W2000 server. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > The contents of this message and any attachments are the property of > > Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail > > to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message > > are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any > > attachment. Donns Solicitors does not accept any liability for any > > damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 08:57:32 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 15:57:32 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323155729.810712566ED@smtp.nildram.co.uk> Hi Jim. Yes that helps. Four may well be ok. And I can't check anything just yet because this is all strategy planning at the moment. We don't even have W2000 Server yet! -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:45 > > Hi Andy: > > TS should be part of Window2000 Server but it is an option the can be > selected during installing and it has to be configured. There should four > free licenses (W2K adv.) after that you will have to purchase more. (Not > sure of the cost etc.) You can check to see if it got installed at start > > Programs > Administration Tools > Terminal Service Configuration .... > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 5:59 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access & Terminal Services > > Thanks Gustav, but the boss here is likely to want to go the TS route. We > have Remote Control working nicely for him from home, but for lesser > mortals, of whom there could be several, he doesn't want to have > workstations dotted around which have to left on and not used by other > workers, and other considerations. So I think TS would be right, but the > question is whether everything that my app does (as outlined below) will > work unaltered under TS. > > BTW what's the license cost implication of TS? Must be considerable if you > went for an alternative. I thought it was part of W2000 server. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: accessd at databaseadvisors.com <accessd at databaseadvisors.com> > Subject: Re: [AccessD] Access & Terminal Services > Date: 23/03/05 14:42 > > > > > Hi Andy > > > > If this is for a single user you could just use remote control. > > Or - for a setup like Termincal Server but at a fraction of the license > > cost - study here: > > > > http://www.thinsoftinc.com/products_winconserver_info.html > > > > /gustav > > > > &gt;&gt;&gt; andy at minstersystems.co.uk 03/23 2:19 pm &gt;&gt;&gt; > > Hi all > > > > Never used TS but may be doing so soon. I could use some advice from > > those > > of you who've done it. > > > > If I have an A97 application which I wanted to make available to a home > > user > > via TS would you expect there to be any code changes necessary? The FE > > links > > to a single BE, which is located on a Novell server - is that an issue? > > Can > > TS be setup so that all drive mappings are the same as a desktop's? The > > app > > emails via Outlook - will that just run as normal? Ah but we now use > > Redemption - so I guess Redemption would need loading on the TS > > server. > > Anyone done that? And we send faxes using Zetafax. I don't imagine > > anyone > > knows the answer to that one, but is it 100% reliable to say that if an > > app > > works on a W2000 workstation it will work just the same under TS? > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 09:03:55 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:03:55 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323160352.DD51D250B30@smtp.nildram.co.uk> Great, thanks again Neal. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:53 > > Your summation is correct as I understand it. I ran it by our network admin and he agrees. > > Neal > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 9:43 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Thanks Neal. So, just to clarify, if we have TS running in Application > server mode on a W2000 server, and clients coming on are all W2K Pro, then > we need no other licenses (except for app'n software of course)? I started > to look this up on the MS website but when I came across a White Paper on TS > licensing I folded. I just want simple answers not a bloody disseration. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:29 > > > > > When you install W2000 server you have a choice as to whether you want > Terminal Services to be in Application mode or Remote Administration mode. > In Remote Administration mode you are limited to two concurrent users and it > is licensed for two clients. In application mode you have (I believe) > unlimited concurrent log ons, but each client must have it's own license. > Win2K and XP come with a terminal services license; prior OSs do not and you > have to pay. > > > > W2003 server comes with Remote Administration mode by default. To change > to Application mode you install Terminal Services Server. > > > > Hope that helps, > > Neal > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From tom.bolton at donnslaw.co.uk Wed Mar 23 10:13:02 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 23 Mar 2005 16:13:02 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAAA@dibble.observatory.donnslaw.co.uk> Hi Andy What Roz is saying is that if there are three users on a terminal server, and each of the three opens your Access app, they are using the same one. If (on a non-TS network) you had your app stored on a network drive, and three users opened it simultaneously, it would be exactly the same. If one of the users (whether on TS or normal network) altered one of the FE objects (querydef, table) you would have locking issues. It is best, then, to make a copy of that object in your FE and alter the copy. This is what I've had to do. Unfortunately, altering a report puts the FE into exclusive lock so this is unachievable with TS unless each user has a copy of the FE. HTH - sorry, I was about to explain myself better but got caught up and R. beat me to it. Cheers Tom -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 23 March 2005 14:55 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Hi Roz, My ignorance here is total, so please bear with me. I envisaged that each user would be totally separate on TS, and hence would have a separate FE. Are you saying that's a choice I need to be careful to make at some point when setting-up? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 15:42 > Hi Andy > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > of your FE per user - we have up to 30 users per server and at the moment > they are all accessing a single FE install on each server, so the FE is > shared. > > We're considering going the FE-per-user route as we're going to have to > start making run-time changes to report objects any time now. On our setup > it's not straight forward but if you're starting small and working up it > should be OK for you. > > Roz > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:23 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Thanks Tom > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought that > you must mean dynamically altering queries in the BE. Am I right? Surely > queries in the FE are ok. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:14 > > > Hi Andy > > > > I've been building a complex Access app on TS (Win 2k) for Roz for > > some months now. It's a reporting tool that connects to either > > Informix (boo) > or > > SQL Server (yay). > > > > Here are some of the problems I've come across: > > > > -- FE and BE in my case needed to be split as user info (saved queries > etc.) > > is stored in Access and we have ~12 'production' terminal servers. > > These are load-balanced and users are kicked onto any one of them at > > random. If no split, then the user needs to be on the same server > > they were on when they saved their data. > > > > -- Anything that dynamically alters queries etc. needs to make a copy > > of these first to avoid locking issues. > > > > These are the biggies, otherwise everything seems to work/connect just > > as > in > > a normal client/server situation. If you have specific questions I'd > > be more than happy to answer them as best I can. > > > > HTH > > Tom > > > > > > > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 13:59 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access &amp; Terminal Services > > > > Thanks Gustav, but the boss here is likely to want to go the TS route. > > We have Remote Control working nicely for him from home, but for > > lesser mortals, of whom there could be several, he doesn't want to > > have workstations dotted around which have to left on and not used by > > other workers, and other considerations. So I think TS would be right, > > but the question is whether everything that my app does (as outlined > > below) will work unaltered under TS. > > > > BTW what's the license cost implication of TS? Must be considerable if > > you went for an alternative. I thought it was part of W2000 server. > > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > The contents of this message and any attachments are the property of > > Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail > > to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message > > are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any > > attachment. Donns Solicitors does not accept any liability for any > > damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From andy at minstersystems.co.uk Wed Mar 23 09:21:33 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:21:33 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323162130.918C1252958@smtp.nildram.co.uk> Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 16:15 > Hi Andy > > What Roz is saying is that if there are three users on a terminal server, > and each of the three opens your Access app, they are using the same one. > If (on a non-TS network) you had your app stored on a network drive, and > three users opened it simultaneously, it would be exactly the same. > > If one of the users (whether on TS or normal network) altered one of the FE > objects (querydef, table) you would have locking issues. It is best, then, > to make a copy of that object in your FE and alter the copy. This is what > I've had to do. Unfortunately, altering a report puts the FE into exclusive > lock so this is unachievable with TS unless each user has a copy of the FE. > > HTH - sorry, I was about to explain myself better but got caught up and R. > beat me to it. > > Cheers > Tom > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:55 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > Hi Roz, > My ignorance here is total, so please bear with me. I envisaged that each > user would be totally separate on TS, and hence would have a separate FE. > Are you saying that's a choice I need to be careful to make at some point > when setting-up? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:42 > > > Hi Andy > > > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > > of your FE per user - we have up to 30 users per server and at the moment > > they are all accessing a single FE install on each server, so the FE is > > shared. > > > > We're considering going the FE-per-user route as we're going to have to > > start making run-time changes to report objects any time now. On our setup > > it's not straight forward but if you're starting small and working up it > > should be OK for you. > > > > Roz > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 14:23 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Access &amp; Terminal Services > > > > > > Thanks Tom > > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought > that > > you must mean dynamically altering queries in the BE. Am I right? Surely > > queries in the FE are ok. > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > &lt;accessd at databaseadvisors.com&gt; > > To: 'Access Developers discussion and problem solving' > > &lt;accessd at databaseadvisors.com&gt; > > Subject: RE: [AccessD] Access &amp; Terminal Services > > Date: 23/03/05 15:14 > > > > &gt; Hi Andy > > &gt; > > &gt; I've been building a complex Access app on TS (Win 2k) for Roz for > > &gt; some months now. It's a reporting tool that connects to either > > &gt; Informix (boo) > > or > > &gt; SQL Server (yay). > > &gt; > > &gt; Here are some of the problems I've come across: > > &gt; > > &gt; -- FE and BE in my case needed to be split as user info (saved > queries > > etc.) > > &gt; is stored in Access and we have ~12 'production' terminal servers. > > &gt; These are load-balanced and users are kicked onto any one of them at > > &gt; random. If no split, then the user needs to be on the same server > > &gt; they were on when they saved their data. > > &gt; > > &gt; -- Anything that dynamically alters queries etc. needs to make a > copy > > &gt; of these first to avoid locking issues. > > &gt; > > &gt; These are the biggies, otherwise everything seems to work/connect > just > > &gt; as > > in > > &gt; a normal client/server situation. If you have specific questions I'd > > &gt; be more than happy to answer them as best I can. > > &gt; > > &gt; HTH > > &gt; Tom > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -----Original Message----- > > &gt; From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > &gt; Sent: 23 March 2005 13:59 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] Access &amp;amp; Terminal Services > > &gt; > > &gt; Thanks Gustav, but the boss here is likely to want to go the TS > route. > > &gt; We have Remote Control working nicely for him from home, but for > > &gt; lesser mortals, of whom there could be several, he doesn't want to > > &gt; have workstations dotted around which have to left on and not used by > > &gt; other workers, and other considerations. So I think TS would be > right, > > &gt; but the question is whether everything that my app does (as outlined > > &gt; below) will work unaltered under TS. > > &gt; > > &gt; BTW what's the license cost implication of TS? Must be considerable > if > > &gt; you went for an alternative. I thought it was part of W2000 server. > > &gt; > > &gt; -- > > &gt; Andy Lacey > > &gt; http://www.minstersystems.co.uk > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; The contents of this message and any attachments are the property of > > &gt; Donns > > Solicitors > > &gt; and are intended for the confidential use of the named recipient > only. > > They may be legally > > &gt; privileged and should not be communicated to, or relied upon, by any > > other party without > > &gt; our written consent. If you are not the addressee, please notify us > > immediately so that we > > &gt; can make arrangements for its return. You should not show this > e-mail > > &gt; to > > any person or > > &gt; take copies as you may be committing a criminal or civil offence for > > which you may be > > &gt; liable. The statement and opinions expressed in this e-mail message > > &gt; are > > those of the > > &gt; writer, and do not necessarily represent that of Donns Solicitors. > > Although any files attached > > &gt; to this e-mail will have been checked with virus protection software > > prior to transmission, > > &gt; you should carry out your own virus check before opening any > > &gt; attachment. Donns Solicitors does not accept any liability for any > > &gt; damage or loss > > which may be caused > > &gt; by software viruses... > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > The contents of this message and any attachments are the property of Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any attachment. > > Donns Solicitors does not accept any liability for any damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From nkling at co.montgomery.ny.us Wed Mar 23 10:23:33 2005 From: nkling at co.montgomery.ny.us (Neal Kling) Date: Wed, 23 Mar 2005 11:23:33 -0500 Subject: [AccessD] Access & Terminal Services Message-ID: <30BC111F638EB54082001A7E7282FE4107F1EA@elmo.co.montgomery.ny.us> That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk From tom.bolton at donnslaw.co.uk Wed Mar 23 10:32:26 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 23 Mar 2005 16:32:26 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAAC@dibble.observatory.donnslaw.co.uk> Yep, I would. I'm going to have to, in fact. ;-) It's just that we have 150+ users on 12 servers, you can see where it gets sticky but thankfully only a handful will be using this particular app... -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 23 March 2005 16:24 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From vrm at tim-cms.com Wed Mar 23 10:36:39 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Wed, 23 Mar 2005 17:36:39 +0100 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323162130.918C1252958@smtp.nildram.co.uk> Message-ID: <200503231137796.SM02916@ORSLAPTOP> Andy, Put the FE on the users homedir and let it start from there. Kind regards Marcel Vreuls From roz.clarke at donnslaw.co.uk Wed Mar 23 10:41:08 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 23 Mar 2005 16:41:08 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880722574C@dibble.observatory.donnslaw.co.uk> Yup, exactly, sorry we alarmed you. You then just have to update your FE the usual way. For us the consideration is the number of users but it won't be an issue for you. -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 23 March 2005 16:24 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From roz.clarke at donnslaw.co.uk Wed Mar 23 10:41:36 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 23 Mar 2005 16:41:36 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880722574D@dibble.observatory.donnslaw.co.uk> For now a handful Tom... tomorrow, the world. -----Original Message----- From: Tom Bolton [mailto:tom.bolton at donnslaw.co.uk] Sent: 23 March 2005 16:32 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Yep, I would. I'm going to have to, in fact. ;-) It's just that we have 150+ users on 12 servers, you can see where it gets sticky but thankfully only a handful will be using this particular app... -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 23 March 2005 16:24 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services That's exactly what they're saying is one of the options. Do it that way. Neal -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From bchacc at san.rr.com Wed Mar 23 10:47:28 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 08:47:28 -0800 Subject: [AccessD] Counting Users Message-ID: <018401c52fc8$00741760$6601a8c0@HAL9002> Dear List: What is the simplest way to count the number of users logged in to a back end mdb? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From BarbaraRyan at cox.net Wed Mar 23 10:49:30 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 23 Mar 2005 11:49:30 -0500 Subject: [AccessD] Replicated .mdb and SQL Server Message-ID: <00e001c52fc8$4874b560$0a00a8c0@cx470148a> I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". Thanks, Barb Ryan From andy at minstersystems.co.uk Wed Mar 23 09:54:18 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:54:18 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050323165415.C026225582E@smtp.nildram.co.uk> :-) Rather you than me Tom. How do you cope with such a tough boss? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 16:42 > For now a handful Tom... tomorrow, the world. > > -----Original Message----- > From: Tom Bolton [mailto:tom.bolton at donnslaw.co.uk] > Sent: 23 March 2005 16:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Access & Terminal Services > > > Yep, I would. I'm going to have to, in fact. ;-) > > It's just that we have 150+ users on 12 servers, you can see where it gets > sticky but thankfully only a handful will be using this particular app... > > > > -----Original Message----- > From: Neal Kling [mailto:nkling at co.montgomery.ny.us] > Sent: 23 March 2005 16:24 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > That's exactly what they're saying is one of the options. Do it that way. > > Neal > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:22 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Ouch, ouch, ouch. My optimism has just gone out the window. My Access app > relies heavily on the FE being dynamic and personal to the user - all sorts > of queries being created/updated, temp tables etc. Couldn't contemplate a > rewrite. How can I get round this? What's to stop me creating a folder on > the server for each user, putting a copy of the FE in each, and having each > run their own? I don't have the foggiest idea what I mean when I say "each > run their own" in the context of TS, but does that work? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Mar 23 09:55:43 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 16:55:43 +0100 Subject: [AccessD] Counting Users Message-ID: <20050323165540.BB1B8255539@smtp.nildram.co.uk> I'd suggest modifying JC's C2DBShowUsers code to just count not display. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Date: 23/03/05 16:48 > > Dear List: > > What is the simplest way to count the number of users logged in to a back end mdb? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Wed Mar 23 11:12:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 12:12:11 -0500 Subject: [AccessD] Counting Users In-Reply-To: <018401c52fc8$00741760$6601a8c0@HAL9002> Message-ID: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Rocky, >What is the simplest way to count the number of users logged in to a back end mdb? Walk around to the chairs and tap the users on the head, raising a finger for each head tapped. If you run out of fingers, start using your toes. Of course if you have more than 20 users, or you are missing fingers or toes, then you will need to have an assistant follow you around to store the counts for the additional heads. This works well for user counts up to about 100 or so, whereupon the trail of assistants becomes too long to manage effectively. They begin stopping to chat with friends and stuff and you lose as many as 20 user counts every time that happens. If you find that happening, I discovered that you can buy these pet collars attached to spring loaded reels of line. Just hook up your counting assistants so they can never lag too far behind. A similar method, a bit more disruptive, is to go around tapping heads, but instead of raising fingers, having each user join in a line behind you, thus by the time you tap the last user's head, you will have a long line of users which you can now just go down the line drawing a little mark on a paper for each one. It looks something like IIII\IIII\IIII\ etc. I hope that I have provided some ideas of how to do user counts. Even if you don't use my methods, perhaps I have sparked some ideas that you will find effective. Good luck in your counting, and please don't hesitate to ask further questions if you didn't understand any of the above. Respectfully, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 11:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Dear List: What is the simplest way to count the number of users logged in to a back end mdb? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 23 11:13:19 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 12:13:19 -0500 Subject: [AccessD] Counting Users In-Reply-To: <20050323165540.BB1B8255539@smtp.nildram.co.uk> Message-ID: <007a01c52fcb$9c1c63e0$697aa8c0@ColbyM6805> DAMN! Now why didn't I think of that? Sorry Rocky, please ignore my last post. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users I'd suggest modifying JC's C2DBShowUsers code to just count not display. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Date: 23/03/05 16:48 > > Dear List: > > What is the simplest way to count the number of users logged in to a > back end mdb? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 23 11:27:34 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 09:27:34 -0800 Subject: [AccessD] Counting Users References: <007a01c52fcb$9c1c63e0$697aa8c0@ColbyM6805> Message-ID: <01fe01c52fcd$99e12f00$6601a8c0@HAL9002> JC: I liked your first solution better. Low-tech. Effective. And no batteries required. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 23, 2005 9:13 AM Subject: RE: [AccessD] Counting Users > DAMN! Now why didn't I think of that? > > Sorry Rocky, please ignore my last post. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > I'd suggest modifying JC's C2DBShowUsers code to just count not display. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > Date: 23/03/05 16:48 > >> >> Dear List: >> >> What is the simplest way to count the number of users logged in to a >> back > end mdb? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Wed Mar 23 11:32:43 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 09:32:43 -0800 Subject: [AccessD] Counting Users In-Reply-To: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Message-ID: <000001c52fce$52a79510$6701a8c0@laptop1> Cold Cute -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 23, 2005 9:12 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Rocky, >What is the simplest way to count the number of users logged in to a back end mdb? Walk around to the chairs and tap the users on the head, raising a finger for each head tapped. If you run out of fingers, start using your toes. Of course if you have more than 20 users, or you are missing fingers or toes, then you will need to have an assistant follow you around to store the counts for the additional heads. This works well for user counts up to about 100 or so, whereupon the trail of assistants becomes too long to manage effectively. They begin stopping to chat with friends and stuff and you lose as many as 20 user counts every time that happens. If you find that happening, I discovered that you can buy these pet collars attached to spring loaded reels of line. Just hook up your counting assistants so they can never lag too far behind. A similar method, a bit more disruptive, is to go around tapping heads, but instead of raising fingers, having each user join in a line behind you, thus by the time you tap the last user's head, you will have a long line of users which you can now just go down the line drawing a little mark on a paper for each one. It looks something like IIII\IIII\IIII\ etc. I hope that I have provided some ideas of how to do user counts. Even if you don't use my methods, perhaps I have sparked some ideas that you will find effective. Good luck in your counting, and please don't hesitate to ask further questions if you didn't understand any of the above. Respectfully, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 11:47 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Counting Users Dear List: What is the simplest way to count the number of users logged in to a back end mdb? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Mar 23 11:50:11 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 23 Mar 2005 12:50:11 -0500 Subject: [AccessD] Counting Users In-Reply-To: <01fe01c52fcd$99e12f00$6601a8c0@HAL9002> Message-ID: <007b01c52fd0$c2827600$697aa8c0@ColbyM6805> Rocky, I think in this day of ever present technology we tend to forget about the good old ways that we used to do things. How many of us have to have a PIM to store our phone numbers and things? My father just write the numbers in ball point pen on his hand or up and down his arm. The only problem he ever had with that system was one time he took a shower by accident and lost all of his numbers. Simple, effective and if you avoid water you just never lose your info. The old ways were often times superior to all our wonderful technology. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users JC: I liked your first solution better. Low-tech. Effective. And no batteries required. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 23, 2005 9:13 AM Subject: RE: [AccessD] Counting Users > DAMN! Now why didn't I think of that? > > Sorry Rocky, please ignore my last post. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > I'd suggest modifying JC's C2DBShowUsers code to just count not > display. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > Date: 23/03/05 16:48 > >> >> Dear List: >> >> What is the simplest way to count the number of users logged in to a >> back > end mdb? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 11:53:35 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 09:53:35 -0800 Subject: [AccessD] data source problem Message-ID: <000001c52fd1$3d5ecae0$6701a8c0@laptop1> I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe From GregSmith at starband.net Wed Mar 23 11:54:35 2005 From: GregSmith at starband.net (GregSmith at starband.net) Date: Wed, 23 Mar 2005 12:54:35 -0500 (EST) Subject: [AccessD] Not in List ... or Not? In-Reply-To: <018401c52fc8$00741760$6601a8c0@HAL9002> References: <018401c52fc8$00741760$6601a8c0@HAL9002> Message-ID: <65304.65.118.249.214.1111600475.squirrel@cetus.email.starband.net> Hi everyone! Hope everyone is having a good day. This may be just the way it is, but I still have to ask. Access 2003. I have a combo box, Value List, I typed in the list, Limit to List. Default value is set to one of the items in the list. List cannot be added to. My list has four(4) items in it. So, why can I enter a BLANK in it? A Blank is NOT one of my items in the list. Last time I checked, when one says "limit to list", you should only be able to put in what's in the list. Period. End of sentence. Nothing else. Zip, zero, nada, nothin'. I know I can check the field on exit to make sure it has something in it other than a blank (since the limit to list DOESN'T frickin' work right on blanks...), but I have about a gazillion other events happening with focusing and it hoses them up when it tries to go back. Is this just one of those Access quirks or am I missing something? TIA! Greg Smith gregsmith(no spam)@starband.net From cyx5 at cdc.gov Wed Mar 23 11:59:56 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 23 Mar 2005 12:59:56 -0500 Subject: [AccessD] data source problem Message-ID: iif -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] data source problem I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 12:04:07 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 10:04:07 -0800 Subject: [AccessD] data source problem In-Reply-To: Message-ID: <000a01c52fd2$b5b4f4a0$6701a8c0@laptop1> Thanks Karen -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 23, 2005 10:00 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] data source problem iif -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 12:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] data source problem I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Mar 23 12:08:29 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 18:08:29 -0000 Subject: [AccessD] Counting Users In-Reply-To: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Message-ID: <006201c52fd3$516ed4b0$b274d0d5@minster33c3r25> ROTFL. Love it. Why didn't I think of that? Not a lateral thinker you see. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: 23 March 2005 17:12 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Counting Users > > > Rocky, > > >What is the simplest way to count the number of users logged in to a > >back > end mdb? > > Walk around to the chairs and tap the users on the head, > raising a finger for each head tapped. If you run out of > fingers, start using your toes. Of course if you have more > than 20 users, or you are missing fingers or toes, then you > will need to have an assistant follow you around to store the > counts for the additional heads. This works well for user > counts up to about 100 or so, whereupon the trail of > assistants becomes too long to manage effectively. They > begin stopping to chat with friends and stuff and you lose as > many as 20 user counts every time that happens. > > If you find that happening, I discovered that you can buy > these pet collars attached to spring loaded reels of line. > Just hook up your counting assistants so they can never lag > too far behind. > > A similar method, a bit more disruptive, is to go around > tapping heads, but instead of raising fingers, having each > user join in a line behind you, thus by the time you tap the > last user's head, you will have a long line of users which > you can now just go down the line drawing a little mark on a > paper for each one. It looks something like IIII\IIII\IIII\ etc. > > I hope that I have provided some ideas of how to do user > counts. Even if you don't use my methods, perhaps I have > sparked some ideas that you will find effective. > > Good luck in your counting, and please don't hesitate to ask > further questions if you didn't understand any of the above. > > Respectfully, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Wednesday, March 23, 2005 11:47 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > > > Dear List: > > What is the simplest way to count the number of users logged > in to a back end mdb? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Mar 23 12:09:55 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 23 Mar 2005 18:09:55 -0000 Subject: [AccessD] Access & Terminal Services In-Reply-To: <61F915314798D311A2F800A0C9C831880722574D@dibble.observatory.donnslaw.co.uk> Message-ID: <006a01c52fd3$84be0de0$b274d0d5@minster33c3r25> Thanks to everyone for your help on this. You, as always, are the biz. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke > Sent: 23 March 2005 16:42 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Access & Terminal Services > > > For now a handful Tom... tomorrow, the world. > > -----Original Message----- > From: Tom Bolton [mailto:tom.bolton at donnslaw.co.uk] > Sent: 23 March 2005 16:32 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Access & Terminal Services > > > Yep, I would. I'm going to have to, in fact. ;-) > > It's just that we have 150+ users on 12 servers, you can see > where it gets sticky but thankfully only a handful will be > using this particular app... > > > > -----Original Message----- > From: Neal Kling [mailto:nkling at co.montgomery.ny.us] > Sent: 23 March 2005 16:24 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > That's exactly what they're saying is one of the options. Do > it that way. > > Neal > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:22 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > > Ouch, ouch, ouch. My optimism has just gone out the window. > My Access app relies heavily on the FE being dynamic and > personal to the user - all sorts of queries being > created/updated, temp tables etc. Couldn't contemplate a > rewrite. How can I get round this? What's to stop me creating > a folder on the server for each user, putting a copy of the > FE in each, and having each run their own? I don't have the > foggiest idea what I mean when I say "each run their own" in > the context of TS, but does that work? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Wed Mar 23 12:28:48 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 23 Mar 2005 19:28:48 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: Hi Andy > If I have an A97 application which I wanted to make available to > a home user via TS .. So "a" is not "one"? How many? The Thinsoft solution runs off a WinXP workstation for a max of 21 users. As no Win2003 server license is needed, you can hook up a workstation, download the trial and test it out without spending a single pound. At more users there is a break even at some point where a Win2003 server becomes cheaper than Thinsoft. They work the same way so you can move your setup from Thinsoft to TS with only minor modifications. /gustav >>> andy at minstersystems.co.uk 03/23 2:58 pm >>> Thanks Gustav, but the boss here is likely to want to go the TS route. We have Remote Control working nicely for him from home, but for lesser mortals, of whom there could be several, he doesn't want to have workstations dotted around which have to left on and not used by other workers, and other considerations. So I think TS would be right, but the question is whether everything that my app does (as outlined below) will work unaltered under TS. BTW what's the license cost implication of TS? Must be considerable if you went for an alternative. I thought it was part of W2000 server. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access & Terminal Services Date: 23/03/05 14:42 > > Hi Andy > > If this is for a single user you could just use remote control. > Or - for a setup like Termincal Server but at a fraction of the license > cost - study here: > > http://www.thinsoftinc.com/products_winconserver_info.html > > /gustav > > >>> andy at minstersystems.co.uk 03/23 2:19 pm >>> > Hi all > > Never used TS but may be doing so soon. I could use some advice from > those of you who've done it. > > If I have an A97 application which I wanted to make available to a home > user via TS would you expect there to be any code changes necessary? The FE > links to a single BE, which is located on a Novell server - is that an issue? > Can TS be setup so that all drive mappings are the same as a desktop's? The > app emails via Outlook - will that just run as normal? Ah but we now use > Redemption - so I guess Redemption would need loading on the TS > server. > Anyone done that? And we send faxes using Zetafax. I don't imagine > anyone knows the answer to that one, but is it 100% reliable to say that if an > app works on a W2000 workstation it will work just the same under TS? From accessd at shaw.ca Wed Mar 23 12:35:42 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 23 Mar 2005 10:35:42 -0800 Subject: [AccessD] Access & Terminal Services In-Reply-To: <20050323162130.918C1252958@smtp.nildram.co.uk> Message-ID: <0IDT00M11IBE89@l-daemon> Hi Andy: That should work fine. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 23, 2005 7:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Ouch, ouch, ouch. My optimism has just gone out the window. My Access app relies heavily on the FE being dynamic and personal to the user - all sorts of queries being created/updated, temp tables etc. Couldn't contemplate a rewrite. How can I get round this? What's to stop me creating a folder on the server for each user, putting a copy of the FE in each, and having each run their own? I don't have the foggiest idea what I mean when I say "each run their own" in the context of TS, but does that work? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access & Terminal Services Date: 23/03/05 16:15 > Hi Andy > > What Roz is saying is that if there are three users on a terminal server, > and each of the three opens your Access app, they are using the same one. > If (on a non-TS network) you had your app stored on a network drive, and > three users opened it simultaneously, it would be exactly the same. > > If one of the users (whether on TS or normal network) altered one of the FE > objects (querydef, table) you would have locking issues. It is best, then, > to make a copy of that object in your FE and alter the copy. This is what > I've had to do. Unfortunately, altering a report puts the FE into exclusive > lock so this is unachievable with TS unless each user has a copy of the FE. > > HTH - sorry, I was about to explain myself better but got caught up and R. > beat me to it. > > Cheers > Tom > > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: 23 March 2005 14:55 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Access & Terminal Services > > Hi Roz, > My ignorance here is total, so please bear with me. I envisaged that each > user would be totally separate on TS, and hence would have a separate FE. > Are you saying that's a choice I need to be careful to make at some point > when setting-up? > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: 'Access Developers discussion and problem solving' > <accessd at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 23/03/05 15:42 > > > Hi Andy > > > > Queries in the FE are only OK if you have 1 user per TS or you make a copy > > of your FE per user - we have up to 30 users per server and at the moment > > they are all accessing a single FE install on each server, so the FE is > > shared. > > > > We're considering going the FE-per-user route as we're going to have to > > start making run-time changes to report objects any time now. On our setup > > it's not straight forward but if you're starting small and working up it > > should be OK for you. > > > > Roz > > > > -----Original Message----- > > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > Sent: 23 March 2005 14:23 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Access &amp; Terminal Services > > > > > > Thanks Tom > > I'm ok with point 1 but I was alarmed by your 2nd point. Then I thought > that > > you must mean dynamically altering queries in the BE. Am I right? Surely > > queries in the FE are ok. > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > --------- Original Message -------- > > From: Access Developers discussion and problem solving > > &lt;accessd at databaseadvisors.com&gt; > > To: 'Access Developers discussion and problem solving' > > &lt;accessd at databaseadvisors.com&gt; > > Subject: RE: [AccessD] Access &amp; Terminal Services > > Date: 23/03/05 15:14 > > > > &gt; Hi Andy > > &gt; > > &gt; I've been building a complex Access app on TS (Win 2k) for Roz for > > &gt; some months now. It's a reporting tool that connects to either > > &gt; Informix (boo) > > or > > &gt; SQL Server (yay). > > &gt; > > &gt; Here are some of the problems I've come across: > > &gt; > > &gt; -- FE and BE in my case needed to be split as user info (saved > queries > > etc.) > > &gt; is stored in Access and we have ~12 'production' terminal servers. > > &gt; These are load-balanced and users are kicked onto any one of them at > > &gt; random. If no split, then the user needs to be on the same server > > &gt; they were on when they saved their data. > > &gt; > > &gt; -- Anything that dynamically alters queries etc. needs to make a > copy > > &gt; of these first to avoid locking issues. > > &gt; > > &gt; These are the biggies, otherwise everything seems to work/connect > just > > &gt; as > > in > > &gt; a normal client/server situation. If you have specific questions I'd > > &gt; be more than happy to answer them as best I can. > > &gt; > > &gt; HTH > > &gt; Tom > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -----Original Message----- > > &gt; From: Andy Lacey [mailto:andy at minstersystems.co.uk] > > &gt; Sent: 23 March 2005 13:59 > > &gt; To: Access Developers discussion and problem solving > > &gt; Subject: Re: [AccessD] Access &amp;amp; Terminal Services > > &gt; > > &gt; Thanks Gustav, but the boss here is likely to want to go the TS > route. > > &gt; We have Remote Control working nicely for him from home, but for > > &gt; lesser mortals, of whom there could be several, he doesn't want to > > &gt; have workstations dotted around which have to left on and not used by > > &gt; other workers, and other considerations. So I think TS would be > right, > > &gt; but the question is whether everything that my app does (as outlined > > &gt; below) will work unaltered under TS. > > &gt; > > &gt; BTW what's the license cost implication of TS? Must be considerable > if > > &gt; you went for an alternative. I thought it was part of W2000 server. > > &gt; > > &gt; -- > > &gt; Andy Lacey > > &gt; http://www.minstersystems.co.uk > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; The contents of this message and any attachments are the property of > > &gt; Donns > > Solicitors > > &gt; and are intended for the confidential use of the named recipient > only. > > They may be legally > > &gt; privileged and should not be communicated to, or relied upon, by any > > other party without > > &gt; our written consent. If you are not the addressee, please notify us > > immediately so that we > > &gt; can make arrangements for its return. You should not show this > e-mail > > &gt; to > > any person or > > &gt; take copies as you may be committing a criminal or civil offence for > > which you may be > > &gt; liable. The statement and opinions expressed in this e-mail message > > &gt; are > > those of the > > &gt; writer, and do not necessarily represent that of Donns Solicitors. > > Although any files attached > > &gt; to this e-mail will have been checked with virus protection software > > prior to transmission, > > &gt; you should carry out your own virus check before opening any > > &gt; attachment. Donns Solicitors does not accept any liability for any > > &gt; damage or loss > > which may be caused > > &gt; by software viruses... > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; > > &gt; -- > > &gt; AccessD mailing list > > &gt; AccessD at databaseadvisors.com > > &gt; http://databaseadvisors.com/mailman/listinfo/accessd > > &gt; Website: http://www.databaseadvisors.com > > &gt; > > > > ________________________________________________ > > Message sent using UebiMiau 2.7.2 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > The contents of this message and any attachments are the property of Donns > Solicitors > > and are intended for the confidential use of the named recipient only. > They may be legally > > privileged and should not be communicated to, or relied upon, by any > other party without > > our written consent. If you are not the addressee, please notify us > immediately so that we > > can make arrangements for its return. You should not show this e-mail to > any person or > > take copies as you may be committing a criminal or civil offence for > which you may be > > liable. The statement and opinions expressed in this e-mail message are > those of the > > writer, and do not necessarily represent that of Donns Solicitors. > Although any files attached > > to this e-mail will have been checked with virus protection software > prior to transmission, > > you should carry out your own virus check before opening any attachment. > > Donns Solicitors does not accept any liability for any damage or loss > which may be caused > > by software viruses... > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > The contents of this message and any attachments are the property of Donns Solicitors > and are intended for the confidential use of the named recipient only. They may be legally > privileged and should not be communicated to, or relied upon, by any other party without > our written consent. If you are not the addressee, please notify us immediately so that we > can make arrangements for its return. You should not show this e-mail to any person or > take copies as you may be committing a criminal or civil offence for which you may be > liable. The statement and opinions expressed in this e-mail message are those of the > writer, and do not necessarily represent that of Donns Solicitors. Although any files attached > to this e-mail will have been checked with virus protection software prior to transmission, > you should carry out your own virus check before opening any attachment. > Donns Solicitors does not accept any liability for any damage or loss which may be caused > by software viruses... > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 23 12:36:49 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 23 Mar 2005 10:36:49 -0800 Subject: [AccessD] Counting Users Message-ID: ROTFL Yes, but the old ways didn't always SMELL as good! Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 23, 2005 9:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Rocky, I think in this day of ever present technology we tend to forget about the good old ways that we used to do things. How many of us have to have a PIM to store our phone numbers and things? My father just write the numbers in ball point pen on his hand or up and down his arm. The only problem he ever had with that system was one time he took a shower by accident and lost all of his numbers. Simple, effective and if you avoid water you just never lose your info. The old ways were often times superior to all our wonderful technology. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Wednesday, March 23, 2005 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users JC: I liked your first solution better. Low-tech. Effective. And no batteries required. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, March 23, 2005 9:13 AM Subject: RE: [AccessD] Counting Users > DAMN! Now why didn't I think of that? > > Sorry Rocky, please ignore my last post. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Wednesday, March 23, 2005 10:56 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > I'd suggest modifying JC's C2DBShowUsers code to just count not > display. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: AccessD at databaseadvisors.com > Subject: [AccessD] Counting Users > Date: 23/03/05 16:48 > >> >> Dear List: >> >> What is the simplest way to count the number of users logged in to a >> back > end mdb? >> >> MTIA >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 12:53:38 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 10:53:38 -0800 Subject: [AccessD] More data source issues Message-ID: <000001c52fd9$a0b93c30$6701a8c0@laptop1> Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe From cfoust at infostatsystems.com Wed Mar 23 13:02:07 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 23 Mar 2005 11:02:07 -0800 Subject: [AccessD] More data source issues Message-ID: If SmplesizeAll is a checkbox, why not test for True instead of <> 0? If you have your checkbox set up with no default value, which allows it to be Null, which is not zero but also not true. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, March 23, 2005 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Mar 23 13:08:22 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 23 Mar 2005 14:08:22 -0500 Subject: [AccessD] More data source issues Message-ID: Why are you mixing evaluating samplesizeall and then smplsizepieces? Apparently smplesizepieces is true. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 1:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 23 13:11:18 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 11:11:18 -0800 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <025201c52fdc$180b9510$6601a8c0@HAL9002> ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: dba-tech Sent: Wednesday, March 23, 2005 7:19 AM Subject: Windows Printer Sharing Question I am implementing my new machine - Hal9004. It came with Win XP Home. My current development machine is Hal9002 with WIN XP Pro. The backup development machine is Hal9001 - Windows 2000. Hal9001 has the shared printer hooked to it. When I start Hal9001 it prompts me for user name and password to which I simply press enter. User name is Administrator with no password. Hal9002 has no problem printing through Hal9001. But the new box - Hal9004 requires that I connect to Hal9001 before it will 'see' the printer. I go to network neighborhood on Hal9004, click on Hal9001's shared drive C, put in the user name Administrator and no password, and everything's fine - I can print from Hal9004 through the network printer on Hal9001. Of course, this is a PITA and I'd like Hal9004 to see the network printer without having to do this connecting trick just like it's older brother Hal9002.. BTW, all the drives are shared. Any ideas how to fix this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From jmhla at earthlink.net Wed Mar 23 13:24:21 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 11:24:21 -0800 Subject: [AccessD] More data source issues In-Reply-To: Message-ID: <000201c52fdd$ead96200$6701a8c0@laptop1> There are three possible responsonses Some pieces All pieces No Pieces If the first 2 are false or 0 then No Samples is the correct reply -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, March 23, 2005 11:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] More data source issues Why are you mixing evaluating samplesizeall and then smplsizepieces? Apparently smplesizepieces is true. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Wednesday, March 23, 2005 1:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 13:25:05 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 11:25:05 -0800 Subject: [AccessD] More data source issues In-Reply-To: Message-ID: <000301c52fde$04d832d0$6701a8c0@laptop1> Will go look at null issue. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, March 23, 2005 11:02 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] More data source issues If SmplesizeAll is a checkbox, why not test for True instead of <> 0? If you have your checkbox set up with no default value, which allows it to be Null, which is not zero but also not true. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, March 23, 2005 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]<>0,"All Pieces",IIf([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Mar 23 13:28:36 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 23 Mar 2005 11:28:36 -0800 Subject: [AccessD] Windows Printer Sharing Question Message-ID: Sorry, Dave. But I can't permit you to do that. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Wednesday, March 23, 2005 11:11 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Windows Printer Sharing Question ----- Original Message ----- From: Rocky Smolin - Beach Access Software To: dba-tech Sent: Wednesday, March 23, 2005 7:19 AM Subject: Windows Printer Sharing Question I am implementing my new machine - Hal9004. It came with Win XP Home. My current development machine is Hal9002 with WIN XP Pro. The backup development machine is Hal9001 - Windows 2000. Hal9001 has the shared printer hooked to it. When I start Hal9001 it prompts me for user name and password to which I simply press enter. User name is Administrator with no password. Hal9002 has no problem printing through Hal9001. But the new box - Hal9004 requires that I connect to Hal9001 before it will 'see' the printer. I go to network neighborhood on Hal9004, click on Hal9001's shared drive C, put in the user name Administrator and no password, and everything's fine - I can print from Hal9004 through the network printer on Hal9001. Of course, this is a PITA and I'd like Hal9004 to see the network printer without having to do this connecting trick just like it's older brother Hal9002.. BTW, all the drives are shared. Any ideas how to fix this? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 13:44:34 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 11:44:34 -0800 Subject: [AccessD] More data source issues In-Reply-To: Message-ID: <000001c52fe0$be4c5320$6701a8c0@laptop1> I changed my tables and IIF as Charlotte suggested but I am still not getting what I want. Any thoughts If SmplesizeAll is a checkbox, why not test for True instead of <> 0? If you have your checkbox set up with no default value, which allows it to be Null, which is not zero but also not true. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Wednesday, March 23, 2005 10:54 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] More data source issues Thanks to Karen, I got the first problem handled. SmplesizeAll = chkbox SmpleSizePieces = txtbox SmpleSizeAll is true in my test case, but the test keeps ending up at No Sample Requested. =IIf([SmpleSizeAll]=True ,"All Pieces", If([SmpleSizePieces]<>0,[SmpleSizePieces],"No Sample Requested")) TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Wed Mar 23 14:26:56 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 23 Mar 2005 15:26:56 -0500 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E95@xlivmbx21.aig.com> Leaving aside the issue of an administrator account with no password (!!!??)... Do ALL the accounts on all the machines have the same password, or lack :-) ? i.e. does user "A" have the same password on all machines in the network? Do all the machines belong to the same workgroup? (I'm assuming we are talking Peer To Peer networking here). Checked the firewall? I lack of the hassle is because the new box has XP home and not XP pro. Here are a few links to check up on http://www.practicallynetworked.com/sharing/xp/addxp.htm http://www.wown.info/j_helmig/guidshrh.htm http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare.m spx Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 23, 2005 2:11 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Windows Printer Sharing Question > > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: dba-tech > Sent: Wednesday, March 23, 2005 7:19 AM > Subject: Windows Printer Sharing Question > > > I am implementing my new machine - Hal9004. It came with Win XP Home. > > My current development machine is Hal9002 with WIN XP Pro. > The backup development machine is Hal9001 - Windows 2000. > Hal9001 has the shared printer hooked to it. > > When I start Hal9001 it prompts me for user name and password to which I > simply press enter. User name is Administrator with no password. > > Hal9002 has no problem printing through Hal9001. > > But the new box - Hal9004 requires that I connect to Hal9001 before it > will 'see' the printer. I go to network neighborhood on Hal9004, click on > Hal9001's shared drive C, put in the user name Administrator and no > password, and everything's fine - I can print from Hal9004 through the > network printer on Hal9001. > > Of course, this is a PITA and I'd like Hal9004 to see the network printer > without having to do this connecting trick just like it's older brother > Hal9002.. > > BTW, all the drives are shared. > > Any ideas how to fix this? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Mar 23 14:50:12 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 23 Mar 2005 12:50:12 -0800 Subject: [AccessD] Windows Printer Sharing Question References: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E95@xlivmbx21.aig.com> Message-ID: <028901c52fe9$e90a77f0$6601a8c0@HAL9002> Heenan: The only account on the three machines that gets prompted is Administrator on Hal9001. And that one, as I say, doesn't have a password. They all belong to the same workgroup. I'll check you links to see if they can enlighten me. But, as I say, the XP Pro machine doesn't have any problem printing to the network printer without connecting to the printer's computer first. (Yes, BTW, peer-to-peer) Regards, is ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'Rocky Smolin - Beach Access Software'" Sent: Wednesday, March 23, 2005 12:26 PM Subject: RE: [AccessD] Windows Printer Sharing Question > Leaving aside the issue of an administrator account with no password > (!!!??)... > > Do ALL the accounts on all the machines have the same password, or lack > :-) > ? i.e. does user "A" have the same password on all machines in the > network? > > Do all the machines belong to the same workgroup? (I'm assuming we are > talking Peer To Peer networking here). > > Checked the firewall? > > I lack of the hassle is because the new box has XP home and not XP pro. > Here > are a few links to check up on > > http://www.practicallynetworked.com/sharing/xp/addxp.htm > http://www.wown.info/j_helmig/guidshrh.htm > http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare.m > spx > > Lambert > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >> Beach Access Software >> Sent: Wednesday, March 23, 2005 2:11 PM >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Windows Printer Sharing Question >> >> >> ----- Original Message ----- >> From: Rocky Smolin - Beach Access Software >> To: dba-tech >> Sent: Wednesday, March 23, 2005 7:19 AM >> Subject: Windows Printer Sharing Question >> >> >> I am implementing my new machine - Hal9004. It came with Win XP Home. >> >> My current development machine is Hal9002 with WIN XP Pro. >> The backup development machine is Hal9001 - Windows 2000. >> Hal9001 has the shared printer hooked to it. >> >> When I start Hal9001 it prompts me for user name and password to which I >> simply press enter. User name is Administrator with no password. >> >> Hal9002 has no problem printing through Hal9001. >> >> But the new box - Hal9004 requires that I connect to Hal9001 before it >> will 'see' the printer. I go to network neighborhood on Hal9004, click >> on >> Hal9001's shared drive C, put in the user name Administrator and no >> password, and everything's fine - I can print from Hal9004 through the >> network printer on Hal9001. >> >> Of course, this is a PITA and I'd like Hal9004 to see the network printer >> without having to do this connecting trick just like it's older brother >> Hal9002.. >> >> BTW, all the drives are shared. >> >> Any ideas how to fix this? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Wed Mar 23 16:07:42 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 24 Mar 2005 08:07:42 +1000 Subject: [AccessD] More data source issues In-Reply-To: <000201c52fdd$ead96200$6701a8c0@laptop1> References: Message-ID: <4242754E.16731.3821695@stuart.lexacorp.com.pg> On 23 Mar 2005 at 11:24, Joe Hecht wrote: > There are three possible responsonses > > Some pieces > All pieces > No Pieces > > If the first 2 are false or 0 then No Samples is the correct reply > Why not put three option buttons in a frame? -- Stuart From stuart at lexacorp.com.pg Wed Mar 23 16:12:00 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 24 Mar 2005 08:12:00 +1000 Subject: [AccessD] Not in List ... or Not? In-Reply-To: <65304.65.118.249.214.1111600475.squirrel@cetus.email.starband.net> References: <018401c52fc8$00741760$6601a8c0@HAL9002> Message-ID: <42427650.10205.3860665@stuart.lexacorp.com.pg> On 23 Mar 2005 at 12:54, GregSmith at starband.net wrote: > My list has four(4) items in it. > > So, why can I enter a BLANK in it? A Blank is NOT one of my items in the > list. Last time I checked, when one says "limit to list", you should only > be able to put in what's in the list. Period. End of sentence. Nothing > else. Zip, zero, nada, nothin'. > > I know I can check the field on exit to make sure it has something in it > other than a blank (since the limit to list DOESN'T frickin' work right on > blanks...), but I have about a gazillion other events happening with > focusing and it hoses them up when it tries to go back. > How about setting a Validation Rule of "NOT NULL" -- Stuart From lmrazek at lcm-res.com Wed Mar 23 16:16:18 2005 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 23 Mar 2005 16:16:18 -0600 Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" In-Reply-To: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E95@xlivmbx21.aig.com> Message-ID: <200503231716182.SM01596@hplaptop> Hi: I'm currently having a bit of problem creating a Crosstab query for a twelve month period, with the period starting from a user-selected value. Thus, if user selects a date in June 2004, I want the report to display data from June-2004 to May 2005 ... My current code is below. (I want to have static headings so I can bind the query to a report). TRANSFORM Sum(qryMonthlyProduction.SumOfBags) AS SumOfSumOfBags SELECT qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift, Sum(qryMonthlyProduction.SumOfBags) AS [Total Of SumOfBags] FROM qryMonthlyProduction GROUP BY qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift ORDER BY "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriteria]! [txtWeek])) PIVOT "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriteria]! [txtWeek])); When I run this, it displays the fields in the following order (I'd like the months to be arranged in order): Production Facility - ProductionLine - Shift - Total of SumOfBags - Month0 - Month1 - Month10 - Month11 - Month2 - Month3 ... Month9 Any hints? Thanks in advance! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 From donald.a.Mcgillivray at mail.sprint.com Wed Mar 23 16:56:06 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Wed, 23 Mar 2005 16:56:06 -0600 Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" Message-ID: Larry, You need to zero pad your month numbers so they'll sort properly when appended to the "Month" text. Try wrapping the portions of your statement that return that number in the "Format" function. Something like: Format(datediff(yada yada), "00") Hope this helps. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, March 23, 2005 2:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" Hi: I'm currently having a bit of problem creating a Crosstab query for a twelve month period, with the period starting from a user-selected value. Thus, if user selects a date in June 2004, I want the report to display data from June-2004 to May 2005 ... My current code is below. (I want to have static headings so I can bind the query to a report). TRANSFORM Sum(qryMonthlyProduction.SumOfBags) AS SumOfSumOfBags SELECT qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift, Sum(qryMonthlyProduction.SumOfBags) AS [Total Of SumOfBags] FROM qryMonthlyProduction GROUP BY qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift ORDER BY "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])) PIVOT "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])); When I run this, it displays the fields in the following order (I'd like the months to be arranged in order): Production Facility - ProductionLine - Shift - Total of SumOfBags - Month0 - Month1 - Month10 - Month11 - Month2 - Month3 ... Month9 Any hints? Thanks in advance! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Wed Mar 23 16:59:18 2005 From: jmhla at earthlink.net (jmhla at earthlink.net) Date: Wed, 23 Mar 2005 14:59:18 -0800 (GMT-08:00) Subject: [AccessD] More data source issues Message-ID: <5877295.1111618758945.JavaMail.root@louie.psp.pas.earthlink.net> they need to be able to put in some number if only part of the shipment is tested. Thanks -----Original Message----- From: Stuart McLachlan Sent: Mar 23, 2005 2:07 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] More data source issues On 23 Mar 2005 at 11:24, Joe Hecht wrote: > There are three possible responsonses > > Some pieces > All pieces > No Pieces > > If the first 2 are false or 0 then No Samples is the correct reply > Why not put three option buttons in a frame? -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Wed Mar 23 17:23:00 2005 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 23 Mar 2005 17:23:00 -0600 Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" In-Reply-To: Message-ID: <200503231823855.SM01596@hplaptop> Thanks Don: Just found another workaround - I added a field calculating the interval to my query ("qryMonthlyProduction") that accepts the user parameters. I can then use the interval value in the crosstab ... And it works! Thanks again! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Don [ITS] Sent: Wednesday, March 23, 2005 4:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CrossTab Query - 12 Month "sliding scale" Larry, You need to zero pad your month numbers so they'll sort properly when appended to the "Month" text. Try wrapping the portions of your statement that return that number in the "Format" function. Something like: Format(datediff(yada yada), "00") Hope this helps. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lawrence Mrazek Sent: Wednesday, March 23, 2005 2:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] CrossTab Query - 12 Month "sliding scale" Hi: I'm currently having a bit of problem creating a Crosstab query for a twelve month period, with the period starting from a user-selected value. Thus, if user selects a date in June 2004, I want the report to display data from June-2004 to May 2005 ... My current code is below. (I want to have static headings so I can bind the query to a report). TRANSFORM Sum(qryMonthlyProduction.SumOfBags) AS SumOfSumOfBags SELECT qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift, Sum(qryMonthlyProduction.SumOfBags) AS [Total Of SumOfBags] FROM qryMonthlyProduction GROUP BY qryMonthlyProduction.ProductionFacility, qryMonthlyProduction.ProductionLine, qryMonthlyProduction.Shift ORDER BY "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])) PIVOT "Month" & DateDiff("m",[DateEntered],DateAdd("m",11,[Forms]![frmWeeklyReportCriter ia]! [txtWeek])); When I run this, it displays the fields in the following order (I'd like the months to be arranged in order): Production Facility - ProductionLine - Shift - Total of SumOfBags - Month0 - Month1 - Month10 - Month11 - Month2 - Month3 ... Month9 Any hints? Thanks in advance! Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 fx. 314-432-3304 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Wed Mar 23 23:59:36 2005 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Thu, 24 Mar 2005 00:59:36 -0500 Subject: [AccessD] Not in List ... or Not? In-Reply-To: <65304.65.118.249.214.1111600475.squirrel@cetus.email.starband.net> Message-ID: <20050324055935.DDAO7277.mta10.adelphia.net@DG1P2N21> Greg Do you have the REQUIRED value set to YES? Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Wednesday, March 23, 2005 12:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] Not in List ... or Not? Hi everyone! Hope everyone is having a good day. This may be just the way it is, but I still have to ask. Access 2003. I have a combo box, Value List, I typed in the list, Limit to List. Default value is set to one of the items in the list. List cannot be added to. My list has four(4) items in it. So, why can I enter a BLANK in it? A Blank is NOT one of my items in the list. Last time I checked, when one says "limit to list", you should only be able to put in what's in the list. Period. End of sentence. Nothing else. Zip, zero, nada, nothin'. I know I can check the field on exit to make sure it has something in it other than a blank (since the limit to list DOESN'T frickin' work right on blanks...), but I have about a gazillion other events happening with focusing and it hoses them up when it tries to go back. Is this just one of those Access quirks or am I missing something? TIA! Greg Smith gregsmith(no spam)@starband.net -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Mar 24 00:11:20 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 23 Mar 2005 22:11:20 -0800 Subject: [AccessD] Counting Users References: <007901c52fcb$76e2d190$697aa8c0@ColbyM6805> Message-ID: <42425A08.8080206@shaw.ca> Pretty Poor. A good Assembler programmer can count up to 1024 without taking her shoes off. Although people do look at you with an odd smile when you get to 132 or Hex 84 John W. Colby wrote: >Rocky, > > > >>What is the simplest way to count the number of users logged in to a back >> >> >end mdb? > >Walk around to the chairs and tap the users on the head, raising a finger >for each head tapped. If you run out of fingers, start using your toes. Of >course if you have more than 20 users, or you are missing fingers or toes, >then you will need to have an assistant follow you around to store the >counts for the additional heads. This works well for user counts up to >about 100 or so, whereupon the trail of assistants becomes too long to >manage effectively. They begin stopping to chat with friends and stuff and >you lose as many as 20 user counts every time that happens. > >If you find that happening, I discovered that you can buy these pet collars >attached to spring loaded reels of line. Just hook up your counting >assistants so they can never lag too far behind. > >A similar method, a bit more disruptive, is to go around tapping heads, but >instead of raising fingers, having each user join in a line behind you, thus >by the time you tap the last user's head, you will have a long line of users >which you can now just go down the line drawing a little mark on a paper for >each one. It looks something like IIII\IIII\IIII\ etc. > >I hope that I have provided some ideas of how to do user counts. Even if >you don't use my methods, perhaps I have sparked some ideas that you will >find effective. > >Good luck in your counting, and please don't hesitate to ask further >questions if you didn't understand any of the above. > >Respectfully, > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >Beach Access Software >Sent: Wednesday, March 23, 2005 11:47 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] Counting Users > > >Dear List: > >What is the simplest way to count the number of users logged in to a back >end mdb? > >MTIA > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada From jmhla at earthlink.net Thu Mar 24 01:01:13 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 23 Mar 2005 23:01:13 -0800 Subject: [AccessD] I do not understand this Message-ID: <000401c5303f$454e7610$6701a8c0@laptop1> I built the following code using the autocomplete in the VB editor. Why can't Access find the smpleSizeAll in the code? Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub From paul.hartland at fsmail.net Thu Mar 24 01:58:21 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 24 Mar 2005 08:58:21 +0100 (CET) Subject: [AccessD] data source problem Message-ID: <13522317.1111651101813.JavaMail.www@wwinf3103> shouldn't it be IIF and not IF Message date : Mar 23 2005, 05:54 PM >From : "Joe Hecht" To : "'Access Developers discussion and problem solving'" Copy to : Subject : [AccessD] data source problem I have 2 queries to build a report. There is a parameter that picks up the Purchase Order number. The following is the first test to build the three level data source statement made with the expression builder. =If([SmpleSizeAll]=True,[SmpleSizeAll],"Pass") When I run the report I get a parameter box asking for the IF parameter. Help TIA Joe -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Chris.Foote at uk.thalesgroup.com Thu Mar 24 02:59:18 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 24 Mar 2005 08:59:18 -0000 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C645@ntscxch1.int.rdel.co.uk> LOL! Chris Foote > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Wednesday, March 23, 2005 7:29 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Windows Printer Sharing Question > > > Sorry, Dave. But I can't permit you to do that. > > Charlotte Foust > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Wednesday, March 23, 2005 11:11 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Windows Printer Sharing Question > > > > ----- Original Message ----- > From: Rocky Smolin - Beach Access Software > To: dba-tech > Sent: Wednesday, March 23, 2005 7:19 AM > Subject: Windows Printer Sharing Question > > > I am implementing my new machine - Hal9004. It came with Win XP Home. > > My current development machine is Hal9002 with WIN XP Pro. --------------(snip)--------- From Gustav at cactus.dk Thu Mar 24 03:21:24 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 24 Mar 2005 10:21:24 +0100 Subject: [AccessD] I do not understand this Message-ID: Hi J It sure can. But apply proper indenting to get the code readable and at once you'll see why it apparently didn't: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else Me.txtSmplSize = "SizeAll Value is False" If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub Perhaps this is what you had in mind: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" ElseIf Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End Sub /gustav >>> jmhla at earthlink.net 03/24 8:01 am >>> I built the following code using the autocomplete in the VB editor. Why can't Access find the smpleSizeAll in the code? Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub From andy at minstersystems.co.uk Thu Mar 24 02:38:14 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 9:38:14 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050324093812.BDE952572B9@smtp.nildram.co.uk> Sorry, one more question on licensing. If you have a 25-user license for W2000 server and User A sometimes comes into the office and sometimes runs from home through TS, am I right in thinking they have to be defined to the server as two separate users, and therefore take 2 seats? Which makes me think about Exchange/Outlook. They'd want to see the same mail from both points. If the answer to the question above is 'yes' then can two users share a mailbox? And if they can, is that one Exchange license or two? Sorry, these are horrible questions of detail, but I'm going to need to know. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From R.Griffiths at bury.gov.uk Thu Mar 24 05:56:24 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 24 Mar 2005 11:56:24 -0000 Subject: [AccessD] Memo field - export data Message-ID: <200503241146.j2OBkex17316@smarthost.yourcomms.net> Hi Under pressure to get a job done!!! 1. Have a table (from paradox) inA97. 2. Trying to export to text file 3. One of the fields is a memo field - field may contain 10, 20, 30000 characters of data. 4. Export does not copy out all this data (only 500 or chars) so........... 5. Have written code to print line into a text file (open/write etc) but this crashes when I come to a record where the field contains large amount of data as above. I am missing something? Do I need another approach (appendchunk?) or are my problems related to dodgy/corrupt data. Many thanks in advance Richard From tom.bolton at donnslaw.co.uk Thu Mar 24 06:03:26 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 24 Mar 2005 12:03:26 -0000 Subject: [AccessD] RE: A2k2 treeview scroll to selected node? Message-ID: <61F915314798D311A2F800A0C9C831880731CAAF@dibble.observatory.donnslaw.co.uk> Hi all Here's a good one... I have a treeview on a form that contains a node for each user; there are enough of these to force the treeview control into having a vertical scrollbar. When the app starts, the treeview defaults to the current user's node which sometimes is down at the bottom out of sight. Can I programatically get the control to scroll down a bit so the user can see their folder straight away even if it's down the bottom? MTIA and happy Easter! Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From CSPELL at jhuccp.org Thu Mar 24 06:13:33 2005 From: CSPELL at jhuccp.org (CYNTHIA SPELL) Date: Thu, 24 Mar 2005 07:13:33 -0500 Subject: [AccessD] Normalize Pivot Table Message-ID: I'm interested in doing something similar. I didn't see any responses. Did I miss something? Cindy >>> Rich_Lavsa at pghcorning.com 03/23/05 08:27AM >>> Hello all, I was just curious if anyone out there has ever written any code (ADO or DAO) to Normalize a Pivot or Crosstab data table. Reason: I get a data matrix that looks like a pivot table. The matrix is set up with formula's in excel so its easy for the outside company to update the entire matrix and email the updated matrix to our users. Problem is getting the updated data into a normalized state so it can be used in the database. I did try UNTOOLS (http://www.CleanDataSystems.com) which works great for a 1 time conversion, however I need this to be an automated approach where the user simply has to copy the file to a specified directory then push a button in the application to update the database. Yesterday I had a very clear vision of how I'd write the code but this morning my brain isn't working too clearly. Any help would be greatly appreciated Thanks, Rich -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 24 08:08:06 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 24 Mar 2005 08:08:06 -0600 Subject: [AccessD] Memo field - export data In-Reply-To: <200503241146.j2OBkex17316@smarthost.yourcomms.net> References: <200503241146.j2OBkex17316@smarthost.yourcomms.net> Message-ID: Does the data display properly in a Paradox report? Perhaps you could create a report to display the memo data along with some key info to use to hook it back to the underlying data and then print that report to a FILE. Then you can read that text file in as data and parse through the info and put the peices back together. Maybe. ;-) If nothing else, seeing if the data can be read for a report would tell you if the data structure itself is corrupt or intact. To set up the print to text printer driver see this; http://support.mfm.com/support/std_procedures/xpgenericprinter.html Or do a web search on "windows generic text only printer" and you will find lots of info on it. Good luck with your project. On Thu, 24 Mar 2005 11:56:24 -0000, Griffiths, Richard wrote: > Hi > > Under pressure to get a job done!!! > > 1. Have a table (from paradox) inA97. > 2. Trying to export to text file > 3. One of the fields is a memo field - field may contain 10, 20, 30000 > characters of data. > 4. Export does not copy out all this data (only 500 or chars) > so........... > 5. Have written code to print line into a text file (open/write etc) but > this crashes when I come to a record where the field contains large > amount of data as above. > > I am missing something? Do I need another approach (appendchunk?) or > are my problems related to dodgy/corrupt data. > > Many thanks in advance > > Richard > -- Gary Kjos garykjos at gmail.com From R.Griffiths at bury.gov.uk Thu Mar 24 08:25:49 2005 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 24 Mar 2005 14:25:49 -0000 Subject: [AccessD] Memo field - export data Message-ID: <200503241416.j2OEG5x24799@smarthost.yourcomms.net> The data displays okay in A97 - its only the export bit that does not work. I now have a solution - I imported the A97 db into SQLServer and exported it from there. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: 24 March 2005 14:08 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Memo field - export data Does the data display properly in a Paradox report? Perhaps you could create a report to display the memo data along with some key info to use to hook it back to the underlying data and then print that report to a FILE. Then you can read that text file in as data and parse through the info and put the peices back together. Maybe. ;-) If nothing else, seeing if the data can be read for a report would tell you if the data structure itself is corrupt or intact. To set up the print to text printer driver see this; http://support.mfm.com/support/std_procedures/xpgenericprinter.html Or do a web search on "windows generic text only printer" and you will find lots of info on it. Good luck with your project. On Thu, 24 Mar 2005 11:56:24 -0000, Griffiths, Richard wrote: > Hi > > Under pressure to get a job done!!! > > 1. Have a table (from paradox) inA97. > 2. Trying to export to text file > 3. One of the fields is a memo field - field may contain 10, 20, 30000 > characters of data. 4. Export does not copy out all this data (only > 500 or chars) so........... > 5. Have written code to print line into a text file (open/write etc) but > this crashes when I come to a record where the field contains large > amount of data as above. > > I am missing something? Do I need another approach (appendchunk?) or > are my problems related to dodgy/corrupt data. > > Many thanks in advance > > Richard > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 24 08:42:47 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 24 Mar 2005 15:42:47 +0100 Subject: [AccessD] I do not understand this Message-ID: Hi Joe I had a look again, I hadn't noticed this is a report. Could it happen that SmpleSizePieces is both a field and a textbox? Can SmpleSizePieces contain an empty string? Try this: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = "Samples: " & Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub /gustav >>> jmhla at earthlink.net 03/24 8:01 am >>> I built the following code using the autocomplete in the VB editor. Why can't Access find the smpleSizeAll in the code? Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) If Me.SmpleSizeAll.Value = True Then Me.txtSmplSize = "All Pieces" Else If Me.SmpleSizePieces.Value <> 0 Then Me.txtSmplSize = Me.SmpleSizePieces Else Me.txtSmplSize = "No Samples Needed" End If End If End Sub From andy at minstersystems.co.uk Thu Mar 24 07:48:22 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 14:48:22 +0100 Subject: [AccessD] I do not understand this Message-ID: <20050324144819.9F38E24D5D5@smtp.nildram.co.uk> Or could it be that smpleSizeAll is only in the Report's source data and not an actual control? For a report it needs to be on the report even if hidden. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: Re: [AccessD] I do not understand this Date: 24/03/05 14:44 > > Hi Joe > > I had a look again, I hadn't noticed this is a report. > Could it happen that SmpleSizePieces is both a field and a textbox? > Can SmpleSizePieces contain an empty string? > > Try this: > > Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) > If Me.SmpleSizeAll.Value = True Then > Me.txtSmplSize = "All Pieces" > Else > If Me.SmpleSizePieces.Value <> 0 Then > Me.txtSmplSize = "Samples: " & Me.SmpleSizePieces > Else > Me.txtSmplSize = "No Samples Needed" > End If > End If > End Sub > > /gustav > > >>> jmhla at earthlink.net 03/24 8:01 am >>> > I built the following code using the autocomplete in the VB editor. > Why > can't Access find the smpleSizeAll in the code? > > Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) > If Me.SmpleSizeAll.Value = True Then > Me.txtSmplSize = "All Pieces" > Else > If Me.SmpleSizePieces.Value <> 0 Then > Me.txtSmplSize = Me.SmpleSizePieces > Else > Me.txtSmplSize = "No Samples Needed" > End If > End If > > > End Sub > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Thu Mar 24 09:02:13 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 24 Mar 2005 10:02:13 -0500 Subject: [AccessD] Counting Users In-Reply-To: <42425A08.8080206@shaw.ca> Message-ID: <001301c53082$798afa00$697aa8c0@ColbyM6805> LOL, you know your are right of course. Using a similar system where you count in binary on the fingers you can get 2^10 (1024) just on the fingers. Hey Rocky, you still with us here? Marty points out that you can count more users than Jet can handle on your own fingers so never mind the counting assistants. And yes, I was smiling too as I hit one particular count. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, March 24, 2005 1:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Counting Users Pretty Poor. A good Assembler programmer can count up to 1024 without taking her shoes off. Although people do look at you with an odd smile when you get to 132 or Hex 84 John W. Colby wrote: >Rocky, > > > >>What is the simplest way to count the number of users logged in to a >>back >> >> >end mdb? > >Walk around to the chairs and tap the users on the head, raising a >finger for each head tapped. If you run out of fingers, start using >your toes. Of course if you have more than 20 users, or you are >missing fingers or toes, then you will need to have an assistant follow >you around to store the counts for the additional heads. This works >well for user counts up to about 100 or so, whereupon the trail of >assistants becomes too long to manage effectively. They begin stopping >to chat with friends and stuff and you lose as many as 20 user counts every time that happens. > >If you find that happening, I discovered that you can buy these pet >collars attached to spring loaded reels of line. Just hook up your >counting assistants so they can never lag too far behind. > >A similar method, a bit more disruptive, is to go around tapping heads, >but instead of raising fingers, having each user join in a line behind >you, thus by the time you tap the last user's head, you will have a >long line of users which you can now just go down the line drawing a >little mark on a paper for each one. It looks something like IIII\IIII\IIII\ etc. > >I hope that I have provided some ideas of how to do user counts. Even >if you don't use my methods, perhaps I have sparked some ideas that you >will find effective. > >Good luck in your counting, and please don't hesitate to ask further >questions if you didn't understand any of the above. > >Respectfully, > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >- Beach Access Software >Sent: Wednesday, March 23, 2005 11:47 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] Counting Users > > >Dear List: > >What is the simplest way to count the number of users logged in to a >back end mdb? > >MTIA > >Rocky Smolin >Beach Access Software >http://www.e-z-mrp.com >858-259-4334 > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Thu Mar 24 09:07:12 2005 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Thu, 24 Mar 2005 10:07:12 -0500 Subject: [AccessD] Normalize Pivot Table Message-ID: <2A261FF9D5EBCA46940C11688CE872EE03ABEF@goexchange2.pghcorning.com> No responses but I did whip something up this morning which works. As I'm new to ADO as opposed to DAO, I'm not sure I'm taking the most efficient method however given the size of my table to import it will be well under a second. Its basic and gets the job done for my situation. So far this is what I have, it's a work in progress.. But in the right direction. Right now it takes the table (in the current database, and normalizes the data but simply displays it in the Immediate window. I will add a second RS and have it add each record to a table. In reality it will look to an external data source, but that's easy enough to change. Sub NormalizeCrosstab(pivTblName As String) Dim rs As ADODB.Recordset Dim i As Long Set rs = New ADODB.Recordset rs.Open "[" & pivTblName & "]", CurrentProject.Connection, adOpenStatic, adLockOptimistic rs.MoveFirst 'Go through Recordset row by row Do Until rs.EOF = True 'for each row make normalized entry from each field For i = 1 To rs.Fields.Count - 1 Step 1 'send results to immediate window Debug.Print rs.Fields(0), rs.Fields(i).Name, rs.Fields(i) Next i rs.MoveNext Loop rs.Close Set rs = Nothing End Sub In the long run I would like the the sub routine taking in parameters such as PivotTableName, Which column to start at, ColumnName of Crosstab header values, Columnname of Value, and the name of the table to put the results in) Would like to make this a utility that can be placed in any database and use quickly simply by passing along a few parameters. If anyone has any criticism or ideas to add please feel free.. Thanks, Rich -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of CYNTHIA SPELL Sent: Thursday, March 24, 2005 7:14 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Normalize Pivot Table I'm interested in doing something similar. I didn't see any responses. Did I miss something? Cindy >>> Rich_Lavsa at pghcorning.com 03/23/05 08:27AM >>> Hello all, I was just curious if anyone out there has ever written any code (ADO or DAO) to Normalize a Pivot or Crosstab data table. Reason: I get a data matrix that looks like a pivot table. The matrix is set up with formula's in excel so its easy for the outside company to update the entire matrix and email the updated matrix to our users. Problem is getting the updated data into a normalized state so it can be used in the database. I did try UNTOOLS (http://www.CleanDataSystems.com) which works great for a 1 time conversion, however I need this to be an automated approach where the user simply has to copy the file to a specified directory then push a button in the application to update the database. Yesterday I had a very clear vision of how I'd write the code but this morning my brain isn't working too clearly. Any help would be greatly appreciated Thanks, Rich -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Mar 24 09:10:30 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 24 Mar 2005 10:10:30 -0500 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E9B@xlivmbx21.aig.com> I think that may be the problem then. In Peer-To-Peer networks, all the accounts on all the machines must have the same password. To put that more clearly: "Administrator" must have the same password on each machine, "Jo User" must have the same password on each machine, etc. etc. Lambert (Heenan is my last name) > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, March 23, 2005 3:50 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Windows Printer Sharing Question > > Heenan: > > The only account on the three machines that gets prompted is Administrator > > on Hal9001. And that one, as I say, doesn't have a password. > > They all belong to the same workgroup. > > I'll check you links to see if they can enlighten me. But, as I say, the > XP > Pro machine doesn't have any problem printing to the network printer > without > connecting to the printer's computer first. > > (Yes, BTW, peer-to-peer) > > Regards, > > is > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'Rocky Smolin - Beach Access Software'" > > Sent: Wednesday, March 23, 2005 12:26 PM > Subject: RE: [AccessD] Windows Printer Sharing Question > > > > Leaving aside the issue of an administrator account with no password > > (!!!??)... > > > > Do ALL the accounts on all the machines have the same password, or lack > > :-) > > ? i.e. does user "A" have the same password on all machines in the > > network? > > > > Do all the machines belong to the same workgroup? (I'm assuming we are > > talking Peer To Peer networking here). > > > > Checked the firewall? > > > > I lack of the hassle is because the new box has XP home and not XP pro. > > Here > > are a few links to check up on > > > > http://www.practicallynetworked.com/sharing/xp/addxp.htm > > http://www.wown.info/j_helmig/guidshrh.htm > > > http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare > .m > > spx > > > > Lambert > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > >> Beach Access Software > >> Sent: Wednesday, March 23, 2005 2:11 PM > >> To: AccessD at databaseadvisors.com > >> Subject: [AccessD] Windows Printer Sharing Question > >> > >> > >> ----- Original Message ----- > >> From: Rocky Smolin - Beach Access Software > >> To: dba-tech > >> Sent: Wednesday, March 23, 2005 7:19 AM > >> Subject: Windows Printer Sharing Question > >> > >> > >> I am implementing my new machine - Hal9004. It came with Win XP Home. > >> > >> My current development machine is Hal9002 with WIN XP Pro. > >> The backup development machine is Hal9001 - Windows 2000. > >> Hal9001 has the shared printer hooked to it. > >> > >> When I start Hal9001 it prompts me for user name and password to which > I > >> simply press enter. User name is Administrator with no password. > >> > >> Hal9002 has no problem printing through Hal9001. > >> > >> But the new box - Hal9004 requires that I connect to Hal9001 before it > >> will 'see' the printer. I go to network neighborhood on Hal9004, click > > >> on > >> Hal9001's shared drive C, put in the user name Administrator and no > >> password, and everything's fine - I can print from Hal9004 through the > >> network printer on Hal9001. > >> > >> Of course, this is a PITA and I'd like Hal9004 to see the network > printer > >> without having to do this connecting trick just like it's older brother > >> Hal9002.. > >> > >> BTW, all the drives are shared. > >> > >> Any ideas how to fix this? > >> > >> MTIA, > >> > >> Rocky Smolin > >> Beach Access Software > >> http://www.e-z-mrp.com > >> 858-259-4334 > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 24 09:25:25 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:25:25 -0800 Subject: [AccessD] Counting Users References: <001301c53082$798afa00$697aa8c0@ColbyM6805> Message-ID: <00a101c53085$b3e57470$6f01a8c0@HAL9004> (Deep sigh). This is almost as bad as the smart aleck responses I got to my question about the network computer. Just because I name my computers HAL9000, HAL9001, HAL9002, etc... At least on this one you all threw me a bone. I'm still trying to figure out the other one. Rocky ----- Original Message ----- From: "John W. Colby" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 24, 2005 7:02 AM Subject: RE: [AccessD] Counting Users > LOL, you know your are right of course. Using a similar system where you > count in binary on the fingers you can get 2^10 (1024) just on the > fingers. > > Hey Rocky, you still with us here? Marty points out that you can count > more > users than Jet can handle on your own fingers so never mind the counting > assistants. > > And yes, I was smiling too as I hit one particular count. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly > Sent: Thursday, March 24, 2005 1:11 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > Pretty Poor. A good Assembler programmer can count up to 1024 without > taking her shoes off. > Although people do look at you with an odd smile when you get to 132 or > Hex 84 > > John W. Colby wrote: > >>Rocky, >> >> >> >>>What is the simplest way to count the number of users logged in to a >>>back >>> >>> >>end mdb? >> >>Walk around to the chairs and tap the users on the head, raising a >>finger for each head tapped. If you run out of fingers, start using >>your toes. Of course if you have more than 20 users, or you are >>missing fingers or toes, then you will need to have an assistant follow >>you around to store the counts for the additional heads. This works >>well for user counts up to about 100 or so, whereupon the trail of >>assistants becomes too long to manage effectively. They begin stopping >>to chat with friends and stuff and you lose as many as 20 user counts >>every > time that happens. >> >>If you find that happening, I discovered that you can buy these pet >>collars attached to spring loaded reels of line. Just hook up your >>counting assistants so they can never lag too far behind. >> >>A similar method, a bit more disruptive, is to go around tapping heads, >>but instead of raising fingers, having each user join in a line behind >>you, thus by the time you tap the last user's head, you will have a >>long line of users which you can now just go down the line drawing a >>little mark on a paper for each one. It looks something like > IIII\IIII\IIII\ etc. >> >>I hope that I have provided some ideas of how to do user counts. Even >>if you don't use my methods, perhaps I have sparked some ideas that you >>will find effective. >> >>Good luck in your counting, and please don't hesitate to ask further >>questions if you didn't understand any of the above. >> >>Respectfully, >> >>John W. Colby >>www.ColbyConsulting.com >> >>Contribute your unused CPU cycles to a good cause: >>http://folding.stanford.edu/ >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >>- Beach Access Software >>Sent: Wednesday, March 23, 2005 11:47 AM >>To: AccessD at databaseadvisors.com >>Subject: [AccessD] Counting Users >> >> >>Dear List: >> >>What is the simplest way to count the number of users logged in to a >>back end mdb? >> >>MTIA >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >>858-259-4334 >> >> > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Thu Mar 24 09:26:35 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 24 Mar 2005 07:26:35 -0800 Subject: [AccessD] I do not understand this In-Reply-To: <20050324144819.9F38E24D5D5@smtp.nildram.co.uk> Message-ID: <200503241526.j2OFQWi15077@databaseadvisors.com> Andy and AD I think found the problem I think. They are source data and not controls. Will fix that and try again. Thanks Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, March 24, 2005 5:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I do not understand this Or could it be that smpleSizeAll is only in the Report's source data and not an actual control? For a report it needs to be on the report even if hidden. -- Andy Lacey http://www.minstersystems.co.uk e: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 24 09:30:42 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:30:42 -0800 Subject: [AccessD] Windows Printer Sharing Question References: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E9B@xlivmbx21.aig.com> Message-ID: <00b701c53086$7128d720$6f01a8c0@HAL9004> Lambert (sorry, missed the comma): Curiously, I do not have the problem on HAL9002 which is WINXP Pro. It connects just fine to the printer on HAL9001. I just sent a post about this wondering if I upgrade HAL9004 to WINXP Pro would that solve the problem? What do you think? TIA, Rocky ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" ; "'Rocky Smolin - Beach Access Software'" Sent: Thursday, March 24, 2005 7:10 AM Subject: RE: [AccessD] Windows Printer Sharing Question >I think that may be the problem then. In Peer-To-Peer networks, all the > accounts on all the machines must have the same password. To put that more > clearly: "Administrator" must have the same password on each machine, "Jo > User" must have the same password on each machine, etc. etc. > > Lambert (Heenan is my last name) > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - >> Beach Access Software >> Sent: Wednesday, March 23, 2005 3:50 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> Heenan: >> >> The only account on the three machines that gets prompted is >> Administrator >> >> on Hal9001. And that one, as I say, doesn't have a password. >> >> They all belong to the same workgroup. >> >> I'll check you links to see if they can enlighten me. But, as I say, the >> XP >> Pro machine doesn't have any problem printing to the network printer >> without >> connecting to the printer's computer first. >> >> (Yes, BTW, peer-to-peer) >> >> Regards, >> >> is >> >> ----- Original Message ----- >> From: "Heenan, Lambert" >> To: "'Access Developers discussion and problem solving'" >> ; "'Rocky Smolin - Beach Access Software'" >> >> Sent: Wednesday, March 23, 2005 12:26 PM >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> > Leaving aside the issue of an administrator account with no password >> > (!!!??)... >> > >> > Do ALL the accounts on all the machines have the same password, or lack >> > :-) >> > ? i.e. does user "A" have the same password on all machines in the >> > network? >> > >> > Do all the machines belong to the same workgroup? (I'm assuming we are >> > talking Peer To Peer networking here). >> > >> > Checked the firewall? >> > >> > I lack of the hassle is because the new box has XP home and not XP pro. >> > Here >> > are a few links to check up on >> > >> > http://www.practicallynetworked.com/sharing/xp/addxp.htm >> > http://www.wown.info/j_helmig/guidshrh.htm >> > >> http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare >> .m >> > spx >> > >> > Lambert >> > >> >> -----Original Message----- >> >> From: accessd-bounces at databaseadvisors.com >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> Smolin - >> >> Beach Access Software >> >> Sent: Wednesday, March 23, 2005 2:11 PM >> >> To: AccessD at databaseadvisors.com >> >> Subject: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> ----- Original Message ----- >> >> From: Rocky Smolin - Beach Access Software >> >> To: dba-tech >> >> Sent: Wednesday, March 23, 2005 7:19 AM >> >> Subject: Windows Printer Sharing Question >> >> >> >> >> >> I am implementing my new machine - Hal9004. It came with Win XP Home. >> >> >> >> My current development machine is Hal9002 with WIN XP Pro. >> >> The backup development machine is Hal9001 - Windows 2000. >> >> Hal9001 has the shared printer hooked to it. >> >> >> >> When I start Hal9001 it prompts me for user name and password to which >> I >> >> simply press enter. User name is Administrator with no password. >> >> >> >> Hal9002 has no problem printing through Hal9001. >> >> >> >> But the new box - Hal9004 requires that I connect to Hal9001 before it >> >> will 'see' the printer. I go to network neighborhood on Hal9004, >> >> click >> >> >> on >> >> Hal9001's shared drive C, put in the user name Administrator and no >> >> password, and everything's fine - I can print from Hal9004 through the >> >> network printer on Hal9001. >> >> >> >> Of course, this is a PITA and I'd like Hal9004 to see the network >> printer >> >> without having to do this connecting trick just like it's older >> >> brother >> >> Hal9002.. >> >> >> >> BTW, all the drives are shared. >> >> >> >> Any ideas how to fix this? >> >> >> >> MTIA, >> >> >> >> Rocky Smolin >> >> Beach Access Software >> >> http://www.e-z-mrp.com >> >> 858-259-4334 >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Chris.Foote at uk.thalesgroup.com Thu Mar 24 09:31:02 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 24 Mar 2005 15:31:02 -0000 Subject: [AccessD] Counting Users Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 24, 2005 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > (Deep sigh). This is almost as bad as the smart aleck > responses I got to my > question about the network computer. Just because I name my > computers > HAL9000, HAL9001, HAL9002, etc... From Lambert.Heenan at AIG.com Thu Mar 24 09:43:23 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 24 Mar 2005 10:43:23 -0500 Subject: [AccessD] Windows Printer Sharing Question Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2E9D@xlivmbx21.aig.com> Rocky, Re "Lambert (sorry, missed the comma):" - not a problem, just the way my Exchange server does things. Upgrade to XP Pro? Could fix the trouble, but I'd try 'synchronizing' the passwords first to see if that fixes it. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, March 24, 2005 10:31 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Windows Printer Sharing Question > > Lambert (sorry, missed the comma): > > Curiously, I do not have the problem on HAL9002 which is WINXP Pro. It > connects just fine to the printer on HAL9001. > > I just sent a post about this wondering if I upgrade HAL9004 to WINXP Pro > would that solve the problem? What do you think? > > TIA, > > Rocky > > ----- Original Message ----- > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > ; "'Rocky Smolin - Beach Access Software'" > > Sent: Thursday, March 24, 2005 7:10 AM > Subject: RE: [AccessD] Windows Printer Sharing Question > > > >I think that may be the problem then. In Peer-To-Peer networks, all the > > accounts on all the machines must have the same password. To put that > more > > clearly: "Administrator" must have the same password on each machine, > "Jo > > User" must have the same password on each machine, etc. etc. > > > > Lambert (Heenan is my last name) > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - > >> Beach Access Software > >> Sent: Wednesday, March 23, 2005 3:50 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Windows Printer Sharing Question > >> > >> Heenan: > >> > >> The only account on the three machines that gets prompted is > >> Administrator > >> > >> on Hal9001. And that one, as I say, doesn't have a password. > >> > >> They all belong to the same workgroup. > >> > >> I'll check you links to see if they can enlighten me. But, as I say, > the > >> XP > >> Pro machine doesn't have any problem printing to the network printer > >> without > >> connecting to the printer's computer first. > >> > >> (Yes, BTW, peer-to-peer) > >> > >> Regards, > >> > >> is > >> > >> ----- Original Message ----- > >> From: "Heenan, Lambert" > >> To: "'Access Developers discussion and problem solving'" > >> ; "'Rocky Smolin - Beach Access > Software'" > >> > >> Sent: Wednesday, March 23, 2005 12:26 PM > >> Subject: RE: [AccessD] Windows Printer Sharing Question > >> > >> > >> > Leaving aside the issue of an administrator account with no password > >> > (!!!??)... > >> > > >> > Do ALL the accounts on all the machines have the same password, or > lack > >> > :-) > >> > ? i.e. does user "A" have the same password on all machines in the > >> > network? > >> > > >> > Do all the machines belong to the same workgroup? (I'm assuming we > are > >> > talking Peer To Peer networking here). > >> > > >> > Checked the firewall? > >> > > >> > I lack of the hassle is because the new box has XP home and not XP > pro. > >> > Here > >> > are a few links to check up on > >> > > >> > http://www.practicallynetworked.com/sharing/xp/addxp.htm > >> > http://www.wown.info/j_helmig/guidshrh.htm > >> > > >> > http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare > >> .m > >> > spx > >> > > >> > Lambert > >> > > >> >> -----Original Message----- > >> >> From: accessd-bounces at databaseadvisors.com > >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > >> >> Smolin - > >> >> Beach Access Software > >> >> Sent: Wednesday, March 23, 2005 2:11 PM > >> >> To: AccessD at databaseadvisors.com > >> >> Subject: [AccessD] Windows Printer Sharing Question > >> >> > >> >> > >> >> ----- Original Message ----- > >> >> From: Rocky Smolin - Beach Access Software > >> >> To: dba-tech > >> >> Sent: Wednesday, March 23, 2005 7:19 AM > >> >> Subject: Windows Printer Sharing Question > >> >> > >> >> > >> >> I am implementing my new machine - Hal9004. It came with Win XP > Home. > >> >> > >> >> My current development machine is Hal9002 with WIN XP Pro. > >> >> The backup development machine is Hal9001 - Windows 2000. > >> >> Hal9001 has the shared printer hooked to it. > >> >> > >> >> When I start Hal9001 it prompts me for user name and password to > which > >> I > >> >> simply press enter. User name is Administrator with no password. > >> >> > >> >> Hal9002 has no problem printing through Hal9001. > >> >> > >> >> But the new box - Hal9004 requires that I connect to Hal9001 before > it > >> >> will 'see' the printer. I go to network neighborhood on Hal9004, > >> >> click > >> > >> >> on > >> >> Hal9001's shared drive C, put in the user name Administrator and no > >> >> password, and everything's fine - I can print from Hal9004 through > the > >> >> network printer on Hal9001. > >> >> > >> >> Of course, this is a PITA and I'd like Hal9004 to see the network > >> printer > >> >> without having to do this connecting trick just like it's older > >> >> brother > >> >> Hal9002.. > >> >> > >> >> BTW, all the drives are shared. > >> >> > >> >> Any ideas how to fix this? > >> >> > >> >> MTIA, > >> >> > >> >> Rocky Smolin > >> >> Beach Access Software > >> >> http://www.e-z-mrp.com > >> >> 858-259-4334 > >> >> -- > >> >> AccessD mailing list > >> >> AccessD at databaseadvisors.com > >> >> http://databaseadvisors.com/mailman/listinfo/accessd > >> >> Website: http://www.databaseadvisors.com > >> > -- > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> > > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 24 09:44:22 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:44:22 -0800 Subject: [AccessD] Re: Windows Printer Sharing Question Message-ID: <00de01c53088$59bb4da0$6f01a8c0@HAL9004> Sent: Thursday, March 24, 2005 7:26 AM Subject: Re: [AccessD] Windows Printer Sharing Question OK. One more idea, maybe someone can give me some input: I've got the Microsoft Action Pack, and I've got 10 licesnes for WXP Pro. Suppose I upgrade the new machine, HAL9004 (no jokes please) to WXP Pro. Might that solve the problem? TIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From bchacc at san.rr.com Thu Mar 24 09:46:04 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 24 Mar 2005 07:46:04 -0800 Subject: [AccessD] Counting Users References: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Message-ID: <00eb01c53088$966f76e0$6f01a8c0@HAL9004> Perhaps Friday we can have a little diversion if people will send in what they've named their computers. Rocky ----- Original Message ----- From: "Foote, Chris" To: "'Access Developers discussion and problem solving'" Sent: Thursday, March 24, 2005 7:31 AM Subject: RE: [AccessD] Counting Users > Good job no one knows that I name my machines after cartoon ducks: Huey, > Dewy, Louie, McScrooge, Daisy, etc. > > Chris Foote > >> -----Original Message----- >> From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >> Sent: Thursday, March 24, 2005 3:25 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Counting Users >> >> >> (Deep sigh). This is almost as bad as the smart aleck >> responses I got to my >> question about the network computer. Just because I name my >> computers >> HAL9000, HAL9001, HAL9002, etc... > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jmhla at earthlink.net Thu Mar 24 09:52:54 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 24 Mar 2005 07:52:54 -0800 Subject: [AccessD] Counting Users In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Message-ID: <200503241552.j2OFqoi22700@databaseadvisors.com> That's a real Mickey mouse system ; ) Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: Thursday, March 24, 2005 7:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 24, 2005 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > (Deep sigh). This is almost as bad as the smart aleck > responses I got to my > question about the network computer. Just because I name my > computers > HAL9000, HAL9001, HAL9002, etc... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Mar 24 09:57:30 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 24 Mar 2005 10:57:30 -0500 Subject: [AccessD] Counting Users In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C64D@ntscxch1.int.rdel.co.uk> Message-ID: <20050324155731.HNPV2394.imf20aec.mail.bellsouth.net@SUSANONE> I named my husband's system SusansToo... He was not amused. Susan H. Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. From ssharkins at bellsouth.net Thu Mar 24 09:57:31 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 24 Mar 2005 10:57:31 -0500 Subject: [AccessD] Counting Users In-Reply-To: <001301c53082$798afa00$697aa8c0@ColbyM6805> Message-ID: <20050324155738.HNRI2394.imf20aec.mail.bellsouth.net@SUSANONE> Lexie just showed me how to subtract using her fist yesterday -- quite extraordinary. I just had to memorize the stuff. ;) Susan H. LOL, you know your are right of course. Using a similar system where you count in binary on the fingers you can get 2^10 (1024) just on the fingers. Hey Rocky, you still with us here? Marty points out that you can count more users than Jet can handle on your own fingers so never mind the counting assistants. And yes, I was smiling too as I hit one particular count. From andy at minstersystems.co.uk Thu Mar 24 09:04:38 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 16:04:38 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050324160434.ECF2E24F29C@smtp.nildram.co.uk> Trying again. Suspect original lost in the melee of binary finger counting. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Dba Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 09:39 > > Sorry, one more question on licensing. If you have a 25-user license for > W2000 server and User A sometimes comes into the office and sometimes runs > from home through TS, am I right in thinking they have to be defined to the > server as two separate users, and therefore take 2 seats? > > Which makes me think about Exchange/Outlook. They'd want to see the same > mail from both points. If the answer to the question above is 'yes' then can > two users share a mailbox? And if they can, is that one Exchange license or > two? > > Sorry, these are horrible questions of detail, but I'm going to need to > know. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From cyx5 at cdc.gov Thu Mar 24 09:48:46 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 24 Mar 2005 10:48:46 -0500 Subject: [AccessD] Counting Users Message-ID: Try renaming "My Computer" to Bill, or something like that. I have had users do this, and when you tell them to open up My Computer they are lost. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris Sent: Thursday, March 24, 2005 10:31 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. Chris Foote > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, March 24, 2005 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Counting Users > > > (Deep sigh). This is almost as bad as the smart aleck > responses I got to my > question about the network computer. Just because I name my > computers > HAL9000, HAL9001, HAL9002, etc... -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tom.bolton at donnslaw.co.uk Thu Mar 24 10:15:01 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 24 Mar 2005 16:15:01 -0000 Subject: [AccessD] Access & Terminal Services Message-ID: <61F915314798D311A2F800A0C9C831880731CAB7@dibble.observatory.donnslaw.co.uk> Sorry Andy, I've run out of wisdom at this point! Good luck anyway, coding for TS certainly sharpens you up a bit... -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: 24 March 2005 15:05 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access & Terminal Services Trying again. Suspect original lost in the melee of binary finger counting. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Dba Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 09:39 > > Sorry, one more question on licensing. If you have a 25-user license for > W2000 server and User A sometimes comes into the office and sometimes runs > from home through TS, am I right in thinking they have to be defined to the > server as two separate users, and therefore take 2 seats? > > Which makes me think about Exchange/Outlook. They'd want to see the same > mail from both points. If the answer to the question above is 'yes' then can > two users share a mailbox? And if they can, is that one Exchange license or > two? > > Sorry, these are horrible questions of detail, but I'm going to need to > know. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From Chris.Foote at uk.thalesgroup.com Thu Mar 24 10:19:35 2005 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 24 Mar 2005 16:19:35 -0000 Subject: [AccessD] OT: Machine names (was "Counting Users") Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C64E@ntscxch1.int.rdel.co.uk> LOL! As it happens, when I had just two machines I named them "Huey" and "Louie" after two of the "Droids" from the movie Silent Running. "Huey" was (and still is) a Hewlett Packard box, and "Louie" was a Laptop. Then came a third machine, naturally "Dewey". Machine number four caused me to fall-back to the "Donald Duck" family. Regards Chris Foote > -----Original Message----- > From: Joe Hecht [mailto:jmhla at earthlink.net] > Sent: Thursday, March 24, 2005 3:53 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Counting Users > > > That's a real Mickey mouse system ; ) > > Joe Hecht > jmhla at earthlink.net > 28g > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Foote, Chris > Sent: Thursday, March 24, 2005 7:31 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Counting Users > > Good job no one knows that I name my machines after cartoon > ducks: Huey, > Dewy, Louie, McScrooge, Daisy, etc. From Gustav at cactus.dk Thu Mar 24 10:27:36 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 24 Mar 2005 17:27:36 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: Hi Andy It was not lost. I just don't have the answer for sure. Even as an MS dealer we call some licensing experts on things like this and this is a public holiday here so nowhere to call. You can easily get burned, and "assume" isn't worth anything here. /gustav >>> andy at minstersystems.co.uk 03/24 4:04 pm >>> Trying again. Suspect original lost in the melee of binary finger counting. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Dba Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 09:39 > Sorry, one more question on licensing. If you have a 25-user license for > W2000 server and User A sometimes comes into the office and sometimes runs > from home through TS, am I right in thinking they have to be defined to the > server as two separate users, and therefore take 2 seats? From andy at minstersystems.co.uk Thu Mar 24 09:53:34 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 24 Mar 2005 16:53:34 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <20050324165330.9E9EB24F0BE@smtp.nildram.co.uk> Ok Tom & Gustav. Thanks for all the help anyway. This may have to go down as a 'not sure'. Have a good Easter everyone. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 16:28 > > Hi Andy > > It was not lost. I just don't have the answer for sure. Even as an MS > dealer we call some licensing experts on things like this and this is a > public holiday here so nowhere to call. > You can easily get burned, and "assume" isn't worth anything here. > > /gustav > > >>> andy at minstersystems.co.uk 03/24 4:04 pm >>> > Trying again. Suspect original lost in the melee of binary finger > counting. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Dba <AccessD at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 24/03/05 09:39 > > > Sorry, one more question on licensing. If you have a 25-user license > for > > W2000 server and User A sometimes comes into the office and sometimes > runs > > from home through TS, am I right in thinking they have to be defined > to the > > server as two separate users, and therefore take 2 seats? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From jwcolby at colbyconsulting.com Thu Mar 24 11:06:43 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 24 Mar 2005 12:06:43 -0500 Subject: [AccessD] Counting Users In-Reply-To: <20050324155731.HNPV2394.imf20aec.mail.bellsouth.net@SUSANONE> Message-ID: <001f01c53093$da5e5c30$697aa8c0@ColbyM6805> rotfl John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, March 24, 2005 10:58 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Counting Users I named my husband's system SusansToo... He was not amused. Susan H. Good job no one knows that I name my machines after cartoon ducks: Huey, Dewy, Louie, McScrooge, Daisy, etc. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Mar 24 13:22:53 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 24 Mar 2005 20:22:53 +0100 Subject: [AccessD] Access & Terminal Services Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5950@stekelbes.ithelps.local> I called MS about this a few weeks ago. A TS user license is dedicated to a pc, not a user. With a 25 TS user clients you can connect 25, always the same, pc's to the TS server. But this is for Windows 2003 server, they changed license policy for TS from Windows 2003 on. With Windows 2000 server TS, all Windows 2000 Pro and Windows XP Pro have a build in TS client License. When using other Windows versions (like Windows XP Home) you need to purchase TS client licenses, which are dedicated to a remote pc (same principal as in W2K3) But a Windowsz XP Home pc has a temporary TS clients license that expires after 30(?) days. Greetz Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Andy Lacey Verzonden: donderdag 24 maart 2005 16:54 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Access & Terminal Services Ok Tom & Gustav. Thanks for all the help anyway. This may have to go down as a 'not sure'. Have a good Easter everyone. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access & Terminal Services Date: 24/03/05 16:28 > > Hi Andy > > It was not lost. I just don't have the answer for sure. Even as an MS > dealer we call some licensing experts on things like this and this is > a public holiday here so nowhere to call. > You can easily get burned, and "assume" isn't worth anything here. > > /gustav > > >>> andy at minstersystems.co.uk 03/24 4:04 pm >>> > Trying again. Suspect original lost in the melee of binary finger > counting. > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > <accessd at databaseadvisors.com> > To: Dba <AccessD at databaseadvisors.com> > Subject: RE: [AccessD] Access & Terminal Services > Date: 24/03/05 09:39 > > > Sorry, one more question on licensing. If you have a 25-user > license for > W2000 server and User A sometimes comes into the > office and sometimes runs > from home through TS, am I right in > thinking they have to be defined to the > server as two separate > users, and therefore take 2 seats? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Thu Mar 24 14:57:30 2005 From: jmhla at earthlink.net (Joe Hecht) Date: Thu, 24 Mar 2005 12:57:30 -0800 Subject: [AccessD] I do not understand this In-Reply-To: <200503241526.j2OFQWi15077@databaseadvisors.com> Message-ID: <002d01c530b4$190bafd0$6701a8c0@laptop1> It is confirmed. They must be hidden controls on the report. Thanks Guys, will be able to go to sleep much earlier tonight. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Thursday, March 24, 2005 7:27 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] I do not understand this Andy and AD I think found the problem I think. They are source data and not controls. Will fix that and try again. Thanks Joe Hecht jmhla at earthlink.net 28g -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, March 24, 2005 5:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I do not understand this Or could it be that smpleSizeAll is only in the Report's source data and not an actual control? For a report it needs to be on the report even if hidden. -- Andy Lacey http://www.minstersystems.co.uk e: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Mar 25 09:38:32 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 25 Mar 2005 07:38:32 -0800 Subject: [AccessD] Windows Printer Sharing Question References: <1D7828CDB8350747AFE9D69E0E90DA1F073A2EA4@xlivmbx21.aig.com> Message-ID: <00e001c53150$b3636ef0$6f01a8c0@HAL9004> Lambert: Well, a bit premature to celebrate. HAL9001 no longer asks for a login. But the first time I try to copy a file from HAL9004 to HAL9001 I get the login prompt on HAL9004 - Administrator with no password and I'm in. Back to the drawing board... Any more good ideas? Thanks and regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Heenan, Lambert" To: "'Rocky Smolin - Beach Access Software'" Sent: Thursday, March 24, 2005 9:28 AM Subject: RE: [AccessD] Windows Printer Sharing Question > You're welcome. But keep those machines locked up! :-) > > Lambert > >> -----Original Message----- >> From: Rocky Smolin - Beach Access Software [SMTP:bchacc at san.rr.com] >> Sent: Thursday, March 24, 2005 11:44 AM >> To: Heenan, Lambert >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> Lambert: >> >> Pure genius! Not only did the login screen go away on HAL9001, but >> HAL9004 >> now gets access to HAL9001 without having to login! >> >> Many, many thanks. >> >> Regards, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> >> ----- Original Message ----- >> From: "Heenan, Lambert" >> To: "'Rocky Smolin - Beach Access Software'" ; >> "Heenan, >> >> Lambert" >> Sent: Thursday, March 24, 2005 8:00 AM >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> > You'll need to run the Network Identification Wizard again. One of >> > first >> > question is asks you is do users need to sign in. Answer 'No' and the >> > login >> > prompt goes away. >> > >> > The effect of this is that the Administrator is automatically logged in >> - >> > with whatever password was assigned to the account - when the machine >> > is >> > powered up. >> > >> > In XP right-click My Computer, select Properties and then choose the >> > 'Computer Name' tab. There you click on the 'Network ID' button. It's >> > similar in Windows 2000. >> > >> > I take it that these machines are locked up where prying eyes cannot >> > get >> >> > to >> > them! And if any of the machines is connected to the internet I hope >> > you >> > have a good firewall to keep prying hackers at bay too. >> > >> > Lambert >> > >> >> -----Original Message----- >> >> From: Rocky Smolin - Beach Access Software [SMTP:bchacc at san.rr.com] >> >> Sent: Thursday, March 24, 2005 10:48 AM >> >> To: Heenan, Lambert >> >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> >> >> Lambert, >> >> >> >> The problem is that there is no user or password prompted on the WIN >> >> XP >> >> systems. And if I can avoid it I will. >> >> >> >> I didn't use to have the prompt on the WIN2K box until some notwork >> >> guy >> >> tried to fix a problem for me and ended up triggering that. It's >> >> annoying. >> >> The best fix for me would be to get rid of the prompt on the WIN2K box >> >> but >> >> I >> >> don't know how to do that. >> >> >> >> Regards, >> >> >> >> Rocky Smolin >> >> Beach Access Software >> >> http://www.e-z-mrp.com >> >> 858-259-4334 >> >> >> >> ----- Original Message ----- >> >> From: "Heenan, Lambert" >> >> To: "'Access Developers discussion and problem solving'" >> >> ; "'Rocky Smolin - Beach Access >> Software'" >> >> >> >> Sent: Thursday, March 24, 2005 7:43 AM >> >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> > Rocky, >> >> > >> >> > Re "Lambert (sorry, missed the comma):" - not a problem, just the >> >> > way my Exchange server does things. >> >> > >> >> > Upgrade to XP Pro? Could fix the trouble, but I'd try >> >> > 'synchronizing' >> >> the >> >> > passwords first to see if that fixes it. >> >> > >> >> > Lambert >> >> > >> >> >> -----Original Message----- >> >> >> From: accessd-bounces at databaseadvisors.com >> >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >> Smolin - >> >> >> Beach Access Software >> >> >> Sent: Thursday, March 24, 2005 10:31 AM >> >> >> To: Access Developers discussion and problem solving >> >> >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> Lambert (sorry, missed the comma): >> >> >> >> >> >> Curiously, I do not have the problem on HAL9002 which is WINXP Pro. >> >> >> It >> >> >> connects just fine to the printer on HAL9001. >> >> >> >> >> >> I just sent a post about this wondering if I upgrade HAL9004 to >> WINXP >> >> Pro >> >> >> would that solve the problem? What do you think? >> >> >> >> >> >> TIA, >> >> >> >> >> >> Rocky >> >> >> >> >> >> ----- Original Message ----- >> >> >> From: "Heenan, Lambert" >> >> >> To: "'Access Developers discussion and problem solving'" >> >> >> ; "'Rocky Smolin - Beach Access >> >> Software'" >> >> >> >> >> >> Sent: Thursday, March 24, 2005 7:10 AM >> >> >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >I think that may be the problem then. In Peer-To-Peer networks, >> >> >> >all >> >> the >> >> >> > accounts on all the machines must have the same password. To put >> >> >> > that >> >> >> more >> >> >> > clearly: "Administrator" must have the same password on each >> >> >> > machine, >> >> >> "Jo >> >> >> > User" must have the same password on each machine, etc. etc. >> >> >> > >> >> >> > Lambert (Heenan is my last name) >> >> >> > >> >> >> >> -----Original Message----- >> >> >> >> From: accessd-bounces at databaseadvisors.com >> >> >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> >> >> >> Smolin - >> >> >> >> Beach Access Software >> >> >> >> Sent: Wednesday, March 23, 2005 3:50 PM >> >> >> >> To: Access Developers discussion and problem solving >> >> >> >> Subject: Re: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> Heenan: >> >> >> >> >> >> >> >> The only account on the three machines that gets prompted is >> >> >> >> Administrator >> >> >> >> >> >> >> >> on Hal9001. And that one, as I say, doesn't have a password. >> >> >> >> >> >> >> >> They all belong to the same workgroup. >> >> >> >> >> >> >> >> I'll check you links to see if they can enlighten me. But, as I >> >> say, >> >> >> the >> >> >> >> XP >> >> >> >> Pro machine doesn't have any problem printing to the network >> >> >> >> printer >> >> >> >> without >> >> >> >> connecting to the printer's computer first. >> >> >> >> >> >> >> >> (Yes, BTW, peer-to-peer) >> >> >> >> >> >> >> >> Regards, >> >> >> >> >> >> >> >> is >> >> >> >> >> >> >> >> ----- Original Message ----- >> >> >> >> From: "Heenan, Lambert" >> >> >> >> To: "'Access Developers discussion and problem solving'" >> >> >> >> ; "'Rocky Smolin - Beach Access >> >> >> Software'" >> >> >> >> >> >> >> >> Sent: Wednesday, March 23, 2005 12:26 PM >> >> >> >> Subject: RE: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >> >> >> > Leaving aside the issue of an administrator account with no >> >> password >> >> >> >> > (!!!??)... >> >> >> >> > >> >> >> >> > Do ALL the accounts on all the machines have the same >> >> >> >> > password, >> >> >> >> >> > or >> >> >> lack >> >> >> >> > :-) >> >> >> >> > ? i.e. does user "A" have the same password on all machines in >> >> >> >> > the >> >> >> >> > network? >> >> >> >> > >> >> >> >> > Do all the machines belong to the same workgroup? (I'm >> >> >> >> > assuming >> >> >> >> >> > we >> >> >> are >> >> >> >> > talking Peer To Peer networking here). >> >> >> >> > >> >> >> >> > Checked the firewall? >> >> >> >> > >> >> >> >> > I lack of the hassle is because the new box has XP home and >> >> >> >> > not >> >> >> >> >> > XP >> >> >> pro. >> >> >> >> > Here >> >> >> >> > are a few links to check up on >> >> >> >> > >> >> >> >> > http://www.practicallynetworked.com/sharing/xp/addxp.htm >> >> >> >> > http://www.wown.info/j_helmig/guidshrh.htm >> >> >> >> > >> >> >> >> >> >> >> >> >> >> http://www.microsoft.com/windowsxp/using/networking/learnmore/printershare >> >> >> >> .m >> >> >> >> > spx >> >> >> >> > >> >> >> >> > Lambert >> >> >> >> > >> >> >> >> >> -----Original Message----- >> >> >> >> >> From: accessd-bounces at databaseadvisors.com >> >> >> >> >> [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of >> >> >> >> >> Rocky >> >> >> >> >> Smolin - >> >> >> >> >> Beach Access Software >> >> >> >> >> Sent: Wednesday, March 23, 2005 2:11 PM >> >> >> >> >> To: AccessD at databaseadvisors.com >> >> >> >> >> Subject: [AccessD] Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ----- Original Message ----- >> >> >> >> >> From: Rocky Smolin - Beach Access Software >> >> >> >> >> To: dba-tech >> >> >> >> >> Sent: Wednesday, March 23, 2005 7:19 AM >> >> >> >> >> Subject: Windows Printer Sharing Question >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> I am implementing my new machine - Hal9004. It came with Win >> XP >> >> >> Home. >> >> >> >> >> >> >> >> >> >> My current development machine is Hal9002 with WIN XP Pro. >> >> >> >> >> The backup development machine is Hal9001 - Windows 2000. >> >> >> >> >> Hal9001 has the shared printer hooked to it. >> >> >> >> >> >> >> >> >> >> When I start Hal9001 it prompts me for user name and password >> to >> >> >> which >> >> >> >> I >> >> >> >> >> simply press enter. User name is Administrator with no >> >> >> >> >> password. >> >> >> >> >> >> >> >> >> >> Hal9002 has no problem printing through Hal9001. >> >> >> >> >> >> >> >> >> >> But the new box - Hal9004 requires that I connect to Hal9001 >> >> before >> >> >> it >> >> >> >> >> will 'see' the printer. I go to network neighborhood on >> >> >> >> >> Hal9004, >> >> >> >> >> click >> >> >> >> >> >> >> >> >> on >> >> >> >> >> Hal9001's shared drive C, put in the user name Administrator >> and >> >> no >> >> >> >> >> password, and everything's fine - I can print from Hal9004 >> >> through >> >> >> the >> >> >> >> >> network printer on Hal9001. >> >> >> >> >> >> >> >> >> >> Of course, this is a PITA and I'd like Hal9004 to see the >> >> >> >> >> network >> >> >> >> printer >> >> >> >> >> without having to do this connecting trick just like it's >> older >> >> >> >> >> brother >> >> >> >> >> Hal9002.. >> >> >> >> >> >> >> >> >> >> BTW, all the drives are shared. >> >> >> >> >> >> >> >> >> >> Any ideas how to fix this? >> >> >> >> >> >> >> >> >> >> MTIA, >> >> >> >> >> >> >> >> >> >> Rocky Smolin >> >> >> >> >> Beach Access Software >> >> >> >> >> http://www.e-z-mrp.com >> >> >> >> >> 858-259-4334 >> >> >> >> >> -- >> >> >> >> >> AccessD mailing list >> >> >> >> >> AccessD at databaseadvisors.com >> >> >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> >> >> Website: http://www.databaseadvisors.com >> >> >> >> > -- >> >> >> >> > AccessD mailing list >> >> >> >> > AccessD at databaseadvisors.com >> >> >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> >> > Website: http://www.databaseadvisors.com >> >> >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> AccessD mailing list >> >> >> >> AccessD at databaseadvisors.com >> >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> >> Website: http://www.databaseadvisors.com >> >> >> > -- >> >> >> > AccessD mailing list >> >> >> > AccessD at databaseadvisors.com >> >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> > Website: http://www.databaseadvisors.com >> >> >> > >> >> >> >> >> >> >> >> >> -- >> >> >> AccessD mailing list >> >> >> AccessD at databaseadvisors.com >> >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> >> Website: http://www.databaseadvisors.com >> >> > >> >> >> > >> > From JHewson at karta.com Fri Mar 25 10:43:39 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 25 Mar 2005 10:43:39 -0600 Subject: [AccessD] OutputTo problem Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From dw-murphy at cox.net Fri Mar 25 10:47:23 2005 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 25 Mar 2005 08:47:23 -0800 Subject: [AccessD] OutputTo problem In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: <000401c5315a$5483f940$c300a8c0@murphyf3vdfepi> What version of access? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From dw-murphy at cox.net Fri Mar 25 10:49:32 2005 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 25 Mar 2005 08:49:32 -0800 Subject: [AccessD] OutputTo problem In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: <000501c5315a$a1820e80$c300a8c0@murphyf3vdfepi> Duh, didn't read the first line obviously. I had a similar problem in 97 but that was due to Snap shot not being part of the basic product, it was introduced in a service pack. Sorry about the noise. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From jeffrey.demulling at usbank.com Fri Mar 25 10:50:53 2005 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 25 Mar 2005 10:50:53 -0600 Subject: [AccessD] OutputTo problem In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: You might want to do a msgbox "Corporate Top List - " & Date & ".snp" to see the exact file name being created. It probably has some characters ie "\" that is causing the error. You will probably need to format the date to get rid of the "\"s. Jeffrey F. Demulling U.S. Bank Corporate Trust Services 60 Livingston Avenue EP-MN-WS3C St. Paul, MN 55107-2292 Ph: 651-495-3925 Fax: 651-495-8103 email: jeffrey.demulling at usbank.com "Jim Hewson" To Sent by: "AccessD" accessd-bounces at d atabaseadvisors.c cc om Subject [AccessD] OutputTo problem 03/25/2005 10:43 AM Please respond to "Access Developers discussion and problem solving" Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------------------------------------------------------ Electronic Privacy Notice. This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is also confidential and proprietary in nature. If you are not the intended recipient, please be advised that you are legally prohibited from retaining, using, copying, distributing, or otherwise disclosing this information in any manner. Instead, please reply to the sender that you have received this communication in error, and then immediately delete it. Thank you in advance for your cooperation. ============================================================================== From JHewson at karta.com Fri Mar 25 10:52:42 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 25 Mar 2005 10:52:42 -0600 Subject: [AccessD] OutputTo problem Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068ED2@karta-exc-int.Karta.com> Access 2000 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Friday, March 25, 2005 10:47 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OutputTo problem What version of access? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Mar 25 10:53:20 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 25 Mar 2005 08:53:20 -0800 Subject: [AccessD] OutputTo problem Message-ID: The date function is going to return a short date, complete with delimiters. If those delimiters happen to be slashes, or worse backslashes, it causes problems. If you format the date result as "ddmmyyyy", or some such, it should work. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim From JHewson at karta.com Fri Mar 25 11:05:35 2005 From: JHewson at karta.com (Jim Hewson) Date: Fri, 25 Mar 2005 11:05:35 -0600 Subject: [AccessD] OutputTo problem Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068ED3@karta-exc-int.Karta.com> Jeffrey and Charlotte Thank you. I did reformat the date to exclude the standard hash marks. It works now. But I'm still stumped as to why it quit working in the first place. Or why did it work before? I'm not going to spend any more time on this... Thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, March 25, 2005 10:53 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OutputTo problem The date function is going to return a short date, complete with delimiters. If those delimiters happen to be slashes, or worse backslashes, it causes problems. If you format the date result as "ddmmyyyy", or some such, it should work. Charlotte Foust -----Original Message----- From: Jim Hewson [mailto:JHewson at karta.com] Sent: Friday, March 25, 2005 8:44 AM To: AccessD Subject: [AccessD] OutputTo problem Access 2000, Snapshot Viewer. For the last several months, the code has been working properly for several users. In the last couple of days a few of the users (including myself) get an error message that reads: "The report snapshot was not created because you do not have enough free disk space for temporary work files." MS Knowledge Base indicates the problem is associated by one of three factors. 1. No file name: the parameters for OutPutTo indicates there is no need for a file name. When I take out the file to output to it works. 2. Invalid characters - none present. 3. Path specified does not exist - I'm using the default path (My Documents). Help files indicates that if a file is named with no path the default path is used. That is what I have been using. Below is the code line. DoCmd.OutputTo acReport, "rptCorporateTopList", acFormatSNP, "Corporate Top List - " & Date & ".snp", True If I take out the date, it works. If I remove the Output to file name, it works. I checked references, they all seem to be there. Why is the date function not working? Why is this not working? TIA Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Mar 25 15:21:34 2005 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 25 Mar 2005 21:21:34 +0000 Subject: [AccessD] Output text file--HELP In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C02068ED1@karta-exc-int.Karta.com> Message-ID: Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte From dwaters at usinternet.com Fri Mar 25 15:51:42 2005 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 25 Mar 2005 15:51:42 -0600 Subject: [AccessD] Output text file--HELP In-Reply-To: <25047187.1111786014802.JavaMail.root@sniper14> Message-ID: <000501c53184$d4eb9460$123a11d8@danwaters> Mark, As you are looping though, can you force the zip code to be a string by using CStr(rst!ZipCode)? Dan Waters ProMation Systems, Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 25, 2005 3:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Output text file--HELP Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Mar 25 15:57:46 2005 From: pharold at proftesting.com (Perry Harold) Date: Fri, 25 Mar 2005 16:57:46 -0500 Subject: [AccessD] Output text file--HELP In-Reply-To: Message-ID: <000b01c53185$af3143e0$192da8c0@D58BT131Perry> Mark How about? (AirWare just for ideas.) Dim sLine as string Open DB Open Tbl Open XX.txt for output as #X If not .bof then .movefirst While not .eof sLine=sLine & str(fZip) 'use format "00000" if have any less than length 5 .movenext Sline=sline & "," loop Wend Print #X, sline Close #X Close tbl Close DB end -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 25, 2005 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Output text file--HELP Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Christian.Brock at hoffman.army.mil Fri Mar 25 16:25:03 2005 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria/NGIT) Date: Fri, 25 Mar 2005 17:25:03 -0500 Subject: [AccessD] Output text file--HELP Message-ID: <5484A9115CF75C4B8B501C417325BA3101A0E523@ahrcb1us9340> Make Sline a variant and you can use one line for the concatenation and avoid a comma at the end since concatenating two expressions together using + where one is null gives you a null. Dim vLine as variant vLine = Null While not .eof vLine=vLine + "," & str(fZip) .movenext vLine=vLine + "," & str(fZip) Christian Brock -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold Sent: Friday, 25 March 2005 16:58 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Output text file--HELP Mark How about? (AirWare just for ideas.) Dim sLine as string Open DB Open Tbl Open XX.txt for output as #X If not .bof then .movefirst While not .eof sLine=sLine & str(fZip) 'use format "00000" if have any less than length 5 .movenext Sline=sline & "," loop Wend Print #X, sline Close #X Close tbl Close DB end -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, March 25, 2005 4:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Output text file--HELP Hello All, Of course its Friday...I have a table with one field...its a zip code...I need all records in the field to be in a string. I know its not that hard...but the brain isn;t working right. I want to output the following: Record Zip 1 55555 2 54879 3 12345 I need a string( preferable in a text document) like "55555,54879,12345" I thought this would be a simple loop through the recordset and output to a .txt file...but I cant seem to figure it out. Best approaches? Thanks, Mark A. Matte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Sat Mar 26 21:26:34 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Sun, 27 Mar 2005 13:26:34 +1000 Subject: [AccessD] Trouble with SQL statement on two difefrent machines Message-ID: Hi All, I am havinbg an issue with a function and could use some fresh eyes and knowledge. Both machines are running Access97 SR2. On my machine the function works fine, on the users machine it falls over. We are accessing the database from a central location. Function as follows: Private Function getstrNextAuthorityNumber() As String 'Automatically select the next availaible Authority Number for this type of Authority On Error GoTo Failure Dim dbNextAuthority As Database Dim rsNextAuthority As Recordset Dim intNextAuthorityNumber As Integer Dim strSelect As String strSelect = "SELECT tblCAuthorityType.AuthorityPrefix, Max(Right([AuthorityNumber],5)) AS [Number] " & _ "FROM tblCAuthorityType RIGHT JOIN tblDAuthority ON tblCAuthorityType.AuthorityTypeID = tblDAuthority.AuthorityType " & _ "GROUP BY tblCAuthorityType.AuthorityPrefix " & _ "HAVING (((tblCAuthorityType.AuthorityPrefix)=getgstrAuthorityPrefix()));" On Error Resume Next Set dbNextAuthority = CurrentDb() Set rsNextAuthority = dbNextAuthority.OpenRecordset(strSelect, dbOpenSnapshot, dbFailOnError) If rsNextAuthority.RecordCount < 1 Then 'No records - this will not actually be used. intNextAuthorityNumber = 1 'Initial Authority Number for each type Else intNextAuthorityNumber = rsNextAuthority!Number + 1 'Increment last Authority Number by 1 End If 'rsNextAuthorityNumber.RecordCount = 0 getstrNextAuthorityNumber = getgstrAuthorityPrefix() & Right("0000" & Trim(Str(intNextAuthorityNumber)), 5) ExitRoutine: On Error Resume Next rsNextAuthority.Close Set rsNextAuthority = Nothing dbNextAuthority.Close Set dbNextAuthority = Nothing Exit Function Failure: Call ErrorHandler(lngErrorNumber:=Err.Number, strErrorDescription:=Err.Description, strErrorSource:=Err.Source) Resume ExitRoutine End Function This fails at the bold line, on my machine it takes the SQL statement in strSelect and goes to the getgstrAuthorityPrefix() function as defined on the end, returning a value. On the users machine it goes straight to the next line and misses the call to getgstrAuthorityPrefix() altogether returning a Bliock Obejct variable not set. This is code written by my predecessor. All ideas appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From connie.kamrowski at agric.nsw.gov.au Sat Mar 26 22:29:30 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Sun, 27 Mar 2005 14:29:30 +1000 Subject: [AccessD] Trouble with SQL statement on two different machines (sans typo) Message-ID: Further to my previous post I have ascertained that it is actually having trouble with the Max(Right([AuthorityNumber],5)) AS [Number] Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From mikedorism at adelphia.net Sat Mar 26 22:31:32 2005 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Sat, 26 Mar 2005 23:31:32 -0500 Subject: [AccessD] Trouble with SQL statement on two difefrent machines In-Reply-To: Message-ID: <000001c53285$dc4907e0$0b08a845@hargrove.internal> Could it be an MDAC issue? I notice you don't specifically reference whether you are using DAO or ADO when you declare your databases and recordsets. Your computer may have the latest version but theirs may not. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Saturday, March 26, 2005 10:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Trouble with SQL statement on two difefrent machines Hi All, I am havinbg an issue with a function and could use some fresh eyes and knowledge. Both machines are running Access97 SR2. On my machine the function works fine, on the users machine it falls over. We are accessing the database from a central location. Function as follows: Private Function getstrNextAuthorityNumber() As String 'Automatically select the next availaible Authority Number for this type of Authority On Error GoTo Failure Dim dbNextAuthority As Database Dim rsNextAuthority As Recordset Dim intNextAuthorityNumber As Integer Dim strSelect As String strSelect = "SELECT tblCAuthorityType.AuthorityPrefix, Max(Right([AuthorityNumber],5)) AS [Number] " & _ "FROM tblCAuthorityType RIGHT JOIN tblDAuthority ON tblCAuthorityType.AuthorityTypeID = tblDAuthority.AuthorityType " & _ "GROUP BY tblCAuthorityType.AuthorityPrefix " & _ "HAVING (((tblCAuthorityType.AuthorityPrefix)=getgstrAuthorityPrefix()));" On Error Resume Next Set dbNextAuthority = CurrentDb() Set rsNextAuthority = dbNextAuthority.OpenRecordset(strSelect, dbOpenSnapshot, dbFailOnError) If rsNextAuthority.RecordCount < 1 Then 'No records - this will not actually be used. intNextAuthorityNumber = 1 'Initial Authority Number for each type Else intNextAuthorityNumber = rsNextAuthority!Number + 1 'Increment last Authority Number by 1 End If 'rsNextAuthorityNumber.RecordCount = 0 getstrNextAuthorityNumber = getgstrAuthorityPrefix() & Right("0000" & Trim(Str(intNextAuthorityNumber)), 5) ExitRoutine: On Error Resume Next rsNextAuthority.Close Set rsNextAuthority = Nothing dbNextAuthority.Close Set dbNextAuthority = Nothing Exit Function Failure: Call ErrorHandler(lngErrorNumber:=Err.Number, strErrorDescription:=Err.Description, strErrorSource:=Err.Source) Resume ExitRoutine End Function This fails at the bold line, on my machine it takes the SQL statement in strSelect and goes to the getgstrAuthorityPrefix() function as defined on the end, returning a value. On the users machine it goes straight to the next line and misses the call to getgstrAuthorityPrefix() altogether returning a Bliock Obejct variable not set. This is code written by my predecessor. All ideas appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Mar 27 02:22:19 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 27 Mar 2005 10:22:19 +0200 Subject: [AccessD] Trouble with SQL statement on two different machines(sans typo) Message-ID: Hi Connie That looks like a missing reference. At the user's machine, press Ctrl+G, choose Tools, References, and check if any reference is marked MISSING. If so, this must be corrected. /gustav >>> connie.kamrowski at agric.nsw.gov.au 03/27 6:29 am >>> Further to my previous post I have ascertained that it is actually having trouble with the Max(Right([AuthorityNumber],5)) AS [Number] Connie Kamrowski From martyconnelly at shaw.ca Sun Mar 27 09:35:15 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 27 Mar 2005 07:35:15 -0800 Subject: [AccessD] Office 12 Speculation References: Message-ID: <4246D2B3.2060203@shaw.ca> I have seen speculative schedules for Office 12 on a French European website for what is worth. Office 12 release schedule (internal documentation: October 2004) Office 12 M1 (milestone 1) integration: July 26, 2004 Office 12 M2 final code check-in: November 29, 2004 Office 12 M3 final code check-in: April 18, 2005 Office 12 code complete: June 27, 2005 Office 12 Beta 1: September 26, 2005 Office 12 Beta 2: December 19, 2005 Office 12 Beta 3: March 13, 2006 Office 12 RTM: May 22, 2006 >-- >Marty Connelly >Victoria, B.C. >Canada > > From artful at rogers.com Mon Mar 28 10:47:09 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 28 Mar 2005 11:47:09 -0500 Subject: [AccessD] Need help with a combobox issue In-Reply-To: <123701F54509D9119A4F00D0B747349016D1D3@main2.marlow.com> References: <123701F54509D9119A4F00D0B747349016D1D3@main2.marlow.com> Message-ID: <4248350D.3040903@rogers.com> I agree with you on the usefulness of UNION queries, and just want to add one comment which really has little to do with this thread, but concerns maximizing the utility of UNION queries. I commonly see in other people's code such column names as ServiceName, ProductName, etc. I never name columns in this way. Instead I call both columns Name, and distinguish them with the tableName prefix: Services.Name and Products.Name. That way UNIONs are effortless, while the tableName prefix sidesteps ambiguity. My $.02. :) Arthur. DWUTKA at marlow.com wrote: >Glad to help. Gotta love those UNION querries, they make life soooo much >easier! > >Drew > > > From artful at rogers.com Mon Mar 28 11:09:02 2005 From: artful at rogers.com (Arthur Fuller) Date: Mon, 28 Mar 2005 12:09:02 -0500 Subject: [AccessD] The Polyp Problem In-Reply-To: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> References: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> Message-ID: <42483A2E.5020006@rogers.com> The hardest thing to learn in the contracting business is how and when to fire a customer. Eventually we all learn how to fire an unproductive employee or subcontractor, and no matter how distasteful we find it, we plod on anyway. Learning to fire a customer is much more difficult, because we are tied up in the notion that customers = revenue. Let me offer a lesson taught to me by a master painter (i.e. house painter with papers) that I once worked with. He said, "Let the stupid painters do the one-bedroom apartments." To expand upon his concise statement, "If you're busy painting the one-bedroom apartments, you'll never be available for the mansion-makeovers; and worse, your resume will make it look like you're unqualified for the mansion-makeovers." He was so skilled that he didn't even bother to put painting clothes on. He NEVER spilt paint. He NEVER got any paint on himself. He could cut a window frame without tape. Thanks to him, I can do it too (but I never mention this to my friends, otherwise I'd be dragged into painting their houses on my weekends LOL). Out of the story and back to the theme: as contractors, we MUST learn which customers create profitable experiences and which create headaches -- and then to act upon that information and fire the latter group. Let the stupid contractors have all the nightmares! Arthur Andy Lacey wrote: >In any case they sound like all-too familiar sort of customer. At some point you have to decide on what YOU want to do next. Are they a customer worth having for the future? I doubt it but if yes, you'll probably have to grit your teeth and keep asking nicely for your money. If not then you are going to have to stop them doing what they're doing, i.e. taking advantage. At some point you just have to say that you are doing no more work and no more support until you have been paid. And having said it you have to stick to it. The first time they really need you, and you won't go, they will suddenly find it perfectly easy to raise a cheque. It's not hard. The only time it's actually hard is if they have no money - and if that's the case bail out. > From cfoust at infostatsystems.com Mon Mar 28 11:12:37 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 28 Mar 2005 09:12:37 -0800 Subject: [AccessD] Need help with a combobox issue Message-ID: The problem with that practice is that Services.Name in other circumstances will return the name of the Services table, not a reference to a column in Services. It might work or not, depending on the situation, and it's virtually guaranteed to bite you somewhere along the way. In general it is NOT a good idea to use names that are already built in as function names or properties. Name and Date are two examples of that. Charlotte Foust -----Original Message----- From: Arthur Fuller [mailto:artful at rogers.com] Sent: Monday, March 28, 2005 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Need help with a combobox issue I agree with you on the usefulness of UNION queries, and just want to add one comment which really has little to do with this thread, but concerns maximizing the utility of UNION queries. I commonly see in other people's code such column names as ServiceName, ProductName, etc. I never name columns in this way. Instead I call both columns Name, and distinguish them with the tableName prefix: Services.Name and Products.Name. That way UNIONs are effortless, while the tableName prefix sidesteps ambiguity. My $.02. :) Arthur. DWUTKA at marlow.com wrote: >Glad to help. Gotta love those UNION querries, they make life soooo >much easier! > >Drew > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Mar 28 11:48:14 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 28 Mar 2005 12:48:14 -0500 Subject: [AccessD] The Polyp Problem In-Reply-To: <42483A2E.5020006@rogers.com> Message-ID: <20050328174815.KWNN2468.imf23aec.mail.bellsouth.net@SUSANONE> Out of the story and back to the theme: as contractors, we MUST learn which customers create profitable experiences and which create headaches -- and then to act upon that information and fire the latter group. Let the stupid contractors have all the nightmares! ===========Arthur -- good lesson and one I'm currently working through myself. I guess it's the tax season or something, but I realized that I've not had a raise in 6 years. Publishers pay me what they want, not what I demand -- and this is typical of the business. There's just nothing I can really do about it. But, what I can do is stop working for the publishers that pay the least, and that's what I'm working on now -- phasing these guys out. Of course, that means I have to find publishers that pay more -- can't dump the baby's bath yet. And there's always the possibility that once I'm unavailable they may cough up more money, but it is unlikely. The business just doesn't work like that unless you're top cheese. Susan H. From marcus at tsstech.com Mon Mar 28 12:33:42 2005 From: marcus at tsstech.com (Scott Marcus) Date: Mon, 28 Mar 2005 13:33:42 -0500 Subject: [AccessD] Trouble with SQL statement on two different machines(sans typo) Message-ID: Did you check your references on the users machine vs. your machine? Scott Marcus TSS Technologies, Inc. marcus at tsstech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Saturday, March 26, 2005 11:30 PM To: accessd at databaseadvisors.com Subject: [AccessD] Trouble with SQL statement on two different machines(sans typo) Further to my previous post I have ascertained that it is actually having trouble with the Max(Right([AuthorityNumber],5)) AS [Number] Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjewett at bayplace.com Mon Mar 28 12:47:19 2005 From: pjewett at bayplace.com (Phil Jewett) Date: Mon, 28 Mar 2005 10:47:19 -0800 Subject: [AccessD] DB job in Washington DC area Message-ID: I have a lead for an Access to SQL Server conversion/update job in the DC area for a non-profit organization; if interested, let me know. (I am in San Diego). Phil Jewett Phil Jewett Consulting pjewett at bayplace.com (619 318-4899 From donald.a.Mcgillivray at mail.sprint.com Mon Mar 28 13:11:31 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Mon, 28 Mar 2005 13:11:31 -0600 Subject: [AccessD] Permissions to 'MSysTables' object Message-ID: Hello, All I have some code that sets the SQL property of a query's QueryDef. When I run the code as the system admin, all's well. If another user - without admin rights on the db - runs the code, they get the error: "3033 You do not have the necessary permissions to use the 'MSysTables' object. Have your system administrator or the person who created this object establish the appropriate permissions for you." I've searched the db window (yes, I made system objects visible) but I cannot see any such object in the db. I've searched the front end, the back end, and the related db workgroup file. I see MSysAccessObjects, MSysAccessXML, MSysACEs, MSysObjects, MSysQueries, and MSysRelationships, but no MSysTables. I'm using Access XP on Windows 2000. Maybe somebody can point me in the right direction here. Thanks! Don From accessd at shaw.ca Mon Mar 28 16:13:40 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 28 Mar 2005 14:13:40 -0800 Subject: [AccessD] The Polyp Problem In-Reply-To: <42483A2E.5020006@rogers.com> Message-ID: <0IE30037K1QO7G@l-daemon> Very well said Arthur. "NEVER got any paint on himself." Now try that with a roller or spay gun... you are exaggerating slightly on that one. So the next time you are in Victoria could you come over and help with some perpetual house painting that seem to always going on at our abode. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, March 28, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] The Polyp Problem The hardest thing to learn in the contracting business is how and when to fire a customer. Eventually we all learn how to fire an unproductive employee or subcontractor, and no matter how distasteful we find it, we plod on anyway. Learning to fire a customer is much more difficult, because we are tied up in the notion that customers = revenue. Let me offer a lesson taught to me by a master painter (i.e. house painter with papers) that I once worked with. He said, "Let the stupid painters do the one-bedroom apartments." To expand upon his concise statement, "If you're busy painting the one-bedroom apartments, you'll never be available for the mansion-makeovers; and worse, your resume will make it look like you're unqualified for the mansion-makeovers." He was so skilled that he didn't even bother to put painting clothes on. He NEVER spilt paint. He NEVER got any paint on himself. He could cut a window frame without tape. Thanks to him, I can do it too (but I never mention this to my friends, otherwise I'd be dragged into painting their houses on my weekends LOL). Out of the story and back to the theme: as contractors, we MUST learn which customers create profitable experiences and which create headaches -- and then to act upon that information and fire the latter group. Let the stupid contractors have all the nightmares! Arthur Andy Lacey wrote: >In any case they sound like all-too familiar sort of customer. At some point you have to decide on what YOU want to do next. Are they a customer worth having for the future? I doubt it but if yes, you'll probably have to grit your teeth and keep asking nicely for your money. If not then you are going to have to stop them doing what they're doing, i.e. taking advantage. At some point you just have to say that you are doing no more work and no more support until you have been paid. And having said it you have to stick to it. The first time they really need you, and you won't go, they will suddenly find it perfectly easy to raise a cheque. It's not hard. The only time it's actually hard is if they have no money - and if that's the case bail out. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Mon Mar 28 17:19:08 2005 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Don [ITS]) Date: Mon, 28 Mar 2005 17:19:08 -0600 Subject: [AccessD] Permissions to 'MSysTables' object - SOLVED Message-ID: Never mind. I gave the users "modify" permissions to the queries in question and that seems to have worked. Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mcgillivray, Don [ITS] Sent: Monday, March 28, 2005 11:12 AM To: AccessD Subject: [AccessD] Permissions to 'MSysTables' object Hello, All I have some code that sets the SQL property of a query's QueryDef. When I run the code as the system admin, all's well. If another user - without admin rights on the db - runs the code, they get the error: "3033 You do not have the necessary permissions to use the 'MSysTables' object. Have your system administrator or the person who created this object establish the appropriate permissions for you." I've searched the db window (yes, I made system objects visible) but I cannot see any such object in the db. I've searched the front end, the back end, and the related db workgroup file. I see MSysAccessObjects, MSysAccessXML, MSysACEs, MSysObjects, MSysQueries, and MSysRelationships, but no MSysTables. I'm using Access XP on Windows 2000. Maybe somebody can point me in the right direction here. Thanks! Don -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Mon Mar 28 19:14:27 2005 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Tue, 29 Mar 2005 11:14:27 +1000 Subject: [AccessD] Re: Trouble with SQL statemnent on two different machines Message-ID: All references are OK, and are the same versions of libraries etc. on both, I have now put the database into a sagekey runtime and included self register of the dll's and it works fine on the users machine. I do not understand why. I guess I will keep this as a question to ponder and go on with the changes.Terribly frustrating though. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From pcs at azizaz.com Mon Mar 28 21:49:46 2005 From: pcs at azizaz.com (Borge Hansen) Date: Tue, 29 Mar 2005 13:49:46 +1000 Subject: [AccessD] OT: Paste files to CD Drive retaining file properties References: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> <42483A2E.5020006@rogers.com> Message-ID: <107d01c53412$59d5b2c0$fa10a8c0@Albatross> A quick OT : Using Win XP Professional. Everytime I copy folders and files (using win explorer) from harddrive to CD the date and time of the folder and file properties change to today. How do I keep date and time of the copied items as per the source? Regards borge From vrm at tim-cms.com Tue Mar 29 04:05:19 2005 From: vrm at tim-cms.com (Marcel Vreuls) Date: Tue, 29 Mar 2005 12:05:19 +0200 Subject: [AccessD] Resize troubles In-Reply-To: <2A261FF9D5EBCA46940C11688CE872EE03ABEA@goexchange2.pghcorning.com> Message-ID: <200503290505421.SM04068@ORSLAPTOP> Hi all, I have tried to get the resize possibilities to get to work in our a2k database. All forms are designed in 800x600. In the on form open event I put in: Set frmResize = ADHResize2K.CreateFormResize() Set frmResize.Form = Me Call frmResize.SetDesignCoords(800, 600, 96, 96) This is all conform the manual delivered with the ADH (with references and declarations). At this moment I do not have any time to go one with this and have to find out how to do this with popup forms. So I commented the code so it is not active. Then the stranges things happened. When I open a form which has orginaly had the resize code all buttons are jumping arround the forms and buttons from the previous form are also visible on the open form but do not work :-). When I resize the accesswindow just 1 mm the form redraws and shows good. I have already imported everything in a new database and tried the msaccess.exe /decompile Any suggestions??tips or other good working ways to get the resize forms work ok also with popupforms Kind Regards, Marcel From jimdettman at earthlink.net Tue Mar 29 05:57:26 2005 From: jimdettman at earthlink.net (Jim Dettman) Date: Tue, 29 Mar 2005 06:57:26 -0500 Subject: [AccessD] Trouble with SQL statement on two difefrent machines In-Reply-To: Message-ID: Connie, Is tblCAuthorityType and ODBC linked table? If so, then ODBC drivers come into play and you most likely have two different driver versions between the machines. If not, you've covered most everything else. Only other thing I can think of is that you might want to try using /decompile on the DB, then try again on the problem machines (make sure you do this on a backup copy). Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of connie.kamrowski at agric.nsw.gov.au Sent: Saturday, March 26, 2005 10:27 PM To: accessd at databaseadvisors.com Subject: [AccessD] Trouble with SQL statement on two difefrent machines Hi All, I am havinbg an issue with a function and could use some fresh eyes and knowledge. Both machines are running Access97 SR2. On my machine the function works fine, on the users machine it falls over. We are accessing the database from a central location. Function as follows: Private Function getstrNextAuthorityNumber() As String 'Automatically select the next availaible Authority Number for this type of Authority On Error GoTo Failure Dim dbNextAuthority As Database Dim rsNextAuthority As Recordset Dim intNextAuthorityNumber As Integer Dim strSelect As String strSelect = "SELECT tblCAuthorityType.AuthorityPrefix, Max(Right([AuthorityNumber],5)) AS [Number] " & _ "FROM tblCAuthorityType RIGHT JOIN tblDAuthority ON tblCAuthorityType.AuthorityTypeID = tblDAuthority.AuthorityType " & _ "GROUP BY tblCAuthorityType.AuthorityPrefix " & _ "HAVING (((tblCAuthorityType.AuthorityPrefix)=getgstrAuthorityPrefix()));" On Error Resume Next Set dbNextAuthority = CurrentDb() Set rsNextAuthority = dbNextAuthority.OpenRecordset(strSelect, dbOpenSnapshot, dbFailOnError) If rsNextAuthority.RecordCount < 1 Then 'No records - this will not actually be used. intNextAuthorityNumber = 1 'Initial Authority Number for each type Else intNextAuthorityNumber = rsNextAuthority!Number + 1 'Increment last Authority Number by 1 End If 'rsNextAuthorityNumber.RecordCount = 0 getstrNextAuthorityNumber = getgstrAuthorityPrefix() & Right("0000" & Trim(Str(intNextAuthorityNumber)), 5) ExitRoutine: On Error Resume Next rsNextAuthority.Close Set rsNextAuthority = Nothing dbNextAuthority.Close Set dbNextAuthority = Nothing Exit Function Failure: Call ErrorHandler(lngErrorNumber:=Err.Number, strErrorDescription:=Err.Description, strErrorSource:=Err.Source) Resume ExitRoutine End Function This fails at the bold line, on my machine it takes the SQL statement in strSelect and goes to the getgstrAuthorityPrefix() function as defined on the end, returning a value. On the users machine it goes straight to the next line and misses the call to getgstrAuthorityPrefix() altogether returning a Bliock Obejct variable not set. This is code written by my predecessor. All ideas appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Department of Primary Industries Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kwilliam at ashlandnet.com Tue Mar 29 08:11:00 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Tue, 29 Mar 2005 09:11:00 -0500 Subject: [AccessD] Query Line Numbers In-Reply-To: <3bf43ee9050321082175e434ef@mail.gmail.com> Message-ID: <000e01c53469$23225470$64aba8c0@ashlandnet.com> This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 From Erwin.Craps at ithelps.be Tue Mar 29 08:28:02 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 29 Mar 2005 16:28:02 +0200 Subject: [AccessD] Query Line Numbers Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B596B@stekelbes.ithelps.local> Code below will do the tric You use this function in a query but mus give a field (any field) in the parameters to trick access. The function presumes that the query takes less then 10 seconds. When using from vba i'ts safer to first first use the reset parameter before using the function. It stores a static variable that is reset by the reset command or by a 10second timeout. Greetz Function HitCounter(varDummy As Variant, Optional blnReset As Boolean) As Long ' Comments : ' Parameters: pvarDummy ' pfBlnReset - ' Returns : Long - ' Modified : ' ' -------------------------------------------------- 'TVCodeTools ErrorEnablerStart On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Static lngHitCounter As Long Static dteLastRun As Date If blnReset = True Then lngHitCounter = 0 Exit Function End If If DateDiff("s", dteLastRun, Now()) > 10 Then lngHitCounter = 0 End If lngHitCounter = lngHitCounter + 1 HitCounter = lngHitCounter dteLastRun = Now() 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Function PROC_ERR: Select Case Err Case Else MsgBox Err.Description Resume PROC_EXIT End Select 'TVCodeTools ErrorHandlerEnd End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, March 29, 2005 4:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query Line Numbers This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 29 08:38:21 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 29 Mar 2005 16:38:21 +0200 Subject: [AccessD] Query Line Numbers Message-ID: Hi Keith We use this/these functions for a similar task: Option Compare Database Option Explicit Public lngKeyCounter As Long Public Function NextKey_Get( _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set( _ Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function /gustav >>> kwilliam at ashlandnet.com 03/29 4:11 pm >>> This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 From kwilliam at ashlandnet.com Tue Mar 29 08:48:25 2005 From: kwilliam at ashlandnet.com (Keith Williamson) Date: Tue, 29 Mar 2005 09:48:25 -0500 Subject: [AccessD] Query Line Numbers In-Reply-To: Message-ID: <000f01c5346e$60ca6150$64aba8c0@ashlandnet.com> Thanks, guys. I'll give these a try!! :) Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, March 29, 2005 9:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Query Line Numbers Hi Keith We use this/these functions for a similar task: Option Compare Database Option Explicit Public lngKeyCounter As Long Public Function NextKey_Get( _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal intInitial As Integer) As Long ' Increments dynamic public (global) variable lngKeyCounter with intIncrement. ' Returns the new value of global variable lngKeyCounter. ' Parameter varDummy is used to force repeated calls of this function when used in a query. Dim intSgn As Integer If Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngKeyCounter < intSgn * intInitial Then lngKeyCounter = intInitial Else lngKeyCounter = lngKeyCounter + intIncrement End If End If NextKey_Get = lngKeyCounter End Function Public Function NextKey_Set( _ Optional ByVal lngSet As Long) As Long ' Sets dynamic public (global) variable lngKeyCounter to value of lngSet. ' Retrieves current value of lngKeyCounter. NextKey_Set = lngKeyCounter lngKeyCounter = lngSet End Function /gustav >>> kwilliam at ashlandnet.com 03/29 4:11 pm >>> This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Mar 29 09:11:37 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 29 Mar 2005 17:11:37 +0200 Subject: [AccessD] Query Line Numbers Message-ID: Hi Keith Also, if you should ever need to browse these row numbers: Public Function RowCounter( _ ByVal strKey As String, _ ByVal booReset As Boolean) As Long ' Builds consecutive RowIDs in select, append or create query ' with the possibility of automatic reset. ' ' Usage (typical select query): ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter(CStr([ID]),False) <> RowCounter("",True)); ' ' The Where statement resets the counter when the query is run ' and is needed for browsing a select query. ' ' Usage (typical append query, manual reset): ' 1. Reset counter manually: ' Call RowCounter(vbNullString, False) ' 2. Run query: ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable; ' ' Usage (typical append query, automatic reset): ' INSERT INTO tblTemp ( RowID ) ' SELECT RowCounter(CStr([ID]),False) AS RowID, * ' FROM tblSomeTable ' WHERE (RowCounter("",True)=0); ' ' 2002-04-13. Cactus Data ApS. CPH ' 2002-09-09. Str() sometimes fails. Replaced with CStr(). Static col As New Collection On Error GoTo Err_RowCounter If booReset = True Then Set col = Nothing Else col.Add Str(col.Count + 1), strKey End If RowCounter = col(strKey) Exit_RowCounter: Exit Function Err_RowCounter: Select Case Err Case 457 ' Key is present. Resume Next Case Else ' Some other error. Resume Exit_RowCounter End Select End Function /gustav >>> kwilliam at ashlandnet.com 03/29 4:48 pm >>> Thanks, guys. I'll give these a try!! From john at winhaven.net Tue Mar 29 10:03:24 2005 From: john at winhaven.net (John Bartow) Date: Tue, 29 Mar 2005 10:03:24 -0600 Subject: [AccessD] Webcast Message-ID: Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John From accessd at shaw.ca Tue Mar 29 10:50:07 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 29 Mar 2005 08:50:07 -0800 Subject: [AccessD] Webcast In-Reply-To: Message-ID: <0IE400CCSHFG59@l-daemon> Hi John: The webcast runs tomorrow. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 8:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Tue Mar 29 11:17:29 2005 From: pharold at proftesting.com (Perry Harold) Date: Tue, 29 Mar 2005 12:17:29 -0500 Subject: [AccessD] Webcast In-Reply-To: Message-ID: <000001c53483$2fb18390$192da8c0@D58BT131Perry> Yes - After I deleted the ad.doubleclick address it defaulted to before the real address. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 11:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Mar 29 11:27:32 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 29 Mar 2005 09:27:32 -0800 Subject: [AccessD] OT: Paste files to CD Drive retaining file properties References: <20050120163554.165B72BB0EE@smtp.nildram.co.uk> <42483A2E.5020006@rogers.com> <107d01c53412$59d5b2c0$fa10a8c0@Albatross> Message-ID: <42499004.606@shaw.ca> If you use a burning App like Nero, there is an option to maintain the original file date timestamp. CD files only carry a Date Modified and a Date Created. I have never tried a Move Folder or file to a CD rather than a copy to see if retains the datestamp but then you are left with no original copy. Borge Hansen wrote: >A quick OT : > >Using Win XP Professional. >Everytime I copy folders and files (using win explorer) from harddrive to CD >the date and time of the folder and file properties change to today. > >How do I keep date and time of the copied items as per the source? > >Regards >borge > > > > -- Marty Connelly Victoria, B.C. Canada From john at winhaven.net Tue Mar 29 11:35:28 2005 From: john at winhaven.net (John Bartow) Date: Tue, 29 Mar 2005 11:35:28 -0600 Subject: [AccessD] Webcast In-Reply-To: <000001c53483$2fb18390$192da8c0@D58BT131Perry> Message-ID: Yes, unfortunately there is little in life that is really free :o( John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold Sent: Tuesday, March 29, 2005 11:17 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Webcast Yes - After I deleted the ad.doubleclick address it defaulted to before the real address. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 11:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Mar 29 11:35:28 2005 From: john at winhaven.net (John Bartow) Date: Tue, 29 Mar 2005 11:35:28 -0600 Subject: [AccessD] Webcast In-Reply-To: <0IE400CCSHFG59@l-daemon> Message-ID: Doh! Its nice to get notified ahead of time but with a webcast? Thnaks for the heads up! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, March 29, 2005 10:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Webcast Hi John: The webcast runs tomorrow. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, March 29, 2005 8:03 AM To: _DBA-Access Subject: [AccessD] Webcast Can anyone else get this to work? VBA and other developers will want to check out this week's upcoming "What's new in Visual Studio 2005 Tools for the Microsoft Office System for VB developers?" webcast. http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Tue Mar 29 12:13:32 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 29 Mar 2005 13:13:32 -0500 Subject: [AccessD] OT: Paste files to CD Drive retaining file properti es Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2EC9@xlivmbx21.aig.com> With EasyCD Creator (I'm using ver. 5.3.5) the *default* behavior is to preserve the original file dates. To change the default go to the File menu and select CD Project Properties, in the resulting dialog box choose the File System tab, and there you will find a group of radio buttons controlling the file dates. Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Borge Hansen > Sent: Monday, March 28, 2005 10:50 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Paste files to CD Drive retaining file > properties > > A quick OT : > > Using Win XP Professional. > Everytime I copy folders and files (using win explorer) from harddrive to > CD > the date and time of the folder and file properties change to today. > > How do I keep date and time of the copied items as per the source? > > Regards > borge > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Tue Mar 29 12:37:25 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 29 Mar 2005 13:37:25 -0500 Subject: [AccessD] Dynamic number of rows on a report Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1D1@mercury.tnco-inc.com> Hi All, I am creating a report that needs to dynamically repeat the detail section. The report will be an inspection plan that is included in our shop orders. The number of "rows" on the report would be dependent on the shop order quantity. I was thinking that one way to do this would be to dynamically create a table that has the correct number of rows in it so that the detail section of the report would repeat accordingly. The part that I'm stuck on is how to create this table. I guess I could calculate the number of rows needed and insert the rows into the table by looping through some code, but I was wondering if there is a more direct way, maybe using SQL, to do this? Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From GregSmith at starband.net Tue Mar 29 14:29:10 2005 From: GregSmith at starband.net (GregSmith at starband.net) Date: Tue, 29 Mar 2005 15:29:10 -0500 (EST) Subject: [AccessD] Webcast In-Reply-To: References: <000001c53483$2fb18390$192da8c0@D58BT131Perry> Message-ID: <43346.170.206.250.90.1112128150.squirrel@cetus.email.starband.net> Worked for me too. Even went there using my laptop over my cell phone! NOT going to watch it that way though...lol Greg > Yes, unfortunately there is little in life that is really free :o( > > > John B. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry Harold > Sent: Tuesday, March 29, 2005 11:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Webcast > > Yes - After I deleted the ad.doubleclick address it defaulted to before > the real address. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Tuesday, March 29, 2005 11:03 AM > To: _DBA-Access > Subject: [AccessD] Webcast > > > Can anyone else get this to work? > > > > VBA and other developers will want to check out this week's upcoming > "What's new in Visual Studio 2005 Tools for the Microsoft Office System > for VB developers?" webcast. > > > http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft > > > > John > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Mar 29 15:00:15 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 29 Mar 2005 13:00:15 -0800 Subject: [AccessD] Dynamic number of rows on a report Message-ID: You need to create a group on the shop orders. That will repeat the detail section appropriately for each order. Charlotte Foust -----Original Message----- From: Joe Rojas [mailto:JRojas at tnco-inc.com] Sent: Tuesday, March 29, 2005 10:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Dynamic number of rows on a report Hi All, I am creating a report that needs to dynamically repeat the detail section. The report will be an inspection plan that is included in our shop orders. The number of "rows" on the report would be dependent on the shop order quantity. I was thinking that one way to do this would be to dynamically create a table that has the correct number of rows in it so that the detail section of the report would repeat accordingly. The part that I'm stuck on is how to create this table. I guess I could calculate the number of rows needed and insert the rows into the table by looping through some code, but I was wondering if there is a more direct way, maybe using SQL, to do this? Any ideas? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tom.bolton at donnslaw.co.uk Wed Mar 30 03:56:00 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Wed, 30 Mar 2005 10:56:00 +0100 Subject: [AccessD] FW: RE: A2k2 treeview scroll to selected node? Message-ID: <61F915314798D311A2F800A0C9C831880731CABE@dibble.observatory.donnslaw.co.uk> Hi All Just wondering if anyone had any ideas on this one? MTIA Tom -----Original Message----- Hi all Here's a good one... I have a treeview on a form that contains a node for each user; there are enough of these to force the treeview control into having a vertical scrollbar. When the app starts, the treeview defaults to the current user's node which sometimes is down at the bottom out of sight. Can I programatically get the control to scroll down a bit so the user can see their folder straight away even if it's down the bottom? MTIA and happy Easter! Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From viner at EUnet.yu Wed Mar 30 06:46:23 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Wed, 30 Mar 2005 14:46:23 +0200 Subject: [AccessD] Match the spouse Message-ID: <004801c53526$875c4e10$0100a8c0@RazvojErvin> Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin From roz.clarke at donnslaw.co.uk Wed Mar 30 06:58:31 2005 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Wed, 30 Mar 2005 13:58:31 +0100 Subject: [AccessD] Match the spouse Message-ID: <61F915314798D311A2F800A0C9C8318807225778@dibble.observatory.donnslaw.co.uk> I can't think of any very elegant way of doing it :/ I think I would just add a SpouseID field to your workers table and link to the spouse's record. To avoid duplicating children you would then have to make sure to add the spouse first, then run a routine to identify whether the spouse record has child records, and if so, disable the ability to add children, instead offer to display them (with the spouse's record as parent so that new ones can be added there). -----Original Message----- From: Ervin Brindza [mailto:viner at eunet.yu] Sent: 30 March 2005 13:46 To: AccessD at databaseadvisors.com Subject: [AccessD] Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From JHewson at karta.com Wed Mar 30 07:12:15 2005 From: JHewson at karta.com (Jim Hewson) Date: Wed, 30 Mar 2005 07:12:15 -0600 Subject: [AccessD] Match the spouse Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068EE7@karta-exc-int.Karta.com> I think I would add a table. A M-M to the employees and kids tables. tblEmployees EmployeeID (PK) EmployeeID (FK) reference back to same table for Spouse Name of Employee tblEmployeeKids EmployeeID (FK) KidsID (FK) tblKids KidsID (PK) When looking at an employee's record, the spouse and kids are visible. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza Sent: Wednesday, March 30, 2005 6:46 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Wed Mar 30 07:20:50 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 30 Mar 2005 08:20:50 -0500 Subject: [AccessD] Replicated .mdb and SQL Server Message-ID: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". Thanks, Barb Ryan From jwcolby at colbyconsulting.com Wed Mar 30 07:28:12 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 30 Mar 2005 08:28:12 -0500 Subject: [AccessD] Match the spouse In-Reply-To: <004801c53526$875c4e10$0100a8c0@RazvojErvin> Message-ID: <002001c5352c$55ceb350$697aa8c0@ColbyM6805> This requires a many to many table Employeeid RelationID RelationshipTypeID John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Ervin Brindza Sent: Wednesday, March 30, 2005 7:46 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Mar 30 07:44:40 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 30 Mar 2005 08:44:40 -0500 Subject: [AccessD] Match the spouse In-Reply-To: <004801c53526$875c4e10$0100a8c0@RazvojErvin> Message-ID: <20050330134439.HWQA2051.imf18aec.mail.bellsouth.net@SUSANONE> So, the problem is which employee is the family anchor, right? Self join to the spouse pk. Lots of records will be empty of course, but the alternative would be a new table and I'm not sure that's really necessary. Susan H. Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Mar 30 08:03:22 2005 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 30 Mar 2005 15:03:22 +0100 Subject: [AccessD] Match the spouse Message-ID: <20050330140319.904B4251125@smtp.nildram.co.uk> Assuming, that is, a monogamous workforce. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Match the spouse Date: 30/03/05 13:46 > > So, the problem is which employee is the family anchor, right? > > Self join to the spouse pk. Lots of records will be empty of course, but the > alternative would be a new table and I'm not sure that's really necessary. > > Susan H. > > Cross posted > Hi, > I have to modify the design of my human resources database (workers in the > factory) to add a feature to match the spouse if the spouse works here too. > And it would be great too to avoid duplicationg the kids records, which are > in separate table in one to many relation with the main table. > Are there any suggestions? > Many TIA, > Ervin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From barbara.march at surveyrisk.co.uk Wed Mar 30 08:51:08 2005 From: barbara.march at surveyrisk.co.uk (Barbara March) Date: Wed, 30 Mar 2005 15:51:08 +0100 Subject: [AccessD] Task Request: Message-ID: <002401c53537$ea351d30$0200a8c0@barbara> Status: Not Started Percent Complete: 0% Total Work: 0 hours Actual Work: 0 hours Owner: Accessd (E-mail) From barbara.march at surveyrisk.co.uk Wed Mar 30 08:51:42 2005 From: barbara.march at surveyrisk.co.uk (Barbara March) Date: Wed, 30 Mar 2005 15:51:42 +0100 Subject: [AccessD] Task Request: Message-ID: <002901c53537$fc786830$0200a8c0@barbara> Status: Not Started Percent Complete: 0% Total Work: 0 hours Actual Work: 0 hours Owner: Accessd (E-mail) From ssharkins at bellsouth.net Wed Mar 30 09:06:15 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 30 Mar 2005 10:06:15 -0500 Subject: [AccessD] Match the spouse In-Reply-To: <20050330140319.904B4251125@smtp.nildram.co.uk> Message-ID: <20050330150614.MZMU2549.imf25aec.mail.bellsouth.net@SUSANONE> Talk about your relational nightmare! AHAHAHAHAAHAHAHAHAHA Susan H. Assuming, that is, a monogamous workforce. From ldoering at symphonyinfo.com Wed Mar 30 09:15:12 2005 From: ldoering at symphonyinfo.com (Liz Doering) Date: Wed, 30 Mar 2005 09:15:12 -0600 Subject: [AccessD] Match the spouse Message-ID: <855499653F55AD4190B242717DF132BC04F279@dewey.Symphony.local> For our social service applications (food shelves, family violence and the like), we use a household table which includes the address, and a person table including a FK to HouseholdID. This allows as many people as they like to live at the same address, without anyone having to ask any awkward questions. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Wednesday, March 30, 2005 8:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Match the spouse Assuming, that is, a monogamous workforce. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Match the spouse Date: 30/03/05 13:46 > > So, the problem is which employee is the family anchor, right? > > Self join to the spouse pk. Lots of records will be empty of course, but the > alternative would be a new table and I'm not sure that's really necessary. > > Susan H. > > Cross posted > Hi, > I have to modify the design of my human resources database (workers in the > factory) to add a feature to match the spouse if the spouse works here too. > And it would be great too to avoid duplicationg the kids records, which are > in separate table in one to many relation with the main table. > Are there any suggestions? > Many TIA, > Ervin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Mar 30 09:22:21 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 30 Mar 2005 17:22:21 +0200 Subject: [AccessD] Weird stuff with off-line folders and database speed. Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B5970@stekelbes.ithelps.local> I have a weird thing gooing on over here (and it's not a virus). Since a couple of days I notice that most of my databases are pretty slow. When opening a form it builds the screen in 3 or 4 pieces. It seems to hang an instant on the combo boxes when it has to catch data. So I started to pin-point where the delay is caused. So I deactivated my virusscanner and it was instantly faster... I hear some "aha yes thats the virusscanner on MDB files" coming my way, but wait until I finished explaining. My McAfee (Enterprise V8.01i) scanner is configured to exclude MDB, MDE, MDB, MDW and LDB files, from the status window I can see that these files are not scanned (neither on my notebook nor server). But I do notice the scanner is scanning the file 00000001 in the Windows\CSC folder about 130 times while opening the form. I know that the CSC folder is the folder where the files from off-line folders reside. All pretty logical until now. Both my access front and back end reside on the server and are NOT in a folder that is not synchronised. Infact only some website (development) stuff is synchronised. So i ask myself, Why is windows opening that file 130 times when opening a form, while my database is not in a synchronised folder? The database folder is however located in the same share. for example My database is in \\SERVER\APPL\database and some folders are set off-line like this \\SERVER\APPL\folderx \\SERVER\APPL\foldery \\SERVER\APPL\folderz When i turn off off-line folders my speed is normal. So now I can exclude extension less files from virusscanning or maybe the whole CSC folder. That will limit the lost time while virusscanning but the file 00000001 will still be opened 130 time when opening a form. Maybe this will ring any bells with other people that experianced slow downs on opening forms. Erwin Craps Zaakvoerder www.ithelps.be/onsgezin This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From JOHNWARDBELL at aol.com Wed Mar 30 09:25:14 2005 From: JOHNWARDBELL at aol.com (JOHNWARDBELL at aol.com) Date: Wed, 30 Mar 2005 10:25:14 EST Subject: [AccessD] Dynamic number of rows on a report Message-ID: <140.41497ab4.2f7c1eda@aol.com> Hi Is using subreports too obvious or am I missing something. jwb From JRojas at tnco-inc.com Wed Mar 30 10:08:57 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 30 Mar 2005 11:08:57 -0500 Subject: [AccessD] Dynamic number of rows on a report Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1D7@mercury.tnco-inc.com> I think I may have been unclear in my description of my problem. The need to display a dynamic number of "rows" on my report is to provide space on the report for people to manually write in the information by hand. My table that holds the information for the measurements to be check for a particular part looks like this: PartNumber, Attribute, DeviceUsed So if there were only one attribute to check for a particular part number, the table would contain a row that looks like: 32-5500 ?.250 ? .005 DC Now the problem is, if the shop order is for part number 32-5500 and the order quantity is 50 then I would need to display 50 "lines" on the report for the operator to fill in their measurements. By "lines" I mean boxed in areas for provide a space on the report for the operator to write in. What I have now is an empty label with a solid border in the detail section of the report. I was trying to think of a way that would allow the number of "lines" that are printed on the report to be dynamic and dependent on the order quantity that is entered prior to printing the report. My original idea was to insert blank lines into a table prior to opening the report. The report will use this table so that the detail section will "repeat" for each blank line in the table. In essence, giving the correct number of lines need for that particular report. I was wondering if anyone had a better idea. Thanks, JR -----Original Message----- From: JOHNWARDBELL at aol.com [mailto:JOHNWARDBELL at aol.com] Sent: Wednesday, March 30, 2005 10:25 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Dynamic number of rows on a report Hi Is using subreports too obvious or am I missing something. jwb -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From stuart at lexacorp.com.pg Wed Mar 30 11:06:54 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 03:06:54 +1000 Subject: [AccessD] Dynamic number of rows on a report In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A1D7@mercury.tnco-inc.com> Message-ID: <424B694E.22338.267B03EC@stuart.lexacorp.com.pg> On 30 Mar 2005 at 11:08, Joe Rojas wrote: > I was trying to think of a way that would allow the number of "lines" that > are printed on the report to be dynamic and dependent on the order quantity > that is entered prior to printing the report. > You can do exactly that in the Format event Here's an example. Following is written on the fly and may need a bit of debugging: Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer) Dim loopcount As Long 'Following parameters are in twips (1/1440 inches) Dim lngLineEnd as Long 'Twips to end of line Dim lngMargin as Long 'Left margin of lines Dim lngStartY as Long ' height of Detail section before first line Dim lngSpacing as Long ' space between lines lngStartY = 1440 ' 1 inch lngLineEnd = 8640 ' 6 inch lngMargin = 1440 ' 1 inch lngSpacing = 360 ' 1/4 inch 'reset the length of the detail section Detail.Height = lngStartY + lngSpacing * OrderQty 'Draw the lines lngYCoord = lngStartY For loopcount = 1 To OrderQty lngYCoord = lngYCoord + lngSpacing Line (lngMargin, lngYCoord )-(lngLineEnd, lngYCoord ) Next End Sub -- Stuart From prodevmg at yahoo.com Wed Mar 30 11:20:46 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Wed, 30 Mar 2005 09:20:46 -0800 (PST) Subject: [AccessD] Query Line Numbers In-Reply-To: 6667 Message-ID: <20050330172046.59217.qmail@web20425.mail.yahoo.com> That's cool. I love it. How does putting a field into the function make it work? Just curious. Erwin Craps - IT Helps wrote:Code below will do the tric You use this function in a query but mus give a field (any field) in the parameters to trick access. The function presumes that the query takes less then 10 seconds. When using from vba i'ts safer to first first use the reset parameter before using the function. It stores a static variable that is reset by the reset command or by a 10second timeout. Greetz Function HitCounter(varDummy As Variant, Optional blnReset As Boolean) As Long ' Comments : ' Parameters: pvarDummy ' pfBlnReset - ' Returns : Long - ' Modified : ' ' -------------------------------------------------- 'TVCodeTools ErrorEnablerStart On Error GoTo PROC_ERR 'TVCodeTools ErrorEnablerEnd Static lngHitCounter As Long Static dteLastRun As Date If blnReset = True Then lngHitCounter = 0 Exit Function End If If DateDiff("s", dteLastRun, Now()) > 10 Then lngHitCounter = 0 End If lngHitCounter = lngHitCounter + 1 HitCounter = lngHitCounter dteLastRun = Now() 'TVCodeTools ErrorHandlerStart PROC_EXIT: Exit Function PROC_ERR: Select Case Err Case Else MsgBox Err.Description Resume PROC_EXIT End Select 'TVCodeTools ErrorHandlerEnd End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, March 29, 2005 4:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query Line Numbers This may be an extremely simple thing...and I am just being stupid, but.....is there a way (within a query) to setup an expression that numbers the lines? I can do this simply enough in a report.....but can't think of a way to do this in a query. The reason is I am doing a routine that transfers text to a deliminated text file. This needs to be based on a table or query. I am trying to base this on a query, but need a line number. I can't figure out how to do this within the query. Thanks for any help. Regards, Keith E. Williamson Ashland Equipment, Inc phone # (410) 273-1856 fax # (410) 273-1859 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. From dmcafee at pacbell.net Wed Mar 30 11:24:15 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Wed, 30 Mar 2005 09:24:15 -0800 Subject: [AccessD] RE: Match the spouse In-Reply-To: <004501c53526$82c030b0$0100a8c0@RazvojErvin> Message-ID: I wouldn't worry about matching the spouses. In this day and age, you have ex-spouses, unmarried parents, same sex - unmarried parents and/or legal guardians (Aunt, Uncle, Grandparent...) Instead create a junction table for a many to many relationship. tblEmployee EmployeeID EmployeeName (more fields here) tblChildren ChildID ChildName (more fields here) tblEmpChildJunct EmpChildID (PK) EmployeeID (FK) ChildID (FK) By doing it this way, a quick query can always find one or more employees related to that child. HTH David McAfee -----Original Message----- From: Microsoft Access Database Discussion List [mailto:ACCESS-L at PEACH.EASE.LSOFT.COM]On Behalf Of Ervin Brindza Sent: Wednesday, March 30, 2005 4:40 AM To: ACCESS-L at PEACH.EASE.LSOFT.COM Subject: Match the spouse Cross posted Hi, I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. Are there any suggestions? Many TIA, Ervin -------------------------------------------------------------------------- The ACCESS-L list is hosted on a Windows(R) 2000 Server running L-Soft international's LISTSERV(R) software. For subscription/signoff info and archives, see http://peach.ease.lsoft.com/archives/access-l.html . COPYRIGHT INFO: http://peach.ease.lsoft.com/scripts/wa.exe?SHOWTPL=COPYRIGHT&L=ACCESS-L From john at winhaven.net Wed Mar 30 11:56:37 2005 From: john at winhaven.net (John Bartow) Date: Wed, 30 Mar 2005 11:56:37 -0600 Subject: [AccessD] Webcast In-Reply-To: <43346.170.206.250.90.1112128150.squirrel@cetus.email.starband.net> Message-ID: It works for me now, I guess I must've responded too quickly to the email notice - not something I do very often! John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of GregSmith at starband.net Sent: Tuesday, March 29, 2005 2:29 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Webcast Worked for me too. Even went there using my laptop over my cell phone! NOT going to watch it that way though...lol Greg > Yes, unfortunately there is little in life that is really free :o( > > > John B. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry > Harold > Sent: Tuesday, March 29, 2005 11:17 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Webcast > > Yes - After I deleted the ad.doubleclick address it defaulted to > before the real address. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > Sent: Tuesday, March 29, 2005 11:03 AM > To: _DBA-Access > Subject: [AccessD] Webcast > > > Can anyone else get this to work? > > > > VBA and other developers will want to check out this week's upcoming > "What's new in Visual Studio 2005 Tools for the Microsoft Office > System for VB developers?" webcast. > > > t> > http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft > > > > John > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Wed Mar 30 12:43:48 2005 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 30 Mar 2005 12:43:48 -0600 Subject: [AccessD] Dynamic number of rows on a report In-Reply-To: <0CC84C9461AE6445AD5A602001C41C4B05A1D7@mercury.tnco-inc.com> Message-ID: <007801c53558$69790460$2a3ca8c0@TEXASSYSTEMS.COM> Joe, >I think I may have been unclear in my description of my problem. >The need to display a dynamic number of "rows" on my report is to provide >space on the report for people to manually write in the information by hand. The Access RptSampl.mdb has a solution that might work for you. It involves the Report.NextRecord property. See Access KB 210350: ACC2000: How to Print a Constant Number of Lines Per Group http://support.microsoft.com/default.aspx?scid=kb;en-us;210350&Product=acc The code prints a constant number of lines, but you can easily modify it to print a variable number. -Ken From Lambert.Heenan at AIG.com Wed Mar 30 12:44:19 2005 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 30 Mar 2005 13:44:19 -0500 Subject: [AccessD] Query Line Numbers Message-ID: <1D7828CDB8350747AFE9D69E0E90DA1F073A2ED8@xlivmbx21.aig.com> If Access sees a function call in a query, and there is no query field involved as a parameter to the function, Access 'optimizes' things by calling the function just once when the query is run. When there is a field used as a parameter to the function Access assumes something is being done with the field in the function, and so calls the function once for every record returned by the query. HTH Lambert > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [SMTP:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson > Sent: Wednesday, March 30, 2005 12:21 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Query Line Numbers > > That's cool. I love it. How does putting a field into the function make it > work? Just curious. > > Erwin Craps - IT Helps wrote:Code below will do > the tric > > You use this function in a query but mus give a field (any field) in the > parameters to trick access. > > The function presumes that the query takes less then 10 seconds. > When using from vba i'ts safer to first first use the reset parameter > before using the function. > It stores a static variable that is reset by the reset command or by a > 10second timeout. > > Greetz > > > > Function HitCounter(varDummy As Variant, Optional blnReset As Boolean) > As Long > ' Comments : > ' Parameters: pvarDummy > ' pfBlnReset - > ' Returns : Long - > ' Modified : > ' > ' -------------------------------------------------- > 'TVCodeTools ErrorEnablerStart > On Error GoTo PROC_ERR > 'TVCodeTools ErrorEnablerEnd > > Static lngHitCounter As Long > Static dteLastRun As Date > > > If blnReset = True Then > lngHitCounter = 0 > Exit Function > End If > > If DateDiff("s", dteLastRun, Now()) > 10 Then > lngHitCounter = 0 > End If > > lngHitCounter = lngHitCounter + 1 > HitCounter = lngHitCounter > dteLastRun = Now() > > > 'TVCodeTools ErrorHandlerStart > PROC_EXIT: > Exit Function > > PROC_ERR: > Select Case Err > Case Else > MsgBox Err.Description > Resume PROC_EXIT > End Select > 'TVCodeTools ErrorHandlerEnd > > End Function > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Tuesday, March 29, 2005 4:11 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Query Line Numbers > > This may be an extremely simple thing...and I am just being stupid, > but.....is there a way (within a query) to setup an expression that > numbers the lines? I can do this simply enough in a report.....but > can't think of a way to do this in a query. The reason is I am doing a > routine that transfers text to a deliminated text file. This needs to > be based on a table or query. I am trying to base this on a query, but > need a line number. I can't figure out how to do this within the query. > > Thanks for any help. > > Regards, > > Keith E. Williamson > Ashland Equipment, Inc > phone # (410) 273-1856 > fax # (410) 273-1859 > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Take Yahoo! Mail with you! Get it on your mobile phone. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JHewson at karta.com Wed Mar 30 13:16:58 2005 From: JHewson at karta.com (Jim Hewson) Date: Wed, 30 Mar 2005 13:16:58 -0600 Subject: [AccessD] Access Seminars Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C02068EF0@karta-exc-int.Karta.com> Does anyone know of any Access Seminar/conference being conducted this summer? I know there is one in Las Vegas in June, sponsored by ADVISOR. It's a five day conference titled "Technical Education on Microsoft Software" with four areas of focus: (1) Access/VB/SQL, (2) .Net, (3) SharePoint, and (4) Visual FoxPro. Any others? Thanks, Jim From JRojas at tnco-inc.com Wed Mar 30 13:29:00 2005 From: JRojas at tnco-inc.com (Joe Rojas) Date: Wed, 30 Mar 2005 14:29:00 -0500 Subject: [AccessD] Dynamic number of rows on a report Message-ID: <0CC84C9461AE6445AD5A602001C41C4B05A1DB@mercury.tnco-inc.com> Ah, this will do it! Thanks Ken! -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Wednesday, March 30, 2005 1:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Dynamic number of rows on a report Joe, >I think I may have been unclear in my description of my problem. >The need to display a dynamic number of "rows" on my report is to provide >space on the report for people to manually write in the information by hand. The Access RptSampl.mdb has a solution that might work for you. It involves the Report.NextRecord property. See Access KB 210350: ACC2000: How to Print a Constant Number of Lines Per Group http://support.microsoft.com/default.aspx?scid=kb;en-us;210350&Product=acc The code prints a constant number of lines, but you can easily modify it to print a variable number. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From fhtapia at gmail.com Wed Mar 30 15:23:30 2005 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 30 Mar 2005 13:23:30 -0800 Subject: [AccessD] Webcast In-Reply-To: References: <43346.170.206.250.90.1112128150.squirrel@cetus.email.starband.net> Message-ID: i run firefox w/ the adblock filter list, I had to disable the filter to get it to naviagate to the correct location. On Wed, 30 Mar 2005 11:56:37 -0600, John Bartow wrote: > It works for me now, I guess I must've responded too quickly to the email > notice - not something I do very often! > > > John B. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > GregSmith at starband.net > Sent: Tuesday, March 29, 2005 2:29 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Webcast > > Worked for me too. Even went there using my laptop over my cell phone! > NOT going to watch it that way though...lol > > Greg > > > Yes, unfortunately there is little in life that is really free :o( > > > > > > John B. > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry > > Harold > > Sent: Tuesday, March 29, 2005 11:17 AM > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Webcast > > > > Yes - After I deleted the ad.doubleclick address it defaulted to > > before the real address. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow > > Sent: Tuesday, March 29, 2005 11:03 AM > > To: _DBA-Access > > Subject: [AccessD] Webcast > > > > > > Can anyone else get this to work? > > > > > > > > VBA and other developers will want to check out this week's upcoming > > "What's new in Visual Studio 2005 Tools for the Microsoft Office > > System for VB developers?" webcast. > > > > > > > t> > > http://searchVB.com/r/0,,39437,00.htm?track=NL-150&ad=509345&Microsoft > > > > > > > > John > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- -Francisco http://pcthis.blogspot.com | PC news with out the jargon! http://sqlthis.blogspot.com | Tsql and More... From Mike_Webb at whoopingcrane.org Wed Mar 30 15:31:20 2005 From: Mike_Webb at whoopingcrane.org (Mike Webb) Date: Wed, 30 Mar 2005 15:31:20 -0600 Subject: [AccessD] Problem with hyperlinks from a table or form Message-ID: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: ====================== Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? ====================================================== Michael J. Webb Administrative Assistant/IT Administrator Platte River Whooping Crane Maintenance Trust, Inc. 6611 W. Whooping Crane Dr. Wood River, NE 68883 Office (308) 384-4633 FAX (308) 384-7209 email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org ====================================================== From garykjos at gmail.com Wed Mar 30 16:01:03 2005 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 30 Mar 2005 16:01:03 -0600 Subject: [AccessD] Problem with hyperlinks from a table or form In-Reply-To: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> References: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Message-ID: Hi Mike, Welcome to AccessD! If you try to link to these newly located on the server files does that work? Instead of changing an existing link? Gary Kjos On Wed, 30 Mar 2005 15:31:20 -0600, Mike Webb wrote: > Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: > ====================== > Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice > > I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder > accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. > > I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. > > I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? > > ====================================================== > Michael J. Webb > Administrative Assistant/IT Administrator > Platte River Whooping Crane Maintenance Trust, Inc. > 6611 W. Whooping Crane Dr. > Wood River, NE 68883 > Office (308) 384-4633 FAX (308) 384-7209 > email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org > ====================================================== > > -- > 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 garykjos at gmail.com Wed Mar 30 16:01:03 2005 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 30 Mar 2005 16:01:03 -0600 Subject: [AccessD] Problem with hyperlinks from a table or form In-Reply-To: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> References: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Message-ID: Hi Mike, Welcome to AccessD! If you try to link to these newly located on the server files does that work? Instead of changing an existing link? Gary Kjos On Wed, 30 Mar 2005 15:31:20 -0600, Mike Webb wrote: > Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: > ====================== > Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice > > I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder > accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. > > I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. > > I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? > > ====================================================== > Michael J. Webb > Administrative Assistant/IT Administrator > Platte River Whooping Crane Maintenance Trust, Inc. > 6611 W. Whooping Crane Dr. > Wood River, NE 68883 > Office (308) 384-4633 FAX (308) 384-7209 > email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org > ====================================================== > > -- > 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 martyconnelly at shaw.ca Wed Mar 30 16:10:00 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 30 Mar 2005 14:10:00 -0800 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> Message-ID: <424B23B8.6080706@shaw.ca> I don't know if the Access to SQL upgrade wizard handles replicated databases but here is an unreplicator just in case http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 Do you plan on running replicated SQL server or updating via the internet and SQL Server? Barbara Ryan wrote: >I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. > >The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". > >Thanks, >Barb Ryan > > -- Marty Connelly Victoria, B.C. Canada From BarbaraRyan at cox.net Wed Mar 30 16:21:17 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 30 Mar 2005 17:21:17 -0500 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> <424B23B8.6080706@shaw.ca> Message-ID: <015201c53576$cac2bc20$0a00a8c0@cx470148a> Regarding "Do you plan on running replicated SQL server or updating via the internet and SQL Server?" ---- I don't know! I know very little about SQL Server. I am open to any suggestions on how I can handle this situation (i.e., the Access application (front end) is linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the sole backend database for another Access application that is used by salesmen on their laptops. The front end contains some queries that currently join tables from both Backend "A" AND Backend "B".) Could the salesmen use an Access backend and somehow synchronize it with a SQL Server database? Thanks, Barb Ryan ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 30, 2005 5:10 PM Subject: Re: [AccessD] Replicated .mdb and SQL Server > I don't know if the Access to SQL upgrade wizard handles replicated > databases but here is an unreplicator just in case > http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 > Do you plan on running replicated SQL server or updating via the > internet and SQL Server? > > Barbara Ryan wrote: > > >I currently have an Access application, split into a front end linked to 2 separate back end .mdbs. Backend "A" contains the majority of the data tables for the application; Backend "B" is a replicable database that is also used as the backend database for another Access application that is used by salesmen on their laptops. > > > >The client is considering migrating the data for this application to SQL Server. Any ideas on how to handle this? The front end contains some queries that currently join tables from both Backend "A" AND Backend "B". > > > >Thanks, > >Barb Ryan > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From greggs at msn.com Wed Mar 30 18:07:18 2005 From: greggs at msn.com (Gregg) Date: Wed, 30 Mar 2005 18:07:18 -0600 Subject: [AccessD] Find Label text attached to Text Box References: Message-ID: If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? From stuart at lexacorp.com.pg Wed Mar 30 18:16:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 10:16:17 +1000 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: Message-ID: <424BCDF1.5709.28041F9B@stuart.lexacorp.com.pg> On 30 Mar 2005 at 18:07, Gregg wrote: > If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? > -- Simplest way is to use a standard naming convention for controls such as always name the label the same as the textbox, but with a different prefix. so txtMyFirstTextBox would have a label called lblMyFirstTextBox. Then the label's name will always be "lbl" & mid$(me.name,4). Otherwise you have to step through the controls collection of the form and check all the labels, looking for the one who's "parent" property is txtMyFirstTextBox -- Stuart From dwaters at usinternet.com Wed Mar 30 18:30:53 2005 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 30 Mar 2005 18:30:53 -0600 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: <2738556.1112227739744.JavaMail.root@sniper15> Message-ID: <000001c53588$e6c742d0$123a11d8@danwaters> Gregg, This is an example you can start with. Private Sub LabelExample() On Error GoTo EH Dim stgTextComboBoxName As String Dim stgLabelName As String Dim stgLabelCaption As String Dim ctl As Control For Each ctl In Me.Controls stgTextComboBoxName = ctl.Name If ctl.ControlType = acTextBox Or ctl.ControlType = acComboBox Then stgLabelCaption = ctl.Controls(0).Caption stgLabelName = ctl.Controls(0).Name MsgBox "The Text or ComboBox name is: " & stgTextComboBoxName _ & vbCrLf & vbCrLf _ & "The Label name is: " & stgLabelName _ & vbCrLf & vbCrLf _ & "The Label caption is: " & stgLabelCaption End If Next Exit Sub EH: End Sub Dan Waters ProMation Systems, Inc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gregg Sent: Wednesday, March 30, 2005 6:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Find Label text attached to Text Box If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Wed Mar 30 18:35:06 2005 From: dmcafee at pacbell.net (dmcafee at pacbell.net) Date: Wed, 30 Mar 2005 16:35:06 -0800 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: <424BCDF1.5709.28041F9B@stuart.lexacorp.com.pg> Message-ID: wouldn't me.name return the form or reports name? I think you meant to type Me.ActiveControl.Name David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Wednesday, March 30, 2005 4:16 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] Find Label text attached to Text Box On 30 Mar 2005 at 18:07, Gregg wrote: > If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? > -- Simplest way is to use a standard naming convention for controls such as always name the label the same as the textbox, but with a different prefix. so txtMyFirstTextBox would have a label called lblMyFirstTextBox. Then the label's name will always be "lbl" & mid$(me.name,4). Otherwise you have to step through the controls collection of the form and check all the labels, looking for the one who's "parent" property is txtMyFirstTextBox -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mike at welshfam.org Wed Mar 30 19:21:12 2005 From: mike at welshfam.org (Michael S. Welsh) Date: Wed, 30 Mar 2005 20:21:12 -0500 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: Message-ID: <200503310121.j2V1L6i27655@databaseadvisors.com> Gregg, You might try: txtTextBox.controls.item(0).caption Not sure what version this started in (I think Access 2000), but has workedin AccessXP and 2003. Mike -----Original Message----- Sent: Wednesday, March 30, 2005 7:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Find Label text attached to Text Box If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? From martyconnelly at shaw.ca Wed Mar 30 20:02:32 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 30 Mar 2005 18:02:32 -0800 Subject: [AccessD] Problem with hyperlinks from a table or form References: <5F98E4A038296E40A3F2B78A68A04A4301CCCB@wct.whooper.local> Message-ID: <424B5A38.2030003@shaw.ca> I don't know which way you are doing this. But if I use any variation of this with a PDF file on a standalone PC, I get the empty ADOBE 7.0 reader window open for a blink. Now this happens with 97 and 2003 on WinXP home but I can't check if this happens with the full version of Adobe. However this Access method application.followhyperlink method works okay with file associations like jpeg or word .doc Application.FollowHyperlink "C:\temp2\viewFormatWMMticket.pdf", , True Application.FollowHyperlink "File:///C:\temp2\viewFormatWMMticket.pdf", , True However this works for me Private Declare Function ShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" (ByVal hWnd As Long, _ ByVal lOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Sub testit() ShellExecute 0, "open", "C:\temp2\viewFormatWMMticket.pdf", vbNullString, vbNullString, vbNormalFocus End Sub Mike Webb wrote: >Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: >====================== >Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice > >I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder >accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. > >I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. > >I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? > > >====================================================== >Michael J. Webb >Administrative Assistant/IT Administrator >Platte River Whooping Crane Maintenance Trust, Inc. >6611 W. Whooping Crane Dr. >Wood River, NE 68883 >Office (308) 384-4633 FAX (308) 384-7209 >email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org >====================================================== > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Wed Mar 30 20:30:07 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 30 Mar 2005 21:30:07 -0500 Subject: [AccessD] Find Label text attached to Text Box In-Reply-To: Message-ID: <005c01c53599$8dfbb940$697aa8c0@ColbyM6805> The form's control collection allows you to find the control using the name as follows: Me.controls("CtlName") where "CtlName" is the name of your control. This syntax only works from within the form's module. The text box's control collection has a single control in it which is the label. Thus MyTxtBox.Controls(0) will return the label for MyTxtBox. Remember that a label can be deleted thus a text box MAY not have a label, make sure you use On Error Resume Next to handle such issues. Thus something like: Dim txt as TextBox Dim lbl as Label Set txt = me.Controls("CtlName") On error resume next Set lbl = txt.Controls(0) A shortcut to directly reference the text box control, and then its label would be: me.controls("CltName").Controls(0) Alternately you could use: Forms("FrmName").Controls("CtlName").Controls(0) This version assumes the form is loaded and will work from anywhere, not just from the form's module. Be careful though if you try to apply this syntax to other controls. Some controls can have more than one control in its control collection (option groups for example), and while the label is generally control(0), it MAY not be, in particular if the label was deleted, then added back in again. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gregg Sent: Wednesday, March 30, 2005 7:07 PM To: Access Developers discussion and problem solving Subject: [AccessD] Find Label text attached to Text Box If you have a Text Box with an attached Label is there some way to find the Label Text when you only know the Text Box Name? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 00:25:33 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 01:25:33 -0500 Subject: [AccessD] May need an Unbound form Message-ID: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From stuart at lexacorp.com.pg Thu Mar 31 00:48:52 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 16:48:52 +1000 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: <424C29F4.3999.296B7A0D@stuart.lexacorp.com.pg> On 31 Mar 2005 at 1:25, John W. Colby wrote: > > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can accept > data. > If all the "Allows" are false, why do you think you should be able to add or edit data? > I tried AllowEdits true and Editmode false, no help. Which is equivalenty to "allow edits" but "don't do any editing" The form is not > locked, the controls are not locked. The form was opened originally from a > form which was passing in a filter if that means anything. I was going to > grab the existing record data and then unbind the form but I am now just > looking at a plain Jane new data entry form. > If the form is unbound, just allow everything - no one's going to be damaging any data. -- Stuart From accessd at shaw.ca Thu Mar 31 01:25:34 2005 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 30 Mar 2005 23:25:34 -0800 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: <0IE700506GMILY@l-daemon> Hi John: It looks like your AllowEdits False AllowDeletes False AllowAdds False EditMode True ...settings are biting you? Maybe: AllowEdits True AllowDeletes False AllowAdds True EditMode True ...would work. Barring that it is unbound forms for you. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at EUnet.yu Thu Mar 31 02:33:04 2005 From: viner at EUnet.yu (Ervin Brindza) Date: Thu, 31 Mar 2005 10:33:04 +0200 Subject: [AccessD] Match the spouse References: <9C382E065F54AE48BC3AA7925DCBB01C02068EE7@karta-exc-int.Karta.com> Message-ID: <008901c535cc$8e6177c0$0100a8c0@RazvojErvin> Many thanks for all the replies! Ervin ----- Original Message ----- From: "Jim Hewson" To: "Access Developers discussion and problem solving" Sent: Wednesday, March 30, 2005 3:12 PM Subject: RE: [AccessD] Match the spouse > I think I would add a table. > A M-M to the employees and kids tables. > > tblEmployees > EmployeeID (PK) > EmployeeID (FK) reference back to same table for Spouse > Name of Employee > > tblEmployeeKids > EmployeeID (FK) > KidsID (FK) > > tblKids > KidsID (PK) > > When looking at an employee's record, the spouse and kids are visible. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza > Sent: Wednesday, March 30, 2005 6:46 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Match the spouse > > > Cross posted > Hi, > I have to modify the design of my human resources database (workers in the factory) to add a feature to match the spouse if the spouse works here too. And it would be great too to avoid duplicationg the kids records, which are in separate table in one to many relation with the main table. > Are there any suggestions? > Many TIA, > Ervin > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 fsmail.net Thu Mar 31 04:09:38 2005 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 31 Mar 2005 12:09:38 +0200 (CEST) Subject: [AccessD] Check To See If Employee Has 19 hour Window Between jobs Message-ID: <2205094.1112263778221.JavaMail.www@wwinf3001> To all, I have an availability table for an employee which some of the fields are PayrollNo, JobDate, StartTime, JobNo. When assigning a person to a job I need to get the availability record for the previous day and day after to make sure that the employee has a 19 hour window between jobs. So basically what I need to do is say someone is assigned to a job on 31/03/2005 with a start time of 21:00 I need to get the records for the 30/03/2005 and 01/04/2005 and check that the difference is greater than or equal to 19 hours. Anyone any ideas on how to do this easily, sorry if I have confused anyone I'm not very good at explaining myself at times. Thanks in advance for any help on this... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From marcus at tsstech.com Thu Mar 31 06:08:12 2005 From: marcus at tsstech.com (Scott Marcus) Date: Thu, 31 Mar 2005 07:08:12 -0500 Subject: [AccessD] Check To See If Employee Has 19 hour Window Between jobs Message-ID: Try... abs(DateDiff("h", firstdatetime, seconddatetime)) <= 19 Scott Marcus -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, March 31, 2005 5:10 AM To: accessd Subject: [AccessD] Check To See If Employee Has 19 hour Window Between jobs To all, I have an availability table for an employee which some of the fields are PayrollNo, JobDate, StartTime, JobNo. When assigning a person to a job I need to get the availability record for the previous day and day after to make sure that the employee has a 19 hour window between jobs. So basically what I need to do is say someone is assigned to a job on 31/03/2005 with a start time of 21:00 I need to get the records for the 30/03/2005 and 01/04/2005 and check that the difference is greater than or equal to 19 hours. Anyone any ideas on how to do this easily, sorry if I have confused anyone I'm not very good at explaining myself at times. Thanks in advance for any help on this... Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 06:19:30 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 07:19:30 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <0IE700506GMILY@l-daemon> Message-ID: <000b01c535eb$e3fb96b0$697aa8c0@ColbyM6805> In fact I am attempting to do an unbound form. I am going to go with a brand new form instead of converting a bound form to unbound. It was rather late last night when I was doing this. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, March 31, 2005 2:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Hi John: It looks like your AllowEdits False AllowDeletes False AllowAdds False EditMode True ...settings are biting you? Maybe: AllowEdits True AllowDeletes False AllowAdds True EditMode True ...would work. Barring that it is unbound forms for you. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 07:23:15 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 08:23:15 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <0IE700506GMILY@l-daemon> Message-ID: <000c01c535f4$cbbb0190$697aa8c0@ColbyM6805> In fact what I am trying to find out is hwy the locking issue occurs and how to get a bound form to cooperate. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, March 31, 2005 2:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Hi John: It looks like your AllowEdits False AllowDeletes False AllowAdds False EditMode True ...settings are biting you? Maybe: AllowEdits True AllowDeletes False AllowAdds True EditMode True ...would work. Barring that it is unbound forms for you. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Mar 31 07:34:17 2005 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 31 Mar 2005 23:34:17 +1000 Subject: [AccessD] May need an Unbound form In-Reply-To: <000c01c535f4$cbbb0190$697aa8c0@ColbyM6805> References: <0IE700506GMILY@l-daemon> Message-ID: <424C88F9.6227.2ADEA5C4@stuart.lexacorp.com.pg> On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs and how > to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart From jwcolby at colbyconsulting.com Thu Mar 31 07:49:41 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 08:49:41 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <424C88F9.6227.2ADEA5C4@stuart.lexacorp.com.pg> Message-ID: <000d01c535f8$7fe8ec60$697aa8c0@ColbyM6805> Stewart, I am quite aware that testing with an unbound form will not help discover why I am having locking issues. Unfortunately I cannot reproduce the error in my office, it is quite reproducible in the client's office 300 miles away, I have been there, I have done everything I can figure out to do to solve the locking issue (which should not even be happening as far as I can tell) and just posted the circumstances to see if anyone HERE had seen this or had any input on the locking issue. I am NOT attempting to test the locking issue by doing an unbound form. Given the inability to solve a locking issue that shouldn't be happening I am moving on to try to use an unbound form to take the new record data entry and store the data. I now have an unbound form accepting all the data so the ONLY point of this entire thread is to see if anyone has ever seen this locking issue using BOUND forms where many people are in a very small table at once, entering new records all day long. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 31, 2005 8:34 AM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] May need an Unbound form On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs > and how to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Mar 31 08:09:09 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 31 Mar 2005 09:09:09 -0500 Subject: [AccessD] May need an Unbound form Message-ID: Is it an sql backend? It will lock if you have bit fields; I convert to ints. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 31, 2005 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Stewart, I am quite aware that testing with an unbound form will not help discover why I am having locking issues. Unfortunately I cannot reproduce the error in my office, it is quite reproducible in the client's office 300 miles away, I have been there, I have done everything I can figure out to do to solve the locking issue (which should not even be happening as far as I can tell) and just posted the circumstances to see if anyone HERE had seen this or had any input on the locking issue. I am NOT attempting to test the locking issue by doing an unbound form. Given the inability to solve a locking issue that shouldn't be happening I am moving on to try to use an unbound form to take the new record data entry and store the data. I now have an unbound form accepting all the data so the ONLY point of this entire thread is to see if anyone has ever seen this locking issue using BOUND forms where many people are in a very small table at once, entering new records all day long. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 31, 2005 8:34 AM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] May need an Unbound form On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs > and how to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 31 08:14:54 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 06:14:54 -0800 Subject: [AccessD] Access Report to PowerPoint Message-ID: <003501c535fc$0368aeb0$6401a8c0@HAL9004> Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 From tom.bolton at donnslaw.co.uk Thu Mar 31 08:16:42 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 31 Mar 2005 15:16:42 +0100 Subject: [AccessD] RE: A2k2 listboxes Message-ID: <61F915314798D311A2F800A0C9C831880731CACC@dibble.observatory.donnslaw.co.uk> Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? MTIA Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From jwcolby at colbyconsulting.com Thu Mar 31 08:41:17 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 09:41:17 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <001701c535ff$b2455cf0$697aa8c0@ColbyM6805> Nope, jet/mdb. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, March 31, 2005 9:09 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form Is it an sql backend? It will lock if you have bit fields; I convert to ints. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 31, 2005 8:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Stewart, I am quite aware that testing with an unbound form will not help discover why I am having locking issues. Unfortunately I cannot reproduce the error in my office, it is quite reproducible in the client's office 300 miles away, I have been there, I have done everything I can figure out to do to solve the locking issue (which should not even be happening as far as I can tell) and just posted the circumstances to see if anyone HERE had seen this or had any input on the locking issue. I am NOT attempting to test the locking issue by doing an unbound form. Given the inability to solve a locking issue that shouldn't be happening I am moving on to try to use an unbound form to take the new record data entry and store the data. I now have an unbound form accepting all the data so the ONLY point of this entire thread is to see if anyone has ever seen this locking issue using BOUND forms where many people are in a very small table at once, entering new records all day long. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, March 31, 2005 8:34 AM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] May need an Unbound form On 31 Mar 2005 at 8:23, John W. Colby wrote: > In fact what I am trying to find out is hwy the locking issue occurs > and how to get a bound form to cooperate. > In that case, testing with an unbound form won't help. The AllowEdits property of the form just sets all controls on it to ReadOnly. It does it's work long before any attempt is made to lock records etc. -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Thu Mar 31 08:45:15 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 08:45:15 -0600 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> References: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: Sounds like the record level locking option is not on so it's doing page level locking. Did you say if you checked that on their system? On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. These > people call therapists trying to fill employment contracts. They may make > changes to the person info (address changes etc. but mostly they just enter > new contact records which consist of a simple date and employee (prefilled), > call status (left message, not interested etc,) and a memo field. All night > long just mostly entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of all > indexes, but they were still getting locks. An employee will start an edit > (select a status, then fill in the memo etc.) but they may hold the record > in the edit state for a minute or two. If any other employee tries to start > a new edit they get a lock, WITHOUT the lock symbol in the record selector. > It is reproducible, it always happens and it SUCKS. These people are not > editing each others records, they are always building NEW records, but they > are getting these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update of > any control), the record is saved. That causes the new records to save > immediately as well as the edits during the course of business to save ASAP. > This helps but they are still seeing the locks occasionally, however now > they are seeing the lock symbol in the record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair etc. I > am just not finding the problem. As far as I know this shouldn't be > happening, but it is. Has anyone seen this behavior? Solutions? > > This leads me to consider (for the first time in my career) using an unbound > form for collecting the new data record so that the save just does a single > write of the entire record, one time, as the contact record is finished and > ready to store. Needless to say this is not my forte and I the form is not > allowing new data to be entered. The form itself is unbound, all the > controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can accept > data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally from a > form which was passing in a filter if that means anything. I was going to > grab the existing record data and then unbind the form but I am now just > looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 garykjos at gmail.com Thu Mar 31 08:54:58 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 08:54:58 -0600 Subject: [AccessD] May need an Unbound form In-Reply-To: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> References: <000001c535ba$74b4c3c0$697aa8c0@ColbyM6805> Message-ID: Hi John, Check this out for some ideas. It's regarding a pre-sr1a issue with A2K so it probably doesn't apply to you, but perhaps there is some idea triggers in it? http://support.microsoft.com/kb/238258 Gary On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. These > people call therapists trying to fill employment contracts. They may make > changes to the person info (address changes etc. but mostly they just enter > new contact records which consist of a simple date and employee (prefilled), > call status (left message, not interested etc,) and a memo field. All night > long just mostly entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of all > indexes, but they were still getting locks. An employee will start an edit > (select a status, then fill in the memo etc.) but they may hold the record > in the edit state for a minute or two. If any other employee tries to start > a new edit they get a lock, WITHOUT the lock symbol in the record selector. > It is reproducible, it always happens and it SUCKS. These people are not > editing each others records, they are always building NEW records, but they > are getting these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update of > any control), the record is saved. That causes the new records to save > immediately as well as the edits during the course of business to save ASAP. > This helps but they are still seeing the locks occasionally, however now > they are seeing the lock symbol in the record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair etc. I > am just not finding the problem. As far as I know this shouldn't be > happening, but it is. Has anyone seen this behavior? Solutions? > > This leads me to consider (for the first time in my career) using an unbound > form for collecting the new data record so that the save just does a single > write of the entire record, one time, as the contact record is finished and > ready to store. Needless to say this is not my forte and I the form is not > allowing new data to be entered. The form itself is unbound, all the > controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can accept > data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally from a > form which was passing in a filter if that means anything. I was going to > grab the existing record data and then unbind the form but I am now just > looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 prodevmg at yahoo.com Thu Mar 31 09:06:17 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 31 Mar 2005 07:06:17 -0800 (PST) Subject: [AccessD] Access Report to PowerPoint In-Reply-To: 6667 Message-ID: <20050331150617.33005.qmail@web20427.mail.yahoo.com> There is no export or transfer feature from Access to Powerpoint. Most documentation I have seen involved cutting and pasting. Rocky Smolin - Beach Access Software wrote:Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! From Gustav at cactus.dk Thu Mar 31 09:09:46 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 31 Mar 2005 17:09:46 +0200 Subject: [AccessD] May need an Unbound form Message-ID: Hi John If you apply record level locking, monitor carefully for a while the backend file for bloat. I've heard of someone not doing this, and the backend went from a hundred or so MB to two GB in some days after heavy use. Also, why not copy the record to edit to a local temp base (you know how to create these on the fly), then copy it back when finished editing. Then you can stay off the unbound nightmare ... /gustav From ssharkins at bellsouth.net Thu Mar 31 09:11:32 2005 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 31 Mar 2005 10:11:32 -0500 Subject: [AccessD] RE: A2k2 listboxes In-Reply-To: <61F915314798D311A2F800A0C9C831880731CACC@dibble.observatory.donnslaw.co.uk> Message-ID: <20050331151128.VJUR2394.imf20aec.mail.bellsouth.net@SUSANONE> You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? MTIA Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 From tom.bolton at donnslaw.co.uk Thu Mar 31 09:23:46 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 31 Mar 2005 16:23:46 +0100 Subject: [AccessD] RE: A2k2 listboxes Message-ID: <61F915314798D311A2F800A0C9C831880731CACE@dibble.observatory.donnslaw.co.uk> Hi Susan Thanks for the reply, that's kinda what I was thinking. Do you know the syntax for getting the value of a column from a listbox for a given index? Maybe I need to keep off the Subway sandwiches but I really can't seem to find it! MTIA (again!) Tom -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 31 March 2005 16:12 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: A2k2 listboxes You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? MTIA Tom Tom Bolton Systems Developer (I.T.) Donns Solicitors Tel: 0161 834 3311 Fax: 0161 834 2317 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From jwcolby at colbyconsulting.com Thu Mar 31 09:21:59 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 10:21:59 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <001801c53605$6213ac40$697aa8c0@ColbyM6805> Yes, I specifically checked all the workstations and they are set to record level locking. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 31, 2005 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] May need an Unbound form Sounds like the record level locking option is not on so it's doing page level locking. Did you say if you checked that on their system? On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as > office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. > These people call therapists trying to fill employment contracts. > They may make changes to the person info (address changes etc. but > mostly they just enter new contact records which consist of a simple > date and employee (prefilled), call status (left message, not > interested etc,) and a memo field. All night long just mostly > entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of > all indexes, but they were still getting locks. An employee will > start an edit (select a status, then fill in the memo etc.) but they > may hold the record in the edit state for a minute or two. If any > other employee tries to start a new edit they get a lock, WITHOUT the > lock symbol in the record selector. It is reproducible, it always > happens and it SUCKS. These people are not editing each others > records, they are always building NEW records, but they are getting > these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update > of any control), the record is saved. That causes the new records to > save immediately as well as the edits during the course of business to > save ASAP. This helps but they are still seeing the locks > occasionally, however now they are seeing the lock symbol in the > record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair > etc. I am just not finding the problem. As far as I know this > shouldn't be happening, but it is. Has anyone seen this behavior? > Solutions? > > This leads me to consider (for the first time in my career) using an > unbound form for collecting the new data record so that the save just > does a single write of the entire record, one time, as the contact > record is finished and ready to store. Needless to say this is not my > forte and I the form is not allowing new data to be entered. The form > itself is unbound, all the controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can > accept data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally > from a form which was passing in a filter if that means anything. I > was going to grab the existing record data and then unbind the form > but I am now just looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Mar 31 09:32:04 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 31 Mar 2005 17:32:04 +0200 Subject: [AccessD] Access Report to PowerPoint Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B597A@stekelbes.ithelps.local> You could take a screen capture and save it as a JPG and insert into powerpoint. Or you could collect data with an SQL string from powerpoint and format some data into the slide. Maybe, you can export the report to html files from access and import those htmls into Powerpoint. But your layout will be changed. Tell us a bit more what the purpose of the powerpoint will be. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Thursday, March 31, 2005 5:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint There is no export or transfer feature from Access to Powerpoint. Most documentation I have seen involved cutting and pasting. Rocky Smolin - Beach Access Software wrote:Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike_Webb at whoopingcrane.org Thu Mar 31 09:35:58 2005 From: Mike_Webb at whoopingcrane.org (Mike Webb) Date: Thu, 31 Mar 2005 09:35:58 -0600 Subject: [AccessD] RE: Re: Problem with hyperlinks from a table or form (Gary Kjos) Message-ID: Good idea, I hadn't thought of trying a fresh link rather than editing the existing link. I'll give it a try and report back. Mike Webb From cyx5 at cdc.gov Thu Mar 31 09:35:58 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 31 Mar 2005 10:35:58 -0500 Subject: [AccessD] May need an Unbound form Message-ID: Are any of the users opening up more than one session of the same database on their PC? Do you have it so they can not open the same database on the same desktop? I had users doing that and it hosed things up. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, March 31, 2005 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Yes, I specifically checked all the workstations and they are set to record level locking. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, March 31, 2005 9:45 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] May need an Unbound form Sounds like the record level locking option is not on so it's doing page level locking. Did you say if you checked that on their system? On Mar 31, 2005 12:25 AM, John W. Colby wrote: > OK Guys, > > WinXP, OfficeXP, all service packs applied for Windows as well as > office. > > I have a situation where a group of 2 to 6 or so people open a form of > people info, with contact subform, making phone calls all night. > These people call therapists trying to fill employment contracts. > They may make changes to the person info (address changes etc. but > mostly they just enter new contact records which consist of a simple > date and employee (prefilled), call status (left message, not > interested etc,) and a memo field. All night long just mostly > entering records in this contact subform. > > The problem is that they are having HUGE locking issues. I got rid of > all indexes, but they were still getting locks. An employee will > start an edit (select a status, then fill in the memo etc.) but they > may hold the record in the edit state for a minute or two. If any > other employee tries to start a new edit they get a lock, WITHOUT the > lock symbol in the record selector. It is reproducible, it always > happens and it SUCKS. These people are not editing each others > records, they are always building NEW records, but they are getting > these locks and it just killed their productivity. > > I made a change such that as soon as they enter any data (after update > of any control), the record is saved. That causes the new records to > save immediately as well as the edits during the course of business to > save ASAP. This helps but they are still seeing the locks > occasionally, however now they are seeing the lock symbol in the > record selector. > > I checked all the usual suspects, SPs, edit modes, compact / repair > etc. I am just not finding the problem. As far as I know this > shouldn't be happening, but it is. Has anyone seen this behavior? > Solutions? > > This leads me to consider (for the first time in my career) using an > unbound form for collecting the new data record so that the save just > does a single write of the entire record, one time, as the contact > record is finished and ready to store. Needless to say this is not my > forte and I the form is not allowing new data to be entered. The form > itself is unbound, all the controls are unbound, the modes are: > > AllowEdits False > AllowDeletes False > AllowAdds False > EditMode True > > This should allow all the controls to accept data but no control can > accept data. > > I tried AllowEdits true and Editmode false, no help. The form is not > locked, the controls are not locked. The form was opened originally > from a form which was passing in a filter if that means anything. I > was going to grab the existing record data and then unbind the form > but I am now just looking at a plain Jane new data entry form. > > Any suggestions gratefully accepted. > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Mar 31 09:39:14 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 31 Mar 2005 17:39:14 +0200 Subject: [AccessD] RE: A2k2 listboxes Message-ID: Hi Tom That is: lstListbox.Column(1, lngRow) /gustav >>> tom.bolton at donnslaw.co.uk 03/31 5:23 pm >>> Hi Susan Thanks for the reply, that's kinda what I was thinking. Do you know the syntax for getting the value of a column from a listbox for a given index? Maybe I need to keep off the Subway sandwiches but I really can't seem to find it! MTIA (again!) Tom -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 31 March 2005 16:12 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: A2k2 listboxes You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? From bchacc at san.rr.com Thu Mar 31 09:51:22 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 07:51:22 -0800 Subject: [AccessD] Access Report to PowerPoint References: <46B976F2B698FF46A4FE7636509B22DF1B597A@stekelbes.ithelps.local> Message-ID: <00e001c53609$7cb3a240$6401a8c0@HAL9004> Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tom.bolton at donnslaw.co.uk Thu Mar 31 10:01:27 2005 From: tom.bolton at donnslaw.co.uk (Tom Bolton) Date: Thu, 31 Mar 2005 17:01:27 +0100 Subject: [AccessD] RE: A2k2 listboxes Message-ID: <61F915314798D311A2F800A0C9C831880731CAD5@dibble.observatory.donnslaw.co.uk> That's the very thing I was looking for, many thanks Gustav and Susan! -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: 31 March 2005 16:39 To: accessd at databaseadvisors.com Subject: RE: [AccessD] RE: A2k2 listboxes Hi Tom That is: lstListbox.Column(1, lngRow) /gustav >>> tom.bolton at donnslaw.co.uk 03/31 5:23 pm >>> Hi Susan Thanks for the reply, that's kinda what I was thinking. Do you know the syntax for getting the value of a column from a listbox for a given index? Maybe I need to keep off the Subway sandwiches but I really can't seem to find it! MTIA (again!) Tom -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: 31 March 2005 16:12 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] RE: A2k2 listboxes You'll have to use a For loop to examine each value and stop when you find it -- course, that stops at the "first" value it finds -- is that what you want? I'm assuming it's a unique list? Susan H. Hi all, mental block time... I have a slightly easier one today - I have a listbox populated (not bound) with a list of values. There are 2 columns in the listbox. I want to programatically select an item in a listbox by matching one of the column values to a string. Is this possible? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -------------- next part -------------- The contents of this message and any attachments are the property of Donns Solicitors and are intended for the confidential use of the named recipient only. They may be legally privileged and should not be communicated to, or relied upon, by any other party without our written consent. If you are not the addressee, please notify us immediately so that we can make arrangements for its return. You should not show this e-mail to any person or take copies as you may be committing a criminal or civil offence for which you may be liable. The statement and opinions expressed in this e-mail message are those of the writer, and do not necessarily represent that of Donns Solicitors. Although any files attached to this e-mail will have been checked with virus protection software prior to transmission, you should carry out your own virus check before opening any attachment. Donns Solicitors does not accept any liability for any damage or loss which may be caused by software viruses... From jim.moss at jlmoss.net Thu Mar 31 09:58:41 2005 From: jim.moss at jlmoss.net (jim.moss at jlmoss.net) Date: Thu, 31 Mar 2005 09:58:41 -0600 (CST) Subject: [AccessD] Access Report to PowerPoint In-Reply-To: <003501c535fc$0368aeb0$6401a8c0@HAL9004> References: <003501c535fc$0368aeb0$6401a8c0@HAL9004> Message-ID: <18524.65.196.182.34.1112284721.squirrel@65.196.182.34> Rocky, Here's a link to an example Access to Powerpoint automation .mdb http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/OfficeAccess2PowerPoint.asp Jim > Dear List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cyx5 at cdc.gov Thu Mar 31 10:08:15 2005 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 31 Mar 2005 11:08:15 -0500 Subject: [AccessD] Access Report to PowerPoint Message-ID: I have not tested it, but check out this link: http://www.access-programmers.co.uk/forums/showthread.php?t=83231 There is a sample database to export the report to PowerPoint. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Mar 31 10:24:42 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 08:24:42 -0800 Subject: [AccessD] Access Report to PowerPoint References: <003501c535fc$0368aeb0$6401a8c0@HAL9004> <18524.65.196.182.34.1112284721.squirrel@65.196.182.34> Message-ID: <017801c5360e$24e5a900$6401a8c0@HAL9004> Jim: Thanks for that link. I forwarded it to the user. Looks like it would take some number of hours for me to do this so they probably don't want to buy that solution. But I told the user that maybe someone in house could do it for her. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:58 AM Subject: Re: [AccessD] Access Report to PowerPoint > Rocky, > > Here's a link to an example Access to Powerpoint automation .mdb > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/OfficeAccess2PowerPoint.asp > > Jim > > >> Dear List: >> >> Is there an easy way to export an Access report directly to PowerPoint? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Mar 31 10:28:16 2005 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 31 Mar 2005 18:28:16 +0200 Subject: [AccessD] Access Report to PowerPoint Message-ID: Hi Rocky Couldn't you print to the Microsoft Office Document Image Writer or another "printer" that saves the print as an image file? Like Print to Picture 1.02: http://www.softlinks.ru/files/f6767.php /gustav >>> bchacc at san.rr.com 03/31 5:51 pm >>> Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? From bchacc at san.rr.com Thu Mar 31 10:36:02 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 08:36:02 -0800 Subject: [AccessD] Access Report to PowerPoint References: Message-ID: <018d01c5360f$ba140250$6401a8c0@HAL9004> Looks very promising. Thanks. Rocky ----- Original Message ----- From: "Nicholson, Karen" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 8:08 AM Subject: RE: [AccessD] Access Report to PowerPoint >I have not tested it, but check out this link: > > http://www.access-programmers.co.uk/forums/showthread.php?t=83231 > > There is a sample database to export the report to PowerPoint. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, March 31, 2005 10:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > > Erwin: > > It's a request from a user who is using my E-Z-MRP system (over in > Malaysia, > actually). > > Here's the actual request: > > Our management would like to view the MRP Report in Microsoft power > point > format. What I've done here is, I will print scrn the MRP Report one by > one > and paste into Microsoft power point format. This is very time > consuming. > Thus, I would like to check with you that, could we export the MRP > Report > directly to Power Point format instead of print Scrn it one by one? > > TIA or any ideas, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, March 31, 2005 7:32 AM > Subject: RE: [AccessD] Access Report to PowerPoint > > >> You could take a screen capture and save it as a JPG and insert into >> powerpoint. >> >> Or you could collect data with an SQL string from powerpoint and > format >> some data into the slide. >> >> Maybe, you can export the report to html files from access and import >> those htmls into Powerpoint. But your layout will be changed. >> >> Tell us a bit more what the purpose of the powerpoint will be. >> >> Erwin >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie >> Johnson >> Sent: Thursday, March 31, 2005 5:06 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Access Report to PowerPoint >> >> There is no export or transfer feature from Access to Powerpoint. Most >> documentation I have seen involved cutting and pasting. >> >> Rocky Smolin - Beach Access Software wrote:Dear >> List: >> >> Is there an easy way to export an Access report directly to > PowerPoint? >> >> MTIA, >> >> Rocky Smolin >> Beach Access Software >> http://www.e-z-mrp.com >> 858-259-4334 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> May God bless you beyond your imagination! >> Lonnie Johnson >> ProDev, Professional Development of MS Access Databases Visit me at > ==> >> http://www.prodev.us >> >> >> >> >> >> >> >> >> >> >> >> >> --------------------------------- >> Do you Yahoo!? >> Yahoo! Small Business - Try our new resources site! >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From bchacc at san.rr.com Thu Mar 31 10:37:43 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 08:37:43 -0800 Subject: [AccessD] Access Report to PowerPoint References: Message-ID: <019201c5360f$f6b9d3b0$6401a8c0@HAL9004> Gustav: I think she's looking for a one-step solution. Right now she's doing the 'cut and paste' thing. But I've used print to picture - captured all of the reports in E-Z-MRP for the reports appendix in the manual - and it might be a good halfway solution. Regards, Rocky ----- Original Message ----- From: "Gustav Brock" To: Sent: Thursday, March 31, 2005 8:28 AM Subject: Re: [AccessD] Access Report to PowerPoint > Hi Rocky > > Couldn't you print to the Microsoft Office Document Image Writer or > another "printer" that saves the print as an image file? > Like Print to Picture 1.02: > > http://www.softlinks.ru/files/f6767.php > > /gustav > >>>> bchacc at san.rr.com 03/31 5:51 pm >>> > Erwin: > > It's a request from a user who is using my E-Z-MRP system (over in > Malaysia, > actually). > > Here's the actual request: > > Our management would like to view the MRP Report in Microsoft power > point > format. What I've done here is, I will print scrn the MRP Report one by > one > and paste into Microsoft power point format. This is very time > consuming. > Thus, I would like to check with you that, could we export the MRP > Report > directly to Power Point format instead of print Scrn it one by one? > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Thu Mar 31 10:40:01 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 11:40:01 -0500 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: <002c01c53610$48e326f0$697aa8c0@ColbyM6805> Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ From Dave.Bucher at state.mn.us Thu Mar 31 10:48:09 2005 From: Dave.Bucher at state.mn.us (Bucher, Dave) Date: Thu, 31 Mar 2005 10:48:09 -0600 Subject: [AccessD] RE: A2k2 listboxes Message-ID: ListBoxName.Column(0) references first field ... ListBoxName.Column(1) references second field ListBoxName.Selected(0) = True ...selects first item in a listbox Dim strItems as string Dim intItem as Integer For intItem = 0 to ListBoxName.ListCount - 1 If ListBoxName.Selected(intItem) then 'Do something End If Next intItem ... lets you move/test and perform operation operations on items in list Dave Bucher Information Technology Specialist Children's Research, Planning and Evaluation Caution: This e-mail and attached documents, if any, may contain information that is protected by state or federal law. E-mail containing private or protected information should not be sent over a public (nonsecure) Internet unless it is encrypted pursuant to DHS standards. This e-mail should be forwarded only on a strictly need-to-know basis. If you are not the intended recipient, please: (1) notify the sender immediately, (2) do not forward the message, (3) do not print the message and (4) erase the message from your system. From john at winhaven.net Thu Mar 31 10:48:04 2005 From: john at winhaven.net (John Bartow) Date: Thu, 31 Mar 2005 10:48:04 -0600 Subject: [AccessD] Access Report to PowerPoint In-Reply-To: <003501c535fc$0368aeb0$6401a8c0@HAL9004> Message-ID: Rocky, Using Automation/VBA you could do this. I wrote my first set of PP VBA modules this year. To use PP VBA you pretty much just have to figure out a few new objects and their properties. Someone on the Tech list pointed this site out to me and it was a good place to start. http://skp.mvps.org/links.htm I would suggest as a starting point that you develop, find, obtain code which will save the Access report in a standard rtf or graphic format. Then using automation/VBA compile the captured images into a PP presentation. Although I would first suggest to the customer with the PDF/acrobat reader scenario. HTH John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 8:15 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Access Report to PowerPoint Dear List: Is there an easy way to export an Access report directly to PowerPoint? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 10:50:31 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 08:50:31 -0800 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: Have you tried physically removing the key? If you're entrusting it to a 4-year-old, then a little more damage won't make any difference. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 8:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 10:57:10 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 08:57:10 -0800 Subject: [AccessD] May need an Unbound form Message-ID: John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From normkara at wans.net Thu Mar 31 10:59:42 2005 From: normkara at wans.net (Norm) Date: Thu, 31 Mar 2005 11:59:42 -0500 Subject: [AccessD] OT: disabling keys on the keyboard References: Message-ID: <000801c53613$0c2d2190$0200a8c0@NORMLAPTOP> I had a similar situation when I gave my 4 year old grandson his first PC, I used little dots (stickers) on the keys - with different colors. Red, do not touch, Green OK to touch.. Norm -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 8:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. From garykjos at gmail.com Thu Mar 31 10:59:58 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 10:59:58 -0600 Subject: [AccessD] OT: disabling keys on the keyboard In-Reply-To: <002c01c53610$48e326f0$697aa8c0@ColbyM6805> References: <002c01c53610$48e326f0$697aa8c0@ColbyM6805> Message-ID: http://johnhaller.com/jh/useful_stuff/disable_windows_key/ On Mar 31, 2005 10:40 AM, John W. Colby wrote: > Is there any way (utility) to disable keys such as the windows key and the > function keys on the keyboard. I have an old laptop I want to give to my 4 > year old son to play his games and stuff. However he plays with the keys > and as you know the Windows key (for one) causes a menu to pop up > interrupting his play and requiring me to go rescue him. > > John W. Colby > www.ColbyConsulting.com > > Contribute your unused CPU cycles to a good cause: > http://folding.stanford.edu/ > > -- > 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 Jim.Hale at FleetPride.com Thu Mar 31 11:02:38 2005 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 31 Mar 2005 11:02:38 -0600 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67723374C2@corp-es01.fleetpride.com> Maybe you could map the key to open a little Access invoice that he could fill in for practice. Its never too early to get started. This would be great training as a jr member of the Future Consultants of America. Does he have a billing rate yet and can he say "unbound forms cost extra?" :-) Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 10:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From martyconnelly at shaw.ca Thu Mar 31 11:06:10 2005 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 31 Mar 2005 09:06:10 -0800 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a> <424B23B8.6080706@shaw.ca> <015201c53576$cac2bc20$0a00a8c0@cx470148a> Message-ID: <424C2E02.5060008@shaw.ca> Here is a starting point on SQL Server Replication, http://www.informit.com/articles/article.asp?p=169612&seqNum=3 You are going to have to decide whether you can get by with Merge replication and MSDE or buy multiple SQL licenses to handle full transactional replication. I am not sure if SQL 2005 Express (the latest Beta incarnation of MSDE) handles transactional replication. You will have to look at the requirements for the salesman, do they need access to real time data and or will they have almost constant internet connections via wireless like a blackberry or cell phone connections. with this you might get away with running multiple Access FE's to a single remote SQL server. Connection coverage areas than enter the picture, if you have salesmen going out to places like Moose Pasture Saskatchewan, this may present problems. So you may want a pushed merged copy of the latest data on a MSDE to use when no connection is present. Then there maybe a question of using VPN for connection security. There is a whole series of articles on SQL replication here. http://www.databasejournal.com/features/mssql/ search on sql replication You realize that even some experienced SQL DBA's feel unsure of themselves getting into replication. So you may want to go with the simple Access FE to a remote SQL Server. Barbara Ryan wrote: >Regarding "Do you plan on running replicated SQL server or updating via the >internet and SQL Server?" > >---- I don't know! I know very little about SQL Server. I am open to any >suggestions on how I can handle this situation (i.e., the Access >application (front end) is linked to 2 separate back end .mdbs. Backend "A" >contains the majority of the data tables for the application; Backend "B" is >a replicable database that is also used as the sole backend database for >another Access application that is used by salesmen on their laptops. The >front end contains some queries that currently join tables from both Backend >"A" AND Backend "B".) > >Could the salesmen use an Access backend and somehow synchronize it with a >SQL Server database? > >Thanks, >Barb Ryan > > > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Wednesday, March 30, 2005 5:10 PM >Subject: Re: [AccessD] Replicated .mdb and SQL Server > > > > >>I don't know if the Access to SQL upgrade wizard handles replicated >>databases but here is an unreplicator just in case >>http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 >>Do you plan on running replicated SQL server or updating via the >>internet and SQL Server? >> >>Barbara Ryan wrote: >> >> >> >>>I currently have an Access application, split into a front end linked to >>> >>> >2 separate back end .mdbs. Backend "A" contains the majority of the data >tables for the application; Backend "B" is a replicable database that is >also used as the backend database for another Access application that is >used by salesmen on their laptops. > > >>>The client is considering migrating the data for this application to SQL >>> >>> >Server. Any ideas on how to handle this? The front end contains some >queries that currently join tables from both Backend "A" AND Backend "B". > > >>>Thanks, >>>Barb Ryan >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > > -- Marty Connelly Victoria, B.C. Canada From john at winhaven.net Thu Mar 31 11:13:27 2005 From: john at winhaven.net (John Bartow) Date: Thu, 31 Mar 2005 11:13:27 -0600 Subject: [AccessD] Access Report to PowerPoint In-Reply-To: Message-ID: Rocky, Here you go! Great find Karen! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, March 31, 2005 10:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access Report to PowerPoint I have not tested it, but check out this link: http://www.access-programmers.co.uk/forums/showthread.php?t=83231 There is a sample database to export the report to PowerPoint. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 11:14:40 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 12:14:40 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <003301c53615$1f9eef90$697aa8c0@ColbyM6805> Charlotte, Nope, this is a bound subform, uses the LinkChild / Master properties to "filter" the subform records, the subform just uses SELECT * from tblXXXX as the query etc. This is a clean implementation of a bound form, nothing fancy needed or used. The lock is occurring in the child form / table, the communications subform. The users literally open the main form, filtered to a small subset of people (in a set of zip codes) and just start at the first person, making phone calls. If they don't get an answer or just leave a message on an answering machine, then they create a new comms record and select from a "status" and move on. If they actually talk to the person, they select a status and then may fill in a memo re the conversation. Really nothing fancy here, a very simple child table with about 5 fields including the PEID foreign key, and a couple of other FKs for employee making the call, contract being called about and status, plus the memo. These are ALL new comm records, no editing a record someone else might be in etc. Why is there a lock at all? The FE is set up for Record locking. The memo field is actually just a text(255) field, not even a real memo. I removed ALL indexes (including the relationship between people and comms) on the theory that this might be a lock on the index pages. I finally added code to save the record In AfterUpdate of each and every control so that as they tabbed out of each control the record was saved (to release any locks) and this does help... But there are still locks happening. Bizarre. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 11:15:25 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 12:15:25 -0500 Subject: [AccessD] OT: disabling keys on the keyboard In-Reply-To: <000801c53613$0c2d2190$0200a8c0@NORMLAPTOP> Message-ID: <003401c53615$3a630c30$697aa8c0@ColbyM6805> I like that. Of course knowing MY son... The RED will be the FIRST keys touched. ;-) John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Norm Sent: Thursday, March 31, 2005 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: disabling keys on the keyboard I had a similar situation when I gave my 4 year old grandson his first PC, I used little dots (stickers) on the keys - with different colors. Red, do not touch, Green OK to touch.. Norm -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 8:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Thu Mar 31 11:16:20 2005 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Thu, 31 Mar 2005 12:16:20 -0500 Subject: [AccessD] Replicated .mdb and SQL Server References: <00a801c5352b$4b24dca0$0a00a8c0@cx470148a><424B23B8.6080706@shaw.ca> <015201c53576$cac2bc20$0a00a8c0@cx470148a> <424C2E02.5060008@shaw.ca> Message-ID: <00f501c53615$5b8b5c00$0a00a8c0@cx470148a> Marty.... Thank you SO much for all the information. I felt so lost! I will take a look at it and discuss it with my client. BTW --- Is there really a "Moose Pasture Saskatchewan"? Barb Ryan ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 12:06 PM Subject: Re: [AccessD] Replicated .mdb and SQL Server > Here is a starting point on SQL Server Replication, > http://www.informit.com/articles/article.asp?p=169612&seqNum=3 > You are going to have to decide whether you can get by with Merge > replication and MSDE > or buy multiple SQL licenses to handle full transactional replication. I > am not sure if SQL 2005 Express > (the latest Beta incarnation of MSDE) handles transactional replication. > You will have to look at the requirements for the salesman, do they need > access to real time data > and or will they have almost constant internet connections via wireless > like a blackberry or cell phone connections. > with this you might get away with running multiple Access FE's to a > single remote SQL server. Connection coverage areas > than enter the picture, if you have salesmen going out to places like > Moose Pasture Saskatchewan, this may present problems. > So you may want a pushed merged copy of the latest data on a MSDE to > use when no connection is present. > Then there maybe a question of using VPN for connection security. > There is a whole series of articles on SQL replication here. > http://www.databasejournal.com/features/mssql/ > search on sql replication > You realize that even some experienced SQL DBA's feel unsure of > themselves getting into replication. > So you may want to go with the simple Access FE to a remote SQL Server. > Barbara Ryan wrote: > > >Regarding "Do you plan on running replicated SQL server or updating via the > >internet and SQL Server?" > > > >---- I don't know! I know very little about SQL Server. I am open to any > >suggestions on how I can handle this situation (i.e., the Access > >application (front end) is linked to 2 separate back end .mdbs. Backend "A" > >contains the majority of the data tables for the application; Backend "B" is > >a replicable database that is also used as the sole backend database for > >another Access application that is used by salesmen on their laptops. The > >front end contains some queries that currently join tables from both Backend > >"A" AND Backend "B".) > > > >Could the salesmen use an Access backend and somehow synchronize it with a > >SQL Server database? > > > >Thanks, > >Barb Ryan > > > > > > > >----- Original Message ----- > >From: "MartyConnelly" > >To: "Access Developers discussion and problem solving" > > > >Sent: Wednesday, March 30, 2005 5:10 PM > >Subject: Re: [AccessD] Replicated .mdb and SQL Server > > > > > > > > > >>I don't know if the Access to SQL upgrade wizard handles replicated > >>databases but here is an unreplicator just in case > >>http://www.trigeminal.com/lang/1033/utility.asp?ItemID=7#7 > >>Do you plan on running replicated SQL server or updating via the > >>internet and SQL Server? > >> > >>Barbara Ryan wrote: > >> > >> > >> > >>>I currently have an Access application, split into a front end linked to > >>> > >>> > >2 separate back end .mdbs. Backend "A" contains the majority of the data > >tables for the application; Backend "B" is a replicable database that is > >also used as the backend database for another Access application that is > >used by salesmen on their laptops. > > > > > >>>The client is considering migrating the data for this application to SQL > >>> > >>> > >Server. Any ideas on how to handle this? The front end contains some > >queries that currently join tables from both Backend "A" AND Backend "B". > > > > > >>>Thanks, > >>>Barb Ryan > >>> > >>> > >>> > >>> > >>-- > >>Marty Connelly > >>Victoria, B.C. > >>Canada > >> > >> > >> > >>-- > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Mar 31 11:19:58 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 12:19:58 -0500 Subject: [AccessD] OT: disabling keys on the keyboard In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67723374C2@corp-es01.fleetpride.com> Message-ID: <003501c53615$e14ed420$697aa8c0@ColbyM6805> ROTFLMAO!!! One of his videos had something about "working"... So he was walking around the house with a little plastic shovel stuffed in his belt and talking on a telephone (a REAL telephone not connected to anything - he wasn't interest in a toy phone) holding a pretend conversation you would swear was with a real person. I called him to come to dinner and he replied in THAT voice... "I'm on the phone with a CLIENT". John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, March 31, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: disabling keys on the keyboard Maybe you could map the key to open a little Access invoice that he could fill in for practice. Its never too early to get started. This would be great training as a jr member of the Future Consultants of America. Does he have a billing rate yet and can he say "unbound forms cost extra?" :-) Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 10:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From mwhittinghill at symphonyinfo.com Thu Mar 31 11:34:55 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 11:34:55 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F2D8@dewey.Symphony.local> Hi all, We are building an ASP.NET website for a client. This client has several registration forms which they want to put on the site as editable PDFs. The idea is: from the web page, the registrant selects a registration form. The site then brings up the editable PDF which the registrant fills out. The PDF is then submitted to the client. How do I do this? Thanks, Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From jim.moss at jlmoss.net Thu Mar 31 11:49:45 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 31 Mar 2005 11:49:45 -0600 (CST) Subject: [AccessD] OT: editable PDFs on website In-Reply-To: <855499653F55AD4190B242717DF132BC04F2D8@dewey.Symphony.local> References: <855499653F55AD4190B242717DF132BC04F2D8@dewey.Symphony.local> Message-ID: <24087.65.196.182.34.1112291385.squirrel@65.196.182.34> Mark, Why not just create pdf forms that the user can fill out? Entered data can then be exported as XML and used by your client. If you or your client don't own Acrobat writer, try something like CutePDF. Jim > Hi all, > > We are building an ASP.NET website for a client. This client has > several registration forms which they want to put on the site as > editable PDFs. The idea is: from the web page, the registrant selects a > registration form. The site then brings up the editable PDF which the > registrant fills out. The PDF is then submitted to the client. How do > I do this? Thanks, > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwhittinghill at symphonyinfo.com Thu Mar 31 12:26:56 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 12:26:56 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F2DB@dewey.Symphony.local> OK, how do I do that? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, March 31, 2005 12:01 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: editable PDFs on website Mark, Why not just create pdf forms that the user can fill out? Entered data can then be exported as XML and used by your client. If you or your client don't own Acrobat writer, try something like CutePDF. Jim > Hi all, > > We are building an ASP.NET website for a client. This client has > several registration forms which they want to put on the site as > editable PDFs. The idea is: from the web page, the registrant selects > a registration form. The site then brings up the editable PDF which > the registrant fills out. The PDF is then submitted to the client. > How do I do this? Thanks, > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 12:30:37 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 10:30:37 -0800 Subject: [AccessD] OT: disabling keys on the keyboard Message-ID: Omigawd, a miniature JC! LOL Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 9:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: disabling keys on the keyboard ROTFLMAO!!! One of his videos had something about "working"... So he was walking around the house with a little plastic shovel stuffed in his belt and talking on a telephone (a REAL telephone not connected to anything - he wasn't interest in a toy phone) holding a pretend conversation you would swear was with a real person. I called him to come to dinner and he replied in THAT voice... "I'm on the phone with a CLIENT". John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, March 31, 2005 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: disabling keys on the keyboard Maybe you could map the key to open a little Access invoice that he could fill in for practice. Its never too early to get started. This would be great training as a jr member of the Future Consultants of America. Does he have a billing rate yet and can he say "unbound forms cost extra?" :-) Jim Hale -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 10:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: disabling keys on the keyboard Is there any way (utility) to disable keys such as the windows key and the function keys on the keyboard. I have an old laptop I want to give to my 4 year old son to play his games and stuff. However he plays with the keys and as you know the Windows key (for one) causes a menu to pop up interrupting his play and requiring me to go rescue him. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Mar 31 12:54:49 2005 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 31 Mar 2005 10:54:49 -0800 Subject: [AccessD] May need an Unbound form Message-ID: I vaguely remember something about recordlocking switching to page locking under specific circumstances, but I'll be darned if I can remember any details. Did it have something to do with a server backend?? Problems with extended pagelocking due to NOS "intelligent" caching?? Transactions?? Darn!! The memory loss that comes with old age is biting me today. Are you using DAO to open the recordset? I believe it ignores the settings unless you specify them in the lockedits argument of the OpenRecordset. Also, it ignores recordlocking if you open the database from a shortcut. And optimistic locking (NoLocks) overrides record-level locking, so could that be the problem? The only other thing I could think of would be if you were creating your own custom ID for each of these records rather than using an autonumber. BTW, what version of Access are you dealing with? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 9:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Charlotte, Nope, this is a bound subform, uses the LinkChild / Master properties to "filter" the subform records, the subform just uses SELECT * from tblXXXX as the query etc. This is a clean implementation of a bound form, nothing fancy needed or used. The lock is occurring in the child form / table, the communications subform. The users literally open the main form, filtered to a small subset of people (in a set of zip codes) and just start at the first person, making phone calls. If they don't get an answer or just leave a message on an answering machine, then they create a new comms record and select from a "status" and move on. If they actually talk to the person, they select a status and then may fill in a memo re the conversation. Really nothing fancy here, a very simple child table with about 5 fields including the PEID foreign key, and a couple of other FKs for employee making the call, contract being called about and status, plus the memo. These are ALL new comm records, no editing a record someone else might be in etc. Why is there a lock at all? The FE is set up for Record locking. The memo field is actually just a text(255) field, not even a real memo. I removed ALL indexes (including the relationship between people and comms) on the theory that this might be a lock on the index pages. I finally added code to save the record In AfterUpdate of each and every control so that as they tabbed out of each control the record was saved (to release any locks) and this does help... But there are still locks happening. Bizarre. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike_Webb at whoopingcrane.org Thu Mar 31 13:07:58 2005 From: Mike_Webb at whoopingcrane.org (Mike Webb) Date: Thu, 31 Mar 2005 13:07:58 -0600 Subject: [AccessD] Re: Problem with hyperlinks from a table or form In-Reply-To: <200503311636.j2VGaHi04736@databaseadvisors.com> Message-ID: Tried doing a fresh link and got no where. First, I tried the normal method of selecting a file to be the hyperlink. I just got the hourglass for several minutes, checked TaskMan and found Access to be "not responding". My guess is the attempted "pull" of over 4K PDF files to select from was too much. I then tried typing in the URL path to the file. All I got when testing it is a quick "blink" of the monitor. Mike -------------------------------------------- Message: 15 Date: Thu, 31 Mar 2005 09:35:58 -0600 From: "Mike Webb" Subject: [AccessD] RE: Re: Problem with hyperlinks from a table or form (Gary Kjos) To: Message-ID: Content-Type: text/plain; charset="us-ascii" Good idea, I hadn't thought of trying a fresh link rather than editing the existing link. I'll give it a try and report back. Mike Webb ---------------------------------------- Original message Message: 6 Date: Wed, 30 Mar 2005 15:31:20 -0600 From: "Mike Webb" Subject: [AccessD] Problem with hyperlinks from a table or form To: Message-ID: <5F98E4A038296E40A3F2B78A68A04A4301CCCB at wct.whooper.local> Content-Type: text/plain; charset="iso-8859-1" Posted this to NG microsoft.public.access.gettingstarted, but no reply. Then I tried a non-profit techie website, but wasn't able to find a solution. A responder suggested this group. Am hoping a reader of this list can help: ====================== Using Access XP on WinXP box on a SBS 2003 LAN. Experience level: Novice I've scanned a bit over 4000 docs into PDF format, accessible in Access via search forms and reports. Started with them in my Shared Docs folder when we had just a P2P network. Now that we have the server, I'd like to move the docs to a common folder there. Just tried it with one doc, edited the hyperlink to reflect the network path, but all it would do is "blink" for a split second. Tried mapping the location, same result. The location on the server is \\[servername]\Users\Company with Company being the common folder accessible to all users on the network. I then tried copying one of the PDF's to the server and was able to get it to open from Access. So, thinking I had this solved, I copied the folder with all 4000+ files in it to the server. Now I'm back to the "blink" described above when I click on the hyperlink. I've tried sharing the folder, broadening the permissions for share and security, nothing works. Now I can create a shortcut on my desktop and the file opens just fine. I can also navigate to the file within Adobe Acrobat 7.0 and this too works fine. So I think it's an Access thing, but I'm in over my head, ability-wise. I have not split the DB yet. The file is on my computer. I also happen to be the domain and local computer admin. I'm kinda stumped on what I did wrong or what I'm missing. Any ideas? ====================================================== Michael J. Webb Administrative Assistant/IT Administrator Platte River Whooping Crane Maintenance Trust, Inc. 6611 W. Whooping Crane Dr. Wood River, NE 68883 Office (308) 384-4633 FAX (308) 384-7209 email Mike_Webb at WhoopingCrane.org www.whoopingcrane.org ====================================================== From jwcolby at colbyconsulting.com Thu Mar 31 13:09:54 2005 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 31 Mar 2005 14:09:54 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: Message-ID: <003701c53625$38b45780$697aa8c0@ColbyM6805> WinXP, OfficeXP. All SPs applied. This is a simple bound subform, no recordset objects or the like. We are going to try optimistic locking to see if the issues go away. Given how simple this db is and how they all just sit in this one form entering new records all night, it seems that any locking is probably not needed. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 1:55 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form I vaguely remember something about recordlocking switching to page locking under specific circumstances, but I'll be darned if I can remember any details. Did it have something to do with a server backend?? Problems with extended pagelocking due to NOS "intelligent" caching?? Transactions?? Darn!! The memory loss that comes with old age is biting me today. Are you using DAO to open the recordset? I believe it ignores the settings unless you specify them in the lockedits argument of the OpenRecordset. Also, it ignores recordlocking if you open the database from a shortcut. And optimistic locking (NoLocks) overrides record-level locking, so could that be the problem? The only other thing I could think of would be if you were creating your own custom ID for each of these records rather than using an autonumber. BTW, what version of Access are you dealing with? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, March 31, 2005 9:15 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] May need an Unbound form Charlotte, Nope, this is a bound subform, uses the LinkChild / Master properties to "filter" the subform records, the subform just uses SELECT * from tblXXXX as the query etc. This is a clean implementation of a bound form, nothing fancy needed or used. The lock is occurring in the child form / table, the communications subform. The users literally open the main form, filtered to a small subset of people (in a set of zip codes) and just start at the first person, making phone calls. If they don't get an answer or just leave a message on an answering machine, then they create a new comms record and select from a "status" and move on. If they actually talk to the person, they select a status and then may fill in a memo re the conversation. Really nothing fancy here, a very simple child table with about 5 fields including the PEID foreign key, and a couple of other FKs for employee making the call, contract being called about and status, plus the memo. These are ALL new comm records, no editing a record someone else might be in etc. Why is there a lock at all? The FE is set up for Record locking. The memo field is actually just a text(255) field, not even a real memo. I removed ALL indexes (including the relationship between people and comms) on the theory that this might be a lock on the index pages. I finally added code to save the record In AfterUpdate of each and every control so that as they tabbed out of each control the record was saved (to release any locks) and this does help... But there are still locks happening. Bizarre. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, March 31, 2005 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] May need an Unbound form John, It sounds like you have a normal one-to-many relationship between the parent form and subform. Where is the lock occuring, in the parent table or the child table? Is the parent table included in the subform source? Is the subform table included in the parent form source? When I've seen similar locking issues, they've always revolved around those two questions. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Wednesday, March 30, 2005 10:26 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] May need an Unbound form OK Guys, WinXP, OfficeXP, all service packs applied for Windows as well as office. I have a situation where a group of 2 to 6 or so people open a form of people info, with contact subform, making phone calls all night. These people call therapists trying to fill employment contracts. They may make changes to the person info (address changes etc. but mostly they just enter new contact records which consist of a simple date and employee (prefilled), call status (left message, not interested etc,) and a memo field. All night long just mostly entering records in this contact subform. The problem is that they are having HUGE locking issues. I got rid of all indexes, but they were still getting locks. An employee will start an edit (select a status, then fill in the memo etc.) but they may hold the record in the edit state for a minute or two. If any other employee tries to start a new edit they get a lock, WITHOUT the lock symbol in the record selector. It is reproducible, it always happens and it SUCKS. These people are not editing each others records, they are always building NEW records, but they are getting these locks and it just killed their productivity. I made a change such that as soon as they enter any data (after update of any control), the record is saved. That causes the new records to save immediately as well as the edits during the course of business to save ASAP. This helps but they are still seeing the locks occasionally, however now they are seeing the lock symbol in the record selector. I checked all the usual suspects, SPs, edit modes, compact / repair etc. I am just not finding the problem. As far as I know this shouldn't be happening, but it is. Has anyone seen this behavior? Solutions? This leads me to consider (for the first time in my career) using an unbound form for collecting the new data record so that the save just does a single write of the entire record, one time, as the contact record is finished and ready to store. Needless to say this is not my forte and I the form is not allowing new data to be entered. The form itself is unbound, all the controls are unbound, the modes are: AllowEdits False AllowDeletes False AllowAdds False EditMode True This should allow all the controls to accept data but no control can accept data. I tried AllowEdits true and Editmode false, no help. The form is not locked, the controls are not locked. The form was opened originally from a form which was passing in a filter if that means anything. I was going to grab the existing record data and then unbind the form but I am now just looking at a plain Jane new data entry form. Any suggestions gratefully accepted. Thanks, John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Mar 31 13:12:52 2005 From: dw-murphy at cox.net (dw-murphy at cox.net) Date: Thu, 31 Mar 2005 14:12:52 -0500 Subject: [AccessD] Access Report to PowerPoint Message-ID: <20050331191252.UNAO7956.fed1rmmtao05.cox.net@smtp.west.cox.net> Rocky, You might want to see if you can embed the snap shot reader control into powerpoint. There is some material in the knowledge base at MS on embeding snap shots. Doug > > From: Lonnie Johnson > Date: 2005/03/31 Thu AM 10:06:17 EST > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases > Visit me at ==> http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From garykjos at gmail.com Thu Mar 31 13:31:12 2005 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 31 Mar 2005 13:31:12 -0600 Subject: [AccessD] Re: Problem with hyperlinks from a table or form In-Reply-To: References: <200503311636.j2VGaHi04736@databaseadvisors.com> Message-ID: Well now you know that it's not the editing of the established hyperlink that is the problem. If you suspect that it's the number of files that is an issue, why not move a couple to a different folder on the shared drive and try linking there. Assuming that works, perhaps you could load the files into multiple sub-folders. On Mar 31, 2005 1:07 PM, Mike Webb wrote: > Tried doing a fresh link and got no where. First, I tried the normal method > of selecting a file to be the hyperlink. I just got the hourglass for > several minutes, checked TaskMan and found Access to be "not responding". > My guess is the attempted "pull" of over 4K PDF files to select from was too > much. I then tried typing in the URL path to the file. All I got when > testing it is a quick "blink" of the monitor. > > Mike > -- Gary Kjos garykjos at gmail.com From Erwin.Craps at ithelps.be Thu Mar 31 14:15:50 2005 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 31 Mar 2005 22:15:50 +0200 Subject: [AccessD] Access Report to PowerPoint Message-ID: <46B976F2B698FF46A4FE7636509B22DF1B597B@stekelbes.ithelps.local> This seems to do the trick. I'm not fond of using bitmaps for text, you could run into some text readability problems when the client(s) pc has a different resolution then the source pc. Especialy with small fonts... Further more the background of the powerpoint will be white from the picture instead of transparent. Not to professional... I still don't know why your client insist for Powerpoint while an adobe PDF or a snapshot view could be better. I supose for projecting reasons... Probably it will do the trick, if its ok for the client, I would not bother any further because you gonna get into programming a couple of days. Greetz Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, March 31, 2005 7:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access Report to PowerPoint Rocky, Here you go! Great find Karen! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, March 31, 2005 10:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access Report to PowerPoint I have not tested it, but check out this link: http://www.access-programmers.co.uk/forums/showthread.php?t=83231 There is a sample database to export the report to PowerPoint. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, March 31, 2005 10:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Report to PowerPoint Erwin: It's a request from a user who is using my E-Z-MRP system (over in Malaysia, actually). Here's the actual request: Our management would like to view the MRP Report in Microsoft power point format. What I've done here is, I will print scrn the MRP Report one by one and paste into Microsoft power point format. This is very time consuming. Thus, I would like to check with you that, could we export the MRP Report directly to Power Point format instead of print Scrn it one by one? TIA or any ideas, Rocky Smolin Beach Access Software http://www.e-z-mrp.com 858-259-4334 ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, March 31, 2005 7:32 AM Subject: RE: [AccessD] Access Report to PowerPoint > You could take a screen capture and save it as a JPG and insert into > powerpoint. > > Or you could collect data with an SQL string from powerpoint and format > some data into the slide. > > Maybe, you can export the report to html files from access and import > those htmls into Powerpoint. But your layout will be changed. > > Tell us a bit more what the purpose of the powerpoint will be. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Thursday, March 31, 2005 5:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access Report to PowerPoint > > There is no export or transfer feature from Access to Powerpoint. Most > documentation I have seen involved cutting and pasting. > > Rocky Smolin - Beach Access Software wrote:Dear > List: > > Is there an easy way to export an Access report directly to PowerPoint? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > 858-259-4334 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > May God bless you beyond your imagination! > Lonnie Johnson > ProDev, Professional Development of MS Access Databases Visit me at ==> > http://www.prodev.us > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business - Try our new resources site! > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Mar 31 14:18:44 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 31 Mar 2005 14:18:44 -0600 (CST) Subject: [AccessD] OT: editable PDFs on website In-Reply-To: <855499653F55AD4190B242717DF132BC04F2DB@dewey.Symphony.local> References: <855499653F55AD4190B242717DF132BC04F2DB@dewey.Symphony.local> Message-ID: <30565.65.196.182.34.1112300324.squirrel@65.196.182.34> You have to have some pdf creation product, I use Acrobat because that's what was available for me to use. I haven't tried CutePDF, but it looks like it will create interactive forms just like Acrobat and there is a SDK available. The forms that I have done already existed as word documents, which I saved as pdf's and applied text boxes, check boxes, list boxes, etc to and then saved. Each object can be named and data type set when creating the form. Data can be exported from filled out forms. Jim > OK, how do I do that? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss > Sent: Thursday, March 31, 2005 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: editable PDFs on website > > Mark, > > Why not just create pdf forms that the user can fill out? Entered data > can then be exported as XML and used by your client. If you or your > client don't own Acrobat writer, try something like CutePDF. > > Jim > > >> Hi all, >> >> We are building an ASP.NET website for a client. This client has >> several registration forms which they want to put on the site as >> editable PDFs. The idea is: from the web page, the registrant selects > >> a registration form. The site then brings up the editable PDF which >> the registrant fills out. The PDF is then submitted to the client. >> How do I do this? Thanks, >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From artful at rogers.com Thu Mar 31 14:29:07 2005 From: artful at rogers.com (Arthur Fuller) Date: Thu, 31 Mar 2005 15:29:07 -0500 Subject: [AccessD] May need an Unbound form In-Reply-To: <003701c53625$38b45780$697aa8c0@ColbyM6805> References: <003701c53625$38b45780$697aa8c0@ColbyM6805> Message-ID: <424C5D93.5070209@rogers.com> One thing you didn't mention: forms have a Data-Entry flag. Have you tried setting that to True? ----------------- What I would suggest, to give you time to really sort out the problem, is creation of a copy of the table(s) for each user, and then using a static function or a class open those tables in your form. The contention will instantly go away. You can then add some code to the Save button that appends the master and detail rows to the "real" tables. Not an elegant solution, but it will work until you figure out what's wrong. John W. Colby wrote: >WinXP, OfficeXP. All SPs applied. This is a simple bound subform, no >recordset objects or the like. > >We are going to try optimistic locking to see if the issues go away. Given >how simple this db is and how they all just sit in this one form entering >new records all night, it seems that any locking is probably not needed. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, March 31, 2005 1:55 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] May need an Unbound form > > >I vaguely remember something about recordlocking switching to page locking >under specific circumstances, but I'll be darned if I can remember any >details. Did it have something to do with a server backend?? Problems with >extended pagelocking due to NOS "intelligent" caching?? Transactions?? >Darn!! The memory loss that comes with old age is biting me today. > >Are you using DAO to open the recordset? I believe it ignores the settings >unless you specify them in the lockedits argument of the OpenRecordset. >Also, it ignores recordlocking if you open the database from a shortcut. >And optimistic locking (NoLocks) overrides record-level locking, so could >that be the problem? The only other thing I could think of would be if you >were creating your own custom ID for each of these records rather than using >an autonumber. BTW, what version of Access are you dealing with? > >Charlotte Foust > > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Thursday, March 31, 2005 9:15 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] May need an Unbound form > > >Charlotte, > >Nope, this is a bound subform, uses the LinkChild / Master properties to >"filter" the subform records, the subform just uses SELECT * from tblXXXX as >the query etc. This is a clean implementation of a bound form, nothing >fancy needed or used. The lock is occurring in the child form / table, the >communications subform. The users literally open the main form, filtered to >a small subset of people (in a set of zip codes) and just start at the first >person, making phone calls. If they don't get an answer or just leave a >message on an answering machine, then they create a new comms record and >select from a "status" and move on. If they actually talk to the person, >they select a status and then may fill in a memo re the conversation. > >Really nothing fancy here, a very simple child table with about 5 fields >including the PEID foreign key, and a couple of other FKs for employee >making the call, contract being called about and status, plus the memo. >These are ALL new comm records, no editing a record someone else might be in >etc. > >Why is there a lock at all? The FE is set up for Record locking. The memo >field is actually just a text(255) field, not even a real memo. I removed >ALL indexes (including the relationship between people and >comms) on the theory that this might be a lock on the index pages. I >finally added code to save the record In AfterUpdate of each and every >control so that as they tabbed out of each control the record was saved (to >release any locks) and this does help... But there are still locks >happening. > >Bizarre. > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust >Sent: Thursday, March 31, 2005 11:57 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] May need an Unbound form > > >John, > >It sounds like you have a normal one-to-many relationship between the parent >form and subform. Where is the lock occuring, in the parent table or the >child table? Is the parent table included in the subform source? Is the >subform table included in the parent form source? When I've seen similar >locking issues, they've always revolved around those two questions. > >Charlotte Foust > > >-----Original Message----- >From: John W. Colby [mailto:jwcolby at colbyconsulting.com] >Sent: Wednesday, March 30, 2005 10:26 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] May need an Unbound form > > >OK Guys, > >WinXP, OfficeXP, all service packs applied for Windows as well as office. > >I have a situation where a group of 2 to 6 or so people open a form of >people info, with contact subform, making phone calls all night. These >people call therapists trying to fill employment contracts. They may make >changes to the person info (address changes etc. but mostly they just enter >new contact records which consist of a simple date and employee (prefilled), >call status (left message, not interested etc,) and a memo field. All night >long just mostly entering records in this contact subform. > >The problem is that they are having HUGE locking issues. I got rid of all >indexes, but they were still getting locks. An employee will start an edit >(select a status, then fill in the memo etc.) but they may hold the record >in the edit state for a minute or two. If any other employee tries to start >a new edit they get a lock, WITHOUT the lock symbol in the record selector. >It is reproducible, it always happens and it SUCKS. These people are not >editing each others records, they are always building NEW records, but they >are getting these locks and it just killed their productivity. > >I made a change such that as soon as they enter any data (after update of >any control), the record is saved. That causes the new records to save >immediately as well as the edits during the course of business to save ASAP. >This helps but they are still seeing the locks occasionally, however now >they are seeing the lock symbol in the record selector. > >I checked all the usual suspects, SPs, edit modes, compact / repair etc. I >am just not finding the problem. As far as I know this shouldn't be >happening, but it is. Has anyone seen this behavior? Solutions? > >This leads me to consider (for the first time in my career) using an unbound >form for collecting the new data record so that the save just does a single >write of the entire record, one time, as the contact record is finished and >ready to store. Needless to say this is not my forte and I the form is not >allowing new data to be entered. The form itself is unbound, all the >controls are unbound, the modes are: > >AllowEdits False >AllowDeletes False >AllowAdds False >EditMode True > >This should allow all the controls to accept data but no control can accept >data. > >I tried AllowEdits true and Editmode false, no help. The form is not >locked, the controls are not locked. The form was opened originally from a >form which was passing in a filter if that means anything. I was going to >grab the existing record data and then unbind the form but I am now just >looking at a plain Jane new data entry form. > >Any suggestions gratefully accepted. > >Thanks, > >John W. Colby >www.ColbyConsulting.com > >Contribute your unused CPU cycles to a good cause: >http://folding.stanford.edu/ > > > > -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005 From mwhittinghill at symphonyinfo.com Thu Mar 31 15:07:43 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 15:07:43 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F2FD@dewey.Symphony.local> The client will create the forms. We just need to link to them from the website, I think. Can you have a pdf form on the site which gets submitted when done? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, March 31, 2005 2:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: editable PDFs on website You have to have some pdf creation product, I use Acrobat because that's what was available for me to use. I haven't tried CutePDF, but it looks like it will create interactive forms just like Acrobat and there is a SDK available. The forms that I have done already existed as word documents, which I saved as pdf's and applied text boxes, check boxes, list boxes, etc to and then saved. Each object can be named and data type set when creating the form. Data can be exported from filled out forms. Jim > OK, how do I do that? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss > Sent: Thursday, March 31, 2005 12:01 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: editable PDFs on website > > Mark, > > Why not just create pdf forms that the user can fill out? Entered data > can then be exported as XML and used by your client. If you or your > client don't own Acrobat writer, try something like CutePDF. > > Jim > > >> Hi all, >> >> We are building an ASP.NET website for a client. This client has >> several registration forms which they want to put on the site as >> editable PDFs. The idea is: from the web page, the registrant >> selects > >> a registration form. The site then brings up the editable PDF which >> the registrant fills out. The PDF is then submitted to the client. >> How do I do this? Thanks, >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jim.moss at jlmoss.net Thu Mar 31 15:23:30 2005 From: jim.moss at jlmoss.net (Jim Moss) Date: Thu, 31 Mar 2005 15:23:30 -0600 (CST) Subject: [AccessD] OT: editable PDFs on website In-Reply-To: <855499653F55AD4190B242717DF132BC04F2FD@dewey.Symphony.local> References: <855499653F55AD4190B242717DF132BC04F2FD@dewey.Symphony.local> Message-ID: <32864.65.196.182.34.1112304210.squirrel@65.196.182.34> Mark, We had the forms for download and the prospective client filled them out and emailed them back to us. Jim > The client will create the forms. We just need to link to them from the > website, I think. Can you have a pdf form on the site which gets > submitted when done? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss > Sent: Thursday, March 31, 2005 2:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT: editable PDFs on website > > You have to have some pdf creation product, I use Acrobat because that's > what was available for me to use. I haven't tried CutePDF, but it looks > like it will create interactive forms just like Acrobat and there is a > SDK available. > > The forms that I have done already existed as word documents, which I > saved as pdf's and applied text boxes, check boxes, list boxes, etc to > and then saved. Each object can be named and data type set when creating > the form. Data can be exported from filled out forms. > > Jim > > >> OK, how do I do that? >> >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss >> Sent: Thursday, March 31, 2005 12:01 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: editable PDFs on website >> >> Mark, >> >> Why not just create pdf forms that the user can fill out? Entered data > >> can then be exported as XML and used by your client. If you or your >> client don't own Acrobat writer, try something like CutePDF. >> >> Jim >> >> >>> Hi all, >>> >>> We are building an ASP.NET website for a client. This client has >>> several registration forms which they want to put on the site as >>> editable PDFs. The idea is: from the web page, the registrant >>> selects >> >>> a registration form. The site then brings up the editable PDF which >>> the registrant fills out. The PDF is then submitted to the client. >>> How do I do this? Thanks, >>> >>> Mark Whittinghill >>> Symphony Information Services >>> 763-391-7400 >>> mwhittinghill at symphonyinfo.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mwhittinghill at symphonyinfo.com Thu Mar 31 15:52:53 2005 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 31 Mar 2005 15:52:53 -0600 Subject: [AccessD] OT: editable PDFs on website Message-ID: <855499653F55AD4190B242717DF132BC04F301@dewey.Symphony.local> Jim, Just so I get this right for our case: Our client can build the editable pdf forms. Our website provides a download link. The registrant downloads the pdf form, fills it in, and emails it to our client. Our client can then extract the data from the pdf form into their database. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Moss Sent: Thursday, March 31, 2005 3:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: editable PDFs on website Mark, We had the forms for download and the prospective client filled them out and emailed them back to us. Jim > The client will create the forms. We just need to link to them from > the website, I think. Can you have a pdf form on the site which gets > submitted when done? > > > Mark Whittinghill > Symphony Information Services > 763-391-7400 > mwhittinghill at symphonyinfo.com From bchacc at san.rr.com Thu Mar 31 16:36:27 2005 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 31 Mar 2005 14:36:27 -0800 Subject: [AccessD] Fw: Datacle - Interactive Information Message-ID: <03c901c53642$1413a3a0$6401a8c0@HAL9004> Anyone know anything about this Datacle? Rocky ----- Original Message ----- From: "Allen C. Harlan" To: Sent: Thursday, March 31, 2005 2:09 PM Subject: Datacle - Interactive Information > > Access, Excel, Database Developers, Consultants, Managers, and End-Users: > > Harlan Brothers Company is pleased to introduce Datacle, the Interactive > Information reporting tool. > > www.datacle.com > > Please, take a few minutes to see the future. It will be worth your > while! > Thank you, > > Allen C. Harlan > Harlan Brothers Company > Phoenix, Arizona > (602) 971-7108 > > > From newsgrps at dalyn.co.nz Thu Mar 31 17:01:04 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 01 Apr 2005 11:01:04 +1200 Subject: [AccessD] Disabling Ctrl-A Message-ID: <6.2.1.2.0.20050401105134.03d98d20@mail.dalyn.co.nz> AXP One of my users has discovered that by selecting Ctrl-A this will select all records. Then he can copy, open up Excel and paste all the records into a spreadsheet. However, because of the sensitive nature of the data, Management do not want the full database to be available this way. How can I disable Ctrl-A so that all records cannot be selected. I have already removed from my custom menu the option to Select all records but Ctrl-A still works. Of course there is still the problem of manually selecting all records with the mouse - any thoughts on this problem as well? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 From prodevmg at yahoo.com Thu Mar 31 17:06:39 2005 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Thu, 31 Mar 2005 15:06:39 -0800 (PST) Subject: [AccessD] Disabling Ctrl-A In-Reply-To: 6667 Message-ID: <20050331230639.47931.qmail@web20423.mail.yahoo.com> You could use the autokeys macro to override the control A and send a msgbox saying "Can't do that" David Emerson wrote:AXP One of my users has discovered that by selecting Ctrl-A this will select all records. Then he can copy, open up Excel and paste all the records into a spreadsheet. However, because of the sensitive nature of the data, Management do not want the full database to be available this way. How can I disable Ctrl-A so that all records cannot be selected. I have already removed from my custom menu the option to Select all records but Ctrl-A still works. Of course there is still the problem of manually selecting all records with the mouse - any thoughts on this problem as well? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (04) 478-7456 Mobile 027-280-9348 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com May God bless you beyond your imagination! Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. From marvkin at hotmail.com Thu Mar 31 17:51:36 2005 From: marvkin at hotmail.com (marvin hunkin) Date: Fri, 1 Apr 2005 09:51:36 +1000 Subject: [AccessD] microsoft access questions Message-ID: hi. doing a database assignment for my access class. i am a blind student at my college in australia. using ms access 2000, windows 2000, and using the jaws screen reading software and using version 5.10 for more information about jaws for windows go to http://www.freedomscientific.com now have had several problems. now if any one can give me some answers on how to fix the problems i am having. 1. one of my queeries which i built from a table and imported from excel. it has the primary key field set to number. but instead of giving me sequential numbers like 1.2,3, it only says 1,1,1, etc. should i try to set the data type back to autom number? will this fix this problem? also got the same problem with my report, it just keeps saying the id 1, for each record. it should say id 2. id3, etc. how do i fix this? 2. when i set up my relationships to the id fields in my tables in access , and try to tick the referential integrity, cascade update records, update deleted records, and try to click on create, it gives me a message saying the database could not lock the table, or that the data fields are not the same type, as they are all data type of number, and set to long integer. 3. i created several reports and sub report in collumna format. how do i resize the report and sub report using the keyboard? jaws will not let me use the mouse, or reads very erraticly. is there any third party software that will allow me to resize reports and sub reports in access 2000? if any one can help me, then e-mail me privately off list. cheers Marvin. From newsgrps at dalyn.co.nz Thu Mar 31 18:10:35 2005 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 01 Apr 2005 12:10:35 +1200 Subject: [AccessD] Disabling Ctrl-A In-Reply-To: <20050331230639.47931.qmail@web20423.mail.yahoo.com> References: <20050331230639.47931.qmail@web20423.mail.yahoo.com> Message-ID: <6.2.1.2.0.20050401115842.0289a410@mail.dalyn.co.nz> Ah, I knew there would be a simple solution - Thanks Lonnie. Does anyone have any thoughts on the other problem - manually selecting all records with the mouse, then copying them to the clipboard. I don't want to disable Ctrl-C because it is useful elsewhere in the programme. Is there a way to check if records are selected (any number of records - not just all of them)? David At 1/04/2005, Lonnie wrote: >You could use the autokeys macro to override the control A and send a >msgbox saying "Can't do that" > >David Emerson wrote:AXP > >One of my users has discovered that by selecting Ctrl-A this will select >all records. Then he can copy, open up Excel and paste all the records >into a spreadsheet. However, because of the sensitive nature of the data, >Management do not want the full database to be available this way. > >How can I disable Ctrl-A so that all records cannot be selected. I have >already removed from my custom menu the option to Select all records but >Ctrl-A still works. > >Of course there is still the problem of manually selecting all records with >the mouse - any thoughts on this problem as well? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (04) 478-7456 >Mobile 027-280-9348