From spike at tenbus.co.uk Mon Jan 1 06:49:17 2007 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 01 Jan 2007 12:49:17 +0000 Subject: [AccessD] OT - ISO 3166 Country Codes Message-ID: <4599034D.7080504@tenbus.co.uk> Following on from the recent discussion about sharing useful lists of stuff, and indeed the new facility to view the dba web site in non-english, I wonder if anyone would like to help me compile a list of Country Codes. I'm working on an address database and it seemed to me that it would be useful to use the ISO 3166 two letter code. The source data that I'm working from comes from the ISO web site and so far I've created a lookup table in English and French. I've uploaded csv, Excel and Open Office formated spreadsheets to my web server if anyone's interested. I would appreciate if anyone had the time to add translations into any other languages. Best regards and Happy 2007 to all! Chris Foote BTW - When completed, I would like to upload this list to the DBA Reference Lists area From stuart at lexacorp.com.pg Mon Jan 1 07:10:01 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 01 Jan 2007 23:10:01 +1000 Subject: [AccessD] OT - ISO 3166 Country Codes In-Reply-To: <4599034D.7080504@tenbus.co.uk> References: <4599034D.7080504@tenbus.co.uk> Message-ID: <45990829.7475.46A3D8D@stuart.lexacorp.com.pg> On 1 Jan 2007 at 12:49, Webadmin - Tenbus wrote: > Following on from the recent discussion about sharing useful lists of > stuff, and indeed the new facility to view the dba web site in > non-english, I wonder if anyone would like to help me compile a list of > Country Codes. > > I'm working on an address database and it seemed to me that it would be > useful to use the ISO 3166 two letter code. > > The source data that I'm working from comes from the ISO web site > dex.html> and so far I've created a lookup table in English and French. > > I've uploaded csv, Excel and Open Office formated spreadsheets to my web > server if anyone's interested. > > I would appreciate if anyone had the time to add translations into any other > languages. Google turned up a couple of other resources: Someone's done it for German here: http://www.bigbold.com/snippets/posts/show/1051 and a zipped Access mdb in Spanish here: http://www.gbif.es/Recursos_in.php-- Stuart From spike at tenbus.co.uk Mon Jan 1 07:55:06 2007 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 01 Jan 2007 13:55:06 +0000 Subject: [AccessD] OT - ISO 3166 Country Codes In-Reply-To: <45990829.7475.46A3D8D@stuart.lexacorp.com.pg> References: <4599034D.7080504@tenbus.co.uk> <45990829.7475.46A3D8D@stuart.lexacorp.com.pg> Message-ID: <459912BA.4050006@tenbus.co.uk> Stuart McLachlan wrote: > On 1 Jan 2007 at 12:49, Webadmin - Tenbus wrote: > > >> Following on from the recent discussion about sharing useful lists of >> stuff, and indeed the new facility to view the dba web site in >> non-english, I wonder if anyone would like to help me compile a list of >> Country Codes. >> >> I'm working on an address database and it seemed to me that it would be >> useful to use the ISO 3166 two letter code. >> >> The source data that I'm working from comes from the ISO web site >> > dex.html> and so far I've created a lookup table in English and French. >> >> I've uploaded csv, Excel and Open Office formated spreadsheets to my web >> server if anyone's interested. >> >> I would appreciate if anyone had the time to add translations into any other >> languages. >> > > Google turned up a couple of other resources: > > Someone's done it for German here: > http://www.bigbold.com/snippets/posts/show/1051 > > and a zipped Access mdb in Spanish here: > http://www.gbif.es/Recursos_in.php-- > Stuart > > > Cheers Stuart! Looks like I've got a bit of merging to do ;-) Best regards! Chris Foote From Gustav at cactus.dk Mon Jan 1 08:35:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jan 2007 15:35:43 +0100 Subject: [AccessD] OT: MS Log Parser and Scriptomatic Message-ID: Happy New Year to all. Are you aware of the Log Parser tools for analyzing log scripts or - in general - extract data from text files like log files or csv files using SQL syntax? Unofficial site: http://www.logparser.com/ Log Parser 2.2 download: http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en A GUI exists for this as well: http://en.serialcoder.net/logiciels/visual-logparser.aspx Also, a tool to generate scripts for various purposes: Scriptomatic 2.0 download: http://www.microsoft.com/downloads/details.aspx?FamilyID=09dfc342-648b-4119-b7eb-783b0f7d1178&DisplayLang=en /gustav From Gustav at cactus.dk Mon Jan 1 09:40:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jan 2007 16:40:36 +0100 Subject: [AccessD] OT: ISO 639 Language Codes Message-ID: - and here is the list of language codes: http://www.loc.gov/standards/iso639-2/ as you, of course, would need the language code to identify the language(s) for the list of country names. /gustav On 1 Jan 2007 at 12:49, Webadmin - Tenbus wrote: > Following on from the recent discussion about sharing useful lists of > stuff, and indeed the new facility to view the dba web site in > non-english, I wonder if anyone would like to help me compile a list of > Country Codes. > > I'm working on an address database and it seemed to me that it would be > useful to use the ISO 3166 two letter code. > > The source data that I'm working from comes from the ISO web site > dex.html> and so far I've created a lookup table in English and French. > > I've uploaded csv, Excel and Open Office formated spreadsheets to my web > server if anyone's interested. > > I would appreciate if anyone had the time to add translations into any other > languages. From Gustav at cactus.dk Mon Jan 1 10:07:19 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jan 2007 17:07:19 +0100 Subject: [AccessD] OT - ISO 3166 Country Codes Message-ID: And here is a list of most country names in the local language(s) as well as in English, Danish, Norwegian, and Swedish: http://www.at-rejse-er-at-leve.dk/navne/ordbog_lokal_a.htm Be careful, it doesn't seem to be fully updated - for example ME, Montenegro, cannot be found. /gustav On 1 Jan 2007 at 12:49, Webadmin - Tenbus wrote: > Following on from the recent discussion about sharing useful lists of > stuff, and indeed the new facility to view the dba web site in > non-english, I wonder if anyone would like to help me compile a list of > Country Codes. > > I'm working on an address database and it seemed to me that it would be > useful to use the ISO 3166 two letter code. > > The source data that I'm working from comes from the ISO web site > dex.html> and so far I've created a lookup table in English and French. > > I've uploaded csv, Excel and Open Office formated spreadsheets to my web > server if anyone's interested. > > I would appreciate if anyone had the time to add translations into any other > languages. From accessd at shaw.ca Mon Jan 1 10:38:25 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 01 Jan 2007 08:38:25 -0800 Subject: [AccessD] Reference List, Sites and Miscellaneous In-Reply-To: Message-ID: <0JB7002AR7GB4VQ0@l-daemon> Hi All: A group of links have been added to the Reference sections of the DBA web site. http://www.databaseadvisors.com/references.asp Jim From Gustav at cactus.dk Mon Jan 1 11:12:46 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jan 2007 18:12:46 +0100 Subject: [AccessD] Reference List, Sites and Miscellaneous Message-ID: Hi Jim Very good. And absolutely updated, I notice! But the linespacing seems a bit odd - the links look like belonging to the header on the next line. /gustav >>> accessd at shaw.ca 01-01-2007 17:38 >>> Hi All: A group of links have been added to the Reference sections of the DBA web site. http://www.databaseadvisors.com/references.asp Jim From bchacc at san.rr.com Mon Jan 1 12:28:15 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Mon, 1 Jan 2007 10:28:15 -0800 Subject: [AccessD] Reference List, Sites and Miscellaneous In-Reply-To: <0JB7002AR7GB4VQ0@l-daemon> Message-ID: <000d01c72dd2$9a8359b0$0701a8c0@HAL9005> Jim: That is terrific. Having all the access sites in one location is great. Thanks. Rocky Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, January 01, 2007 8:38 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Reference List, Sites and Miscellaneous Hi All: A group of links have been added to the Reference sections of the DBA web site. http://www.databaseadvisors.com/references.asp Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.0/610 - Release Date: 12/30/2006 2:59 PM From Gustav at cactus.dk Mon Jan 1 12:43:09 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 01 Jan 2007 19:43:09 +0100 Subject: [AccessD] OT - ISO 3166 Country Codes Message-ID: Hi all Notice that the ISO 3166-2 list (with region names) which is hard to get is contained in the file Provincias.zip and only the field names are in Spanish. The other file, Paises.zip, contains the ISO 3166-1 list (country names only) in Spanish and includes both the two- and three-letter country codes. Also, note that most lists available except for those from iso.org are not up to date, and that full lists sadly are not free at iso.org. However, update letters are available for free here: http://www.iso.org/iso/en/prods-services/iso3166ma/03updates-on-iso-3166/index.html so you would be able to run your own updating. Finally, note that some entries are not "real" countries. At least for the Scandinavian countries, Faeroe Islands and Greenland belong to Denmark and ?land Islands belong to Finland. /gustav >>> stuart at lexacorp.com.pg 01-01-2007 14:10 >>> > I would appreciate if anyone had the time to add translations into any other languages. Google turned up a couple of other resources: Someone's done it for German here: http://www.bigbold.com/snippets/posts/show/1051 and a zipped Access mdb in Spanish here: http://www.gbif.es/Recursos_in.php Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tbadmin at tenbus.co.uk Mon Jan 1 13:41:08 2007 From: tbadmin at tenbus.co.uk (Webadmin - Tenbus) Date: Mon, 1 Jan 2007 19:41:08 -0000 Subject: [AccessD] OT - ISO 3166 Country Codes In-Reply-To: Message-ID: <004501c72ddc$cc27bd80$0200a8c0@matilda> Many thanks Gustav! I've updated my spreadsheets at to include English, French, German, and Spanish names. The region names version (in Provincias.zip) is a particularly good find - many thanks! I'm going to start on adding local, Danish, Norwegian, and Swedish language versions. Regards Chris F -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 01 January 2007 18:43 To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT - ISO 3166 Country Codes Hi all Notice that the ISO 3166-2 list (with region names) which is hard to get is contained in the file Provincias.zip and only the field names are in Spanish. The other file, Paises.zip, contains the ISO 3166-1 list (country names only) in Spanish and includes both the two- and three-letter country codes. Also, note that most lists available except for those from iso.org are not up to date, and that full lists sadly are not free at iso.org. However, update letters are available for free here: http://www.iso.org/iso/en/prods-services/iso3166ma/03updates-on-iso-3166/ind ex.html so you would be able to run your own updating. Finally, note that some entries are not "real" countries. At least for the Scandinavian countries, Faeroe Islands and Greenland belong to Denmark and ?land Islands belong to Finland. /gustav From askolits at ot.com Mon Jan 1 20:29:53 2007 From: askolits at ot.com (John Skolits) Date: Mon, 1 Jan 2007 21:29:53 -0500 Subject: [AccessD] Spanish Translations In-Reply-To: <001501c72c8b$688fcf80$0701a8c0@HAL9005> Message-ID: <012901c72e15$e5bdca80$800101df@officexp> Rocky, "translation service in Word" Actually, I never really knew about that before. I know with Alex's program placed some code on the 'OnOpen' event that goes to a MsAccess table that had the translations. It enumerated through all the controls on a form/report and looked up the translation. Is that how Word does it? I ended up adding a menu that would allow me to switch between different languages on the fly. I would select a language and the app would change over. Never had to shut down the app. Yes, it's a pain, but the fonts and controls lengths have to be modified for the different languages. I think what I did for my apps (this was a while ago) was to add a field to the translation table for the control's width so when the OnOpen event runs the translation software, it would also modify the width of the control accordingly. The other thing I liked about Alex's program was the ability to modify the MsgBox text embedded in the modules. It essentially replaced the MSGBox line of code with a function call to the translation table. I ended storing all the translation code and tables in an MDE that I referenced as a library function. In this way, I could use the same translations for all my apps. Just had to run Alex's routine to add the functions to the OnOpen events of the forms and reports and I was all set. It really was slick. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Saturday, December 30, 2006 10:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Spanish Translations I got the demo and saw that actually it was using the translation service in Word. His program just took care of the export/import. I already had everything in tables so I exported the English to a word doc and used this research-->translate function which I never knew was there. There's still going to be a lot of tweaking because the translations are different lengths than the English so the label and button widths need to be adjusted for every new language. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Wednesday, December 27, 2006 4:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Spanish Translations Well, I was asked by a customer about translating my app to about 5 different languages. I got Alex's program, customized it a bit and had it finished in a day. They were amazed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, December 27, 2006 4:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Spanish Translations I remember the original program was sold from the Moscow Access User Group site. Michael Kaplan gave it his recommendation and he wrote a book on VB6 Internationalization. John Skolits wrote: >Oh well, I actually 'used' them but suing them must have been on my mind at >the time I suggested it. (I guess.) > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson >Sent: Wednesday, December 27, 2006 3:58 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Spanish Translations > >Did you Sue them, or Use them? ;)) > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits >Sent: Wednesday, December 27, 2006 11:24 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Spanish Translations > >Rocky, > >You may already know about this, but are you using Alex Dybenko language >translator program. I sued it quite a few years ago and it was slick. >You >still have to map translations but you can switch between the languages >on >the fly. I just visited his website and didn't see the program >mentioned. >Maybe he gave up on it, but when I used it, it worked really well. > >His web site is: http://alex.dybenko.com/ > >John Skolits > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >bchacc at san.rr.com >Sent: Wednesday, December 27, 2006 9:08 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Spanish Translations > >Thanks Jim. That will be really helpful. I'll try not to take >advantage. > >Regards, > >Rocky > > >Original Message: >----------------- >From: Hale, Jim Jim.Hale at fleetpride.com >Date: Tue, 26 Dec 2006 09:18:02 -0600 >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Spanish Translations > > >Rocky, >My wife's native language is spanish and she has a business background. >She'll be happy to help. Write her at nhale at houston.rr.com > >Regards, >Jim Hale > >-----Original Message----- >From: Beach Access Software [mailto:bchacc at san.rr.com] >Sent: Sunday, December 24, 2006 8:27 AM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Spanish Translations > > >Dear List: > > > >I am translating my manufacturing software into Spanish with the help of >my >son and a couple of users of the system in Mexico. Is there anyone on >the >list here who speaks Spanish of whom I could ask a few translations of >technical and manufacturing terms? > > > >MTIA, > > > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.15.29/607 - Release Date: 12/28/2006 12:31 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Jan 1 20:33:53 2007 From: askolits at ot.com (John Skolits) Date: Mon, 1 Jan 2007 21:33:53 -0500 Subject: [AccessD] Donators added to the DBA site In-Reply-To: <0JB60016H5OPSF11@l-daemon> Message-ID: <012a01c72e16$74cf9d70$800101df@officexp> Alphabetical Order! Gee, I thought maybe I was important or something. I want my money back!!!! ---- p.s. What's your email address so I can resend it. John askolits at ot.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, December 31, 2006 10:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Donators added to the DBA site Hi John: I have been just putting them in alphabetically order... that seems fairest at the moment. Your initial graphic was very big and had to be reduced and sharpened (unsharpen mask) for it to fit and so the graphic would not break down. If you would like you could send another graphic but this time create it with a width no greater than 500 pixels. Less is best... less distortion. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Sunday, December 31, 2006 3:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Donators added to the DBA site Gee, I made the top of the list! JC, Actually my sister and law did mine. Jim, The one I sent was in color, do I need to send you a new one? John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, December 30, 2006 11:16 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Donators added to the DBA site Hi All: The current group of donators have been added to the DBA site. http://www.databaseadvisors.com/donations/donor.asp http://www.databaseadvisors.com/donations/friends.asp http://www.databaseadvisors.com/donations/corporate.asp If you do not see you name of company added or added appropriately please inform me at your nearest convenience at webmaster at databaseadvisors.com Regards Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Jan 2 09:14:18 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 02 Jan 2007 15:14:18 +0000 Subject: [AccessD] ERROR going to first record Sometime? In-Reply-To: <012a01c72e16$74cf9d70$800101df@officexp> Message-ID: Hello All, I'll try to ask this a simple as possible. I have a form in A97 that has a combo box and a subform. The subform is continuos and is filtered anytime the combo is updated. If I was on the 4th record on the subform and I changed the combo...when the sub refreshed it would also be on the 4th record. I needed to go back to the first record each time. So I added the code below: Dim rs As DAO.Recordset Set rs = sfrmView.Form.RecordsetClone rs.MoveFirst sfrmView.Form.Bookmark = rs.Bookmark NoRecord: Set rs = Nothing ********** This works fine if I move to a different record each time before changing the combo. If I just change the combo I get an error during the refresh of the subform "Runtime error 3020, Update or CancelUpdate without AddNew or Edit". The line of code is on the 'Form_BeforeUpdate' of the subform. If I use the code above...What would I add to determine if I were already on the first record...or what are other approaches to the same solution? Thanks and Happy New Year, Mark A. Matte _________________________________________________________________ Type your favorite song.? Get a customized station.? Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 From Gustav at cactus.dk Tue Jan 2 09:26:12 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Jan 2007 16:26:12 +0100 Subject: [AccessD] ERROR going to first record Sometime? Message-ID: Hi Mark I think all you need is not to Refresh the subform but to Requery it. /gustav >>> markamatte at hotmail.com 02-01-2007 16:14 >>> Hello All, I'll try to ask this a simple as possible. I have a form in A97 that has a combo box and a subform. The subform is continuos and is filtered anytime the combo is updated. If I was on the 4th record on the subform and I changed the combo...when the sub refreshed it would also be on the 4th record. I needed to go back to the first record each time. So I added the code below: Dim rs As DAO.Recordset Set rs = sfrmView.Form.RecordsetClone rs.MoveFirst sfrmView.Form.Bookmark = rs.Bookmark NoRecord: Set rs = Nothing ********** This works fine if I move to a different record each time before changing the combo. If I just change the combo I get an error during the refresh of the subform "Runtime error 3020, Update or CancelUpdate without AddNew or Edit". The line of code is on the 'Form_BeforeUpdate' of the subform. If I use the code above...What would I add to determine if I were already on the first record...or what are other approaches to the same solution? Thanks and Happy New Year, Mark A. Matte From markamatte at hotmail.com Tue Jan 2 09:41:12 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 02 Jan 2007 15:41:12 +0000 Subject: [AccessD] ERROR going to first record Sometime? Message-ID: Gustav, I made a mistake in my explanation. The subform is NOT filtered...it is requeried because records have been updated and may need to be included/excluded when the combo changes. So I believe I need requery. Thanks, Mark A. Matte >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] ERROR going to first record Sometime? >Date: Tue, 02 Jan 2007 16:26:12 +0100 > >Hi Mark > >I think all you need is not to Refresh the subform but to Requery it. > >/gustav > > >>> markamatte at hotmail.com 02-01-2007 16:14 >>> >Hello All, > >I'll try to ask this a simple as possible. I have a form in A97 that has a >combo box and a subform. The subform is continuos and is filtered anytime >the combo is updated. If I was on the 4th record on the subform and I >changed the combo...when the sub refreshed it would also be on the 4th >record. I needed to go back to the first record each time. So I added the >code below: > >Dim rs As DAO.Recordset >Set rs = sfrmView.Form.RecordsetClone >rs.MoveFirst >sfrmView.Form.Bookmark = rs.Bookmark >NoRecord: >Set rs = Nothing >********** >This works fine if I move to a different record each time before changing >the combo. If I just change the combo I get an error during the refresh of >the subform "Runtime error 3020, Update or CancelUpdate without AddNew or >Edit". The line of code is on the 'Form_BeforeUpdate' of the subform. If >I >use the code above...What would I add to determine if I were already on the >first record...or what are other approaches to the same solution? > >Thanks and Happy New Year, > >Mark A. Matte > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/ From mwp.reid at qub.ac.uk Tue Jan 2 11:40:43 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 2 Jan 2007 17:40:43 -0000 Subject: [AccessD] Access 2007 Attachments References: <004501c72ddc$cc27bd80$0200a8c0@matilda> Message-ID: Anyone done any messing about with Access 2007 attachments? Trying to see if anyone hasd coded anything or indeed is it worth the effort. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From Gustav at cactus.dk Tue Jan 2 12:05:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Jan 2007 19:05:50 +0100 Subject: [AccessD] Access 2007 Attachments Message-ID: Hi Martin I had no idea what you were talking about but found this: http://msdn2.microsoft.com/en-us/library/bb203849.aspx Browse to the very last paragraph: Working with the Attachment Field Type /gustav >>> mwp.reid at qub.ac.uk 02-01-2007 18:40 >>> Anyone done any messing about with Access 2007 attachments? Trying to see if anyone hasd coded anything or indeed is it worth the effort. Martin From askolits at ot.com Tue Jan 2 12:06:26 2007 From: askolits at ot.com (John Skolits) Date: Tue, 2 Jan 2007 13:06:26 -0500 Subject: [AccessD] 53 Work weeks in 2007? In-Reply-To: <20061129220313.42453.qmail@web80812.mail.mud.yahoo.com> Message-ID: <000701c72e98$bb40c7c0$800101df@officexp> Last year I was using the following to get the week number: WorkWeek = Val(Format("1/2/06", "ww", vbMonday)) - 1 ) The work week for my customer started on a Monday I never really understood why I had to add the "minus one", but the first Monday and remaining week of 2006 would return a "2", so I just subtracted 1 and all was fine. But this year, there are 53 Mondays so this line of code returns a "0" for the first week of January. Is there another way I should be getting the work week number? John From Gustav at cactus.dk Tue Jan 2 12:36:49 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Jan 2007 19:36:49 +0100 Subject: [AccessD] 53 Work weeks in 2007? Message-ID: Hi John Yes, you miss the last parameter: ? Format(#12/31/2007#, "ww", vbMonday ,vbFirstFourDays) 53 which is very important when working with ISO ISO 8601:1988 week numbers. /gustav >>> askolits at ot.com 02-01-2007 19:06 >>> Last year I was using the following to get the week number: WorkWeek = Val(Format("1/2/06", "ww", vbMonday)) - 1 ) The work week for my customer started on a Monday I never really understood why I had to add the "minus one", but the first Monday and remaining week of 2006 would return a "2", so I just subtracted 1 and all was fine. But this year, there are 53 Mondays so this line of code returns a "0" for the first week of January. Is there another way I should be getting the work week number? John From Gustav at cactus.dk Tue Jan 2 12:53:32 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Jan 2007 19:53:32 +0100 Subject: [AccessD] 53 Work weeks in 2007? Message-ID: Hi John Wow. Just realised that this demonstrates on old bug in Access. That week number is not 53 but 1! Several years ago I wrote a function which does is right, and this is a perfect moment to republish it. I guess Access 2007 sports the same bug (I don't have A2007) as Microsoft doesn't care for such subtle details. Here goes: Public Function ISO_WeekNumber( _ ByVal datDate As Date) _ As Byte ' Calculates and returns week number for date datDate according to the ISO 8601:1988 standard. ' 1998-2000, Gustav Brock, Cactus Data ApS, CPH. ' May be freely used and distributed. Const cbytFirstWeekOfAnyYear As Byte = 1 Const cbytLastWeekOfLeapYear As Byte = 53 Dim bytWeek As Byte Dim bytISOThursday As Byte Dim datLastDayOfYear As Date bytWeek = DatePart("ww", datDate, vbMonday, vbFirstFourDays) If bytWeek = cbytLastWeekOfLeapYear Then bytISOThursday = WeekDay(vbThursday, vbMonday) datLastDayOfYear = DateSerial(Year(datDate), 12, 31) If WeekDay(datLastDayOfYear, vbMonday) >= bytISOThursday Then ' OK, week count of 53 is caused by leap year. Else ' Correct for Access97/2000 bug. bytWeek = cbytFirstWeekOfAnyYear End If End If ISO_WeekNumber = bytWeek End Function /gustav >>> Gustav at cactus.dk 02-01-2007 19:36 >>> Hi John Yes, you miss the last parameter: ? Format(#12/31/2007#, "ww", vbMonday ,vbFirstFourDays) 53 which is very important when working with ISO 8601:1988 week numbers. /gustav >>> askolits at ot.com 02-01-2007 19:06 >>> Last year I was using the following to get the week number: WorkWeek = Val(Format("1/2/06", "ww", vbMonday)) - 1 ) The work week for my customer started on a Monday I never really understood why I had to add the "minus one", but the first Monday and remaining week of 2006 would return a "2", so I just subtracted 1 and all was fine. But this year, there are 53 Mondays so this line of code returns a "0" for the first week of January. Is there another way I should be getting the work week number? John From DWUTKA at marlow.com Tue Jan 2 12:59:09 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Jan 2007 12:59:09 -0600 Subject: [AccessD] Interesting reading 3 Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDDDA@marlow_main2.marlow.ii-vi.net> Got a Justice League cartoon DVD when I bought Superman Returns a while back. Was bored yesterday, so I decided to actually watch it (I like to watch cartoons once in a while... ;) ). Anyhow, one of the episodes had the Green Lantern on trial on another planet. Flash gets up in front of the judges and demands why the Green Lantern doesn't have a lawyer to help him, and the judges reply 'we took care of our lawyer problem'. They then tell Flash that he can defend the Green Lantern, but that if he does, he would share the same verdict/consequences as the Green Lantern. Flash questions why he would share the same fate, and the judges reply 'That's how we fixed our lawyer problem'! ;) Drew -----Original Message----- From: William Hindman [mailto:wdhindman at dejpolsystems.com] Sent: Sunday, December 24, 2006 10:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Interesting reading 3 ...there ought to be an open season on all lawyers ...twice as long for tort lawyers ...all year long for government lawyers ...this country is sue crazy :( William Hindman From mwp.reid at qub.ac.uk Tue Jan 2 13:00:52 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 2 Jan 2007 19:00:52 -0000 Subject: [AccessD] Access 2007 References: <004501c72ddc$cc27bd80$0200a8c0@matilda> Message-ID: Thanks Gustav This is the section I am interested in. How can we automatically via code add the attachments to each record in the field. DOing it to a single field is easy. But I see several problems adding for example a doc fiel to each record for example add an individually named word doc to each record other the relevent doc to be added to each records. The bit below if it was the same file you where adding it would be and is easy its when you want to add different files based on the records in the table. Martin Repeat the process for the other rows. This table is small enough that it takes only a small period of time to add all attachments. You could write code to automate the process if you need to do this for a larger table. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From askolits at ot.com Tue Jan 2 13:06:40 2007 From: askolits at ot.com (John Skolits) Date: Tue, 2 Jan 2007 14:06:40 -0500 Subject: [AccessD] 53 Work weeks in 2007? In-Reply-To: Message-ID: <01b301c72ea1$25b9e2a0$6501a8c0@LaptopXP> You da man. Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, January 02, 2007 1:54 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] 53 Work weeks in 2007? Hi John Wow. Just realised that this demonstrates on old bug in Access. That week number is not 53 but 1! Several years ago I wrote a function which does is right, and this is a perfect moment to republish it. I guess Access 2007 sports the same bug (I don't have A2007) as Microsoft doesn't care for such subtle details. Here goes: Public Function ISO_WeekNumber( _ ByVal datDate As Date) _ As Byte ' Calculates and returns week number for date datDate according to the ISO 8601:1988 standard. ' 1998-2000, Gustav Brock, Cactus Data ApS, CPH. ' May be freely used and distributed. Const cbytFirstWeekOfAnyYear As Byte = 1 Const cbytLastWeekOfLeapYear As Byte = 53 Dim bytWeek As Byte Dim bytISOThursday As Byte Dim datLastDayOfYear As Date bytWeek = DatePart("ww", datDate, vbMonday, vbFirstFourDays) If bytWeek = cbytLastWeekOfLeapYear Then bytISOThursday = WeekDay(vbThursday, vbMonday) datLastDayOfYear = DateSerial(Year(datDate), 12, 31) If WeekDay(datLastDayOfYear, vbMonday) >= bytISOThursday Then ' OK, week count of 53 is caused by leap year. Else ' Correct for Access97/2000 bug. bytWeek = cbytFirstWeekOfAnyYear End If End If ISO_WeekNumber = bytWeek End Function /gustav >>> Gustav at cactus.dk 02-01-2007 19:36 >>> Hi John Yes, you miss the last parameter: ? Format(#12/31/2007#, "ww", vbMonday ,vbFirstFourDays) 53 which is very important when working with ISO 8601:1988 week numbers. /gustav >>> askolits at ot.com 02-01-2007 19:06 >>> Last year I was using the following to get the week number: WorkWeek = Val(Format("1/2/06", "ww", vbMonday)) - 1 ) The work week for my customer started on a Monday I never really understood why I had to add the "minus one", but the first Monday and remaining week of 2006 would return a "2", so I just subtracted 1 and all was fine. But this year, there are 53 Mondays so this line of code returns a "0" for the first week of January. Is there another way I should be getting the work week number? John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Tue Jan 2 13:25:56 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 02 Jan 2007 20:25:56 +0100 Subject: [AccessD] Access 2007 Message-ID: Hi Martin If you can tell how the filenames relate to the records, I guess all that is needed is a simple loop assigning a filename to each record. A picture of a product could be named pid73217.gif, and if your product ID is 73217 that would be pretty easy. /gustav >>> mwp.reid at qub.ac.uk 02-01-2007 20:00 >>> Thanks Gustav This is the section I am interested in. How can we automatically via code add the attachments to each record in the field. DOing it to a single field is easy. But I see several problems adding for example a doc fiel to each record for example add an individually named word doc to each record other the relevent doc to be added to each records. The bit below if it was the same file you where adding it would be and is easy its when you want to add different files based on the records in the table. Martin Repeat the process for the other rows. This table is small enough that it takes only a small period of time to add all attachments. You could write code to automate the process if you need to do this for a larger table. Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From garykjos at gmail.com Tue Jan 2 13:38:54 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 2 Jan 2007 13:38:54 -0600 Subject: [AccessD] Interesting reading 3 In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDDDA@marlow_main2.marlow.ii-vi.net> References: <17724746D360394AA3BFE5B8D40A9C1BDDDA@marlow_main2.marlow.ii-vi.net> Message-ID: He lives! GK On 1/2/07, Drew Wutka wrote: > Got a Justice League cartoon DVD when I bought Superman Returns a while > back. Was bored yesterday, so I decided to actually watch it (I like to > watch cartoons once in a while... ;) ). > > Anyhow, one of the episodes had the Green Lantern on trial on another > planet. Flash gets up in front of the judges and demands why the Green > Lantern doesn't have a lawyer to help him, and the judges reply 'we took > care of our lawyer problem'. They then tell Flash that he can defend the > Green Lantern, but that if he does, he would share the same > verdict/consequences as the Green Lantern. Flash questions why he would > share the same fate, and the judges reply 'That's how we fixed our lawyer > problem'! > > ;) > > Drew -- Gary Kjos garykjos at gmail.com From DWUTKA at marlow.com Tue Jan 2 13:44:59 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Jan 2007 13:44:59 -0600 Subject: [AccessD] Read-Only Tables Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDDDB@marlow_main2.marlow.ii-vi.net> You can do this with Access User Level security. Drew -----Original Message----- From: Hollis, Virginia [mailto:hollisvj at pgdp.usec.com] Sent: Thursday, December 28, 2006 12:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] Read-Only Tables Is there a way to let users create their own reports & queries but locking down the tables so they can't change the data? The data needs to be read-only. If you make the database read-only, it grays out 'new' so they can't create the queries or reports. Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Jan 2 13:56:25 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 02 Jan 2007 19:56:25 +0000 Subject: [AccessD] ERROR going to first record SometimeSOLVED In-Reply-To: Message-ID: Hello All, This is just an FYI to the problem below. I found that there is trouble using the below code when referring to a subform. Researching MS knowledgebase I found the suggestion of using "GoToControl" in conjunction with "GoToRecord": DoCmd.GoToControl "sfrmView" DoCmd.GoToRecord , , acFirst Me!cboStatus.SetFocus Forms!frmview!sfrmView.Requery Forms!frmview!sfrmNotes.Requery Exit Sub NoRecord: Forms!frmview!sfrmView.Requery Forms!frmview!sfrmNotes.Requery This seems to work...thanks for the assistance. Mark A. Matte >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] ERROR going to first record Sometime? >Date: Tue, 02 Jan 2007 15:41:12 +0000 > >Gustav, > >I made a mistake in my explanation. The subform is NOT filtered...it is >requeried because records have been updated and may need to be >included/excluded when the combo changes. So I believe I need requery. > >Thanks, > >Mark A. Matte > > > >From: "Gustav Brock" > >Reply-To: Access Developers discussion and problem > >solving > >To: > >Subject: Re: [AccessD] ERROR going to first record Sometime? > >Date: Tue, 02 Jan 2007 16:26:12 +0100 > > > >Hi Mark > > > >I think all you need is not to Refresh the subform but to Requery it. > > > >/gustav > > > > >>> markamatte at hotmail.com 02-01-2007 16:14 >>> > >Hello All, > > > >I'll try to ask this a simple as possible. I have a form in A97 that has >a > >combo box and a subform. The subform is continuos and is filtered >anytime > >the combo is updated. If I was on the 4th record on the subform and I > >changed the combo...when the sub refreshed it would also be on the 4th > >record. I needed to go back to the first record each time. So I added >the > >code below: > > > >Dim rs As DAO.Recordset > >Set rs = sfrmView.Form.RecordsetClone > >rs.MoveFirst > >sfrmView.Form.Bookmark = rs.Bookmark > >NoRecord: > >Set rs = Nothing > >********** > >This works fine if I move to a different record each time before changing > >the combo. If I just change the combo I get an error during the refresh >of > >the subform "Runtime error 3020, Update or CancelUpdate without AddNew or > >Edit". The line of code is on the 'Form_BeforeUpdate' of the subform. >If > >I > >use the code above...What would I add to determine if I were already on >the > >first record...or what are other approaches to the same solution? > > > >Thanks and Happy New Year, > > > >Mark A. Matte > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. >http://tv.msn.com/tv/globes2007/ > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Find sales, coupons, and free shipping, all in one place! ?MSN Shopping Sales & Deals http://shopping.msn.com/content/shp/?ctid=198,ptnrid=176,ptnrdata=200639 From DWUTKA at marlow.com Tue Jan 2 14:01:52 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Jan 2007 14:01:52 -0600 Subject: [AccessD] Interesting reading 3 Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDDDC@marlow_main2.marlow.ii-vi.net> Didn't know that was in question! ;) Drew -----Original Message----- From: Gary Kjos [mailto:garykjos at gmail.com] Sent: Tuesday, January 02, 2007 1:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Interesting reading 3 He lives! GK On 1/2/07, Drew Wutka wrote: > Got a Justice League cartoon DVD when I bought Superman Returns a while > back. Was bored yesterday, so I decided to actually watch it (I like to > watch cartoons once in a while... ;) ). > > Anyhow, one of the episodes had the Green Lantern on trial on another > planet. Flash gets up in front of the judges and demands why the Green > Lantern doesn't have a lawyer to help him, and the judges reply 'we took > care of our lawyer problem'. They then tell Flash that he can defend the > Green Lantern, but that if he does, he would share the same > verdict/consequences as the Green Lantern. Flash questions why he would > share the same fate, and the judges reply 'That's how we fixed our lawyer > problem'! > > ;) > > Drew -- 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 Jim.Hale at FleetPride.com Tue Jan 2 14:04:47 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Tue, 2 Jan 2007 14:04:47 -0600 Subject: [AccessD] Interesting reading 3 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1B8@corp-es01.fleetpride.com> Damn, I was reading Green Lantern back about the time they discovered how to make paper. Glad to see he's still fighting the good fight. Jim Hale -----Original Message----- From: Gary Kjos [mailto:garykjos at gmail.com] Sent: Tuesday, January 02, 2007 1:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Interesting reading 3 He lives! GK On 1/2/07, Drew Wutka wrote: > Got a Justice League cartoon DVD when I bought Superman Returns a while > back. Was bored yesterday, so I decided to actually watch it (I like to > watch cartoons once in a while... ;) ). > > Anyhow, one of the episodes had the Green Lantern on trial on another > planet. Flash gets up in front of the judges and demands why the Green > Lantern doesn't have a lawyer to help him, and the judges reply 'we took > care of our lawyer problem'. They then tell Flash that he can defend the > Green Lantern, but that if he does, he would share the same > verdict/consequences as the Green Lantern. Flash questions why he would > share the same fate, and the judges reply 'That's how we fixed our lawyer > problem'! > > ;) > > Drew -- Gary Kjos garykjos at gmail.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 garykjos at gmail.com Tue Jan 2 14:58:46 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 2 Jan 2007 14:58:46 -0600 Subject: [AccessD] Interesting reading 3 In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDDDC@marlow_main2.marlow.ii-vi.net> References: <17724746D360394AA3BFE5B8D40A9C1BDDDC@marlow_main2.marlow.ii-vi.net> Message-ID: Well, when you don't post for more than a week some of us start to wonder....... GK On 1/2/07, Drew Wutka wrote: > Didn't know that was in question! ;) > > Drew > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at gmail.com] > Sent: Tuesday, January 02, 2007 1:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Interesting reading 3 > > > He lives! > > GK > > On 1/2/07, Drew Wutka wrote: > > Got a Justice League cartoon DVD when I bought Superman Returns a while > > back. Was bored yesterday, so I decided to actually watch it (I like to > > watch cartoons once in a while... ;) ). > > > > Anyhow, one of the episodes had the Green Lantern on trial on another > > planet. Flash gets up in front of the judges and demands why the Green > > Lantern doesn't have a lawyer to help him, and the judges reply 'we took > > care of our lawyer problem'. They then tell Flash that he can defend the > > Green Lantern, but that if he does, he would share the same > > verdict/consequences as the Green Lantern. Flash questions why he would > > share the same fate, and the judges reply 'That's how we fixed our lawyer > > problem'! > > > > ;) > > > > Drew > > > -- > 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 > -- Gary Kjos garykjos at gmail.com From DWUTKA at marlow.com Tue Jan 2 15:02:34 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Jan 2007 15:02:34 -0600 Subject: [AccessD] Interesting reading 3 Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01720465@marlow_main2.marlow.ii-vi.net> Oh....just stayed off the computer with the exception of a poker game or two.... ;) Drew -----Original Message----- From: Gary Kjos [mailto:garykjos at gmail.com] Sent: Tuesday, January 02, 2007 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Interesting reading 3 Well, when you don't post for more than a week some of us start to wonder....... GK On 1/2/07, Drew Wutka wrote: > Didn't know that was in question! ;) > > Drew > > -----Original Message----- > From: Gary Kjos [mailto:garykjos at gmail.com] > Sent: Tuesday, January 02, 2007 1:39 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Interesting reading 3 > > > He lives! > > GK > > On 1/2/07, Drew Wutka wrote: > > Got a Justice League cartoon DVD when I bought Superman Returns a while > > back. Was bored yesterday, so I decided to actually watch it (I like to > > watch cartoons once in a while... ;) ). > > > > Anyhow, one of the episodes had the Green Lantern on trial on another > > planet. Flash gets up in front of the judges and demands why the Green > > Lantern doesn't have a lawyer to help him, and the judges reply 'we took > > care of our lawyer problem'. They then tell Flash that he can defend the > > Green Lantern, but that if he does, he would share the same > > verdict/consequences as the Green Lantern. Flash questions why he would > > share the same fate, and the judges reply 'That's how we fixed our lawyer > > problem'! > > > > ;) > > > > Drew > > > -- > 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 > -- 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 stuart at lexacorp.com.pg Tue Jan 2 16:05:38 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 03 Jan 2007 08:05:38 +1000 Subject: [AccessD] Read-Only Tables In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDDDB@marlow_main2.marlow.ii-vi.net> References: <17724746D360394AA3BFE5B8D40A9C1BDDDB@marlow_main2.marlow.ii-vi.net> Message-ID: <459AD732.14713.B7AEABB@stuart.lexacorp.com.pg> Unless you are using the new accdb format of Access 2007. >From the article Gustav pointed to earlier at http://msdn2.microsoft.com/en-us/library/bb203849.aspx "As with replication, Access 2007 supports user-level security for .mdb databases, but not for .accdb databases" -- Stuart On 2 Jan 2007 at 13:44, Drew Wutka wrote: > You can do this with Access User Level security. > > Drew > > -----Original Message----- > From: Hollis, Virginia [mailto:hollisvj at pgdp.usec.com] > Sent: Thursday, December 28, 2006 12:40 PM > To: accessD at databaseadvisors.com > Subject: [AccessD] Read-Only Tables > > > Is there a way to let users create their own reports & queries but > locking down the tables so they can't change the data? The data needs to be > read-only. If you make the database read-only, it grays out 'new' so they > can't create the queries or reports. > > > > Virginia > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Jan 2 18:25:45 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Jan 2007 16:25:45 -0800 Subject: [AccessD] Access 2007 Attachments In-Reply-To: References: <004501c72ddc$cc27bd80$0200a8c0@matilda> Message-ID: <459AF809.9030407@shaw.ca> You can have multiple file attachments to one attachment field in an accdb file such as a photo, a word document resume and a visio attachment. More info on attachments here. http://office.microsoft.com/en-us/access/HA012138521033.aspx From the object model in 2007, it looks like you do it from code this way but this is a guess DAO.Field2.SaveToFile "filename-string" DAO.Field2.LoadFromFile "filename-string" Martin Reid wrote: >Anyone done any messing about with Access 2007 attachments? Trying to see if anyone hasd coded anything or indeed is it worth the effort. > >Martin > > > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Tue Jan 2 19:49:30 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 2 Jan 2007 20:49:30 -0500 Subject: [AccessD] Read-Only Tables In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1BDDDB@marlow_main2.marlow.ii-vi.net> Message-ID: <005001c72ed9$69fdf360$657aa8c0@m6805> You can also do it with queries. Build a query. In design view, right click the upper pane and select properties. Click in recordset type Select snapshot Save the query The query is now a snapshot, and the data can be read but not modified. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, January 02, 2007 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Read-Only Tables You can do this with Access User Level security. Drew -----Original Message----- From: Hollis, Virginia [mailto:hollisvj at pgdp.usec.com] Sent: Thursday, December 28, 2006 12:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] Read-Only Tables Is there a way to let users create their own reports & queries but locking down the tables so they can't change the data? The data needs to be read-only. If you make the database read-only, it grays out 'new' so they can't create the queries or reports. Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Jan 3 02:40:54 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jan 2007 09:40:54 +0100 Subject: [AccessD] Access 2007 Attachments Message-ID: Hi Marty Thanks Marty. That explains: By default, each field in a relational database contains only one piece of data. For example, if an address field contained more than one address, finding addresses would be difficult, if not impossible. So at first glance, attachments seem to break the rules of database design because you can attach more than one file * one piece of data * to a field. However, attachments do not break any design rules, because as you attach files to a record, Office Access 2007 creates one or more system tables and uses those tables behind the scenes to normalize your data. You cannot view or work with those tables. Except that A2007 will compress files that are not compressed by default, the file content itself will always be stored within the database file. Even though a single file is limited to 256 MB, users can easily bloat or explode any database file as this is limited to 2 GB. There will be no easy way around this. So how useful is this? /gustav >>> martyconnelly at shaw.ca 03-01-2007 01:25 >>> You can have multiple file attachments to one attachment field in an accdb file such as a photo, a word document resume and a visio attachment. More info on attachments here. http://office.microsoft.com/en-us/access/HA012138521033.aspx From the object model in 2007, it looks like you do it from code this way but this is a guess DAO.Field2.SaveToFile "filename-string" DAO.Field2.LoadFromFile "filename-string" Martin Reid wrote: >Anyone done any messing about with Access 2007 attachments? Trying to see if anyone hasd coded anything or indeed is it worth the effort. From mwp.reid at qub.ac.uk Wed Jan 3 09:03:42 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 3 Jan 2007 15:03:42 -0000 Subject: [AccessD] Access 2007 Attachments References: Message-ID: Marty, Gustav, all For a sort of office user this should be Ok. However, this is beyond me so any help appreicated. In this section of the book I would like to show the alternative appropach to this. ie simply saving the path to a file as opposed to saving the file itself. To make this useful it would be nice to be able to associate several "attachments" in the file system to a record and then list them on a form. Sort of duplicate what they have done in Access 2007 but in a more sensible way. Any help appreciated with this one. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From DWUTKA at marlow.com Wed Jan 3 09:43:31 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 3 Jan 2007 09:43:31 -0600 Subject: [AccessD] Read-Only Tables Message-ID: <17724746D360394AA3BFE5B8D40A9C1BDDDD@marlow_main2.marlow.ii-vi.net> But going into the table stills allows the data to be editable. It's pretty easy to setup a data 'read only' database. Create a new .mdw. Create an account in the .mdw. Open a new database. Set Admin (User), Admins(Group), Users(group) in the new database to have the levels of access required. (ie, for only reading data, set new tables/queries to be Read Read Data and Read Design only. The Current Database should be Open/Run only) Once ALL the security settings are set to where you want them, develop the database. The database can be opened with the normal 'system' mdw, and everything will be read only. The only way to modify data is to open the database with your secured workgroup file. Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Tuesday, January 02, 2007 7:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Read-Only Tables You can also do it with queries. Build a query. In design view, right click the upper pane and select properties. Click in recordset type Select snapshot Save the query The query is now a snapshot, and the data can be read but not modified. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, January 02, 2007 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Read-Only Tables You can do this with Access User Level security. Drew -----Original Message----- From: Hollis, Virginia [mailto:hollisvj at pgdp.usec.com] Sent: Thursday, December 28, 2006 12:40 PM To: accessD at databaseadvisors.com Subject: [AccessD] Read-Only Tables Is there a way to let users create their own reports & queries but locking down the tables so they can't change the data? The data needs to be read-only. If you make the database read-only, it grays out 'new' so they can't create the queries or reports. Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Jan 3 10:48:26 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 3 Jan 2007 08:48:26 -0800 (PST) Subject: [AccessD] Data-Driven Checkboxes Message-ID: <20070103164826.53202.qmail@web88207.mail.re2.yahoo.com> I have a form that I want to populate using a SELECT statement based on another table. A simple example: the other table contains a list of options you might want on a computer you're considering buying: 250GB HD, 19" monitor, 20" monitor, wireless, dvd burner, etc. New components might be added to the components list at any time, and I don't want to rebuild the form every time this happens. What I would like to do is create a checkbox control on the form with one checkbox for each component, and use the component description as the text associated with that checkbox. The checkboxes should be 3-way controls (yes, no, null). Then, code will walk through the values and do some stuff based on the Ys and Ns. As for naming the generated controls, I plan on doing something like "cbx_" + ComponentID, so that I can loop through them and check their values. Suggestions on how to auto-create the component checkboxes? A downstream problem that I'm not going to worry about at this stage is creating two columns of checkboxes if there isn't enough vertical space to place them all nicely. TIA, Arthur From cfoust at infostatsystems.com Wed Jan 3 11:09:04 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Jan 2007 09:09:04 -0800 Subject: [AccessD] Data-Driven Checkboxes In-Reply-To: <20070103164826.53202.qmail@web88207.mail.re2.yahoo.com> Message-ID: It would be easier to take the approach the Switchboard Manager uses and create the checkboxes and their associated labels hidden, then just set the control sources, populate the labels, and show the ones you need to use from code. I used to do something like this when building telemarketing data entry forms. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 03, 2007 8:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data-Driven Checkboxes I have a form that I want to populate using a SELECT statement based on another table. A simple example: the other table contains a list of options you might want on a computer you're considering buying: 250GB HD, 19" monitor, 20" monitor, wireless, dvd burner, etc. New components might be added to the components list at any time, and I don't want to rebuild the form every time this happens. What I would like to do is create a checkbox control on the form with one checkbox for each component, and use the component description as the text associated with that checkbox. The checkboxes should be 3-way controls (yes, no, null). Then, code will walk through the values and do some stuff based on the Ys and Ns. As for naming the generated controls, I plan on doing something like "cbx_" + ComponentID, so that I can loop through them and check their values. Suggestions on how to auto-create the component checkboxes? A downstream problem that I'm not going to worry about at this stage is creating two columns of checkboxes if there isn't enough vertical space to place them all nicely. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Jan 3 11:27:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jan 2007 18:27:36 +0100 Subject: [AccessD] Data-Driven Checkboxes Message-ID: Hi Arthur For something similar I made a small subform styled as a listbox but with a bound checkbox in the left (first) column. /gustav >>> artful at rogers.com 03-01-2007 17:48:26 >>> I have a form that I want to populate using a SELECT statement based on another table. A simple example: the other table contains a list of options you might want on a computer you're considering buying: 250GB HD, 19" monitor, 20" monitor, wireless, dvd burner, etc. New components might be added to the components list at any time, and I don't want to rebuild the form every time this happens. What I would like to do is create a checkbox control on the form with one checkbox for each component, and use the component description as the text associated with that checkbox. The checkboxes should be 3-way controls (yes, no, null). Then, code will walk through the values and do some stuff based on the Ys and Ns. As for naming the generated controls, I plan on doing something like "cbx_" + ComponentID, so that I can loop through them and check their values. Suggestions on how to auto-create the component checkboxes? A downstream problem that I'm not going to worry about at this stage is creating two columns of checkboxes if there isn't enough vertical space to place them all nicely. TIA, Arthur From ssharkins at setel.com Wed Jan 3 11:36:58 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 3 Jan 2007 12:36:58 -0500 Subject: [AccessD] Data-Driven Checkboxes In-Reply-To: Message-ID: <00a101c72f5d$c5c05a10$eb34fad1@SUSANONE> Gustav, I've done the subform thing, but how does the checkbox work? Susan H. For something similar I made a small subform styled as a listbox but with a bound checkbox in the left (first) column. From jwcolby at colbyconsulting.com Wed Jan 3 11:45:49 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 3 Jan 2007 12:45:49 -0500 Subject: [AccessD] Data-Driven Checkboxes In-Reply-To: <20070103164826.53202.qmail@web88207.mail.re2.yahoo.com> Message-ID: <00a001c72f5f$021f1ae0$657aa8c0@m6805> Arthur, You might want to consider two lists or a combo and a list box, where when you select something in the left-hand list, it moves to the right-hand list. This allows "infinite" expansion with no additional programming effort. Further it is dead simple (at least for a single user system) since you can simply put a "selected" column in the source table for the lists, one list (the left) displays UNSELECTED items, the right hand list displays the SELECTED items. Requery the list box after every selection causes them to "move" from one list to the other. You could also model this as two views of the same table, each view displayed in a sub form. The user can directly check the "select" check box in the data set and when that happens it requeries BOTH sub forms to redisplay the data. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 03, 2007 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data-Driven Checkboxes I have a form that I want to populate using a SELECT statement based on another table. A simple example: the other table contains a list of options you might want on a computer you're considering buying: 250GB HD, 19" monitor, 20" monitor, wireless, dvd burner, etc. New components might be added to the components list at any time, and I don't want to rebuild the form every time this happens. What I would like to do is create a checkbox control on the form with one checkbox for each component, and use the component description as the text associated with that checkbox. The checkboxes should be 3-way controls (yes, no, null). Then, code will walk through the values and do some stuff based on the Ys and Ns. As for naming the generated controls, I plan on doing something like "cbx_" + ComponentID, so that I can loop through them and check their values. Suggestions on how to auto-create the component checkboxes? A downstream problem that I'm not going to worry about at this stage is creating two columns of checkboxes if there isn't enough vertical space to place them all nicely. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From newsgrps at dalyn.co.nz Wed Jan 3 11:53:45 2007 From: newsgrps at dalyn.co.nz (David Emerson) Date: Thu, 04 Jan 2007 06:53:45 +1300 Subject: [AccessD] GPF with Subform in Runtime In-Reply-To: <20061031102113.65623.qmail@web88201.mail.re2.yahoo.com> References: <20061031102113.65623.qmail@web88201.mail.re2.yahoo.com> Message-ID: <20070103175154.QFJT19965.fep01.xtra.co.nz@Dalyn.dalyn.co.nz> Group, this is an old problem that went away once the latest service packs were applied. At 31/10/2006, you wrote: >I haven't experienced this problem myself, but I would suggest that >you replace the built-in conditional formatting with some of your >own code placed in the OnCurrent event. > >----- Original Message ---- >From: David Emerson >To: accessd at databaseadvisors.com >Sent: Tuesday, October 31, 2006 5:13:10 AM >Subject: [AccessD] GPF with Subform in Runtime > >Listers, > >Access XP ade with SQL BE. > >I have a form with a tab object on it. There are five tabs and each >one has a sub form on it. The form opens up fine when I use a full >version of Access but when I run it using a runtime installation the >form generates a General Protection Fault and closes down. > >The problem seems to be because I have some fields with conditional >formatting in them. If I take out the conditional formatting then >the problem disappears. However, I need the conditional formatting. > >I haven't been able to find anything on the web that helps. > > >Regards > >David Emerson >Dalyn Software Ltd >999 Moonshine Rd, RD 1 >Judgeford, Porirua 5381 >Phone (04) 235-6782 >Fax (04) 235-6783 >Mob (027) 280-9348 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Wed Jan 3 11:57:58 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 3 Jan 2007 09:57:58 -0800 (PST) Subject: [AccessD] Data-Driven Checkboxes Message-ID: <20070103175758.60143.qmail@web88205.mail.re2.yahoo.com> That can work I suppose, but what I don't like about that UI is that you typically can't see everything at a glance. I suppose I could make the listbox size 25 or so. Assuming that I make it multi-select, then that might work, but I have a suspicion that too many clicks will be required: each checkbox would start off as NULL, then one click turns it Yes and if you really wanted No then another click is required. I suppose that's a specious objection, though, since the same would be true if they were auto-generated as controls. Arthur ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Wednesday, January 3, 2007 12:27:36 PM Subject: Re: [AccessD] Data-Driven Checkboxes Hi Arthur For something similar I made a small subform styled as a listbox but with a bound checkbox in the left (first) column. /gustav From DWUTKA at marlow.com Wed Jan 3 12:03:50 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 3 Jan 2007 12:03:50 -0600 Subject: [AccessD] Data-Driven Checkboxes Message-ID: <17724746D360394AA3BFE5B8D40A9C1B017205AA@marlow_main2.marlow.ii-vi.net> Treeview or Listbox should work.... Drew -----Original Message----- From: artful at rogers.com [mailto:artful at rogers.com] Sent: Wednesday, January 03, 2007 10:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data-Driven Checkboxes I have a form that I want to populate using a SELECT statement based on another table. A simple example: the other table contains a list of options you might want on a computer you're considering buying: 250GB HD, 19" monitor, 20" monitor, wireless, dvd burner, etc. New components might be added to the components list at any time, and I don't want to rebuild the form every time this happens. What I would like to do is create a checkbox control on the form with one checkbox for each component, and use the component description as the text associated with that checkbox. The checkboxes should be 3-way controls (yes, no, null). Then, code will walk through the values and do some stuff based on the Ys and Ns. As for naming the generated controls, I plan on doing something like "cbx_" + ComponentID, so that I can loop through them and check their values. Suggestions on how to auto-create the component checkboxes? A downstream problem that I'm not going to worry about at this stage is creating two columns of checkboxes if there isn't enough vertical space to place them all nicely. TIA, Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Jan 3 12:15:08 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 03 Jan 2007 19:15:08 +0100 Subject: [AccessD] Data-Driven Checkboxes Message-ID: Hi Susan You put a checkbox in the detail section and bind it to a Yes/No field of the recordset ... that's all. I did a Dirty = False for the subform at the AfterUpdate of the checkbox. /gustav >>> ssharkins at setel.com 03-01-2007 18:36:58 >>> Gustav, I've done the subform thing, but how does the checkbox work? Susan H. For something similar I made a small subform styled as a listbox but with a bound checkbox in the left (first) column. From artful at rogers.com Wed Jan 3 12:38:47 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 3 Jan 2007 10:38:47 -0800 (PST) Subject: [AccessD] Data-Driven Checkboxes Message-ID: <20070103183847.24377.qmail@web88214.mail.re2.yahoo.com> That's a great idea, Charlotte, so obvious that it never occurred to me! And I even have a custom version of that code that I use in ADPs, so much of the work may already be done. Thanks! Arthur ----- Original Message ---- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Wednesday, January 3, 2007 12:09:04 PM Subject: Re: [AccessD] Data-Driven Checkboxes It would be easier to take the approach the Switchboard Manager uses and create the checkboxes and their associated labels hidden, then just set the control sources, populate the labels, and show the ones you need to use from code. I used to do something like this when building telemarketing data entry forms. Charlotte Foust From dwaters at usinternet.com Wed Jan 3 20:57:21 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 3 Jan 2007 20:57:21 -0600 Subject: [AccessD] Read Exchange from Access? Message-ID: <000001c72fac$0edec7b0$0200a8c0@danwaters> At every client or presentation I give, I am asked if my system can read a person's Exchange (Outlook) out of office information. I do have an admittedly redundant out of office mechanism in my system, but tapping into the information people already enter into Outlook would be better. How could I programmatically read the out of office flag on the Exchange server from Access? Or can anyone point me to a good source of information? From bheygood at abestsystems.com Wed Jan 3 22:47:51 2007 From: bheygood at abestsystems.com (Bob Heygood) Date: Wed, 3 Jan 2007 20:47:51 -0800 Subject: [AccessD] Copy Record on form In-Reply-To: <000001c72fac$0edec7b0$0200a8c0@danwaters> Message-ID: <00db01c72fbb$7d940170$6401a8c0@speedy> Hello to the list, When I select a record on a form and copy it and paste append, I seem to only get a new record with data in those fields which have a visible control on the form. I have tested this and am wondering if someone could do the same. My need is to only display some fields with controls on the form but when coping the record, have all the fields data be pasted into the new record. This seems to be the case whether I do it from the menu items manually or use code using the DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend Or DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Methods. I am totally out of space on this form and would like this to work. Otherwise I guess I will have to use SQL in the code. A2003 TIA Bob Heygood From Gustav at cactus.dk Thu Jan 4 03:57:21 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Jan 2007 10:57:21 +0100 Subject: [AccessD] Copy Record on form Message-ID: Hi Bob As always, turn to DAO for a speedy method: Private Sub btnCopy_Click() Dim rstSource As DAO.Recordset Dim rstInsert As DAO.Recordset Dim fld As DAO.Field If Me.NewRecord = True Then Exit Sub Set rstInsert = Me.RecordsetClone Set rstSource = rstInsert.Clone With rstSource If .RecordCount > 0 Then ' Go to the current record. .Bookmark = Me.Bookmark With rstInsert .AddNew For Each fld In rstSource.Fields With fld If .Attributes And dbAutoIncrField Then ' Skip Autonumber or GUID field. Else ' Copy field content. rstInsert.Fields(.Name).Value = .Value End If End With Next .Update ' Go to the new record and sync form. .MoveLast Me.Bookmark = .Bookmark .Close End With End If .Close End With Set rstInsert = Nothing Set rstSource = Nothing End Sub Also, disable the button on a new record: Private Sub Form_Current() On Error Resume Next Me!btnCopy.Enabled = Not Me.NewRecord End Sub /gustav >>> bheygood at abestsystems.com 04-01-2007 05:47 >>> Hello to the list, When I select a record on a form and copy it and paste append, I seem to only get a new record with data in those fields which have a visible control on the form. I have tested this and am wondering if someone could do the same. My need is to only display some fields with controls on the form but when coping the record, have all the fields data be pasted into the new record. This seems to be the case whether I do it from the menu items manually or use code using the DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend Or DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Methods. I am totally out of space on this form and would like this to work. Otherwise I guess I will have to use SQL in the code. A2003 TIA Bob Heygood From hollisvj at pgdp.usec.com Thu Jan 4 06:57:11 2007 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 04 Jan 2007 06:57:11 -0600 Subject: [AccessD] Join 3 Fields Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0188B572@c2k3exchange.pgdp.corp.usec.com> I need to join three fields, the Description of the request, Evaluation, and Justification to show as one on a report. I used the below in a query, but what I need is to show a break between the fields. Or even if somehow I could put the words Description or Justification before each paragraph. Comments: [DescRequest] & IIf(([DescRequest] Is Null Or [Evaluation] Is Null Or [Justification] Is Null),Null,Chr(13) & Chr(10)) & [Justification] Like this: Description: Description blah blah. Evaluation: This is the evaluation part of this. Justification: Ok now the justification below all that. Not this: Description blah blah.This is the evaluation part of this.Ok now the justification below all that. Virginia From paul.hartland at fsmail.net Thu Jan 4 07:07:22 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Jan 2007 14:07:22 +0100 (CET) Subject: [AccessD] Join 3 Fields Message-ID: <24137107.22721167916042198.JavaMail.www@wwinf3201> Just off the top of my head, will this work (in query): Comments:IIF(IsNull([DescRequest]),"",[DescRequest] & vbcrlf) & IIF(IsNull([Evaluation]),"",[Evaluation] & vbcrlf) & IIF(IsNull([Justification]),"",[Justification]) Paul Message Received: Jan 04 2007, 12:58 PM From: "Hollis, Virginia" To: accessD at databaseadvisors.com Cc: Subject: [AccessD] Join 3 Fields I need to join three fields, the Description of the request, Evaluation, and Justification to show as one on a report. I used the below in a query, but what I need is to show a break between the fields. Or even if somehow I could put the words Description or Justification before each paragraph. Comments: [DescRequest] & IIf(([DescRequest] Is Null Or [Evaluation] Is Null Or [Justification] Is Null),Null,Chr(13) & Chr(10)) & [Justification] Like this: Description: Description blah blah. Evaluation: This is the evaluation part of this. Justification: Ok now the justification below all that. Not this: Description blah blah.This is the evaluation part of this.Ok now the justification below all that. Virginia -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Thu Jan 4 07:12:19 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Jan 2007 14:12:19 +0100 Subject: [AccessD] Join 3 Fields Message-ID: Hi Virginia That could be: =("Description: " + [DescRequest]) & (Chr(13) & Chr(10) & "Evaluation: " + [Evaluation]) & (Chr(13) & Chr(10) & "Justification: " + [Justification]) This assumes that Description is never Null. Note the use of + to set the complete line to Null if the field is Null. /gustav >>> hollisvj at pgdp.usec.com 04-01-2007 13:57 >>> I need to join three fields, the Description of the request, Evaluation, and Justification to show as one on a report. I used the below in a query, but what I need is to show a break between the fields. Or even if somehow I could put the words Description or Justification before each paragraph. Comments: [DescRequest] & IIf(([DescRequest] Is Null Or [Evaluation] Is Null Or [Justification] Is Null),Null,Chr(13) & Chr(10)) & [Justification] Like this: Description: Description blah blah. Evaluation: This is the evaluation part of this. Justification: Ok now the justification below all that. Not this: Description blah blah.This is the evaluation part of this.Ok now the justification below all that. Virginia From Patricia.O'Connor at otda.state.ny.us Thu Jan 4 09:28:04 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 4 Jan 2007 10:28:04 -0500 Subject: [AccessD] Default value not displaying correctly anymore In-Reply-To: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BACF0@EXCNYSM0A1AI.nysemail.nyenet> I have a form that has the default value set to =ENVIRON("USERNAME") This has worked correctly for 4 years up until today. The last time it was used was a month ago. Today instead of displaying the USERNAME it is only display #name. I went to a module and put this into the debug immediate screen and yep it displays the ID fine. Then I tried creating a new form with the text box and NOPE - only shows #name. It is happening in both A2K and A3k. Does someone know why and how to fix? In A2k I was getting 2 display screens until about 2 weeks ago when I opened an mdb. Could this have something to do with the problem. I need to fix this so others don't worry about problems. Thanks ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. From Gustav at cactus.dk Thu Jan 4 09:45:47 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Jan 2007 16:45:47 +0100 Subject: [AccessD] Default value not displaying correctly anymore Message-ID: Hi Patricia That's a security issue. Here is more: http://office.microsoft.com/en-us/access/HA011225981033.aspx#050 /gustav >>> Patricia.O'Connor at otda.state.ny.us 04-01-2007 16:28 >>> I have a form that has the default value set to =ENVIRON("USERNAME") This has worked correctly for 4 years up until today. The last time it was used was a month ago. Today instead of displaying the USERNAME it is only display #name. I went to a module and put this into the debug immediate screen and yep it displays the ID fine. Then I tried creating a new form with the text box and NOPE - only shows #name. It is happening in both A2K and A3k. Does someone know why and how to fix? In A2k I was getting 2 display screens until about 2 weeks ago when I opened an mdb. Could this have something to do with the problem. I need to fix this so others don't worry about problems. Thanks ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** From bchacc at san.rr.com Thu Jan 4 09:50:26 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 4 Jan 2007 07:50:26 -0800 Subject: [AccessD] A Question of Timing Message-ID: <002a01c73018$0dc4fb30$0701a8c0@HAL9005> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From Gustav at cactus.dk Thu Jan 4 09:50:34 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Jan 2007 16:50:34 +0100 Subject: [AccessD] Frequently asked questions about Access security warnings Message-ID: Hi all This Microsoft page is quite useful when you meet these security bumps: http://office.microsoft.com/en-us/access/HA011225981033.aspx /gustav From Gustav at cactus.dk Thu Jan 4 10:07:42 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 04 Jan 2007 17:07:42 +0100 Subject: [AccessD] A Question of Timing Message-ID: Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From jimdettman at verizon.net Thu Jan 4 10:36:26 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 04 Jan 2007 11:36:26 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: Message-ID: <001201c7301e$7ae79d20$8abea8c0@XPS> I'd follow gustav's advice and use seek. I also wanted to add that you can use seek on a remote teable, but you must open the remote database first. See code below. Jim. Function SetUserPreferences(lngUserID, strObjectName, strValue As String) As Integer Dim wrk As Workspace Dim dbCurrent As Database Dim dbRemote As Database Dim tdfAttached As TableDef Dim strPath As String Dim rst1 As Recordset Dim rst1Field As Field ' ' First, get the path to the MDB for the attached table. ' Set wrk = DBEngine.Workspaces(0) Set dbCurrent = wrk.Databases(0) Set tdfAttached = dbCurrent.TableDefs("tblUserPreferences") strPath = tdfAttached.Connect strPath = right$(strPath, Len(strPath) - InStr(strPath, "=")) Set dbRemote = wrk.OpenDatabase(strPath, False, False) ' ' Find the preference for the given user. ' Set rst1 = dbRemote.OpenRecordset("tblUserPreferences", DB_OPEN_TABLE) rst1.index = "PrimaryKey" rst1.Seek "=", lngUserID, strObjectName If rst1.NoMatch Then rst1.AddNew rst1![UserId] = lngUserID rst1![ObjectName] = strObjectName Else rst1.Edit End If rst1![Value] = strValue rst1.Update rst1.Close Set rst1 = Nothing dbRemote.Close Set dbRemote = Nothing Set tdfAttached = Nothing Set dbCurrent = Nothing Set wrk = Nothing End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 11:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Thu Jan 4 10:41:22 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Thu, 4 Jan 2007 11:41:22 -0500 Subject: [AccessD] Frequently asked questions about Access security warnings In-Reply-To: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BACF1@EXCNYSM0A1AI.nysemail.nyenet> Thanks Gustov I had already tried that, compiled, and tried to display the form again and it would not work at first. I got annoyed closed the form, took a walk, then went back again and it now it worked. Brain cramp didn't think I had to close form and restart since I was in development mode anyway. Thanks again --- HAPPY NEW YEAR!!! ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** > -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: Thursday, January 04, 2007 10:51 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Frequently asked questions about Access > security warnings > > Hi all > > This Microsoft page is quite useful when you meet these > security bumps: > > http://office.microsoft.com/en-us/access/HA011225981033.aspx > > /gustav > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jim.Hale at FleetPride.com Thu Jan 4 10:58:18 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Thu, 4 Jan 2007 10:58:18 -0600 Subject: [AccessD] A Question of Timing Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1C9@corp-es01.fleetpride.com> If you are going to use seek on back end tables you will need to set the database variable using a function like WhichDB. HTH Jim Hale Function CurrYear() As Integer Dim strTable As String, db As Database, rs As Recordset 'find current month in periods table strTable = "tblPeriods" Set db = WhichDB(strTable) Set rs = db.OpenRecordset(strTable, dbOpenTable) 'find record with the current year rs.Index = "fldStatus" rs.Seek "=", "B" CurrYear = rs.Fields("fldYear") Function WhichDB(strTableName As String) As Database Dim dbpath$, SourceTable$, dbTest As Database On Error GoTo whichDB_ERR Set dbTest = DBEngine(0)(0) dbpath = Mid(dbTest(strTableName).Connect, InStr(1, dbTest(strTableName).Connect, "=") + 1) If dbpath = "" Then Set dbTest = CurrentDb() Else Set dbTest = DBEngine(0).OpenDatabase(dbpath) End If Set WhichDB = dbTest whichDB_EXIT: Exit Function whichDB_ERR: MsgBox Err.Description Resume whichDB_EXIT End Function -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, January 04, 2007 10:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav *********************************************************************** 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 jwcolby at colbyconsulting.com Thu Jan 4 11:05:35 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 4 Jan 2007 12:05:35 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: <002a01c73018$0dc4fb30$0701a8c0@HAL9005> Message-ID: <003201c73022$8ea99c10$657aa8c0@m6805> Rocky, I would cache these things in a collection. Collections hold data values, similar to an array. The difference is that they are "single dimension" arrays, and they can be directly indexed into using a string value. I assume each phrase in each label is in a table English Chinese 'Some Phrase' 'Some Chinese Phrase' Read the entire language table out into a collection, place the CHINESE phrase in the collection, KEYED ON the English phrase. Now, as the form opens, do what you are now, only as the form opens iterate through the controls looking for the labels etc. Take the caption and pull the value out of the caption, using the text from the caption as the key into the collection. Take the value retrieved from the collection and stuff it into the caption. BTW, You could also do this "one time" by switching the form into design view after doing this and saving the form. That saves the translated values so that the next time the form does not need translation. Another BTW, this would be a great place for a set of classes to do this translation for you. As I have said many times, I use a form class which does EXACTLY what you are discussing. The class scans the form looking for controls. Each control is processed in a big case statement where the case selector is the control type. Each control type then loads it's own class - in your case labels and command buttons would each have a class. The control class is passed a pointer to the control currently being processed by the scanner. In your case, the control class would then grab the caption from the control, look up that text in the translation collection, and take the returned value and stuff it back into the caption property. Once you get these three classes functioning, you could "just drop it into" a form and that form would "translate itself". Classes working together to do an entire process. The beginning of a framework. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 10:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jan 4 11:28:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 4 Jan 2007 12:28:40 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: <003201c73022$8ea99c10$657aa8c0@m6805> Message-ID: <004b01c73025$c6d883f0$657aa8c0@m6805> Also, If you ship this thing with a table with all languages, you could look up a "language" flag as the FE opens, run a query that pulls only records for that language out into the recordset, then store all those phrases in the collection. In essence, the correct language loads into a collection as the form opens, and then is available as required from that point on. I call this caching since that is really what it is. Collections are orders of magnitude faster than tables for this kind of thing, and their performance won't decline as the number of users in the db grows. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 12:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing Rocky, I would cache these things in a collection. Collections hold data values, similar to an array. The difference is that they are "single dimension" arrays, and they can be directly indexed into using a string value. I assume each phrase in each label is in a table English Chinese 'Some Phrase' 'Some Chinese Phrase' Read the entire language table out into a collection, place the CHINESE phrase in the collection, KEYED ON the English phrase. Now, as the form opens, do what you are now, only as the form opens iterate through the controls looking for the labels etc. Take the caption and pull the value out of the caption, using the text from the caption as the key into the collection. Take the value retrieved from the collection and stuff it into the caption. BTW, You could also do this "one time" by switching the form into design view after doing this and saving the form. That saves the translated values so that the next time the form does not need translation. Another BTW, this would be a great place for a set of classes to do this translation for you. As I have said many times, I use a form class which does EXACTLY what you are discussing. The class scans the form looking for controls. Each control is processed in a big case statement where the case selector is the control type. Each control type then loads it's own class - in your case labels and command buttons would each have a class. The control class is passed a pointer to the control currently being processed by the scanner. In your case, the control class would then grab the caption from the control, look up that text in the translation collection, and take the returned value and stuff it back into the caption property. Once you get these three classes functioning, you could "just drop it into" a form and that form would "translate itself". Classes working together to do an entire process. The beginning of a framework. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 10:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Thu Jan 4 11:51:44 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Thu, 4 Jan 2007 23:21:44 +0530 Subject: [AccessD] Copy Record on form References: <00db01c72fbb$7d940170$6401a8c0@speedy> Message-ID: <002f01c73029$20f50770$b20665cb@pcadt> Bob, My sample db named FormAppendSelectedRecord might also be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It demonstrates adding a fresh record that is a copy of desired selected record. This is done on double clicking the source record. Both the records (source record as well as the freshly added one) remain highlighted till the fresh record gets saved. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Bob Heygood To: 'Access Developers discussion and problem solving' Sent: Thursday, January 04, 2007 10:17 Subject: [AccessD] Copy Record on form Hello to the list, When I select a record on a form and copy it and paste append, I seem to only get a new record with data in those fields which have a visible control on the form. I have tested this and am wondering if someone could do the same. My need is to only display some fields with controls on the form but whencoping the record, have all the fields data be pasted into the new record. This seems to be the case whether I do it from the menu items manually or use code using the DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend Or DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Methods. I am totally out of space on this form and would like this to work. Otherwise I guess I will have to use SQL in the code. A2003 TIA Bob Heygood From martyconnelly at shaw.ca Thu Jan 4 12:42:29 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Jan 2007 10:42:29 -0800 Subject: [AccessD] Read Exchange from Access? In-Reply-To: <000001c72fac$0edec7b0$0200a8c0@danwaters> References: <000001c72fac$0edec7b0$0200a8c0@danwaters> Message-ID: <459D4A95.9060807@shaw.ca> http:///www.outlookcode.com Should be Exchange code here as well Dan Waters wrote: >At every client or presentation I give, I am asked if my system can read a >person's Exchange (Outlook) out of office information. I do have an >admittedly redundant out of office mechanism in my system, but tapping into >the information people already enter into Outlook would be better. > >How could I programmatically read the out of office flag on the Exchange >server from Access? Or can anyone point me to a good source of information? > > > > > -- Marty Connelly Victoria, B.C. Canada From bheygood at abestsystems.com Thu Jan 4 12:50:55 2007 From: bheygood at abestsystems.com (Bob Heygood) Date: Thu, 4 Jan 2007 10:50:55 -0800 Subject: [AccessD] Copy Record on form In-Reply-To: Message-ID: <005001c73031$44057e90$6401a8c0@speedy> Hello Gustav, Yeah for DAO and clones and bookmarks. As a developer who still always uses DAO and just now updated to OFF2003, this is a great solution. Works great except for one field which is a memo field. Does not copy that field, tho copies other memo fields. I will try some other data and see what is happening. Thanks, Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 1:57 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Copy Record on form Hi Bob As always, turn to DAO for a speedy method: Private Sub btnCopy_Click() Dim rstSource As DAO.Recordset Dim rstInsert As DAO.Recordset Dim fld As DAO.Field If Me.NewRecord = True Then Exit Sub Set rstInsert = Me.RecordsetClone Set rstSource = rstInsert.Clone With rstSource If .RecordCount > 0 Then ' Go to the current record. .Bookmark = Me.Bookmark With rstInsert .AddNew For Each fld In rstSource.Fields With fld If .Attributes And dbAutoIncrField Then ' Skip Autonumber or GUID field. Else ' Copy field content. rstInsert.Fields(.Name).Value = .Value End If End With Next .Update ' Go to the new record and sync form. .MoveLast Me.Bookmark = .Bookmark .Close End With End If .Close End With Set rstInsert = Nothing Set rstSource = Nothing End Sub Also, disable the button on a new record: Private Sub Form_Current() On Error Resume Next Me!btnCopy.Enabled = Not Me.NewRecord End Sub /gustav >>> bheygood at abestsystems.com 04-01-2007 05:47 >>> Hello to the list, When I select a record on a form and copy it and paste append, I seem to only get a new record with data in those fields which have a visible control on the form. I have tested this and am wondering if someone could do the same. My need is to only display some fields with controls on the form but when coping the record, have all the fields data be pasted into the new record. This seems to be the case whether I do it from the menu items manually or use code using the DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend Or DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Methods. I am totally out of space on this form and would like this to work. Otherwise I guess I will have to use SQL in the code. A2003 TIA Bob Heygood -- 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 Jan 4 13:00:18 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 4 Jan 2007 11:00:18 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: Message-ID: <005101c73032$93bc2eb0$0701a8c0@HAL9005> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM From bchacc at san.rr.com Thu Jan 4 13:15:17 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 4 Jan 2007 11:15:17 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1C9@corp-es01.fleetpride.com> Message-ID: <005201c73034$abdc4280$0701a8c0@HAL9005> Fortunately the language table is in the front end. That's so each user can select their own language. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim Sent: Thursday, January 04, 2007 8:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing If you are going to use seek on back end tables you will need to set the database variable using a function like WhichDB. HTH Jim Hale Function CurrYear() As Integer Dim strTable As String, db As Database, rs As Recordset 'find current month in periods table strTable = "tblPeriods" Set db = WhichDB(strTable) Set rs = db.OpenRecordset(strTable, dbOpenTable) 'find record with the current year rs.Index = "fldStatus" rs.Seek "=", "B" CurrYear = rs.Fields("fldYear") Function WhichDB(strTableName As String) As Database Dim dbpath$, SourceTable$, dbTest As Database On Error GoTo whichDB_ERR Set dbTest = DBEngine(0)(0) dbpath = Mid(dbTest(strTableName).Connect, InStr(1, dbTest(strTableName).Connect, "=") + 1) If dbpath = "" Then Set dbTest = CurrentDb() Else Set dbTest = DBEngine(0).OpenDatabase(dbpath) End If Set WhichDB = dbTest whichDB_EXIT: Exit Function whichDB_ERR: MsgBox Err.Description Resume whichDB_EXIT End Function -----Original Message----- From: Gustav Brock [mailto:Gustav at cactus.dk] Sent: Thursday, January 04, 2007 10:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav *********************************************************************** 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM From bchacc at san.rr.com Thu Jan 4 13:19:00 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 4 Jan 2007 11:19:00 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <003201c73022$8ea99c10$657aa8c0@m6805> Message-ID: <005601c73035$30af8e40$0701a8c0@HAL9005> When you read the entire language table into a collection, is the data stored in memory or disk? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing Rocky, I would cache these things in a collection. Collections hold data values, similar to an array. The difference is that they are "single dimension" arrays, and they can be directly indexed into using a string value. I assume each phrase in each label is in a table English Chinese 'Some Phrase' 'Some Chinese Phrase' Read the entire language table out into a collection, place the CHINESE phrase in the collection, KEYED ON the English phrase. Now, as the form opens, do what you are now, only as the form opens iterate through the controls looking for the labels etc. Take the caption and pull the value out of the caption, using the text from the caption as the key into the collection. Take the value retrieved from the collection and stuff it into the caption. BTW, You could also do this "one time" by switching the form into design view after doing this and saving the form. That saves the translated values so that the next time the form does not need translation. Another BTW, this would be a great place for a set of classes to do this translation for you. As I have said many times, I use a form class which does EXACTLY what you are discussing. The class scans the form looking for controls. Each control is processed in a big case statement where the case selector is the control type. Each control type then loads it's own class - in your case labels and command buttons would each have a class. The control class is passed a pointer to the control currently being processed by the scanner. In your case, the control class would then grab the caption from the control, look up that text in the translation collection, and take the returned value and stuff it back into the caption property. Once you get these three classes functioning, you could "just drop it into" a form and that form would "translate itself". Classes working together to do an entire process. The beginning of a framework. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 10:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM From mmattys at rochester.rr.com Thu Jan 4 13:28:14 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 4 Jan 2007 14:28:14 -0500 Subject: [AccessD] A Question of Timing References: <001201c7301e$7ae79d20$8abea8c0@XPS> Message-ID: <010b01c73036$7c05f180$0302a8c0@default> From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Thursday, January 04, 2007 11:36 AM Subject: Re: [AccessD] A Question of Timing > I'd follow gustav's advice and use seek. I also wanted to add that you > can > use seek on a remote teable, but you must open the remote database first. > See code below. > > Jim. ----------------------------------------------------------------------------- > Also, If you ship this thing with a table with all languages, you could > look > up a "language" flag as the FE opens, run a query that pulls only records > for that language out into the recordset, then store all those phrases in > the collection. In essence, the correct language loads into a collection > as > the form opens, and then is available as required from that point on. I > call this caching since that is really what it is. Collections are orders > of magnitude faster than tables for this kind of thing, and their > performance won't decline as the number of users in the db grows. > John W. Colby > Colby Consulting > www.ColbyConsulting.com Hmm. Now I'm curious. The 'orders of magnitude' wasn't spoken against and yet Jim still went with seek. Any particular reason, Jim? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From adtp at airtelbroadband.in Thu Jan 4 13:10:28 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 5 Jan 2007 00:40:28 +0530 Subject: [AccessD] A Question of Timing References: <002a01c73018$0dc4fb30$0701a8c0@HAL9005> Message-ID: <03aa01c73034$1e6cfc00$b20665cb@pcadt> Rocky, You can try creating the recordset (rstControls) itself based upon SQL statement with Where clause matching the desired language. This filtered recordset should give faster results as it will have comparatively very few records. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Thursday, January 04, 2007 21:20 Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From markamatte at hotmail.com Thu Jan 4 14:02:54 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 Jan 2007 20:02:54 +0000 Subject: [AccessD] Closing Subform In-Reply-To: <03aa01c73034$1e6cfc00$b20665cb@pcadt> Message-ID: Hello All, In A97 I have a form with a subform...the subform has a 'Before_Update' event. When I close the main form I get an error that the 'Before_Update'(on subform) event is trying to do stuff and can't find the main form. How should I close the main form? Thanks, Mark A. Matte _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview From jwcolby at colbyconsulting.com Thu Jan 4 14:04:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 4 Jan 2007 15:04:10 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: <005601c73035$30af8e40$0701a8c0@HAL9005> Message-ID: <006701c7303b$804b7120$657aa8c0@m6805> In memory. That is the point. By caching it in memory, you get rid of the disk access time (after the "one time" load process). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 2:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing When you read the entire language table into a collection, is the data stored in memory or disk? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing Rocky, I would cache these things in a collection. Collections hold data values, similar to an array. The difference is that they are "single dimension" arrays, and they can be directly indexed into using a string value. I assume each phrase in each label is in a table English Chinese 'Some Phrase' 'Some Chinese Phrase' Read the entire language table out into a collection, place the CHINESE phrase in the collection, KEYED ON the English phrase. Now, as the form opens, do what you are now, only as the form opens iterate through the controls looking for the labels etc. Take the caption and pull the value out of the caption, using the text from the caption as the key into the collection. Take the value retrieved from the collection and stuff it into the caption. BTW, You could also do this "one time" by switching the form into design view after doing this and saving the form. That saves the translated values so that the next time the form does not need translation. Another BTW, this would be a great place for a set of classes to do this translation for you. As I have said many times, I use a form class which does EXACTLY what you are discussing. The class scans the form looking for controls. Each control is processed in a big case statement where the case selector is the control type. Each control type then loads it's own class - in your case labels and command buttons would each have a class. The control class is passed a pointer to the control currently being processed by the scanner. In your case, the control class would then grab the caption from the control, look up that text in the translation collection, and take the returned value and stuff it back into the caption property. Once you get these three classes functioning, you could "just drop it into" a form and that form would "translate itself". Classes working together to do an entire process. The beginning of a framework. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 10:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM -- 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 Jan 4 14:10:52 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 4 Jan 2007 12:10:52 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <006701c7303b$804b7120$657aa8c0@m6805> Message-ID: <006d01c7303c$6f5e23c0$0701a8c0@HAL9005> Now, of course, I have that collection learning curve to deal with. :o) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 12:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing In memory. That is the point. By caching it in memory, you get rid of the disk access time (after the "one time" load process). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 2:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing When you read the entire language table into a collection, is the data stored in memory or disk? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing Rocky, I would cache these things in a collection. Collections hold data values, similar to an array. The difference is that they are "single dimension" arrays, and they can be directly indexed into using a string value. I assume each phrase in each label is in a table English Chinese 'Some Phrase' 'Some Chinese Phrase' Read the entire language table out into a collection, place the CHINESE phrase in the collection, KEYED ON the English phrase. Now, as the form opens, do what you are now, only as the form opens iterate through the controls looking for the labels etc. Take the caption and pull the value out of the caption, using the text from the caption as the key into the collection. Take the value retrieved from the collection and stuff it into the caption. BTW, You could also do this "one time" by switching the form into design view after doing this and saving the form. That saves the translated values so that the next time the form does not need translation. Another BTW, this would be a great place for a set of classes to do this translation for you. As I have said many times, I use a form class which does EXACTLY what you are discussing. The class scans the form looking for controls. Each control is processed in a big case statement where the case selector is the control type. Each control type then loads it's own class - in your case labels and command buttons would each have a class. The control class is passed a pointer to the control currently being processed by the scanner. In your case, the control class would then grab the caption from the control, look up that text in the translation collection, and take the returned value and stuff it back into the caption property. Once you get these three classes functioning, you could "just drop it into" a form and that form would "translate itself". Classes working together to do an entire process. The beginning of a framework. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 10:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM From martyconnelly at shaw.ca Thu Jan 4 14:11:44 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Jan 2007 12:11:44 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <005201c73034$abdc4280$0701a8c0@HAL9005> References: <005201c73034$abdc4280$0701a8c0@HAL9005> Message-ID: <459D5F80.5040804@shaw.ca> Just some other odd info for international apps and keyboards. Handy if you need fully bilingual apps where a form has to accept two languages If you are using multiple language keyboards on one machine, here is some code to sense what OS language keyboard is active and to switch back and forth between keyboard types. Rather than use Alt Right Shift key to switch back and forth. The other thing you will have to do is switch language keyboards for text input. Using routines like below. I use this for multilanguage input on one form To set these OS keyboards Control Panel --> Regional& Language --> Language --> Details --> Settings With WinXP keyboards you want to put something in each textbox tag property to indicate language "Arabic" or "French" 'Really rough test code to change keyboards as you 'shift to a new text box requiring a different language. Sub ShiftToLanguage() 'use the following code inside form or focused window or textbox 'to simulate the Alt RightShift = key combination: ' then press and then release the AltRight RightShift key 'order of pressing important keybd_event VK_RSHIFT, 0, 0, 0 keybd_event VK_RMENU, 0, 0, 0 keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 'weird things happen if you don't up the shiftkey looks like capslock 'has been left on keybd_event VK_RSHIFT, 0, KEYEVENTF_KEYUP, 0 'line below needed for Access97 ' keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 Debug.Print "Right Shift" DoEvents End Sub or 'Private Const VK_LMENU = &HA4 Private Const VK_MENU = &H12 ' Virtual Keycode for the Alt key Private Const KEYEVENTF_KEYUP = &H2 'Private Declare Function ActivateKeyboardLayout Lib "user32" ( _ ' ByVal HKL As Long, ByVal Flags As Long) As Long 'Private Declare Function GetKeyboardLayout Lib "user32" (ByVal dwLayout As Long) As Long Private Declare Function GetKeyboardLayoutName Lib "user32" Alias "GetKeyboardLayoutNameA" (ByVal pwszKLID As String) As Long Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwflags As Long, ByVal dwExtraInfo As Long) Private Sub Text0_GotFocus() ShiftToLanguageBack Me.Text0.SetFocus Curr_Frm_Control keybd_event VK_MENU, 0, 0, 0 keybd_event VK_MENU, 0, KEYEVENTF_KEYUP, 0 ' keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 DoEvents Debug.Print "here" End Sub Private Sub Text2_GotFocus() ShiftToLanguage Me.Text2.SetFocus Curr_Frm_Control keybd_event VK_MENU, 0, 0, 0 keybd_event VK_MENU, 0, KEYEVENTF_KEYUP, 0 'keybd_event VK_RMENU, 0, KEYEVENTF_KEYUP, 0 DoEvents Debug.Print "Here2" End Sub Function Curr_Frm_Control() Dim ctlCC As Control Dim frm As Form Dim strCurrent_Buffer As String Dim lret As Long fCheckControlType 'Retrieves current name of the active keyboard layout lret = GetKeyboardLayoutName(strCurrent_Buffer) Debug.Print strCurrent_Buffer ' Set frm = Screen.ActiveForm ' Debug.Print frm.Name Set ctlCC = Screen.ActiveControl Curr_Frm_Control = ctlCC.Name Debug.Print Curr_Frm_Control End Function Private Function fCheckControlType() Dim ctl As Control Set ctl = Me.ActiveControl Debug.Print ctl.ControlType 'Debug.Print ctl.Form.Name End Function Beach Access Software wrote: >Fortunately the language table is in the front end. That's so each user can >select their own language. > >Rocky > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hale, Jim >Sent: Thursday, January 04, 2007 8:58 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] A Question of Timing > >If you are going to use seek on back end tables you will need to set the >database variable using a function like WhichDB. >HTH >Jim Hale > >Function CurrYear() As Integer >Dim strTable As String, db As Database, rs As Recordset >'find current month in periods table > strTable = "tblPeriods" > Set db = WhichDB(strTable) > Set rs = db.OpenRecordset(strTable, dbOpenTable) > 'find record with the current year > rs.Index = "fldStatus" > rs.Seek "=", "B" > CurrYear = rs.Fields("fldYear") > > >Function WhichDB(strTableName As String) As Database >Dim dbpath$, SourceTable$, dbTest As Database > >On Error GoTo whichDB_ERR >Set dbTest = DBEngine(0)(0) >dbpath = Mid(dbTest(strTableName).Connect, InStr(1, >dbTest(strTableName).Connect, "=") + 1) >If dbpath = "" Then > Set dbTest = CurrentDb() >Else > Set dbTest = DBEngine(0).OpenDatabase(dbpath) >End If >Set WhichDB = dbTest >whichDB_EXIT: > > Exit Function > >whichDB_ERR: > MsgBox Err.Description > Resume whichDB_EXIT >End Function > >-----Original Message----- >From: Gustav Brock [mailto:Gustav at cactus.dk] >Sent: Thursday, January 04, 2007 10:08 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] A Question of Timing > > >Hi Rocky > >You could use DAO and the Seek method on this local table if it is indexed >properly. >Seek is extremely fast but the syntax is a bit weird. > >/gustav > > > -- Marty Connelly Victoria, B.C. Canada From jimdettman at verizon.net Thu Jan 4 14:26:31 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 04 Jan 2007 15:26:31 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: <010b01c73036$7c05f180$0302a8c0@default> Message-ID: <003701c7303e$a12dd6f0$8abea8c0@XPS> <> When there might be literally thousands of phrases, that's not something that I'd want to load into memory. I've always leaned towards a table rather then loading something up in memory as I'd rather let Access/JET get memory for database operations. And I've found seek fast enough (especially if it's in the local database) for anything I've ever tried. Also the use of a collection means you load the whole thing and take the hit even though you might not need it all. Modifying/testing would also be a bit of a chore because as you modified (add/delete/change), you'd need to load up the whole thing each time. This would be a tough call though because the needed functionality is so integral to the app. Since it's used everywhere, you'd want it as fast as possible. I have to say though that in general, every app I've seen with translation has always been done with tables. I'd do a lot of testing. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, January 04, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Question of Timing From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Thursday, January 04, 2007 11:36 AM Subject: Re: [AccessD] A Question of Timing > I'd follow gustav's advice and use seek. I also wanted to add that you > can > use seek on a remote teable, but you must open the remote database first. > See code below. > > Jim. ---------------------------------------------------------------------------- - > Also, If you ship this thing with a table with all languages, you could > look > up a "language" flag as the FE opens, run a query that pulls only records > for that language out into the recordset, then store all those phrases in > the collection. In essence, the correct language loads into a collection > as > the form opens, and then is available as required from that point on. I > call this caching since that is really what it is. Collections are orders > of magnitude faster than tables for this kind of thing, and their > performance won't decline as the number of users in the db grows. > John W. Colby > Colby Consulting > www.ColbyConsulting.com Hmm. Now I'm curious. The 'orders of magnitude' wasn't spoken against and yet Jim still went with seek. Any particular reason, Jim? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.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 Jan 4 15:15:58 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 4 Jan 2007 16:15:58 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: <006d01c7303c$6f5e23c0$0701a8c0@HAL9005> Message-ID: <007a01c73045$885ea850$657aa8c0@m6805> ROTFL, they are EASY and once you use one, you will wonder why you never used them before. THEN you will have that "have to go back and rewrite all my apps using collections" curve. Dim col as collection set col = new collection 'The value can be ANYTHING, including a pointer to an object col.add SomeValue, "SomeKey" 'The key MUST be a string To use... MyVal = col("SomeKey") 'to retrieve a value by the key So for example, suppose I wanted to cache the price of cars in a collection: Dim colCarPrice as collection set colCarPrice as new collection with colCarPrice .Add 47000, "Corvette" .Add 13000, "Escort" .add 0, "Chevette" .Add -10000000, "Pinto" 'takes into account the cost of lawsuites end with To use the values: curPrice = colCarPrice("Corvette") Notice that these are single values being stored in the collection. You can also store pointers to objects, for example: colRst.Add rstCars, "Cars" colRst.Add rstPeople, "People" Etc. Collections literally store variants, so they are (or may be) inherently slower than an array, but you can index into the collection using english words, which is exactly what makes it so handy for your translation stuff. The english phrase is the key, the chinese phrase is the stored value. Index in using the english and back comes the chinese. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 3:11 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing Now, of course, I have that collection learning curve to deal with. :o) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 12:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing In memory. That is the point. By caching it in memory, you get rid of the disk access time (after the "one time" load process). John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 2:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing When you read the entire language table into a collection, is the data stored in memory or disk? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 04, 2007 9:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing Rocky, I would cache these things in a collection. Collections hold data values, similar to an array. The difference is that they are "single dimension" arrays, and they can be directly indexed into using a string value. I assume each phrase in each label is in a table English Chinese 'Some Phrase' 'Some Chinese Phrase' Read the entire language table out into a collection, place the CHINESE phrase in the collection, KEYED ON the English phrase. Now, as the form opens, do what you are now, only as the form opens iterate through the controls looking for the labels etc. Take the caption and pull the value out of the caption, using the text from the caption as the key into the collection. Take the value retrieved from the collection and stuff it into the caption. BTW, You could also do this "one time" by switching the form into design view after doing this and saving the form. That saves the translated values so that the next time the form does not need translation. Another BTW, this would be a great place for a set of classes to do this translation for you. As I have said many times, I use a form class which does EXACTLY what you are discussing. The class scans the form looking for controls. Each control is processed in a big case statement where the case selector is the control type. Each control type then loads it's own class - in your case labels and command buttons would each have a class. The control class is passed a pointer to the control currently being processed by the scanner. In your case, the control class would then grab the caption from the control, look up that text in the translation collection, and take the returned value and stuff it back into the caption property. Once you get these three classes functioning, you could "just drop it into" a form and that form would "translate itself". Classes working together to do an entire process. The beginning of a framework. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Thursday, January 04, 2007 10:50 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Jan 4 15:37:31 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Jan 2007 13:37:31 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <003701c7303e$a12dd6f0$8abea8c0@XPS> References: <003701c7303e$a12dd6f0$8abea8c0@XPS> Message-ID: <459D739B.4020001@shaw.ca> Actually there might not be that much of a memory requirement for a collection All of Shakespeare's plays requires less than 250K ANSI text or 0.5 meg Unicode He would at most require a couple of hundred K storage. Complex graphic forms alone might require 50K storage. Spare no expense. Throw the bird another seed. Jim Dettman wrote: ><> > > When there might be literally thousands of phrases, that's not something >that I'd want to load into memory. I've always leaned towards a table >rather then loading something up in memory as I'd rather let Access/JET get >memory for database operations. And I've found seek fast enough (especially >if it's in the local database) for anything I've ever tried. > > Also the use of a collection means you load the whole thing and take the >hit even though you might not need it all. Modifying/testing would also be >a bit of a chore because as you modified (add/delete/change), you'd need to >load up the whole thing each time. > > This would be a tough call though because the needed functionality is so >integral to the app. Since it's used everywhere, you'd want it as fast as >possible. I have to say though that in general, every app I've seen with >translation has always been done with tables. > > I'd do a lot of testing. > >Jim. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys >Sent: Thursday, January 04, 2007 2:28 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A Question of Timing > >From: "Jim Dettman" >To: "'Access Developers discussion and problem solving'" > >Sent: Thursday, January 04, 2007 11:36 AM >Subject: Re: [AccessD] A Question of Timing > > > > >>I'd follow gustav's advice and use seek. I also wanted to add that you >>can >>use seek on a remote teable, but you must open the remote database first. >>See code below. >> >>Jim. >> >> >---------------------------------------------------------------------------- >- > > >>Also, If you ship this thing with a table with all languages, you could >>look >>up a "language" flag as the FE opens, run a query that pulls only records >>for that language out into the recordset, then store all those phrases in >>the collection. In essence, the correct language loads into a collection >>as >>the form opens, and then is available as required from that point on. I >>call this caching since that is really what it is. Collections are orders >>of magnitude faster than tables for this kind of thing, and their >>performance won't decline as the number of users in the db grows. >> >> > > > >>John W. Colby >>Colby Consulting >>www.ColbyConsulting.com >> >> > > >Hmm. Now I'm curious. The 'orders of magnitude' wasn't spoken >against and yet Jim still went with seek. Any particular reason, Jim? > >Michael R. Mattys >MapPoint & Access Dev >www.mattysconsulting.com > > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Thu Jan 4 15:59:15 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 Jan 2007 15:59:15 -0600 Subject: [AccessD] A Question of Timing Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> "All of Shakespeare's plays requires less than 250K ANSI text or 0.5 meg" I don't think so. Assuming an average of 6 letters per word (quite a low average) that would be about 42,000 words. That's just a little more than 'Hamlet' alone, never mind the whole of Willie's output. There are 37 plays and the 5 longest and 5 shortest add up to about 240,000 *words*. See http://www.shaksper.net/archives/1994/0714.html I think you meant something more like 250 Meg. Even so, I doubt if all the labels on all the controls of an Access app. come to any significant total amount of text (these days, considering how much memory is standard). Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Thursday, January 04, 2007 4:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Question of Timing Actually there might not be that much of a memory requirement for a collection All of Shakespeare's plays requires less than 250K ANSI text or 0.5 meg Unicode He would at most require a couple of hundred K storage. Complex graphic forms alone might require 50K storage. Spare no expense. Throw the bird another seed. From jwcolby at colbyconsulting.com Thu Jan 4 16:14:31 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 4 Jan 2007 17:14:31 -0500 Subject: [AccessD] A Question of Timing In-Reply-To: <003701c7303e$a12dd6f0$8abea8c0@XPS> Message-ID: <008e01c7304d$b5fe1090$657aa8c0@m6805> I do this stuff all the time. It is lightning fast once the collection is loaded. The load can take a second or two if there are thousands of records, but if you do it as the app opens it is generally un-noticable. As for test, yea I have a "refresh" button that I use to empty the collection and reload. Once an app is stable this method really is an order of magnitude (or more) faster than any table accesses. Collections access at the speed of main memory. Recordsets may get cached somewhere out there, but there is no way to ensure that and if they aren't then you will see the difference. Grabbing a caption out of a collection will happen at probably tens of thousands per second so a whole form with even 200 labels (not gonna happen) would take a couple of milliseconds to load (using a collection as the cache). Believe me, it will be completely unnoticeable. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Thursday, January 04, 2007 3:27 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A Question of Timing <> When there might be literally thousands of phrases, that's not something that I'd want to load into memory. I've always leaned towards a table rather then loading something up in memory as I'd rather let Access/JET get memory for database operations. And I've found seek fast enough (especially if it's in the local database) for anything I've ever tried. Also the use of a collection means you load the whole thing and take the hit even though you might not need it all. Modifying/testing would also be a bit of a chore because as you modified (add/delete/change), you'd need to load up the whole thing each time. This would be a tough call though because the needed functionality is so integral to the app. Since it's used everywhere, you'd want it as fast as possible. I have to say though that in general, every app I've seen with translation has always been done with tables. I'd do a lot of testing. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Thursday, January 04, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Question of Timing From: "Jim Dettman" To: "'Access Developers discussion and problem solving'" Sent: Thursday, January 04, 2007 11:36 AM Subject: Re: [AccessD] A Question of Timing > I'd follow gustav's advice and use seek. I also wanted to add that > you can use seek on a remote teable, but you must open the remote > database first. > See code below. > > Jim. ---------------------------------------------------------------------------- - > Also, If you ship this thing with a table with all languages, you > could look up a "language" flag as the FE opens, run a query that > pulls only records for that language out into the recordset, then > store all those phrases in the collection. In essence, the correct > language loads into a collection as the form opens, and then is > available as required from that point on. I call this caching since > that is really what it is. Collections are orders of magnitude faster > than tables for this kind of thing, and their performance won't > decline as the number of users in the db grows. > John W. Colby > Colby Consulting > www.ColbyConsulting.com Hmm. Now I'm curious. The 'orders of magnitude' wasn't spoken against and yet Jim still went with seek. Any particular reason, Jim? Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 4 16:54:01 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Jan 2007 14:54:01 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> Message-ID: <459D8589.10308@shaw.ca> I just checked with project Gutenberg and it is 5 Meg text with all plays and sonnets 2 Meg zipped. http://www.gutenberg.org/etext/100 I was just guesstimating as I have the text copies of the plays in XML format which are around 250K per play, easier to search in this format and good xml test files. Heenan, Lambert wrote: >"All of Shakespeare's plays requires less than 250K ANSI text or 0.5 meg" > >I don't think so. Assuming an average of 6 letters per word (quite a low >average) that would be about 42,000 words. That's just a little more than >'Hamlet' alone, never mind the whole of Willie's output. > >There are 37 plays and the 5 longest and 5 shortest add up to about 240,000 >*words*. See http://www.shaksper.net/archives/1994/0714.html > >I think you meant something more like 250 Meg. > >Even so, I doubt if all the labels on all the controls of an Access app. >come to any significant total amount of text (these days, considering how >much memory is standard). > >Lambert > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly >Sent: Thursday, January 04, 2007 4:38 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] A Question of Timing > > >Actually there might not be that much of a memory requirement for a >collection >All of Shakespeare's plays requires less than 250K ANSI text or 0.5 meg >Unicode >He would at most require a couple of hundred K storage. Complex graphic >forms alone might require 50K storage. Spare no expense. Throw the bird >another seed. > > > -- Marty Connelly Victoria, B.C. Canada From stuart at lexacorp.com.pg Thu Jan 4 17:12:04 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Jan 2007 09:12:04 +1000 Subject: [AccessD] A Question of Timing In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> Message-ID: <459D89C4.15294.16046684@stuart.lexacorp.com.pg> On 4 Jan 2007 at 15:59, Heenan, Lambert wrote: > "All of Shakespeare's plays requires less than 250K ANSI text or 0.5 meg" > > I don't think so. Assuming an average of 6 letters per word (quite a low > average) that would be about 42,000 words. That's just a little more than > 'Hamlet' alone, never mind the whole of Willie's output. > > There are 37 plays and the 5 longest and 5 shortest add up to about 240,000 > *words*. See http://www.shaksper.net/archives/1994/0714.html > > I think you meant something more like 250 Meg. You're both way out. The answer lies somewhere in the middle :-) Project Gutenberg's Etext "The Complete Works of William Shakespeare January, 1994 [Etext #100]" - "SHAKS12.TXT" is 5.32MB -- Stuart From stuart at lexacorp.com.pg Thu Jan 4 17:16:26 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Jan 2007 09:16:26 +1000 Subject: [AccessD] Outlook Automation Warnings In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C20200A68F@xlivmbx35.aig.com> Message-ID: <459D8ACA.6669.160864AC@stuart.lexacorp.com.pg> Another free tool to get rid of those annoying "Something is trying to send an email" warnings from Outlook. I haven't tried it since I don't run Outlook, but it looks promising. http://www.mapilab.com/outlook/security/ "Get rid of annoying security alerts in Microsoft Outlook! Advanced Security for Outlook allows you to determine the violator as well as specifying the status for this program for future occasions e.g. allow access, block access or run the default Outlook handler. ... Advanced Security for Outlook is free for commercial and non-commercial use." -- Stuart From bchacc at san.rr.com Thu Jan 4 17:51:22 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 4 Jan 2007 15:51:22 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: <03aa01c73034$1e6cfc00$b20665cb@pcadt> Message-ID: <00a401c7305b$3d78e9c0$0701a8c0@HAL9005> Thank sounds like a quick fix. I'll give it a try. Long term, the classes sound like the way to go. Thanks Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Thursday, January 04, 2007 11:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A Question of Timing Rocky, You can try creating the recordset (rstControls) itself based upon SQL statement with Where clause matching the desired language. This filtered recordset should give faster results as it will have comparatively very few records. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Beach Access Software To: 'Access Developers discussion and problem solving' Sent: Thursday, January 04, 2007 21:20 Subject: [AccessD] A Question of Timing Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.4/615 - Release Date: 1/3/2007 1:34 PM From adtp at airtelbroadband.in Thu Jan 4 23:29:20 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 5 Jan 2007 10:59:20 +0530 Subject: [AccessD] Closing Subform References: Message-ID: <00a401c7308a$aacdc2a0$961e65cb@pcadt> Mark, Unload event of main form takes place BEFORE that of the subform. (Interestingly, load event of main form takes place AFTER that of the subform). As a result execution of any code in subform at this stage, that refers to the main form, would attract error. As a remedial action, you can put the following statement at the beginning of relevant code block in the subform: On Error Resume Next Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, January 05, 2007 01:32 Subject: [AccessD] Closing Subform Hello All, In A97 I have a form with a subform...the subform has a 'Before_Update' event. When I close the main form I get an error that the 'Before_Update'(on subform) event is trying to do stuff and can't find the main form. How should I close the main form? Thanks, Mark A. Matte From adtp at airtelbroadband.in Thu Jan 4 23:29:20 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 5 Jan 2007 10:59:20 +0530 Subject: [AccessD] Closing Subform References: Message-ID: <000201c7308c$3804ecb0$f51c65cb@pcadt> Mark, Unload event of main form takes place BEFORE that of the subform. (Interestingly, load event of main form takes place AFTER that of the subform). As a result execution of any code in subform at this stage, that refers to the main form, would attract error. As a remedial action, you can put the following statement at the beginning of relevant code block in the subform: On Error Resume Next Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Friday, January 05, 2007 01:32 Subject: [AccessD] Closing Subform Hello All, In A97 I have a form with a subform...the subform has a 'Before_Update' event. When I close the main form I get an error that the 'Before_Update'(on subform) event is trying to do stuff and can't find the main form. How should I close the main form? Thanks, Mark A. Matte From accessd666 at yahoo.com Fri Jan 5 01:55:37 2007 From: accessd666 at yahoo.com (Sad Der) Date: Thu, 4 Jan 2007 23:55:37 -0800 (PST) Subject: [AccessD] Set max no of chars in a textfield Message-ID: <20070105075537.68758.qmail@web31609.mail.mud.yahoo.com> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, Sander __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Gustav at cactus.dk Fri Jan 5 04:29:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 11:29:07 +0100 Subject: [AccessD] Set max no of chars in a textfield Message-ID: Hi Sander If the textbox is bound to a table field with a max. text size of 250, that should happen automatically. /gustav >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, Sander From Gustav at cactus.dk Fri Jan 5 04:47:25 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 11:47:25 +0100 Subject: [AccessD] Select language (was: A Question of Timing) Message-ID: Hi John et al I would advice against that. Handle the English language as any other language. Then use a key - in plain readable programmer-English understood by you, the programmer - for the entry. This allows you - at any time - to edit the English text as well as the text in any other language without changing the form or report. Also, don't forget that "English" (ignoring old and middle age English) comes in 13 varieties: http://www.science.co.il/Language/Locale-Codes.asp /gustav >>> jwcolby at colbyconsulting.com 04-01-2007 22:15 >>> The english phrase is the key, the chinese phrase is the stored value. Index in using the english and back comes the chinese. From Gustav at cactus.dk Fri Jan 5 04:55:11 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 11:55:11 +0100 Subject: [AccessD] A Question of Timing Message-ID: Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From accessd666 at yahoo.com Fri Jan 5 04:57:17 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 5 Jan 2007 02:57:17 -0800 (PST) Subject: [AccessD] Set max no of chars in a textfield Message-ID: <20070105105718.77880.qmail@web31605.mail.mud.yahoo.com> It isn't bound... Sander ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 11:29:07 AM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander If the textbox is bound to a table field with a max. text size of 250, that should happen automatically. /gustav >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, 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 paul.hartland at fsmail.net Fri Jan 5 05:05:13 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 5 Jan 2007 12:05:13 +0100 (CET) Subject: [AccessD] Set max no of chars in a textfield Message-ID: <11894415.115691167995112765.JavaMail.www@wwinf3004.me-wanadoo.net> Sander, Would something like this work for you (put in the KeyUp event of the text box) If Len(Text0.Text) > 250 Then SendKeys Chr(8) Just off top of my head.... Paul Message Received: Jan 05 2007, 10:58 AM From: "Sad Der" To: "Access Developers discussion and problem solving" Cc: Subject: Re: [AccessD] Set max no of chars in a textfield It isn't bound... Sander ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 11:29:07 AM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander If the textbox is bound to a table field with a max. text size of 250, that should happen automatically. /gustav >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, 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 Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Fri Jan 5 05:10:39 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 12:10:39 +0100 Subject: [AccessD] Set max no of chars in a textfield Message-ID: Hi Sander The C will do: Me!txtInput.InputMask= String(250, "C") /gustav >>> accessd666 at yahoo.com 05-01-2007 11:57 >>> It isn't bound... Sander ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 11:29:07 AM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander If the textbox is bound to a table field with a max. text size of 250, that should happen automatically. /gustav >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, Sander From jwcolby at colbyconsulting.com Fri Jan 5 05:33:25 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 5 Jan 2007 06:33:25 -0500 Subject: [AccessD] Select language (was: A Question of Timing) In-Reply-To: Message-ID: <001601c730bd$50e055e0$ccb6fea9@m6805> I don't understand your objection. In a collection the key is just an index into an array (of sorts). The key can be any text string. So if I store "Hola" with a key of "Hello", I can then look up "Hola" simply by using the syntax MyCol("Hello"). Likewise if I store "Hello" and use "Hola" for the key, I can do a reverse translation. Thus you store all of your words and phrases in a table, Language1 in column1, Language2 in column2. Read the table, store column1 keyed on column2. Now take a phrase from the form and use it as the key, look up the value. That simple. Whether you do a lookup in a table or a collection is irrelevant in terms of the concept. Of course this implies that every string value in the form is in the table, but that is true with a seek method as well. Any value in the form not in the table will not return a value whether using a collection or seeking the original table. The only thing the collection does for you is cache the table in memory and increase the speed of access 100 times or so. You could certainly use the control name (with the form name to make it unique) for the key (for example), but then you would probably end up with the same language strings stored multiple times. In the end, if label1 on form1 says "hello" and label 3 on form 20 says "hello", looking up "hello" in the table gets back the translated value, but you only have to store one value of the phrase "hello". Using the formname-controlname as the key means you have to now store two values for the string "hello". In ANY EVENT, you have to have a method of scanning all of the language phrases out of the controls and into a table, then have a method of viewing each phrase and performing a translation. Once you have each phrase and its translation, you are gold. I did all this stuff long ago for a program I wrote for a maquilla in Mexico. At that time I did not use a collection (because I didn't know about them), but the concept is exactly the same regardless of whether you use a table or a collection. All the collection does for you is hold the table contents, item for item, and (dramatically) decreases the time required to do the lookup. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 5:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Select language (was: A Question of Timing) Hi John et al I would advice against that. Handle the English language as any other language. Then use a key - in plain readable programmer-English understood by you, the programmer - for the entry. This allows you - at any time - to edit the English text as well as the text in any other language without changing the form or report. Also, don't forget that "English" (ignoring old and middle age English) comes in 13 varieties: http://www.science.co.il/Language/Locale-Codes.asp /gustav >>> jwcolby at colbyconsulting.com 04-01-2007 22:15 >>> The english phrase is the key, the chinese phrase is the stored value. Index in using the english and back comes the chinese. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd666 at yahoo.com Fri Jan 5 06:36:07 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 5 Jan 2007 04:36:07 -0800 (PST) Subject: [AccessD] Set max no of chars in a textfield Message-ID: <20070105123607.12751.qmail@web31612.mail.mud.yahoo.com> Ok, so there isn't a way to do this without programming. Too bad. Throughout the application there is a lot of formatting that is entered into the properties. I wanted to maintain this way of working... Thnx everybody ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 12:10:39 PM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander The C will do: Me!txtInput.InputMask= String(250, "C") /gustav >>> accessd666 at yahoo.com 05-01-2007 11:57 >>> It isn't bound... Sander ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 11:29:07 AM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander If the textbox is bound to a table field with a max. text size of 250, that should happen automatically. /gustav >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, 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 Gustav at cactus.dk Fri Jan 5 06:49:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 13:49:53 +0100 Subject: [AccessD] Set max no of chars in a textfield Message-ID: Hi Sander I wouldn't say that. Just type in 250 chars of C ... You just need to do it once for each field. /gustav >>> accessd666 at yahoo.com 05-01-2007 13:36 >>> Ok, so there isn't a way to do this without programming. Too bad. Throughout the application there is a lot of formatting that is entered into the properties. I wanted to maintain this way of working... Thnx everybody ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 12:10:39 PM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander The C will do: Me!txtInput.InputMask= String(250, "C") /gustav >>> accessd666 at yahoo.com 05-01-2007 11:57 >>> It isn't bound... Sander ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, January 5, 2007 11:29:07 AM Subject: Re: [AccessD] Set max no of chars in a textfield Hi Sander If the textbox is bound to a table field with a max. text size of 250, that should happen automatically. /gustav >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> Hi group, I need to set an input mask for a textfield. The textfield is 250 long. Is it possible to set a range e.g.: Input mask: C(250) This should mean a user can enter every char for a max length of 250. Hope this makes sence. Regards, Sander From bchacc at san.rr.com Fri Jan 5 08:05:36 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 06:05:36 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: Message-ID: <001c01c730d2$93461ea0$0701a8c0@HAL9005> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From Gustav at cactus.dk Fri Jan 5 08:13:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 15:13:07 +0100 Subject: [AccessD] Select language (was: A Question of Timing) Message-ID: Hi John My thoughts are only about the table structure which should be: tblLanguage LCID PhraseKey Translation and a lookup table for the language name: tblTranslation LCID Language Now, lookup your language of choice, say, English US. LCID is 1033 Then lookup the phrase using LCID = 1033 and your key. For "Hi" that might return "Hello". Had you used LCID = 3081 it might be "Howdy". You would need to handle the case where the lookup is unsuccessful. You could define a default LCID which is used if a phrase for another LCID is not found. And you could return the PhraseKey itself if nothing is found. Also, you may choose to format the PhraseKey in a way that separates it from normal text, for example by preceding it with a $ sign. This way, if your button is labeled "$Hi" you would know that the translation is missing. Of course, you may wish to read in all entries for your chosen LCID in a collection or an array - or a static recordset. That depends and is up to the developer. I have no objections regarding this choice. /gustav >>> jwcolby at colbyconsulting.com 05-01-2007 12:33 >>> I don't understand your objection. In a collection the key is just an index into an array (of sorts). The key can be any text string. So if I store "Hola" with a key of "Hello", I can then look up "Hola" simply by using the syntax MyCol("Hello"). Likewise if I store "Hello" and use "Hola" for the key, I can do a reverse translation. Thus you store all of your words and phrases in a table, Language1 in column1, Language2 in column2. Read the table, store column1 keyed on column2. Now take a phrase from the form and use it as the key, look up the value. That simple. Whether you do a lookup in a table or a collection is irrelevant in terms of the concept. Of course this implies that every string value in the form is in the table, but that is true with a seek method as well. Any value in the form not in the table will not return a value whether using a collection or seeking the original table. The only thing the collection does for you is cache the table in memory and increase the speed of access 100 times or so. You could certainly use the control name (with the form name to make it unique) for the key (for example), but then you would probably end up with the same language strings stored multiple times. In the end, if label1 on form1 says "hello" and label 3 on form 20 says "hello", looking up "hello" in the table gets back the translated value, but you only have to store one value of the phrase "hello". Using the formname-controlname as the key means you have to now store two values for the string "hello". In ANY EVENT, you have to have a method of scanning all of the language phrases out of the controls and into a table, then have a method of viewing each phrase and performing a translation. Once you have each phrase and its translation, you are gold. I did all this stuff long ago for a program I wrote for a maquilla in Mexico. At that time I did not use a collection (because I didn't know about them), but the concept is exactly the same regardless of whether you use a table or a collection. All the collection does for you is hold the table contents, item for item, and (dramatically) decreases the time required to do the lookup. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 5:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Select language (was: A Question of Timing) Hi John et al I would advice against that. Handle the English language as any other language. Then use a key - in plain readable programmer-English understood by you, the programmer - for the entry. This allows you - at any time - to edit the English text as well as the text in any other language without changing the form or report. Also, don't forget that "English" (ignoring old and middle age English) comes in 13 varieties: http://www.science.co.il/Language/Locale-Codes.asp /gustav From Gustav at cactus.dk Fri Jan 5 08:16:44 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 15:16:44 +0100 Subject: [AccessD] A Question of Timing Message-ID: Hi Rocky Well, not exactly. What you will need is an index with these two fields. /gustav >>> bchacc at san.rr.com 05-01-2007 15:05 >>> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Fri Jan 5 08:54:52 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 06:54:52 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: Message-ID: <002301c730d9$74e41690$0701a8c0@HAL9005> Gustav: When you say 'index with these two fields' I'm not sure what you mean, unless I create a new field of the two Find fields concatenated and index that? I know I can index multiple fields but in the Seek I can only specify one field, yes? Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Well, not exactly. What you will need is an index with these two fields. /gustav >>> bchacc at san.rr.com 05-01-2007 15:05 >>> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From markamatte at hotmail.com Fri Jan 5 09:22:45 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 05 Jan 2007 15:22:45 +0000 Subject: [AccessD] Closing Subform In-Reply-To: <000201c7308c$3804ecb0$f51c65cb@pcadt> Message-ID: Thank you very much for the suggestion. Unfortunately I needed the 'BeforeUpdate' on the subform to fire correctly before the form closed. So I disabled the 'x' at the top and created an exit button on the main form with the following: Me.sfrmView.Form.Form_Current sfrmView.SourceObject = "frmBlank" DoCmd.Close This calls the Form_Current of the subform...which fires the subform 'Before-UPdate'...and then frm blank is just a blank form to break the connection between the 2 forms. I tried sfrmView.SourceObject = "" ...but was told(error) cannot not set property to zero length in FormView. This is why the frmBlank. Not sure if this is the best approach...but my code fires in the sequence I need. Any other suggestions are always welcome. Thanks, Mark A. Matte >From: "A.D.TEJPAL" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Closing Subform >Date: Fri, 5 Jan 2007 10:59:20 +0530 > >Mark, > > Unload event of main form takes place BEFORE that of the subform. >(Interestingly, load event of main form takes place AFTER that of the >subform). As a result execution of any code in subform at this stage, that >refers to the main form, would attract error. > > As a remedial action, you can put the following statement at the >beginning of relevant code block in the subform: > > On Error Resume Next > >Best wishes, >A.D.Tejpal >--------------- > > ----- Original Message ----- > From: Mark A Matte > To: accessd at databaseadvisors.com > Sent: Friday, January 05, 2007 01:32 > Subject: [AccessD] Closing Subform > > > Hello All, > > In A97 I have a form with a subform...the subform has a 'Before_Update' >event. When I close the main form I get an error that the >'Before_Update'(on subform) event is trying to do stuff and can't find the >main form. > > How should I close the main form? > > Thanks, > > Mark A. Matte >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From photos to predictions, The MSN Entertainment Guide to Golden Globes has it all. http://tv.msn.com/tv/globes2007/?icid=nctagline1 From markamatte at hotmail.com Fri Jan 5 09:32:18 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 05 Jan 2007 15:32:18 +0000 Subject: [AccessD] Set max no of chars in a textfield In-Reply-To: Message-ID: Personally I use something like: If Len(Me!NewNote) > 254 Then GoTo BigNote BigNote: MsgBox "The note cannot be over 255 characters. Your Note is " & Len(Me!NewNote) & ". Please Shorten the note or make a seperate Entry." Mark >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] Set max no of chars in a textfield >Date: Fri, 05 Jan 2007 13:49:53 +0100 > >Hi Sander > >I wouldn't say that. Just type in 250 chars of C ... >You just need to do it once for each field. > >/gustav > > >>> accessd666 at yahoo.com 05-01-2007 13:36 >>> >Ok, so there isn't a way to do this without programming. Too bad. >Throughout the application there is a lot of formatting that is entered >into the properties. I wanted to maintain this way of working... > >Thnx everybody > >----- Original Message ---- >From: Gustav Brock >To: accessd at databaseadvisors.com >Sent: Friday, January 5, 2007 12:10:39 PM >Subject: Re: [AccessD] Set max no of chars in a textfield > >Hi Sander > >The C will do: > > Me!txtInput.InputMask= String(250, "C") > >/gustav > > >>> accessd666 at yahoo.com 05-01-2007 11:57 >>> >It isn't bound... > >Sander > >----- Original Message ---- >From: Gustav Brock >To: accessd at databaseadvisors.com >Sent: Friday, January 5, 2007 11:29:07 AM >Subject: Re: [AccessD] Set max no of chars in a textfield > >Hi Sander > >If the textbox is bound to a table field with a max. text size of 250, that >should happen automatically. > >/gustav > > >>> accessd666 at yahoo.com 05-01-2007 08:55 >>> >Hi group, > >I need to set an input mask for a textfield. The textfield is 250 long. >Is it possible to set a range e.g.: >Input mask: C(250) > >This should mean a user can enter every char for a max length of 250. > >Hope this makes sence. > >Regards, > >Sander > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview From jwcolby at colbyconsulting.com Fri Jan 5 09:52:07 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 5 Jan 2007 10:52:07 -0500 Subject: [AccessD] Microsoft Partnership program Message-ID: <002501c730e1$74c65bc0$ccb6fea9@m6805> I have been an action pack subscriber for a couple of years. However I would like to get the dev stuff. Awhile back there was a discussion about a two year arrangement with Microsoft where you could get the MSDN subscription for free, in return for promising to develop an end user system using MS technologies. Is this still available, and does anyone have a link to take me there? All I can find is the action pack. John W. Colby Colby Consulting www.ColbyConsulting.com From DElam at jenkens.com Fri Jan 5 10:03:19 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 5 Jan 2007 10:03:19 -0600 Subject: [AccessD] Date field sort Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DEAFA@natexch.jenkens.com> I have an odd problem with a report that sorts on a date field. 3 times now for no reason I can discern the sorting gets strange. The first time it happened, I used Cdate([MyDateField]) and it started sorting correctly again. Then I had to take the Cdate() off, then put it on again. Only one or the other works, but they alternate. The wrong sorts will sort like a string. Months are grouped together regardless of year and december comes before January. And yes, I have had it sort like a string when I used Cdate(). Has anyone seen anything like this in the past? Debbie - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From bchacc at san.rr.com Fri Jan 5 10:37:26 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 08:37:26 -0800 Subject: [AccessD] Syntax for Allow Edits Subform Message-ID: <004301c730e7$c93b16e0$0701a8c0@HAL9005> Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Fri Jan 5 10:46:14 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 08:46:14 -0800 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <004301c730e7$c93b16e0$0701a8c0@HAL9005> Message-ID: <004801c730e9$039491d0$0701a8c0@HAL9005> I just tried: Forms!frmJobs!subfrmBundleVerification.AllowEdits = False And get 'Object doesn't support this property or method' Sam with Forms!frmJobs!subfrmBundleVerification.Forms.AllowEdits = False :( Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Friday, January 05, 2007 8:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Syntax for Allow Edits Subform Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From rusty.hammond at cpiqpc.com Fri Jan 5 10:46:38 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 5 Jan 2007 10:46:38 -0600 Subject: [AccessD] Syntax for Allow Edits Subform Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B7FD@cpixchng-1.CPIQPC.NET> Rocky, Try taking the s off the end of forms ie: Me.subfrmBundleVerification.Form.AllowEdits = False That's the only thing I can see different from what I have in a working app (A97) Rusty -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, January 05, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Syntax for Allow Edits Subform Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From bchacc at san.rr.com Fri Jan 5 10:47:09 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 08:47:09 -0800 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <004301c730e7$c93b16e0$0701a8c0@HAL9005> Message-ID: <004901c730e9$2444f280$0701a8c0@HAL9005> P.S. This code is being called from the parent for of the subform. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Friday, January 05, 2007 8:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Syntax for Allow Edits Subform Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From Kwilliamson at RTKL.com Fri Jan 5 10:57:39 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 5 Jan 2007 11:57:39 -0500 Subject: [AccessD] Selection by Textbox Entries Message-ID: Happy New Year All!! I possibly have a simple question. I have a form, that has at least (3) input textboxes. Based on criteria in these boxes, I am having the form populate the recordsource with the appropriate data. What I am not sure of, is how to setup any of these boxes to NOT be included in the criteria either A) if they don't input anything; or B) input "All". I could also do this as drop boxes, with one of the options being "All." But short of a bunch of nested IF statements....is there an easier way to create the select statement to NOT filter on one of these fields if that field either isnull or = "All"?? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From Gustav at cactus.dk Fri Jan 5 11:00:39 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 18:00:39 +0100 Subject: [AccessD] A Question of Timing Message-ID: Hi Rocky If you have the Nortwind database, an example is provided in the on-line help. Pick Microsoft Visual Basic Help, type in Seek, select second item: Seek Method (DAO). This topic has an example: Sub SeekX() Dim dbsNorthwind As Database Dim rstProducts As Recordset Dim intFirst As Integer Dim intLast As Integer Dim strMessage As String Dim strSeek As String Dim varBookmark As Variant Set dbsNorthwind = OpenDatabase("Northwind.mdb") ' You must open a table-type Recordset to use an index, ' and hence the Seek method. Set rstProducts = _ dbsNorthwind.OpenRecordset("Products", dbOpenTable) With rstProducts ' Set the index. .Index = "PrimaryKey" ' Get the lowest and highest product IDs. .MoveLast intLast = !ProductID .MoveFirst intFirst = !ProductID Do While True ' Display current record information and ask user ' for ID number. strMessage = "Product ID: " & !ProductID & vbCr & _ "Name: " & !ProductName & vbCr & vbCr & _ "Enter a product ID between " & intFirst & _ " and " & intLast & "." strSeek = InputBox(strMessage) If strSeek = "" Then Exit Do ' Store current bookmark in case the Seek fails. varBookmark = .Bookmark .Seek "=", Val(strSeek) ' Return to the current record if the Seek fails. If .NoMatch Then MsgBox "ID not found!" .Bookmark = varBookmark End If Loop .Close End With dbsNorthwind.Close End Sub In your case these lines should be changed: .Index = "PrimaryKey" to .Index = "MyTwoFieldIndex" and .Seek "=", Val(strSeek) to .Seek "=", strSeekForFieldOne, strSeekForFieldTwo if you for the table have created a compound index named MyTwoFieldIndex with two fields. Then strSeekForFieldOne and strSeekForFieldTwo are the values for this index you wish to look up. Note that the valuetypes of the search variables must match those of the fields. Of course, you will also have to modify the InputBox part ... /gustav >>> bchacc at san.rr.com 05-01-2007 15:54 >>> Gustav: When you say 'index with these two fields' I'm not sure what you mean, unless I create a new field of the two Find fields concatenated and index that? I know I can index multiple fields but in the Seek I can only specify one field, yes? Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Well, not exactly. What you will need is an index with these two fields. /gustav >>> bchacc at san.rr.com 05-01-2007 15:05 >>> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Fri Jan 5 11:07:18 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 09:07:18 -0800 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B7FD@cpixchng-1.CPIQPC.NET> Message-ID: <005601c730eb$f528d450$0701a8c0@HAL9005> Rusty: That worked. Thank you. (I'll never get that syntax!!) Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, January 05, 2007 8:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Syntax for Allow Edits Subform Rocky, Try taking the s off the end of forms ie: Me.subfrmBundleVerification.Form.AllowEdits = False That's the only thing I can see different from what I have in a working app (A97) Rusty -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, January 05, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Syntax for Allow Edits Subform Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From bchacc at san.rr.com Fri Jan 5 11:09:32 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 09:09:32 -0800 Subject: [AccessD] Selection by Textbox Entries In-Reply-To: Message-ID: <005701c730ec$44eb12a0$0701a8c0@HAL9005> Keith: Assuming you're creating the SQL statement for the record source on the fly, you've only got two conditions to check to see if you want to include the contents of the text boxes in the WHERE clause - null (or blank) and "ALL". Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, January 05, 2007 8:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Selection by Textbox Entries Happy New Year All!! I possibly have a simple question. I have a form, that has at least (3) input textboxes. Based on criteria in these boxes, I am having the form populate the recordsource with the appropriate data. What I am not sure of, is how to setup any of these boxes to NOT be included in the criteria either A) if they don't input anything; or B) input "All". I could also do this as drop boxes, with one of the options being "All." But short of a bunch of nested IF statements....is there an easier way to create the select statement to NOT filter on one of these fields if that field either isnull or = "All"?? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From dw-murphy at cox.net Fri Jan 5 11:19:22 2007 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 5 Jan 2007 09:19:22 -0800 Subject: [AccessD] Microsoft Partnership program In-Reply-To: <002501c730e1$74c65bc0$ccb6fea9@m6805> Message-ID: <002e01c730ed$a4c53b00$0200a8c0@murphy3234aaf1> John, You are looking for the Empower program. You have to be a Partner first to subscribe to this program. MS makes it hard to find so I just Google it to get to the correct page. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, January 05, 2007 7:52 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Microsoft Partnership program I have been an action pack subscriber for a couple of years. However I would like to get the dev stuff. Awhile back there was a discussion about a two year arrangement with Microsoft where you could get the MSDN subscription for free, in return for promising to develop an end user system using MS technologies. Is this still available, and does anyone have a link to take me there? All I can find is the action pack. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jan 5 11:25:15 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 5 Jan 2007 12:25:15 -0500 Subject: [AccessD] Microsoft Partnership program In-Reply-To: <002e01c730ed$a4c53b00$0200a8c0@murphy3234aaf1> Message-ID: <003101c730ee$77cef4f0$ccb6fea9@m6805> Thanks. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Friday, January 05, 2007 12:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Microsoft Partnership program John, You are looking for the Empower program. You have to be a Partner first to subscribe to this program. MS makes it hard to find so I just Google it to get to the correct page. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Friday, January 05, 2007 7:52 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Microsoft Partnership program I have been an action pack subscriber for a couple of years. However I would like to get the dev stuff. Awhile back there was a discussion about a two year arrangement with Microsoft where you could get the MSDN subscription for free, in return for promising to develop an end user system using MS technologies. Is this still available, and does anyone have a link to take me there? All I can find is the action pack. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Jan 5 11:30:59 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 09:30:59 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: Message-ID: <005801c730ef$44139700$0701a8c0@HAL9005> Gustav: So in this case they are seeking on the primary key - ProductID - which the user inputs. It looks like, if I want to use Seek I'll have to create a new field which is the concatenation of the form name and the control name, index it, and then set the .Index of the table to that new field. That would allow Seek to replace my current FindFirst which operates on two fields. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 9:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky If you have the Nortwind database, an example is provided in the on-line help. Pick Microsoft Visual Basic Help, type in Seek, select second item: Seek Method (DAO). This topic has an example: Sub SeekX() Dim dbsNorthwind As Database Dim rstProducts As Recordset Dim intFirst As Integer Dim intLast As Integer Dim strMessage As String Dim strSeek As String Dim varBookmark As Variant Set dbsNorthwind = OpenDatabase("Northwind.mdb") ' You must open a table-type Recordset to use an index, ' and hence the Seek method. Set rstProducts = _ dbsNorthwind.OpenRecordset("Products", dbOpenTable) With rstProducts ' Set the index. .Index = "PrimaryKey" ' Get the lowest and highest product IDs. .MoveLast intLast = !ProductID .MoveFirst intFirst = !ProductID Do While True ' Display current record information and ask user ' for ID number. strMessage = "Product ID: " & !ProductID & vbCr & _ "Name: " & !ProductName & vbCr & vbCr & _ "Enter a product ID between " & intFirst & _ " and " & intLast & "." strSeek = InputBox(strMessage) If strSeek = "" Then Exit Do ' Store current bookmark in case the Seek fails. varBookmark = .Bookmark .Seek "=", Val(strSeek) ' Return to the current record if the Seek fails. If .NoMatch Then MsgBox "ID not found!" .Bookmark = varBookmark End If Loop .Close End With dbsNorthwind.Close End Sub In your case these lines should be changed: .Index = "PrimaryKey" to .Index = "MyTwoFieldIndex" and .Seek "=", Val(strSeek) to .Seek "=", strSeekForFieldOne, strSeekForFieldTwo if you for the table have created a compound index named MyTwoFieldIndex with two fields. Then strSeekForFieldOne and strSeekForFieldTwo are the values for this index you wish to look up. Note that the valuetypes of the search variables must match those of the fields. Of course, you will also have to modify the InputBox part ... /gustav >>> bchacc at san.rr.com 05-01-2007 15:54 >>> Gustav: When you say 'index with these two fields' I'm not sure what you mean, unless I create a new field of the two Find fields concatenated and index that? I know I can index multiple fields but in the Seek I can only specify one field, yes? Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Well, not exactly. What you will need is an index with these two fields. /gustav >>> bchacc at san.rr.com 05-01-2007 15:05 >>> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From rusty.hammond at cpiqpc.com Fri Jan 5 11:33:19 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Fri, 5 Jan 2007 11:33:19 -0600 Subject: [AccessD] Syntax for Allow Edits Subform Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B7FE@cpixchng-1.CPIQPC.NET> Rocky, Me either, so what I do is open the form in design view, create a temporary macro, choose SetValue in the Action column, then in the Item property I click the expression builder and use that to choose the control I'm trying to reference. That gives me the syntax I need to use. HTH Rusty -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, January 05, 2007 11:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Syntax for Allow Edits Subform Rusty: That worked. Thank you. (I'll never get that syntax!!) Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, January 05, 2007 8:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Syntax for Allow Edits Subform Rocky, Try taking the s off the end of forms ie: Me.subfrmBundleVerification.Form.AllowEdits = False That's the only thing I can see different from what I have in a working app (A97) Rusty -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, January 05, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Syntax for Allow Edits Subform Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From Kwilliamson at RTKL.com Fri Jan 5 11:42:40 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 5 Jan 2007 12:42:40 -0500 Subject: [AccessD] Selection by Textbox Entries In-Reply-To: <005701c730ec$44eb12a0$0701a8c0@HAL9005> Message-ID: Well...not exactly. The current fields I will be using (and I might add more) are: Month Year Entity So, for example....we could populate only Year and Entity...meaning I want all records for that Year and Entity. Or, only input Entity.....meaning all records for that Entity only (which would include all months and years.) But I don't know how to convert a null (or even "ALL"..if I were to use a dropdown box) to mean "select all". Normally...if you want all...you simply don't include that field in your query. But....once it is included as a variable....how do you tell the query that Null (or "All") means don't filter this field? That is, without creating a nested IF for every possible scenario? Am I overcomplicating this? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Friday, January 05, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Selection by Textbox Entries Keith: Assuming you're creating the SQL statement for the record source on the fly, you've only got two conditions to check to see if you want to include the contents of the text boxes in the WHERE clause - null (or blank) and "ALL". Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, January 05, 2007 8:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Selection by Textbox Entries Happy New Year All!! I possibly have a simple question. I have a form, that has at least (3) input textboxes. Based on criteria in these boxes, I am having the form populate the recordsource with the appropriate data. What I am not sure of, is how to setup any of these boxes to NOT be included in the criteria either A) if they don't input anything; or B) input "All". I could also do this as drop boxes, with one of the options being "All." But short of a bunch of nested IF statements....is there an easier way to create the select statement to NOT filter on one of these fields if that field either isnull or = "All"?? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Jan 5 11:54:00 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 05 Jan 2007 17:54:00 +0000 Subject: [AccessD] Selection by Textbox Entries In-Reply-To: <005701c730ec$44eb12a0$0701a8c0@HAL9005> Message-ID: Keith, 2 scenarios...1 Rocky already addressed...use IF statements to created the needed SQL. Another that I've used in the past(directory type lookup: First Name, Last Name, Phone,ect)...where I need to use wild cards was to create an unbound hidden text box(txtWildBox) for each of the required search fields. Default value would be "*". The after update of your input boxes would populate your txtWildBox with "*YourCriteria*". The query/record_source would then be something like: SELECT DISTINCTROW tblComplaintRecords.LastName, tblComplaintRecords.FirstName, tblComplaintRecords.LogNumber FROM tblComplaintRecords WHERE (((tblComplaintRecords.LastName) Like [Forms]![frmChooseRecord]![lastwildbox]) AND ((tblComplaintRecords.FirstName) Like [Forms]![frmChooseRecord]![firstwildbox])) ORDER BY tblComplaintRecords.LastName, tblComplaintRecords.FirstName; The only issue I ran into recently was that if one of the fields being queried had a null in the data...it would not return. To get around this...I changed the query to something like: SELECT tblData.ID, tblData.CustName, tblData.CCMS_User, tblData.Status FROM tblData WHERE (((IIf(IsNull([CCMS_CaseID])=True,"",[CCMS_CaseID])) Like [Forms]![frmLookup]![WildCCMS]) AND ((IIf(IsNull([AuthNumber])=True,"",[AuthNumber])) Like [Forms]![frmLookup]![WildAuthNumber]) AND ((IIf(IsNull([CustName])=True,"",[CustName])) Like [Forms]![frmLookup]![WildName])) ; All I did here was to take the field that would potentially have nulls(and before someone asks...I had to have nulls in these fields for other reasons), and created a field like: IIf(IsNull([AuthNumber])=True,"",[AuthNumber]) and queried this field. I'm not sure the best approach...but this is what I use. I hope it helps. If you have any questions, please let me know. Thanks, Mark A. Matte >From: "Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] Selection by Textbox Entries >Date: Fri, 5 Jan 2007 09:09:32 -0800 > >Keith: > >Assuming you're creating the SQL statement for the record source on the >fly, >you've only got two conditions to check to see if you want to include the >contents of the text boxes in the WHERE clause - null (or blank) and "ALL". > >Rocky > > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson >Sent: Friday, January 05, 2007 8:58 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Selection by Textbox Entries > >Happy New Year All!! > > > >I possibly have a simple question. I have a form, that has at least (3) >input textboxes. Based on criteria in these boxes, I am having the form >populate the recordsource with the appropriate data. What I am not sure >of, is how to setup any of these boxes to NOT be included in the >criteria either A) if they don't input anything; or B) input "All". I >could also do this as drop boxes, with one of the options being "All." >But short of a bunch of nested IF statements....is there an easier way >to create the select statement to NOT filter on one of these fields if >that field either isnull or = "All"?? > > > >Thanks, > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 >1:34 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 From Gustav at cactus.dk Fri Jan 5 11:54:03 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 05 Jan 2007 18:54:03 +0100 Subject: [AccessD] A Question of Timing Message-ID: Hi Rocky No, it is not so. No concatenation. It is your index that needs two fields: Go to tabledesign: Create a new index, idxRocky Assign it field fldLanguageForm Move to next line. Assign field fldLanguageControl Make the index unique. Save table. Now, to seek for the entry for control cboCompany of form frmCustomer: strSearchField1 = "frmCustomer" strSearchField2 = "cboCompany" and in the seek example: ' Set the index. .Index = "idxRocky" .Seek "=", strSearchField1, strSearchField2 /gustav >>> bchacc at san.rr.com 05-01-2007 18:30 >>> Gustav: So in this case they are seeking on the primary key - ProductID - which the user inputs. It looks like, if I want to use Seek I'll have to create a new field which is the concatenation of the form name and the control name, index it, and then set the .Index of the table to that new field. That would allow Seek to replace my current FindFirst which operates on two fields. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 9:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky If you have the Nortwind database, an example is provided in the on-linehelp. Pick Microsoft Visual Basic Help, type in Seek, select second item: Seek Method (DAO). This topic has an example: Sub SeekX() Dim dbsNorthwind As Database Dim rstProducts As Recordset Dim intFirst As Integer Dim intLast As Integer Dim strMessage As String Dim strSeek As String Dim varBookmark As Variant Set dbsNorthwind = OpenDatabase("Northwind.mdb") ' You must open a table-type Recordset to use an index, ' and hence the Seek method. Set rstProducts = _ dbsNorthwind.OpenRecordset("Products", dbOpenTable) With rstProducts ' Set the index. .Index = "PrimaryKey" ' Get the lowest and highest product IDs. .MoveLast intLast = !ProductID .MoveFirst intFirst = !ProductID Do While True ' Display current record information and ask user ' for ID number. strMessage = "Product ID: " & !ProductID & vbCr & _ "Name: " & !ProductName & vbCr & vbCr & _ "Enter a product ID between " & intFirst & _ " and " & intLast & "." strSeek = InputBox(strMessage) If strSeek = "" Then Exit Do ' Store current bookmark in case the Seek fails. varBookmark = .Bookmark .Seek "=", Val(strSeek) ' Return to the current record if the Seek fails. If .NoMatch Then MsgBox "ID not found!" .Bookmark = varBookmark End If Loop .Close End With dbsNorthwind.Close End Sub In your case these lines should be changed: .Index = "PrimaryKey" to .Index = "MyTwoFieldIndex" and .Seek "=", Val(strSeek) to .Seek "=", strSeekForFieldOne, strSeekForFieldTwo if you for the table have created a compound index named MyTwoFieldIndex with two fields. Then strSeekForFieldOne and strSeekForFieldTwo are the values for this index you wish to look up. Note that the valuetypes of the search variables must match those of the fields. Of course, you will also have to modify the InputBox part ... /gustav >>> bchacc at san.rr.com 05-01-2007 15:54 >>> Gustav: When you say 'index with these two fields' I'm not sure what you mean, unless I create a new field of the two Find fields concatenated and index that? I know I can index multiple fields but in the Seek I can only specify one field, yes? Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Well, not exactly. What you will need is an index with these two fields. /gustav >>> bchacc at san.rr.com 05-01-2007 15:05 >>> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From bchacc at san.rr.com Fri Jan 5 12:10:07 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 10:10:07 -0800 Subject: [AccessD] Selection by Textbox Entries In-Reply-To: Message-ID: <006c01c730f4$bc3a2870$0701a8c0@HAL9005> Keith: Here's a snip where I'm creating a record source for a report and the user has the option of entering dates to filter the contents - a >= and/or <= date on Order Date and Due Date. But this method should work for any kind of field. You just want to add the value in the WHERE clause if it's present and if it's absent or your user selected 'ALL', skip it. First I set up the Record Source then look at the text box on the calling form to see if there's a value in the text box. If so I either add WHERE clause or AND clause and the value. HTH Rocky Me.RecordSource = "SELECT DISTINCT tblPartMaster.*, " _ & "[MaterialCost]+[LaborCost]+[BurdenCost]+[SubContractCost]+ " _ & "IIf([MinimumOrderQuantity]<>0,(Nz([ProcSetCost])/[MinimumOrderQuantity]),0) " _ & "AS UnitCost FROM tblMakeBuyTemp INNER JOIN " _ & "tblPartMaster ON tblMakeBuyTemp.PartNumber = tblPartMaster.PartNumber" If IsDate(Nz(Forms!frmMakeReport!txtGEDueDate)) Then If InStr(1, Me.RecordSource, "WHERE") = 0 Then Me.RecordSource = Me.RecordSource & " WHERE " Else Me.RecordSource = Me.RecordSource & " AND " End If Me.RecordSource = Me.RecordSource _ & " DUEDATE >= #" & Forms!frmMakeReport!txtGEDueDate & "#" End If If IsDate(Nz(Forms!frmMakeReport!txtLEDueDate)) Then If InStr(1, Me.RecordSource, "WHERE") = 0 Then Me.RecordSource = Me.RecordSource & " WHERE " Else Me.RecordSource = Me.RecordSource & " AND " End If Me.RecordSource = Me.RecordSource _ & " DUEDATE <= #" & Forms!frmMakeReport!txtLEDueDate & "#" End If If IsDate(Nz(Forms!frmMakeReport!txtGEOrderDate)) Then If InStr(1, Me.RecordSource, "WHERE") = 0 Then Me.RecordSource = Me.RecordSource & " WHERE " Else Me.RecordSource = Me.RecordSource & " AND " End If Me.RecordSource = Me.RecordSource _ & " gorderdate([DueDate],LeadTimeAdjustment([SourceCode],[LeadTime], " _ & "[Quantity]))>=# " & Forms!frmMakeReport!txtGEOrderDate & "#" End If If IsDate(Nz(Forms!frmMakeReport!txtLEOrderDate)) Then If InStr(1, Me.RecordSource, "WHERE") = 0 Then Me.RecordSource = Me.RecordSource & " WHERE " Else Me.RecordSource = Me.RecordSource & " AND " End If Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, January 05, 2007 9:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Selection by Textbox Entries Well...not exactly. The current fields I will be using (and I might add more) are: Month Year Entity So, for example....we could populate only Year and Entity...meaning I want all records for that Year and Entity. Or, only input Entity.....meaning all records for that Entity only (which would include all months and years.) But I don't know how to convert a null (or even "ALL"..if I were to use a dropdown box) to mean "select all". Normally...if you want all...you simply don't include that field in your query. But....once it is included as a variable....how do you tell the query that Null (or "All") means don't filter this field? That is, without creating a nested IF for every possible scenario? Am I overcomplicating this? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Friday, January 05, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Selection by Textbox Entries Keith: Assuming you're creating the SQL statement for the record source on the fly, you've only got two conditions to check to see if you want to include the contents of the text boxes in the WHERE clause - null (or blank) and "ALL". Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Friday, January 05, 2007 8:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Selection by Textbox Entries Happy New Year All!! I possibly have a simple question. I have a form, that has at least (3) input textboxes. Based on criteria in these boxes, I am having the form populate the recordsource with the appropriate data. What I am not sure of, is how to setup any of these boxes to NOT be included in the criteria either A) if they don't input anything; or B) input "All". I could also do this as drop boxes, with one of the options being "All." But short of a bunch of nested IF statements....is there an easier way to create the select statement to NOT filter on one of these fields if that field either isnull or = "All"?? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From markamatte at hotmail.com Fri Jan 5 12:14:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 05 Jan 2007 18:14:38 +0000 Subject: [AccessD] Selection by Textbox Entries In-Reply-To: Message-ID: Keith, A quick(kinda brutal) stab at the building the SQL. Assuming one of the fields will be populated and default value of all fields is "" Good luck! Mark Dim MySQL MySQL = "Select A.* from tblMyTable A Where " If Me!Month = "" Then Else MySQL = MySQL & "A.month = '" & Me!Month & "' and " End If If Me!Year = "" Then Else MySQL = MySQL & "A.year = '" & Me!Year & "' and " End If If Me!Entity = "" Then Else MySQL = MySQL & "A.entity = '" & Me!Entity & "' and " End If MySQL = Left(MySQL, Len(MySQL) - 5) & ";" >From: "Keith Williamson" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] Selection by Textbox Entries >Date: Fri, 5 Jan 2007 12:42:40 -0500 > >Well...not exactly. > >The current fields I will be using (and I might add more) are: > >Month >Year >Entity > >So, for example....we could populate only Year and Entity...meaning I >want all records for that Year and Entity. Or, only input >Entity.....meaning all records for that Entity only (which would include >all months and years.) > > >But I don't know how to convert a null (or even "ALL"..if I were to use >a dropdown box) to mean "select all". Normally...if you want all...you >simply don't include that field in your query. But....once it is >included as a variable....how do you tell the query that Null (or "All") >means don't filter this field? That is, without creating a nested IF >for every possible scenario? > >Am I overcomplicating this? > >Thanks, > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Friday, January 05, 2007 12:10 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Selection by Textbox Entries > >Keith: > >Assuming you're creating the SQL statement for the record source on the >fly, >you've only got two conditions to check to see if you want to include >the >contents of the text boxes in the WHERE clause - null (or blank) and >"ALL". > >Rocky > > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith >Williamson >Sent: Friday, January 05, 2007 8:58 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Selection by Textbox Entries > >Happy New Year All!! > > > >I possibly have a simple question. I have a form, that has at least (3) >input textboxes. Based on criteria in these boxes, I am having the form >populate the recordsource with the appropriate data. What I am not sure >of, is how to setup any of these boxes to NOT be included in the >criteria either A) if they don't input anything; or B) input "All". I >could also do this as drop boxes, with one of the options being "All." >But short of a bunch of nested IF statements....is there an easier way >to create the select statement to NOT filter on one of these fields if >that field either isnull or = "All"?? > > > >Thanks, > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 >1:34 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ >From photos to predictions, The MSN Entertainment Guide to Golden Globes has it all. http://tv.msn.com/tv/globes2007/?icid=nctagline1 From garykjos at gmail.com Fri Jan 5 12:20:34 2007 From: garykjos at gmail.com (Gary Kjos) Date: Fri, 5 Jan 2007 12:20:34 -0600 Subject: [AccessD] A Question of Timing In-Reply-To: <005801c730ef$44139700$0701a8c0@HAL9005> References: <005801c730ef$44139700$0701a8c0@HAL9005> Message-ID: Rocky, An index can contain one field OR SEVERAL FIELDS. Bring up the index box for your table and you will see a column for the name of the index and another column for the fields that make up that index and then a ascending or desending option etc. So you might have say an index called FullName that was made up of the fields FirstName and LastName. Try it. GK On 1/5/07, Beach Access Software wrote: > Gustav: > > So in this case they are seeking on the primary key - ProductID - which the > user inputs. It looks like, if I want to use Seek I'll have to create a new > field which is the concatenation of the form name and the control name, > index it, and then set the .Index of the table to that new field. That > would allow Seek to replace my current FindFirst which operates on two > fields. Correct? > > TIA > > Rocky > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Friday, January 05, 2007 9:01 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A Question of Timing > > Hi Rocky > > If you have the Nortwind database, an example is provided in the on-line > help. > Pick Microsoft Visual Basic Help, type in Seek, select second item: Seek > Method (DAO). > This topic has an example: > > > > Sub SeekX() > > Dim dbsNorthwind As Database > Dim rstProducts As Recordset > Dim intFirst As Integer > Dim intLast As Integer > Dim strMessage As String > Dim strSeek As String > Dim varBookmark As Variant > > Set dbsNorthwind = OpenDatabase("Northwind.mdb") > ' You must open a table-type Recordset to use an index, > ' and hence the Seek method. > Set rstProducts = _ > dbsNorthwind.OpenRecordset("Products", dbOpenTable) > > With rstProducts > ' Set the index. > .Index = "PrimaryKey" > > ' Get the lowest and highest product IDs. > .MoveLast > intLast = !ProductID > .MoveFirst > intFirst = !ProductID > > Do While True > ' Display current record information and ask user > ' for ID number. > strMessage = "Product ID: " & !ProductID & vbCr & _ > "Name: " & !ProductName & vbCr & vbCr & _ > "Enter a product ID between " & intFirst & _ > " and " & intLast & "." > strSeek = InputBox(strMessage) > > If strSeek = "" Then Exit Do > > ' Store current bookmark in case the Seek fails. > varBookmark = .Bookmark > > .Seek "=", Val(strSeek) > > ' Return to the current record if the Seek fails. > If .NoMatch Then > MsgBox "ID not found!" > .Bookmark = varBookmark > End If > Loop > > .Close > End With > > dbsNorthwind.Close > > End Sub > > > > In your case these lines should be changed: > > .Index = "PrimaryKey" > to > .Index = "MyTwoFieldIndex" > and > .Seek "=", Val(strSeek) > to > .Seek "=", strSeekForFieldOne, strSeekForFieldTwo > > if you for the table have created a compound index named MyTwoFieldIndex > with two fields. > Then strSeekForFieldOne and strSeekForFieldTwo are the values for this index > you wish to look up. > > Note that the valuetypes of the search variables must match those of the > fields. > > Of course, you will also have to modify the InputBox part ... > > /gustav > > > >>> bchacc at san.rr.com 05-01-2007 15:54 >>> > Gustav: > > When you say 'index with these two fields' I'm not sure what you mean, > unless I create a new field of the two Find fields concatenated and index > that? I know I can index multiple fields but in the Seek I can only specify > one field, yes? > > Rocky > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Friday, January 05, 2007 6:17 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A Question of Timing > > Hi Rocky > > Well, not exactly. > What you will need is an index with these two fields. > > /gustav > > >>> bchacc at san.rr.com 05-01-2007 15:05 >>> > Gustav: > > Well the table is relatively small - <2300 small records - but I am doing > the current Find First on 2 fields - Form Name and Control Name. So, unless > I create a concatenation of the two and use that as the Seek field, Seek > won't work for this. Correct? > > TIA > > Rocky > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Friday, January 05, 2007 2:55 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A Question of Timing > > Hi Rocky > > Seek doesn't work without specifying the index to use. Thus, at least one > index must exist for that table. > In fact, that's the secret of Seek. It doesn't care about the records; it > just looks up one record using the specified index if the seek criteria is > met. > > /gustav > > >>> bchacc at san.rr.com 04-01-2007 20:00 >>> > I'll look at that. Index on the field I'm using to Find First would be all > that's necessary? > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, January 04, 2007 8:08 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A Question of Timing > > Hi Rocky > > You could use DAO and the Seek method on this local table if it is indexed > properly. > Seek is extremely fast but the syntax is a bit weird. > > /gustav > > >>> bchacc at san.rr.com 04-01-2007 16:50 >>> > Dear List: > > > > In my manufacturing app I translate forms to various languages on the fly - > when the form opens. The core of the translation routine looks at each > control in a form and if it's a label or command button looks up the > language record in a table (front end) and replaces the caption with the > appropriate language. The core of the routine is: > > > > rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and > fldLanguageControl = '" _ > > & ctl.Name & "'" > > If rstControls.NoMatch = False Then > > > > I have noticed, especially in the Chinese translation some noticeable delay > and you can see the form repaint itself the first time it opens (the second > time it seems to go much faster). > > > > So I'm wondering if I put all the translations into an array when the app > starts up and search the array instead of using FindFirst on a DAO recordset > if it will be significantly faster and maybe eliminate the flicker that > occurs during translation. The translation is called from the Open event of > the form, BTW. > > > > Another approach I have considered which would be a considerable re-write, > would be to open all the forms hidden and, instead of opening them when > needed, simply make them visible. There are about 85 forms and I don't know > if having that many forms opne at one time will cause other problems. > > > > Any opinions appreciated. > > > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 > 1:34 PM > > > -- > 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 adtp at airtelbroadband.in Fri Jan 5 12:37:22 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sat, 6 Jan 2007 00:07:22 +0530 Subject: [AccessD] Selection by Textbox Entries References: Message-ID: <009001c730f8$ae8bf920$820665cb@pcadt> Keith, My sample db named Form_Search might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It demonstrates search results based upon combined effect of multiple combo boxes. Individual combo boxes can have any of the following styles of values: (a) ALL (b) Some specific value (c) Wild cards as prefix and/or suffix Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Friday, January 05, 2007 22:27 Subject: [AccessD] Selection by Textbox Entries Happy New Year All!! I possibly have a simple question. I have a form, that has at least (3) input textboxes. Based on criteria in these boxes, I am having the form populate the recordsource with the appropriate data. What I am not sure of, is how to setup any of these boxes to NOT be included in the criteria either A) if they don't input anything; or B) input "All". I could also do this as drop boxes, with one of the options being "All." But short of a bunch of nested IF statements....is there an easier way to create the select statement to NOT filter on one of these fields if that field either isnull or = "All"?? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com From bchacc at san.rr.com Fri Jan 5 12:41:38 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 10:41:38 -0800 Subject: [AccessD] A Question of Timing In-Reply-To: Message-ID: <006f01c730f9$230d90b0$0701a8c0@HAL9005> AHA! Looks like a good weekend job. Thanks Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 9:54 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky No, it is not so. No concatenation. It is your index that needs two fields: Go to tabledesign: Create a new index, idxRocky Assign it field fldLanguageForm Move to next line. Assign field fldLanguageControl Make the index unique. Save table. Now, to seek for the entry for control cboCompany of form frmCustomer: strSearchField1 = "frmCustomer" strSearchField2 = "cboCompany" and in the seek example: ' Set the index. .Index = "idxRocky" .Seek "=", strSearchField1, strSearchField2 /gustav >>> bchacc at san.rr.com 05-01-2007 18:30 >>> Gustav: So in this case they are seeking on the primary key - ProductID - which the user inputs. It looks like, if I want to use Seek I'll have to create a new field which is the concatenation of the form name and the control name, index it, and then set the .Index of the table to that new field. That would allow Seek to replace my current FindFirst which operates on two fields. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 9:01 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky If you have the Nortwind database, an example is provided in the on-linehelp. Pick Microsoft Visual Basic Help, type in Seek, select second item: Seek Method (DAO). This topic has an example: Sub SeekX() Dim dbsNorthwind As Database Dim rstProducts As Recordset Dim intFirst As Integer Dim intLast As Integer Dim strMessage As String Dim strSeek As String Dim varBookmark As Variant Set dbsNorthwind = OpenDatabase("Northwind.mdb") ' You must open a table-type Recordset to use an index, ' and hence the Seek method. Set rstProducts = _ dbsNorthwind.OpenRecordset("Products", dbOpenTable) With rstProducts ' Set the index. .Index = "PrimaryKey" ' Get the lowest and highest product IDs. .MoveLast intLast = !ProductID .MoveFirst intFirst = !ProductID Do While True ' Display current record information and ask user ' for ID number. strMessage = "Product ID: " & !ProductID & vbCr & _ "Name: " & !ProductName & vbCr & vbCr & _ "Enter a product ID between " & intFirst & _ " and " & intLast & "." strSeek = InputBox(strMessage) If strSeek = "" Then Exit Do ' Store current bookmark in case the Seek fails. varBookmark = .Bookmark .Seek "=", Val(strSeek) ' Return to the current record if the Seek fails. If .NoMatch Then MsgBox "ID not found!" .Bookmark = varBookmark End If Loop .Close End With dbsNorthwind.Close End Sub In your case these lines should be changed: .Index = "PrimaryKey" to .Index = "MyTwoFieldIndex" and .Seek "=", Val(strSeek) to .Seek "=", strSeekForFieldOne, strSeekForFieldTwo if you for the table have created a compound index named MyTwoFieldIndex with two fields. Then strSeekForFieldOne and strSeekForFieldTwo are the values for this index you wish to look up. Note that the valuetypes of the search variables must match those of the fields. Of course, you will also have to modify the InputBox part ... /gustav >>> bchacc at san.rr.com 05-01-2007 15:54 >>> Gustav: When you say 'index with these two fields' I'm not sure what you mean, unless I create a new field of the two Find fields concatenated and index that? I know I can index multiple fields but in the Seek I can only specify one field, yes? Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Well, not exactly. What you will need is an index with these two fields. /gustav >>> bchacc at san.rr.com 05-01-2007 15:05 >>> Gustav: Well the table is relatively small - <2300 small records - but I am doing the current Find First on 2 fields - Form Name and Control Name. So, unless I create a concatenation of the two and use that as the Seek field, Seek won't work for this. Correct? TIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 05, 2007 2:55 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky Seek doesn't work without specifying the index to use. Thus, at least one index must exist for that table. In fact, that's the secret of Seek. It doesn't care about the records; it just looks up one record using the specified index if the seek criteria is met. /gustav >>> bchacc at san.rr.com 04-01-2007 20:00 >>> I'll look at that. Index on the field I'm using to Find First would be all that's necessary? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 04, 2007 8:08 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A Question of Timing Hi Rocky You could use DAO and the Seek method on this local table if it is indexed properly. Seek is extremely fast but the syntax is a bit weird. /gustav >>> bchacc at san.rr.com 04-01-2007 16:50 >>> Dear List: In my manufacturing app I translate forms to various languages on the fly - when the form opens. The core of the translation routine looks at each control in a form and if it's a label or command button looks up the language record in a table (front end) and replaces the caption with the appropriate language. The core of the routine is: rstControls.FindFirst "fldLanguageForm = '" & argForm & "' and fldLanguageControl = '" _ & ctl.Name & "'" If rstControls.NoMatch = False Then I have noticed, especially in the Chinese translation some noticeable delay and you can see the form repaint itself the first time it opens (the second time it seems to go much faster). So I'm wondering if I put all the translations into an array when the app starts up and search the array instead of using FindFirst on a DAO recordset if it will be significantly faster and maybe eliminate the flicker that occurs during translation. The translation is called from the Open event of the form, BTW. Another approach I have considered which would be a considerable re-write, would be to open all the forms hidden and, instead of opening them when needed, simply make them visible. There are about 85 forms and I don't know if having that many forms opne at one time will cause other problems. Any opinions appreciated. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From Kwilliamson at RTKL.com Fri Jan 5 13:09:10 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 5 Jan 2007 14:09:10 -0500 Subject: [AccessD] Selection by Textbox Entries In-Reply-To: <009001c730f8$ae8bf920$820665cb@pcadt> Message-ID: Thanks Guys. I'll look through your suggestions. It looks like you all have given me some good stuff. I thank you for your time. Kindest Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Friday, January 05, 2007 1:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Selection by Textbox Entries Keith, My sample db named Form_Search might be of interest to you. It is available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. It demonstrates search results based upon combined effect of multiple combo boxes. Individual combo boxes can have any of the following styles of values: (a) ALL (b) Some specific value (c) Wild cards as prefix and/or suffix Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Friday, January 05, 2007 22:27 Subject: [AccessD] Selection by Textbox Entries Happy New Year All!! I possibly have a simple question. I have a form, that has at least (3) input textboxes. Based on criteria in these boxes, I am having the form populate the recordsource with the appropriate data. What I am not sure of, is how to setup any of these boxes to NOT be included in the criteria either A) if they don't input anything; or B) input "All". I could also do this as drop boxes, with one of the options being "All." But short of a bunch of nested IF statements....is there an easier way to create the select statement to NOT filter on one of these fields if that field either isnull or = "All"?? Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.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 Jan 5 13:34:05 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 5 Jan 2007 19:34:05 -0000 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <004301c730e7$c93b16e0$0701a8c0@HAL9005> Message-ID: <02a601c73100$76389850$5ad80651@minster33c3r25> Close Rocky, I reckon it's Me.subfrmBundleVerification.Form.AllowEdits = False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: 05 January 2007 16:37 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Syntax for Allow Edits Subform > > > Dear List: > > > > I need to set Allow Edits to false on a subform. > > > > Both Me.subfrmBundleVerification.AllowEdits = False and > Me.subfrmBundleVerification.Forms.AllowEdits = False > > > > fail. What is the correct syntax? > > > > MTIA > > > > Rocky > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Fri Jan 5 13:35:59 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 5 Jan 2007 19:35:59 -0000 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <004301c730e7$c93b16e0$0701a8c0@HAL9005> Message-ID: <02a901c73100$ba218b30$5ad80651@minster33c3r25> Sorry, just read the answer on Rusty's post. Should have read further down my list. ---------------------------------- Close Rocky, I reckon it's Me.subfrmBundleVerification.Form.AllowEdits = False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: 05 January 2007 16:37 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Syntax for Allow Edits Subform > > > Dear List: > > > > I need to set Allow Edits to false on a subform. > > > > Both Me.subfrmBundleVerification.AllowEdits = False and > Me.subfrmBundleVerification.Forms.AllowEdits = False > > > > fail. What is the correct syntax? > > > > MTIA > > > > Rocky > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From bchacc at san.rr.com Fri Jan 5 15:32:17 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 13:32:17 -0800 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B7FE@cpixchng-1.CPIQPC.NET> Message-ID: <009301c73110$f9651ea0$0701a8c0@HAL9005> THAT'S CHEATING! (I use that to automate Excel - record a macro in Excel then crib the code out of Excel and paste it into my module.) Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, January 05, 2007 9:33 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Syntax for Allow Edits Subform Rocky, Me either, so what I do is open the form in design view, create a temporary macro, choose SetValue in the Action column, then in the Item property I click the expression builder and use that to choose the control I'm trying to reference. That gives me the syntax I need to use. HTH Rusty -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, January 05, 2007 11:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Syntax for Allow Edits Subform Rusty: That worked. Thank you. (I'll never get that syntax!!) Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Friday, January 05, 2007 8:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Syntax for Allow Edits Subform Rocky, Try taking the s off the end of forms ie: Me.subfrmBundleVerification.Form.AllowEdits = False That's the only thing I can see different from what I have in a working app (A97) Rusty -----Original Message----- From: Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, January 05, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Syntax for Allow Edits Subform Dear List: I need to set Allow Edits to false on a subform. Both Me.subfrmBundleVerification.AllowEdits = False and Me.subfrmBundleVerification.Forms.AllowEdits = False fail. What is the correct syntax? MTIA Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From bchacc at san.rr.com Fri Jan 5 15:33:04 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Fri, 5 Jan 2007 13:33:04 -0800 Subject: [AccessD] Syntax for Allow Edits Subform In-Reply-To: <02a901c73100$ba218b30$5ad80651@minster33c3r25> Message-ID: <009401c73111$15db3100$0701a8c0@HAL9005> That's OK - we all need validation. Have a nice weekend. :o) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, January 05, 2007 11:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Syntax for Allow Edits Subform Sorry, just read the answer on Rusty's post. Should have read further down my list. ---------------------------------- Close Rocky, I reckon it's Me.subfrmBundleVerification.Form.AllowEdits = False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: 05 January 2007 16:37 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Syntax for Allow Edits Subform > > > Dear List: > > > > I need to set Allow Edits to false on a subform. > > > > Both Me.subfrmBundleVerification.AllowEdits = False and > Me.subfrmBundleVerification.Forms.AllowEdits = False > > > > fail. What is the correct syntax? > > > > MTIA > > > > Rocky > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM From stuart at lexacorp.com.pg Fri Jan 5 16:01:46 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Jan 2007 08:01:46 +1000 Subject: [AccessD] Date field sort In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DEAFA@natexch.jenkens.com> References: <7B1961ED924D1A459E378C9B1BB22B4C068DEAFA@natexch.jenkens.com> Message-ID: <459ECACA.9578.1AEA5CBD@stuart.lexacorp.com.pg> Are you applying a format to the Date field in the query underlying the report? That will have this sort of effect. As a general rule, you shouldn't do any formatting of data in queries which are used for reports. Do all of the formatting in the report On 5 Jan 2007 at 10:03, Elam, Debbie wrote: > I have an odd problem with a report that sorts on a date field. > > 3 times now for no reason I can discern the sorting gets strange. The first > time it happened, I used Cdate([MyDateField]) and it started sorting > correctly again. Then I had to take the Cdate() off, then put it on again. > Only one or the other works, but they alternate. > > The wrong sorts will sort like a string. Months are grouped together > regardless of year and december comes before January. And yes, I have had > it sort like a string when I used Cdate(). > > Has anyone seen anything like this in the past? > > Debbie > - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject > to the Attorney-Client Privilege, (2) an attorney work product, or (3) > strictly confidential. If you are not the intended recipient of this > message, you may not disclose, print, copy or disseminate this information. > If you have received this in error, please reply and notify the sender > (only) and delete the message. Unauthorized interception of this e-mail is a > violation of federal criminal law. This communication does not reflect an > intention by the sender or the sender's client or principal to conduct a > transaction or make any agreement by electronic means. Nothing contained in > this message or in any attachment shall satisfy the requirements for a > writing, and nothing contained herein shall constitute a contract or > electronic signature under the Electronic Signatures in Global and National > Commerce Act, any version of the Uniform Electronic Transactions Act or any > other statute governing electronic transactions. -- AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com -- Stuart From DElam at jenkens.com Fri Jan 5 16:22:05 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 5 Jan 2007 16:22:05 -0600 Subject: [AccessD] Date field sort Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DEB04@natexch.jenkens.com> This is not precisely formatting. It is explicitly defining this as a date type for sorting purposes. I have both used this and not. They alternate as to which sorts the field like a date or like a string. Since the underlying field is a date field, I did not do this originally as it was not necessary and should have stayed that way. I see options in the report for changing how it looks visually, but not it's data type (and therefore it's sort properties). If this is something I have missed, let me know where to find it. Debbie -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, January 05, 2007 4:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Are you applying a format to the Date field in the query underlying the report? That will have this sort of effect. As a general rule, you shouldn't do any formatting of data in queries which are used for reports. Do all of the formatting in the report On 5 Jan 2007 at 10:03, Elam, Debbie wrote: > I have an odd problem with a report that sorts on a date field. > > 3 times now for no reason I can discern the sorting gets strange. The first > time it happened, I used Cdate([MyDateField]) and it started sorting > correctly again. Then I had to take the Cdate() off, then put it on again. > Only one or the other works, but they alternate. > > The wrong sorts will sort like a string. Months are grouped together > regardless of year and december comes before January. And yes, I have had > it sort like a string when I used Cdate(). > > Has anyone seen anything like this in the past? > > Debbie > - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject > to the Attorney-Client Privilege, (2) an attorney work product, or (3) > strictly confidential. If you are not the intended recipient of this > message, you may not disclose, print, copy or disseminate this information. > If you have received this in error, please reply and notify the sender > (only) and delete the message. Unauthorized interception of this e-mail is a > violation of federal criminal law. This communication does not reflect an > intention by the sender or the sender's client or principal to conduct a > transaction or make any agreement by electronic means. Nothing contained in > this message or in any attachment shall satisfy the requirements for a > writing, and nothing contained herein shall constitute a contract or > electronic signature under the Electronic Signatures in Global and National > Commerce Act, any version of the Uniform Electronic Transactions Act or any > other statute governing electronic transactions. -- AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From stuart at lexacorp.com.pg Fri Jan 5 17:24:21 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Jan 2007 09:24:21 +1000 Subject: [AccessD] Date field sort In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DEB04@natexch.jenkens.com> References: <7B1961ED924D1A459E378C9B1BB22B4C068DEB04@natexch.jenkens.com> Message-ID: <459EDE25.29980.1B35F73B@stuart.lexacorp.com.pg> In the query design view, right click on the date field, select properties and make sure that the "Format" box is empty. If there is a date format in there, the data will be passed as a string, even if you use a CDate() expression. On 5 Jan 2007 at 16:22, Elam, Debbie wrote: > This is not precisely formatting. It is explicitly defining this as a date > type for sorting purposes. > > I have both used this and not. They alternate as to which sorts the field > like a date or like a string. Since the underlying field is a date field, I > did not do this originally as it was not necessary and should have stayed > that way. > > I see options in the report for changing how it looks visually, but not it's > data type (and therefore it's sort properties). If this is something I have > missed, let me know where to find it. > > Debbie > > -----Original Message----- > From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] > Sent: Friday, January 05, 2007 4:02 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Date field sort > > > Are you applying a format to the Date field in the query underlying the > report? That will have this sort of effect. As a general rule, you > shouldn't do any formatting of data in queries which are used for reports. > Do all of the formatting in the report > > On 5 Jan 2007 at 10:03, Elam, Debbie wrote: > > > I have an odd problem with a report that sorts on a date field. > > > > 3 times now for no reason I can discern the sorting gets strange. The > first > > time it happened, I used Cdate([MyDateField]) and it started sorting > > correctly again. Then I had to take the Cdate() off, then put it on > again. > > Only one or the other works, but they alternate. > > > > The wrong sorts will sort like a string. Months are grouped together > > regardless of year and december comes before January. And yes, I have had > > it sort like a string when I used Cdate(). > > > > Has anyone seen anything like this in the past? > > > > Debbie > > - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) > subject > > to the Attorney-Client Privilege, (2) an attorney work product, or (3) > > strictly confidential. If you are not the intended recipient of this > > message, you may not disclose, print, copy or disseminate this > information. > > If you have received this in error, please reply and notify the sender > > (only) and delete the message. Unauthorized interception of this e-mail is > a > > violation of federal criminal law. This communication does not reflect an > > intention by the sender or the sender's client or principal to conduct a > > transaction or make any agreement by electronic means. Nothing contained > in > > this message or in any attachment shall satisfy the requirements for a > > writing, and nothing contained herein shall constitute a contract or > > electronic signature under the Electronic Signatures in Global and > National > > Commerce Act, any version of the Uniform Electronic Transactions Act or > any > > other statute governing electronic transactions. -- AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd Website: > > http://www.databaseadvisors.com > > -- > Stuart > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject > to the Attorney-Client Privilege, (2) an attorney work product, or (3) > strictly confidential. If you are not the intended recipient of this > message, you may not disclose, print, copy or disseminate this information. > If you have received this in error, please reply and notify the sender > (only) and delete the message. Unauthorized interception of this e-mail is a > violation of federal criminal law. This communication does not reflect an > intention by the sender or the sender's client or principal to conduct a > transaction or make any agreement by electronic means. Nothing contained in > this message or in any attachment shall satisfy the requirements for a > writing, and nothing contained herein shall constitute a contract or > electronic signature under the Electronic Signatures in Global and National > Commerce Act, any version of the Uniform Electronic Transactions Act or any > other statute governing electronic transactions. -- AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd Website: > http://www.databaseadvisors.com -- Stuart From adtp at airtelbroadband.in Fri Jan 5 23:58:46 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sat, 6 Jan 2007 11:28:46 +0530 Subject: [AccessD] Date field sort References: <7B1961ED924D1A459E378C9B1BB22B4C068DEB04@natexch.jenkens.com> <459EDE25.29980.1B35F73B@stuart.lexacorp.com.pg> Message-ID: <003601c73157$f97f1700$942b177d@pcadt> Stuart, Could you please verify again and confirm? Tests seem to indicate that data type of date type field in a query does not get affected by the settings in properties dialog box. On the other hand, if Format() function is explicitly applied on a date type field (e.g. in a calculated field), the result is a string. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Saturday, January 06, 2007 04:54 Subject: Re: [AccessD] Date field sort In the query design view, right click on the date field, select properties and make sure that the "Format" box is empty. If there is a date format in there, the data will be passed as a string, even if you use a CDate() expression. From stuart at lexacorp.com.pg Sat Jan 6 01:46:25 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Jan 2007 17:46:25 +1000 Subject: [AccessD] Date field sort In-Reply-To: <003601c73157$f97f1700$942b177d@pcadt> References: <7B1961ED924D1A459E378C9B1BB22B4C068DEB04@natexch.jenkens.com>, <003601c73157$f97f1700$942b177d@pcadt> Message-ID: <459F53D1.30844.1D01BB3E@stuart.lexacorp.com.pg> I stand corrected. I was sure I'd seen that happen in the past, but apparently I was mistaken. On 6 Jan 2007 at 11:28, A.D.TEJPAL wrote: > Stuart, > > Could you please verify again and confirm? Tests seem to indicate that > data type of date type field in a query does not get affected by the > settings in properties dialog box. > > On the other hand, if Format() function is explicitly applied on a date > type field (e.g. in a calculated field), the result is a string. > > Best wishes, > A.D.Tejpal > --------------- > > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Saturday, January 06, 2007 04:54 > Subject: Re: [AccessD] Date field sort > > > In the query design view, right click on the date field, select properties > and make sure that the "Format" box is empty. If there is a date format in > there, the data will be passed as a string, even if you use a CDate() > expression. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From mwp.reid at qub.ac.uk Sat Jan 6 09:19:52 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 Jan 2007 15:19:52 -0000 Subject: [AccessD] Access 2007 Attachment Data Type References: <7B1961ED924D1A459E378C9B1BB22B4C068DEAFA@natexch.jenkens.com> <459ECACA.9578.1AEA5CBD@stuart.lexacorp.com.pg> Message-ID: Getting this worked out. If I add an attachment to a record and the attachment already exists then I get an error. Which is OK. What I was wondering is there an easy way to tell the user there is a file of this name already there BUT let the user overwrite it? I suppose I could pop up a message on the error ask the user if they would like to delete the current file and then add the "new" one. Just thought of that typing this. Does that sound reasonable or would there be better way to handle this? Is there a way to check the version of a file as well. So if the file being attached was later than the one already there we could pop up a message and let the user add it? This bit I would need a code example for. The code for the attach is below. If anyone is using a better method PLEASE pass it on. The attachment is a child recordset of the parent. In this case the Tasks recordset is the parent recordset with attachments being the child recordset. Private Sub cmdAdd_Click() On Error GoTo Err_cmdAdd_Click Dim rstTasks As Recordset2 Dim rstAttach As Recordset2 Dim fld As Field2 Set rstTasks = Me.Recordset Set rstAttach = rstTasks.Fields("Attachments").Value Set fld = rstAttach.Fields("FileData") rstTasks.Edit rstAttach.AddNew fld.LoadFromFile "C:\logo3.gif" rstAttach.Update rstTasks.Update Exit_cmdAdd_Click: On Error Resume Next If Not (fld Is Nothing) Then fld.Close: Set fld = Nothing If Not (rstAttach Is Nothing) Then rstAttach.Close: Set rstAttach = Nothing If Not (rstTasks Is Nothing) Then rstTasks.Close: Set rstTasks = Nothing Exit Sub Err_cmdAdd_Click: MsgBox Err.Description, , "Error in Sub Form_Tasks.cmdAdd_Click" Resume Exit_cmdAdd_Click Resume 0 '.FOR TROUBLESHOOTING End Sub Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mwp.reid at qub.ac.uk Sat Jan 6 09:39:34 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 Jan 2007 15:39:34 -0000 Subject: [AccessD] Access 2007 Attachment Data Type Part 2 References: <7B1961ED924D1A459E378C9B1BB22B4C068DEAFA@natexch.jenkens.com><459ECACA.9578.1AEA5CBD@stuart.lexacorp.com.pg> Message-ID: Justnoticed that procedure if the attachment already exists will throw a duplicate error then leave you in a blank form with #Name showing on all controls. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From andy at minstersystems.co.uk Sat Jan 6 09:54:06 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 6 Jan 2007 15:54:06 -0000 Subject: [AccessD] Updating Excel From Access In-Reply-To: <459F53D1.30844.1D01BB3E@stuart.lexacorp.com.pg> Message-ID: <03dd01c731aa$e61d4df0$5ad80651@minster33c3r25> Hi folks Years ago I wrote a little Access MDB for someone under A97. It's dead simple. It reads a column of data from 1 Excel sheet via a query into an Access table which has a unique index on that column/field (thereby deduplicating the data) then writes that table back out to Excel worksheet 2 via a second append query. Piece of cake. Except that I get a call from this guy to say they've gone to A2007 and it's stopped working. Now I don't have A2007 but I do have AXP so I loaded it into that. Sure enough it fails because the query which appends from the Access table to the 2nd Excel worksheet says the query must be updateable and when I open the Excel worksheet via the Access link to it sure enough it's read-only. This must be one of those god-awful MS security 'enhancements' I guess. What's the solution. So the long pre-amble leads to the simple question - how do I make a linked Excel worksheet updateable? -- Andy Lacey http://www.minstersystems.co.uk From dwaters at usinternet.com Sat Jan 6 10:21:24 2007 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 6 Jan 2007 10:21:24 -0600 Subject: [AccessD] Updating Excel From Access In-Reply-To: <30155190.1168098986112.JavaMail.root@sniper44> Message-ID: <001e01c731ae$b6826d60$0200a8c0@danwaters> Hi Andy, A few months ago MS lost a patent lawsuit which required them to remove the ability they had to update a linked Excel spreadsheet. Access was then changed in one of the MS updates you've installed since then, and of course it doesn't work in Access 2007. Personally, it seems to me like they could have settled this. At least you didn't break it! Dan Waters -----Original Message----- Subject: [AccessD] Updating Excel From Access Hi folks Years ago I wrote a little Access MDB for someone under A97. It's dead simple. It reads a column of data from 1 Excel sheet via a query into an Access table which has a unique index on that column/field (thereby deduplicating the data) then writes that table back out to Excel worksheet 2 via a second append query. Piece of cake. Except that I get a call from this guy to say they've gone to A2007 and it's stopped working. Now I don't have A2007 but I do have AXP so I loaded it into that. Sure enough it fails because the query which appends from the Access table to the 2nd Excel worksheet says the query must be updateable and when I open the Excel worksheet via the Access link to it sure enough it's read-only. This must be one of those god-awful MS security 'enhancements' I guess. What's the solution. So the long pre-amble leads to the simple question - how do I make a linked Excel worksheet updateable? -- 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 andy at minstersystems.co.uk Sat Jan 6 10:27:16 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 6 Jan 2007 16:27:16 -0000 Subject: [AccessD] Updating Excel From Access In-Reply-To: <001e01c731ae$b6826d60$0200a8c0@danwaters> Message-ID: <041301c731af$87ab3250$5ad80651@minster33c3r25> What????!!!! You mean it just can't be done??? Whoa. There MUST be a workaround, surely. What, none? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: 06 January 2007 16:21 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Updating Excel From Access > > > Hi Andy, > > A few months ago MS lost a patent lawsuit which required them > to remove the ability they had to update a linked Excel > spreadsheet. Access was then changed in one of the MS > updates you've installed since then, and of course it doesn't > work in Access 2007. > > Personally, it seems to me like they could have settled this. > > At least you didn't break it! > > Dan Waters > > -----Original Message----- > Subject: [AccessD] Updating Excel From Access > > Hi folks > Years ago I wrote a little Access MDB for someone under A97. > It's dead simple. It reads a column of data from 1 Excel > sheet via a query into an Access table which has a unique > index on that column/field (thereby deduplicating the data) > then writes that table back out to Excel worksheet 2 via a > second append query. Piece of cake. Except that I get a call > from this guy to say they've gone to A2007 and it's stopped > working. Now I don't have A2007 but I do have AXP so I loaded > it into that. Sure enough it fails because the query which > appends from the Access table to the 2nd Excel worksheet says > the query must be updateable and when I open the Excel > worksheet via the Access link to it sure enough it's > read-only. This must be one of those god-awful MS security > 'enhancements' I guess. What's the solution. So the long > pre-amble leads to the simple question - how do I make a > linked Excel worksheet updateable? > > -- 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Sat Jan 6 10:51:27 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 11:51:27 -0500 Subject: [AccessD] Updating Excel From Access In-Reply-To: <041301c731af$87ab3250$5ad80651@minster33c3r25> Message-ID: <006601c731b2$ea3fd4e0$ccb6fea9@m6805> The workaround is to not "link" to the spreadsheet. You can open the excel object and update that object (out in the excel file) directly using automation. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Saturday, January 06, 2007 11:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Updating Excel From Access What????!!!! You mean it just can't be done??? Whoa. There MUST be a workaround, surely. What, none? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: 06 January 2007 16:21 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Updating Excel From Access > > > Hi Andy, > > A few months ago MS lost a patent lawsuit which required them to > remove the ability they had to update a linked Excel spreadsheet. > Access was then changed in one of the MS updates you've installed > since then, and of course it doesn't work in Access 2007. > > Personally, it seems to me like they could have settled this. > > At least you didn't break it! > > Dan Waters > > -----Original Message----- > Subject: [AccessD] Updating Excel From Access > > Hi folks > Years ago I wrote a little Access MDB for someone under A97. > It's dead simple. It reads a column of data from 1 Excel sheet via a > query into an Access table which has a unique index on that > column/field (thereby deduplicating the data) then writes that table > back out to Excel worksheet 2 via a second append query. Piece of > cake. Except that I get a call from this guy to say they've gone to > A2007 and it's stopped working. Now I don't have A2007 but I do have > AXP so I loaded it into that. Sure enough it fails because the query > which appends from the Access table to the 2nd Excel worksheet says > the query must be updateable and when I open the Excel worksheet via > the Access link to it sure enough it's read-only. This must be one of > those god-awful MS security 'enhancements' I guess. What's the > solution. So the long pre-amble leads to the simple question - how do > I make a linked Excel worksheet updateable? > > -- 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Jan 6 11:21:16 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 12:21:16 -0500 Subject: [AccessD] Log file - part 2 Message-ID: <007101c731b7$1396e1e0$ccb6fea9@m6805> This is the class text described in part 1. The following is the log file class. It is a work in progress, but any additions you need, you can add. Option Compare Database Option Explicit '. '.========================================================================= '.Copyright : cColby Consulting 2000. 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. '-------------------------------------------------------------------------- '.Written By : John W. Colby '.Date Created : 05/29/2002 '.Rev. History : '.Comments : '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' ' BEHAVIORS: ' '*+ Class constant declaration Private Const DebugPrint As Boolean = False Private Const mcstrModuleName As String = "clsLogFile" '*- Class constant declaration '*+ Class variables declarations 'THE STRING INSTANCE NAME IS BUILT UP FROM THE MODULE NAME AND 'A RANDOM INT Private mname As String '*- Class variables declarations '*+ custom constants declaration '*- custom constants declaration '*+ custom variables declarations Private mFSO As Scripting.FileSystemObject Private mTS As Scripting.TextStream Private mstrFileName As String Private mstrFileExt As String Private mstrFilePath As String Private mstrFileSpec As String Private mstrDteFmt As String Private mstrDte As String Private mstrTimeFmt As String Private mstrTime As String '*- custom variables declarations '*+ Private Init/Terminate interface Private Sub Class_Initialize() Randomize mname = strModuleName & ":" & Random(999999, 0) 'Make a random name for ourself Set mFSO = New Scripting.FileSystemObject End Sub Private Sub Class_Terminate() On Error Resume Next Term Set mobjChildren = Nothing Set mobjParent = Nothing Set mFSO = Nothing mTS.Close Set mTS = Nothing End Sub '*- Private Init/Terminate interface '*+ Public Init/Terminate interface Public Function Init(ByRef robjParent As Object, _ strFilePath As String, strFileName As String, strFileExt As String, _ Optional strDteFmt As String = "", Optional strTimeFmt As String = "") As Boolean On Error GoTo Err_Init mstrFilePath = strFilePath mstrFileName = strFileName mstrFileExt = strFileExt mstrDteFmt = strDteFmt mstrTimeFmt = strTimeFmt ' 'Now that we have stored the file spec pieces, create a file spec mFmtFileSpec Exit_Init: Exit Function Err_Init: MsgBox err.Description, , "Error in Function clsLWS.Init" Resume Exit_Init Resume 0 '.FOR TROUBLESHOOTING End Function 'CLEAN UP ALL OF THE CLASS POINTERS Public Sub Term() On Error Resume Next End Sub '*- Public Init/Terminate interface 'get the name of this class / module Property Get strModuleName() As String strModuleName = mcstrModuleName End Property 'get the pointer to this object's instance name Public Property Get name() As String name = mname End Property '*+ Parent/Child links interface Property Get pFileName() As String pFileName = mstrFileName End Property Property Let pFileName(strFileName As String) mstrFileName = strFileName End Property Property Get pFileExt() As String pFileExt = mstrFileExt End Property Property Let pFileExt(strFileExt As String) mstrFileExt = strFileExt End Property Property Get pFilePath() As String pFilePath = mstrFilePath End Property Property Let pFilePath(strFilePath As String) mstrFilePath = strFilePath End Property Property Get pFileSpec() As String pFileSpec = mstrFileSpec End Property Property Get pFSO() As Scripting.FileSystemObject Set pFSO = mFSO End Property Property Get pTS() As Scripting.TextStream Set pTS = mTS End Property '*- Parent/Child links interface '*+ Withevents interface '*- Withevents interface '*+ Private class functions '*- Private class functions '*+ Public class functions ' 'This function creates the time string portion of the file spec at the instant this function is called ' Private Function mFmtTime() As String On Error GoTo Err_mFmtTime If Len(mstrTimeFmt) Then mstrTime = Format(Time(), mstrTimeFmt) End If mFmtTime = mstrTime Exit_mFmtTime: Exit Function Err_mFmtTime: MsgBox err.Description, , "Error in Function clsLogFile.mFmtTime" Resume Exit_mFmtTime Resume 0 '.FOR TROUBLESHOOTING End Function ' 'This function creates the date string portion of the file spec at the instant this function is called ' Private Function mFmtDte() As String On Error GoTo Err_mFmtDte If Len(mstrDteFmt) Then mstrDte = Format(date, mstrDteFmt) End If mFmtDte = mstrDte Exit_mFmtDte: Exit Function Err_mFmtDte: MsgBox err.Description, , "Error in Function clsLogFile.mFmtDte" Resume Exit_mFmtDte Resume 0 '.FOR TROUBLESHOOTING End Function ' 'This function creates the file spec string ' Function mFmtFileSpec() As String mstrFileSpec = mstrFilePath & mstrFileName If Len(mstrDteFmt) Then mstrFileSpec = mstrFileSpec & "-" & mFmtDte End If If Len(mstrTimeFmt) Then mstrFileSpec = mstrFileSpec & "-" & mFmtTime End If mstrFileSpec = mstrFileSpec & "." & mstrFileExt End Function Public Function mFSGetWrite() Set mTS = mFSO.CreateTextFile(mstrFileSpec) End Function Public Function mFSGetRead() Set mTS = mFSO.OpenTextFile(mstrFileSpec) End Function Public Function mFSClose() mTS.Close End Function '*- Public class functions John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Jan 6 11:23:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 12:23:10 -0500 Subject: [AccessD] Log files - part 1 Message-ID: <007601c731b7$576fa820$ccb6fea9@m6805> Sigh. I wrote an email discussing a log file class I wrote this morning. Part 1 is being held up pending moderator approval. John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Jan 6 11:53:59 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 12:53:59 -0500 Subject: [AccessD] Log Class part 1A Message-ID: <007e01c731bb$a537ee60$ccb6fea9@m6805> I thought you guys might appreciate seeing how I do this. I need to log things to text files all of the time for exporting data out to clients. I am writing processes (classes) where I export data to fixed width files. The export process is table driven and allows taking a specification from the client that says what fields are expected, how long each field is, how they are padded (left / right), with what characters (space, zeros etc), date formats and so forth. That export process (class system) performs an export using a query that I build to get the data ready for export. The end result of that class system is a sequence of text strings that are the export data. Now a common task is that these export systems need to write the data out to disk. Another common task is that the export process needs to log any errors that it encounters. Given that this is a repetitive task I decided to create a class that my export process classes could instantiate and then use. It uses the Windows File System Object, so if you work under a notwork Nazi who has locked down your systems, you can pretty much stop reading now, or... you might want to replicate this using the methods for file manipulations built in to Access. I like the FSO and use it where possible. This log class is designed to be instantiated, then left open to write (or read) to a text file. In the Init() I pass in the pieces of the file name, the path, the file name, the extension. I like to date / time stamp my files in the file name so that I can write the same type of file out to a common directory and be able to see right in the file name the date and time that the file was written. So I also allow passing in a date format string and a time format string. If you are going to only do this once a week and don't care about the time, then only pass in the date format. If you are going to do this several times in a day, then also pass in a time format. The init function builds up a file spec which is the fully pathed location of the file. ATM it does not attempt to create the directory path to get there, although eventually it will do that, so that if the path does not exist it will attempt to build the path (directory structure). The log class has methods for recomputing the file spec, for example if the time has changed. There are a couple of simple methods for getting a read or write text stream. There are also properties for reading and writing the file spec pieces individually if desired. And finally there are two properties to allow getting a pointer to the file system object, and the text stream object. Using the pointer to the text stream object, you can then directly write to the log file. Since the class holds the text stream open until the class unloads or you intentionally close it, you can load this class and just start writing to the text file. Close when you are done. This class is an example of wrapping another object in order to extend that object's functionality with your own. As you know VBA does not directly allow inheritance, however by using wrapper classes like this you can crudely emulate inheritance. I add functionality to the text stream object here. To use the class you need to dim and instantiate the log class: dim clsMyLog as clsLogFile set clsMyLog = new clsLogFile clsMyLog.Init(mclsLog.Init "C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") Now you are ready to write to the file. Until such time as you unload the class instance you can write to the text stream. clsMyLog.pTS.WriteLine "test" clsMyLog gets a pointer to the log file class, pTS gets a pointer to the open text stream, .Writeline calls the method of the textstream, and "test" is written to the file. The file name will look something like Test-20070106-105937.LOG and will be located in the path C:\Dev\DISNEW\. Throw this class out in your library, expose it, and use it as needed. Part 1B to follow John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Jan 6 12:14:13 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 13:14:13 -0500 Subject: [AccessD] Log Class part 1B Message-ID: <008301c731be$791476c0$ccb6fea9@m6805> BTW, for those of you who follow the concept of a framework, I have a framework object which is itself a class. I have now built a new method of the framework object that can initialize these log files and hold them in a collection. Given that my apps all use the framework, syntax becomes: cfw.log("MyLogName").Init("C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") cfw.log("MyLogName").Log "Write some test text" cfw.log("MyLogName").Term 'closes the log file and unloads it from the framework collection Notice that this syntax looks strikingly similar to the syntax you would use to work with any other object such as the database object, the form object etc. My framework is just an object, with methods and properties. The first line causes the framework (cfw) to create an instance of the log class, initialize it with the filespec information, and store a pointer to the log class instance in a collection for future use. The second line uses a previously initialized log class instance to write text. The last line unloads the class from memory and the collection of log files available for use. Doing things "the framework way" allows me to create a ton of log files as required. For example: ' 'From inside of the ULLICO export process class I call the framework and set up two log files. ' cfw.log("ULLICOExport-Error").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("ULLICOExport-Data").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Data", "DAT", "YYYYMMDD", "HHMMSS") ' 'From inside of the HV Export class I call the framework and set up two log classes. ' cfw.log("HVExport-Error").Init(C:\Dev\DISNEW\Export\HV\", "HV-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("HVExport-Data").Init(C:\Dev\DISNEW\Export\HV\", "HV-Data", "DAT", "YYYYMMDD", "HHMMSS") Now I have two different processes (a ULLICO export process and a HV export process), each using two log files. The Error log file is used to log any processing errors that the export process runs into. The Data log file is the actual data file that is being assembled by the export process. BTW, It took me almost as long to write this email as it did to write the log class and hook it into my framework. Classes are simple to write and use once you understand them. A framework magnifies the effectiveness of service classes such as this log class enormously, making them dead simple to set up, use and tear down. That's how I do it. John W. Colby Colby Consulting www.ColbyConsulting.com From adtp at airtelbroadband.in Sat Jan 6 12:50:23 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Sun, 7 Jan 2007 00:20:23 +0530 Subject: [AccessD] Date field sort References: <7B1961ED924D1A459E378C9B1BB22B4C068DEB04@natexch.jenkens.com> Message-ID: <00ea01c731c3$9c80d0e0$240465cb@pcadt> Debbie, If the problem continues to persist, despite trying out on a freshly created report built from scratch, are you in a position to make a skeleton zipped file having just a few records demonstrating the problem? If so, I could look into it. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Elam, Debbie To: 'Access Developers discussion and problem solving' Sent: Saturday, January 06, 2007 03:52 Subject: Re: [AccessD] Date field sort This is not precisely formatting. It is explicitly defining this as a date type for sorting purposes. I have both used this and not. They alternate as to which sorts the field like a date or like a string. Since the underlying field is a date field, I did not do this originally as it was not necessary and should have stayed that way. I see options in the report for changing how it looks visually, but not it's data type (and therefore it's sort properties). If this is something I have missed, let me know where to find it. Debbie -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, January 05, 2007 4:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Are you applying a format to the Date field in the query underlying the report? That will have this sort of effect. As a general rule, you shouldn't do any formatting of data in queries which are used for reports. Do all of the formatting in the report On 5 Jan 2007 at 10:03, Elam, Debbie wrote: > I have an odd problem with a report that sorts on a date field. > 3 times now for no reason I can discern the sorting gets strange. The first time it happened, I used Cdate([MyDateField]) and it started sorting correctly again. Then I had to take the Cdate() off, then put it on again. Only one or the other works, but they alternate. > > The wrong sorts will sort like a string. Months are grouped together regardless of year and december comes before January. And yes, I have had it sort like a string when I used Cdate(). > > Has anyone seen anything like this in the past? > > Debbie From mwp.reid at qub.ac.uk Sat Jan 6 13:25:55 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 Jan 2007 19:25:55 -0000 Subject: [AccessD] Access 2007 References: <008301c731be$791476c0$ccb6fea9@m6805> Message-ID: Anyoen with Access 2007 have time to have a look at the attachment code for me. Doing some strange things and I am missing something here. Its simple code just run from a command button on a form. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From wdhindman at dejpolsystems.com Sat Jan 6 13:28:10 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 6 Jan 2007 14:28:10 -0500 Subject: [AccessD] Log file - part 2 References: <007101c731b7$1396e1e0$ccb6fea9@m6805> Message-ID: <000601c731c8$cdd81860$b43fe944@50NM721> JC ...have you tested the FSO to run in a runtime install? William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, January 06, 2007 12:21 PM Subject: [AccessD] Log file - part 2 > This is the class text described in part 1. > > The following is the log file class. It is a work in progress, but any > additions you need, you can add. > > Option Compare Database > Option Explicit > '. > '.========================================================================= > '.Copyright : cColby Consulting 2000. 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. > '-------------------------------------------------------------------------- > '.Written By : John W. Colby > '.Date Created : 05/29/2002 > '.Rev. History : > '.Comments : > '.------------------------------------------------------------------------- > '. > ' ADDITIONAL NOTES: > ' > ' BEHAVIORS: > ' > '*+ Class constant declaration > Private Const DebugPrint As Boolean = False > Private Const mcstrModuleName As String = "clsLogFile" > '*- Class constant declaration > > '*+ Class variables declarations > 'THE STRING INSTANCE NAME IS BUILT UP FROM THE MODULE NAME AND > 'A RANDOM INT > Private mname As String > '*- Class variables declarations > > '*+ custom constants declaration > '*- custom constants declaration > > '*+ custom variables declarations > Private mFSO As Scripting.FileSystemObject > Private mTS As Scripting.TextStream > > Private mstrFileName As String > Private mstrFileExt As String > Private mstrFilePath As String > Private mstrFileSpec As String > Private mstrDteFmt As String > Private mstrDte As String > Private mstrTimeFmt As String > Private mstrTime As String > '*- custom variables declarations > '*+ Private Init/Terminate interface > Private Sub Class_Initialize() > Randomize > mname = strModuleName & ":" & Random(999999, 0) 'Make a random name > for > ourself > Set mFSO = New Scripting.FileSystemObject > End Sub > Private Sub Class_Terminate() > On Error Resume Next > Term > Set mobjChildren = Nothing > Set mobjParent = Nothing > Set mFSO = Nothing > mTS.Close > Set mTS = Nothing > End Sub > '*- Private Init/Terminate interface > > '*+ Public Init/Terminate interface > Public Function Init(ByRef robjParent As Object, _ > strFilePath As String, strFileName As String, > strFileExt As String, _ > Optional strDteFmt As String = "", Optional > strTimeFmt As String = "") As Boolean > On Error GoTo Err_Init > > mstrFilePath = strFilePath > mstrFileName = strFileName > mstrFileExt = strFileExt > mstrDteFmt = strDteFmt > mstrTimeFmt = strTimeFmt > ' > 'Now that we have stored the file spec pieces, create a file spec > mFmtFileSpec > > Exit_Init: > Exit Function > Err_Init: > MsgBox err.Description, , "Error in Function clsLWS.Init" > Resume Exit_Init > Resume 0 '.FOR TROUBLESHOOTING > End Function > 'CLEAN UP ALL OF THE CLASS POINTERS > Public Sub Term() > On Error Resume Next > End Sub > '*- Public Init/Terminate interface > > 'get the name of this class / module > Property Get strModuleName() As String > strModuleName = mcstrModuleName > End Property > 'get the pointer to this object's instance name > Public Property Get name() As String > name = mname > End Property > '*+ Parent/Child links interface > Property Get pFileName() As String > pFileName = mstrFileName > End Property > Property Let pFileName(strFileName As String) > mstrFileName = strFileName > End Property > Property Get pFileExt() As String > pFileExt = mstrFileExt > End Property > Property Let pFileExt(strFileExt As String) > mstrFileExt = strFileExt > End Property > Property Get pFilePath() As String > pFilePath = mstrFilePath > End Property > Property Let pFilePath(strFilePath As String) > mstrFilePath = strFilePath > End Property > Property Get pFileSpec() As String > pFileSpec = mstrFileSpec > End Property > Property Get pFSO() As Scripting.FileSystemObject > Set pFSO = mFSO > End Property > Property Get pTS() As Scripting.TextStream > Set pTS = mTS > End Property > '*- Parent/Child links interface > '*+ Withevents interface > '*- Withevents interface > '*+ Private class functions > '*- Private class functions > '*+ Public class functions > ' > 'This function creates the time string portion of the file spec at the > instant this function is called > ' > Private Function mFmtTime() As String > On Error GoTo Err_mFmtTime > If Len(mstrTimeFmt) Then > mstrTime = Format(Time(), mstrTimeFmt) > End If > mFmtTime = mstrTime > Exit_mFmtTime: > Exit Function > Err_mFmtTime: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtTime" > Resume Exit_mFmtTime > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the date string portion of the file spec at the > instant this function is called > ' > Private Function mFmtDte() As String > On Error GoTo Err_mFmtDte > If Len(mstrDteFmt) Then > mstrDte = Format(date, mstrDteFmt) > End If > mFmtDte = mstrDte > Exit_mFmtDte: > Exit Function > Err_mFmtDte: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtDte" > Resume Exit_mFmtDte > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the file spec string > ' > Function mFmtFileSpec() As String > mstrFileSpec = mstrFilePath & mstrFileName > If Len(mstrDteFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtDte > End If > If Len(mstrTimeFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtTime > End If > mstrFileSpec = mstrFileSpec & "." & mstrFileExt > End Function > Public Function mFSGetWrite() > Set mTS = mFSO.CreateTextFile(mstrFileSpec) > End Function > Public Function mFSGetRead() > Set mTS = mFSO.OpenTextFile(mstrFileSpec) > End Function > Public Function mFSClose() > mTS.Close > End Function > '*- Public class functions > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Sat Jan 6 14:32:22 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 06 Jan 2007 12:32:22 -0800 Subject: [AccessD] Access 2007 In-Reply-To: References: <008301c731be$791476c0$ccb6fea9@m6805> Message-ID: <45A00756.8040009@shaw.ca> I'll take a peek at it. Martin Reid wrote: >Anyoen with Access 2007 have time to have a look at the attachment code for me. Doing some strange things and I am missing something here. > >Its simple code just run from a command button on a form. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 05/01/2007 11:11 AM > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sat Jan 6 14:41:48 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 Jan 2007 20:41:48 -0000 Subject: [AccessD] Access 2007 References: <008301c731be$791476c0$ccb6fea9@m6805> <45A00756.8040009@shaw.ca> Message-ID: Thanks Marty On its way. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/01/2007 20:32 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 I'll take a peek at it. Martin Reid wrote: >Anyoen with Access 2007 have time to have a look at the attachment code for me. Doing some strange things and I am missing something here. > >Its simple code just run from a command button on a form. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 05/01/2007 11:11 AM > > -- Marty Connelly Victoria, B.C. Canada -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sat Jan 6 14:42:25 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 6 Jan 2007 20:42:25 -0000 Subject: [AccessD] Access 2007 Opps References: <008301c731be$791476c0$ccb6fea9@m6805> <45A00756.8040009@shaw.ca> Message-ID: marty Whats your email address Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sat 06/01/2007 20:32 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 I'll take a peek at it. Martin Reid wrote: >Anyoen with Access 2007 have time to have a look at the attachment code for me. Doing some strange things and I am missing something here. > >Its simple code just run from a command button on a form. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.6/617 - Release Date: 05/01/2007 11:11 AM > > -- 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 Sat Jan 6 14:46:45 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 15:46:45 -0500 Subject: [AccessD] Log file - part 2 In-Reply-To: <000601c731c8$cdd81860$b43fe944@50NM721> Message-ID: <008e01c731d3$c7f9dd10$ccb6fea9@m6805> Nope. I haven't done a runtime in ages. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, January 06, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log file - part 2 JC ...have you tested the FSO to run in a runtime install? William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, January 06, 2007 12:21 PM Subject: [AccessD] Log file - part 2 > This is the class text described in part 1. > > The following is the log file class. It is a work in progress, but any > additions you need, you can add. > > Option Compare Database > Option Explicit > '. > '.========================================================================= > '.Copyright : cColby Consulting 2000. 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. > '-------------------------------------------------------------------------- > '.Written By : John W. Colby > '.Date Created : 05/29/2002 > '.Rev. History : > '.Comments : > '.------------------------------------------------------------------------- > '. > ' ADDITIONAL NOTES: > ' > ' BEHAVIORS: > ' > '*+ Class constant declaration > Private Const DebugPrint As Boolean = False > Private Const mcstrModuleName As String = "clsLogFile" > '*- Class constant declaration > > '*+ Class variables declarations > 'THE STRING INSTANCE NAME IS BUILT UP FROM THE MODULE NAME AND > 'A RANDOM INT > Private mname As String > '*- Class variables declarations > > '*+ custom constants declaration > '*- custom constants declaration > > '*+ custom variables declarations > Private mFSO As Scripting.FileSystemObject > Private mTS As Scripting.TextStream > > Private mstrFileName As String > Private mstrFileExt As String > Private mstrFilePath As String > Private mstrFileSpec As String > Private mstrDteFmt As String > Private mstrDte As String > Private mstrTimeFmt As String > Private mstrTime As String > '*- custom variables declarations > '*+ Private Init/Terminate interface > Private Sub Class_Initialize() > Randomize > mname = strModuleName & ":" & Random(999999, 0) 'Make a random name > for > ourself > Set mFSO = New Scripting.FileSystemObject > End Sub > Private Sub Class_Terminate() > On Error Resume Next > Term > Set mobjChildren = Nothing > Set mobjParent = Nothing > Set mFSO = Nothing > mTS.Close > Set mTS = Nothing > End Sub > '*- Private Init/Terminate interface > > '*+ Public Init/Terminate interface > Public Function Init(ByRef robjParent As Object, _ > strFilePath As String, strFileName As String, > strFileExt As String, _ > Optional strDteFmt As String = "", Optional > strTimeFmt As String = "") As Boolean > On Error GoTo Err_Init > > mstrFilePath = strFilePath > mstrFileName = strFileName > mstrFileExt = strFileExt > mstrDteFmt = strDteFmt > mstrTimeFmt = strTimeFmt > ' > 'Now that we have stored the file spec pieces, create a file spec > mFmtFileSpec > > Exit_Init: > Exit Function > Err_Init: > MsgBox err.Description, , "Error in Function clsLWS.Init" > Resume Exit_Init > Resume 0 '.FOR TROUBLESHOOTING > End Function > 'CLEAN UP ALL OF THE CLASS POINTERS > Public Sub Term() > On Error Resume Next > End Sub > '*- Public Init/Terminate interface > > 'get the name of this class / module > Property Get strModuleName() As String > strModuleName = mcstrModuleName > End Property > 'get the pointer to this object's instance name > Public Property Get name() As String > name = mname > End Property > '*+ Parent/Child links interface > Property Get pFileName() As String > pFileName = mstrFileName > End Property > Property Let pFileName(strFileName As String) > mstrFileName = strFileName > End Property > Property Get pFileExt() As String > pFileExt = mstrFileExt > End Property > Property Let pFileExt(strFileExt As String) > mstrFileExt = strFileExt > End Property > Property Get pFilePath() As String > pFilePath = mstrFilePath > End Property > Property Let pFilePath(strFilePath As String) > mstrFilePath = strFilePath > End Property > Property Get pFileSpec() As String > pFileSpec = mstrFileSpec > End Property > Property Get pFSO() As Scripting.FileSystemObject > Set pFSO = mFSO > End Property > Property Get pTS() As Scripting.TextStream > Set pTS = mTS > End Property > '*- Parent/Child links interface > '*+ Withevents interface > '*- Withevents interface > '*+ Private class functions > '*- Private class functions > '*+ Public class functions > ' > 'This function creates the time string portion of the file spec at the > instant this function is called > ' > Private Function mFmtTime() As String > On Error GoTo Err_mFmtTime > If Len(mstrTimeFmt) Then > mstrTime = Format(Time(), mstrTimeFmt) > End If > mFmtTime = mstrTime > Exit_mFmtTime: > Exit Function > Err_mFmtTime: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtTime" > Resume Exit_mFmtTime > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the date string portion of the file spec at the > instant this function is called > ' > Private Function mFmtDte() As String > On Error GoTo Err_mFmtDte > If Len(mstrDteFmt) Then > mstrDte = Format(date, mstrDteFmt) > End If > mFmtDte = mstrDte > Exit_mFmtDte: > Exit Function > Err_mFmtDte: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtDte" > Resume Exit_mFmtDte > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the file spec string > ' > Function mFmtFileSpec() As String > mstrFileSpec = mstrFilePath & mstrFileName > If Len(mstrDteFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtDte > End If > If Len(mstrTimeFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtTime > End If > mstrFileSpec = mstrFileSpec & "." & mstrFileExt > End Function > Public Function mFSGetWrite() > Set mTS = mFSO.CreateTextFile(mstrFileSpec) > End Function > Public Function mFSGetRead() > Set mTS = mFSO.OpenTextFile(mstrFileSpec) > End Function > Public Function mFSClose() > mTS.Close > End Function > '*- Public class functions > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Jan 6 15:45:48 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 06 Jan 2007 13:45:48 -0800 Subject: [AccessD] Log Class part 1B In-Reply-To: <008301c731be$791476c0$ccb6fea9@m6805> Message-ID: <0JBG003FYV1E39L0@l-daemon> Hi John: The last group of messages forms an excellent reusable class. As you are so skilled in Access class design, I would like to pose a class related question. Can a MS Access class, like the class used to populate lists and combo boxes be encapsulated within a user defined/managed class? If this is not clear I will supply code off-line as it is a little large for the list. TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, January 06, 2007 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Log Class part 1B BTW, for those of you who follow the concept of a framework, I have a framework object which is itself a class. I have now built a new method of the framework object that can initialize these log files and hold them in a collection. Given that my apps all use the framework, syntax becomes: cfw.log("MyLogName").Init("C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") cfw.log("MyLogName").Log "Write some test text" cfw.log("MyLogName").Term 'closes the log file and unloads it from the framework collection Notice that this syntax looks strikingly similar to the syntax you would use to work with any other object such as the database object, the form object etc. My framework is just an object, with methods and properties. The first line causes the framework (cfw) to create an instance of the log class, initialize it with the filespec information, and store a pointer to the log class instance in a collection for future use. The second line uses a previously initialized log class instance to write text. The last line unloads the class from memory and the collection of log files available for use. Doing things "the framework way" allows me to create a ton of log files as required. For example: ' 'From inside of the ULLICO export process class I call the framework and set up two log files. ' cfw.log("ULLICOExport-Error").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("ULLICOExport-Data").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Data", "DAT", "YYYYMMDD", "HHMMSS") ' 'From inside of the HV Export class I call the framework and set up two log classes. ' cfw.log("HVExport-Error").Init(C:\Dev\DISNEW\Export\HV\", "HV-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("HVExport-Data").Init(C:\Dev\DISNEW\Export\HV\", "HV-Data", "DAT", "YYYYMMDD", "HHMMSS") Now I have two different processes (a ULLICO export process and a HV export process), each using two log files. The Error log file is used to log any processing errors that the export process runs into. The Data log file is the actual data file that is being assembled by the export process. BTW, It took me almost as long to write this email as it did to write the log class and hook it into my framework. Classes are simple to write and use once you understand them. A framework magnifies the effectiveness of service classes such as this log class enormously, making them dead simple to set up, use and tear down. That's how I do it. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sat Jan 6 17:14:27 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sat, 6 Jan 2007 18:14:27 -0500 Subject: [AccessD] Log Class part 1B References: <008301c731be$791476c0$ccb6fea9@m6805> Message-ID: <001001c731e8$6c29a230$0302a8c0@default> ----- Original Message ----- From: "JWColby" > Notice that this syntax looks strikingly similar to the syntax you would > use > to work with any other object such as the database object, the form object > etc. My framework is just an object, with methods and properties. Oh! You mean like an object model! LOL! How long has it been - like 5 years? Yes, I do use a 'framework.' Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From jwcolby at colbyconsulting.com Sat Jan 6 22:39:01 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 23:39:01 -0500 Subject: [AccessD] Log Class part 1B In-Reply-To: <0JBG003FYV1E39L0@l-daemon> Message-ID: <009901c73215$c1ab4ec0$ccb6fea9@m6805> Yes! Maybe. If you are talking about a callback function then the answer is "damned tough". However for objects like forms and controls.... That is exactly what I have been talking about for the last few years. I call these classes "wrappers" because they wrap up the functionality of an object, and then allow you the programmer to "extend" the functionality of the wrapped object. I have a clsFrm, a clsCtlCbo, clsCtlTxt, clsCtlCmd, clsCtlChkBox etc. As you can tell from the name, each class "wraps" some native Access object such as a form, a command button, a combo etc. My classes then add functionality that I find useful for those objects. My form class has a control scanner which scans the form as it opens looking for controls. That "scanner" is functionality that I find useful and have added in my form class. The scanner then loads a clsCtlCbo for every combo object it finds, a clsCtlTxt for every text box etc. Each of these classes provides me a place to store code to implement functionality that I find useful for those objects. As an example, I find it useful to have the clsCtlCbo sink the combo's DblClick event and open a form for editing the list behind the form. In order to enable this behavior, I simply feed the clsCtlCbo a DblClick form name, into a string property. If the property holds a form name, then when the dblclick event occurs, my code opens that form. Of course it does much more as well. For example if a combo has been fed a form name to open, then the dbl-click will open that form. I cause the labels for the combo to change background color as a visual cue to the user that the form can be Dbl Clicked and something will happen. They have to learn that rule, but once learned, it works the same in every form (that uses the form class), in every application. When controls such as text boxed and combos get the focus, I cause my control class to change the background color so that the user can tell that control has the focus. And the list goes on and on. All these things are behaviors that I think are useful, and so I include them in MY control classes. Thus every one of my projects just automatically has the ability to DblClick a combo and have a form open to edit the combo's list, have text and combos change background color when they get the focus etc. Every form, every project. I believe that kind of consistency is critical to making a project usable. The user should be able to see, "oh, the label for this combo is a different color... That means I can double click it and open the form. Of course my framework also has what I call LWS (light weight security) so that the application can determine which groups users belong to, and the application can decide which user groups see the label change color and can dbl-click the combos to edit the list tables. All automatically, every form, every application. Once you understand the concept, once you start creating your framework, then your imagination can take over. Want an audit trail? Every control already has a class, automatically loaded by the form class. Between the form class and the various control classes, you have the tools to create an audit trail behavior. I can log what users log in to what workstations, what forms open, what controls get the focus, what data is edited, what reports are run, all neatly date stamped. Turn it on and off with SysVars. Do you want the ability to have user groups be able to see and edit specific forms, and controls in forms? Once you have a form class and control classes, you have the tools to implement a Light Weight Security functionality. Need data logging to files on the disk? Need emails to an admin when errors occur? Need to be able to turn on / off functionality in the framework or the application? Ever hear the term SysVars? All these kinds of things are things I call service classes, and all these things exist in my framework. Write once, use forever, you applications become consistent throughout (and EXTREMELY powerful). But it is not the application providing the power, it is your framework. That's how I do it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, January 06, 2007 4:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log Class part 1B Hi John: The last group of messages forms an excellent reusable class. As you are so skilled in Access class design, I would like to pose a class related question. Can a MS Access class, like the class used to populate lists and combo boxes be encapsulated within a user defined/managed class? If this is not clear I will supply code off-line as it is a little large for the list. TIA Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, January 06, 2007 10:14 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Log Class part 1B BTW, for those of you who follow the concept of a framework, I have a framework object which is itself a class. I have now built a new method of the framework object that can initialize these log files and hold them in a collection. Given that my apps all use the framework, syntax becomes: cfw.log("MyLogName").Init("C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") cfw.log("MyLogName").Log "Write some test text" cfw.log("MyLogName").Term 'closes the log file and unloads it from the framework collection Notice that this syntax looks strikingly similar to the syntax you would use to work with any other object such as the database object, the form object etc. My framework is just an object, with methods and properties. The first line causes the framework (cfw) to create an instance of the log class, initialize it with the filespec information, and store a pointer to the log class instance in a collection for future use. The second line uses a previously initialized log class instance to write text. The last line unloads the class from memory and the collection of log files available for use. Doing things "the framework way" allows me to create a ton of log files as required. For example: ' 'From inside of the ULLICO export process class I call the framework and set up two log files. ' cfw.log("ULLICOExport-Error").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("ULLICOExport-Data").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Data", "DAT", "YYYYMMDD", "HHMMSS") ' 'From inside of the HV Export class I call the framework and set up two log classes. ' cfw.log("HVExport-Error").Init(C:\Dev\DISNEW\Export\HV\", "HV-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("HVExport-Data").Init(C:\Dev\DISNEW\Export\HV\", "HV-Data", "DAT", "YYYYMMDD", "HHMMSS") Now I have two different processes (a ULLICO export process and a HV export process), each using two log files. The Error log file is used to log any processing errors that the export process runs into. The Data log file is the actual data file that is being assembled by the export process. BTW, It took me almost as long to write this email as it did to write the log class and hook it into my framework. Classes are simple to write and use once you understand them. A framework magnifies the effectiveness of service classes such as this log class enormously, making them dead simple to set up, use and tear down. That's how I do it. John W. Colby Colby Consulting www.ColbyConsulting.com From jimdettman at verizon.net Sun Jan 7 06:02:29 2007 From: jimdettman at verizon.net (Jim Dettman) Date: Sun, 07 Jan 2007 07:02:29 -0500 Subject: [AccessD] Log Class part 1B In-Reply-To: <009901c73215$c1ab4ec0$ccb6fea9@m6805> Message-ID: <007501c73253$b4e1a6b0$8abea8c0@XPS> John, <> Yeah it sounds good, but you haven't told them about the problem with composite classes. This is where OOP just falls flat on it's face. After programming with VFP for a few years, I realized I basically had the same problems as before except that things were a heck of a lot more complex to figure out. Up to that point, I had developed methods (calling standard procedures and changing code on the fly) to work in non-OOP languages that gave me the ability to do things like you are discussing. The promise of OOP is that you define it once and it works everywhere. But when you start getting into composite classes, you find once again that you have the same code in a lot of different places and are almost back to square one. Also with OOP you spend a lot of time figuring out the state of things because you don't know what other routines may have done. Since your not supposed to look inside the box, you can never be sure of anything when your within an object. It also requires heavy time up front to properly develop your classes and interfaces and the class hierarchy. Screw up with those and you'll be rewriting a lot. OOP does have it's place and it can be powerful and flexible, but you need to go into it with your eyes open. It's not the pancrea for programming problems that everyone believes. Think about how long OOP has been around; why is there not more of it? If it was really that great it should have flooded the development community by now, yet here we are almost 30 years later still using non-OOP languages. I think there is nothing wrong with using objects simply as a means of simplifying data structures, but using an object orientated language is not all it's cracked up to be. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, January 06, 2007 11:39 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log Class part 1B Yes! Maybe. If you are talking about a callback function then the answer is "damned tough". However for objects like forms and controls.... <> From jwcolby at colbyconsulting.com Sat Jan 6 11:16:32 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 12:16:32 -0500 Subject: [AccessD] Log class Message-ID: <006701c731b6$6b5fae30$ccb6fea9@m6805> I thought you guys might appreciate seeing how I do this. I need to log things to text files all of the time for exporting data out to clients. I am writing processes (classes) where I export data to fixed width files. The export process is table driven and allows taking a specification from the client that says what fields are expected, how long each field is, how they are padded (left / right), with what characters (space, zeros etc), date formats and so forth. That export process (class system) performs an export using a query that I build to get the data ready for export. The end result of that class system is a sequence of text strings that are the export data. Now a common task is that these export systems need to write the data out to disk. Another common task is that the export process needs to log any errors that it encounters. Given that this is a repetitive task I decided to create a class that my export process classes could instantiate and then use. It uses the Windows File System Object, so if you work under a notwork Nazi who has locked down your systems, you can pretty much stop reading now, or... you might want to replicate this using the methods for file manipulations built in to Access. I like the FSO and use it where possible. This log class is designed to be instantiated, then left open to write (or read) to a text file. In the Init() I pass in the pieces of the file name, the path, the file name, the extension. I like to date / time stamp my files in the file name so that I can write the same type of file out to a common directory and be able to see right in the file name the date and time that the file was written. So I also allow passing in a date format string and a time format string. If you are going to only do this once a week and don't care about the time, then only pass in the date format. If you are going to do this several times in a day, then also pass in a time format. The init function builds up a file spec which is the fully pathed location of the file. ATM it does not attempt to create the directory path to get there, although eventually it will do that, so that if the path does not exist it will attempt to build the path (directory structure). The log class has methods for recomputing the file spec, for example if the time has changed. There are a couple of simple methods for getting a read or write text stream. There are also properties for reading and writing the file spec pieces individually if desired. And finally there are two properties to allow getting a pointer to the file system object, and the text stream object. Using the pointer to the text stream object, you can then directly write to the log file. Since the class holds the text stream open until the class unloads or you intentionally close it, you can load this class and just start writing to the text file. Close when you are done. This class is an example of wrapping another object in order to extend that object's functionality with your own. As you know VBA does not directly allow inheritance, however by using wrapper classes like this you can crudely emulate inheritance. I add functionality to the text stream object here. To use the class you need to dim and instantiate the log class: dim clsMyLog as clsLogFile set clsMyLog = new clsLogFile clsMyLog.Init(mclsLog.Init "C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") Now you are ready to write to the file. Until such time as you unload the class instance you can write to the text stream. clsMyLog.pTS.WriteLine "test" clsMyLog gets a pointer to the log file class, pTS gets a pointer to the open text stream, .Writeline calls the method of the textstream, and "test" is written to the file. The file name will look something like Test-20070106-105937.LOG and will be located in the path C:\Dev\DISNEW\. Throw this class out in your library, expose it, and use it as needed. BTW, for those of you who follow the concept of a framework, I have a framework object which is itself a class. I have now built a new method of the framework object that can initialize these log files and hold them in a collection. Given that my apps all use the framework, syntax becomes: cfw.log("MyLogName").Init("C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") cfw.log("MyLogName").Log "Write some test text" cfw.log("MyLogName").Term 'closes the log file and unloads it from the framework collection Notice that this syntax looks strikingly similar to the syntax you would use to work with any other object such as the database object, the form object etc. My framework is just an object, with methods and properties. The first line causes the framework (cfw) to create an instance of the log class, initialize it with the filespec information, and store a pointer to the log class instance in a collection for future use. The second line uses a previously initialized log class instance to write text. The last line unloads the class from memory and the collection of log files available for use. Doing things "the framework way" allows me to create a ton of log files as required. For example: ' 'From inside of the ULLICO export process class I call the framework and set up two log files. ' cfw.log("ULLICOExport-Error").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("ULLICOExport-Data").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Data", "DAT", "YYYYMMDD", "HHMMSS") ' 'From inside of the HV Export class I call the framework and set up two log classes. ' cfw.log("HVExport-Error").Init(C:\Dev\DISNEW\Export\HV\", "HV-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("HVExport-Data").Init(C:\Dev\DISNEW\Export\HV\", "HV-Data", "DAT", "YYYYMMDD", "HHMMSS") Now I have two different processes (a ULLICO export process and a HV export process), each using two log files. The Error log file is used to log any processing errors that the export process runs into. The Data log file is the actual data file that is being assembled by the export process. BTW, It took me almost as long to write this email as it did to write the log class and hook it into my framework. Classes are simple to write and use once you understand them. A framework magnifies the effectiveness of service classes such as this log class enormously, making them dead simple to set up, use and tear down. That's how I do it. The following is the log file class. It is a work in progress, but any additions you need, you can add. Option Compare Database Option Explicit '. '.========================================================================= '.Copyright : cColby Consulting 2000. 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. '-------------------------------------------------------------------------- '.Written By : John W. Colby '.Date Created : 05/29/2002 '.Rev. History : '.Comments : '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' ' BEHAVIORS: ' '*+ Class constant declaration Private Const DebugPrint As Boolean = False Private Const mcstrModuleName As String = "clsLogFile" '*- Class constant declaration '*+ Class variables declarations 'THE STRING INSTANCE NAME IS BUILT UP FROM THE MODULE NAME AND 'A RANDOM INT Private mname As String '*- Class variables declarations '*+ custom constants declaration '*- custom constants declaration '*+ custom variables declarations Private mFSO As Scripting.FileSystemObject Private mTS As Scripting.TextStream Private mstrFileName As String Private mstrFileExt As String Private mstrFilePath As String Private mstrFileSpec As String Private mstrDteFmt As String Private mstrDte As String Private mstrTimeFmt As String Private mstrTime As String '*- custom variables declarations '*+ Private Init/Terminate interface Private Sub Class_Initialize() Randomize mname = strModuleName & ":" & Random(999999, 0) 'Make a random name for ourself Set mFSO = New Scripting.FileSystemObject End Sub Private Sub Class_Terminate() On Error Resume Next Term Set mobjChildren = Nothing Set mobjParent = Nothing Set mFSO = Nothing mTS.Close Set mTS = Nothing End Sub '*- Private Init/Terminate interface '*+ Public Init/Terminate interface Public Function Init(ByRef robjParent As Object, _ strFilePath As String, strFileName As String, strFileExt As String, _ Optional strDteFmt As String = "", Optional strTimeFmt As String = "") As Boolean On Error GoTo Err_Init mstrFilePath = strFilePath mstrFileName = strFileName mstrFileExt = strFileExt mstrDteFmt = strDteFmt mstrTimeFmt = strTimeFmt ' 'Now that we have stored the file spec pieces, create a file spec mFmtFileSpec Exit_Init: Exit Function Err_Init: MsgBox err.Description, , "Error in Function clsLWS.Init" Resume Exit_Init Resume 0 '.FOR TROUBLESHOOTING End Function 'CLEAN UP ALL OF THE CLASS POINTERS Public Sub Term() On Error Resume Next End Sub '*- Public Init/Terminate interface 'get the name of this class / module Property Get strModuleName() As String strModuleName = mcstrModuleName End Property 'get the pointer to this object's instance name Public Property Get name() As String name = mname End Property '*+ Parent/Child links interface Property Get pFileName() As String pFileName = mstrFileName End Property Property Let pFileName(strFileName As String) mstrFileName = strFileName End Property Property Get pFileExt() As String pFileExt = mstrFileExt End Property Property Let pFileExt(strFileExt As String) mstrFileExt = strFileExt End Property Property Get pFilePath() As String pFilePath = mstrFilePath End Property Property Let pFilePath(strFilePath As String) mstrFilePath = strFilePath End Property Property Get pFileSpec() As String pFileSpec = mstrFileSpec End Property Property Get pFSO() As Scripting.FileSystemObject Set pFSO = mFSO End Property Property Get pTS() As Scripting.TextStream Set pTS = mTS End Property '*- Parent/Child links interface '*+ Withevents interface '*- Withevents interface '*+ Private class functions '*- Private class functions '*+ Public class functions ' 'This function creates the time string portion of the file spec at the instant this function is called ' Private Function mFmtTime() As String On Error GoTo Err_mFmtTime If Len(mstrTimeFmt) Then mstrTime = Format(Time(), mstrTimeFmt) End If mFmtTime = mstrTime Exit_mFmtTime: Exit Function Err_mFmtTime: MsgBox err.Description, , "Error in Function clsLogFile.mFmtTime" Resume Exit_mFmtTime Resume 0 '.FOR TROUBLESHOOTING End Function ' 'This function creates the date string portion of the file spec at the instant this function is called ' Private Function mFmtDte() As String On Error GoTo Err_mFmtDte If Len(mstrDteFmt) Then mstrDte = Format(date, mstrDteFmt) End If mFmtDte = mstrDte Exit_mFmtDte: Exit Function Err_mFmtDte: MsgBox err.Description, , "Error in Function clsLogFile.mFmtDte" Resume Exit_mFmtDte Resume 0 '.FOR TROUBLESHOOTING End Function ' 'This function creates the file spec string ' Function mFmtFileSpec() As String mstrFileSpec = mstrFilePath & mstrFileName If Len(mstrDteFmt) Then mstrFileSpec = mstrFileSpec & "-" & mFmtDte End If If Len(mstrTimeFmt) Then mstrFileSpec = mstrFileSpec & "-" & mFmtTime End If mstrFileSpec = mstrFileSpec & "." & mstrFileExt End Function Public Function mFSGetWrite() Set mTS = mFSO.CreateTextFile(mstrFileSpec) End Function Public Function mFSGetRead() Set mTS = mFSO.OpenTextFile(mstrFileSpec) End Function Public Function mFSClose() mTS.Close End Function '*- Public class functions John W. Colby Colby Consulting www.ColbyConsulting.com From jwcolby at colbyconsulting.com Sat Jan 6 11:19:52 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sat, 6 Jan 2007 12:19:52 -0500 Subject: [AccessD] Log files Message-ID: <006c01c731b6$e2789270$ccb6fea9@m6805> I thought you guys might appreciate seeing how I do this. I need to log things to text files all of the time for exporting data out to clients. I am writing processes (classes) where I export data to fixed width files. The export process is table driven and allows taking a specification from the client that says what fields are expected, how long each field is, how they are padded (left / right), with what characters (space, zeros etc), date formats and so forth. That export process (class system) performs an export using a query that I build to get the data ready for export. The end result of that class system is a sequence of text strings that are the export data. Now a common task is that these export systems need to write the data out to disk. Another common task is that the export process needs to log any errors that it encounters. Given that this is a repetitive task I decided to create a class that my export process classes could instantiate and then use. It uses the Windows File System Object, so if you work under a notwork Nazi who has locked down your systems, you can pretty much stop reading now, or... you might want to replicate this using the methods for file manipulations built in to Access. I like the FSO and use it where possible. This log class is designed to be instantiated, then left open to write (or read) to a text file. In the Init() I pass in the pieces of the file name, the path, the file name, the extension. I like to date / time stamp my files in the file name so that I can write the same type of file out to a common directory and be able to see right in the file name the date and time that the file was written. So I also allow passing in a date format string and a time format string. If you are going to only do this once a week and don't care about the time, then only pass in the date format. If you are going to do this several times in a day, then also pass in a time format. The init function builds up a file spec which is the fully pathed location of the file. ATM it does not attempt to create the directory path to get there, although eventually it will do that, so that if the path does not exist it will attempt to build the path (directory structure). The log class has methods for recomputing the file spec, for example if the time has changed. There are a couple of simple methods for getting a read or write text stream. There are also properties for reading and writing the file spec pieces individually if desired. And finally there are two properties to allow getting a pointer to the file system object, and the text stream object. Using the pointer to the text stream object, you can then directly write to the log file. Since the class holds the text stream open until the class unloads or you intentionally close it, you can load this class and just start writing to the text file. Close when you are done. This class is an example of wrapping another object in order to extend that object's functionality with your own. As you know VBA does not directly allow inheritance, however by using wrapper classes like this you can crudely emulate inheritance. I add functionality to the text stream object here. To use the class you need to dim and instantiate the log class: dim clsMyLog as clsLogFile set clsMyLog = new clsLogFile clsMyLog.Init(mclsLog.Init "C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") Now you are ready to write to the file. Until such time as you unload the class instance you can write to the text stream. clsMyLog.pTS.WriteLine "test" clsMyLog gets a pointer to the log file class, pTS gets a pointer to the open text stream, .Writeline calls the method of the textstream, and "test" is written to the file. The file name will look something like Test-20070106-105937.LOG and will be located in the path C:\Dev\DISNEW\. Throw this class out in your library, expose it, and use it as needed. BTW, for those of you who follow the concept of a framework, I have a framework object which is itself a class. I have now built a new method of the framework object that can initialize these log files and hold them in a collection. Given that my apps all use the framework, syntax becomes: cfw.log("MyLogName").Init("C:\Dev\DISNEW\", "Test", "LOG", "YYYYMMDD", "HHMMSS") cfw.log("MyLogName").Log "Write some test text" cfw.log("MyLogName").Term 'closes the log file and unloads it from the framework collection Notice that this syntax looks strikingly similar to the syntax you would use to work with any other object such as the database object, the form object etc. My framework is just an object, with methods and properties. The first line causes the framework (cfw) to create an instance of the log class, initialize it with the filespec information, and store a pointer to the log class instance in a collection for future use. The second line uses a previously initialized log class instance to write text. The last line unloads the class from memory and the collection of log files available for use. Doing things "the framework way" allows me to create a ton of log files as required. For example: ' 'From inside of the ULLICO export process class I call the framework and set up two log files. ' cfw.log("ULLICOExport-Error").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("ULLICOExport-Data").Init(C:\Dev\DISNEW\Export\ULLICO\", "ULLICO-Data", "DAT", "YYYYMMDD", "HHMMSS") ' 'From inside of the HV Export class I call the framework and set up two log classes. ' cfw.log("HVExport-Error").Init(C:\Dev\DISNEW\Export\HV\", "HV-Error", "ERR", "YYYYMMDD", "HHMMSS") cfw.log("HVExport-Data").Init(C:\Dev\DISNEW\Export\HV\", "HV-Data", "DAT", "YYYYMMDD", "HHMMSS") Now I have two different processes (a ULLICO export process and a HV export process), each using two log files. The Error log file is used to log any processing errors that the export process runs into. The Data log file is the actual data file that is being assembled by the export process. BTW, It took me almost as long to write this email as it did to write the log class and hook it into my framework. Classes are simple to write and use once you understand them. A framework magnifies the effectiveness of service classes such as this log class enormously, making them dead simple to set up, use and tear down. That's how I do it. Class text to follow. The message was too long to get by all in one piece. John W. Colby Colby Consulting www.ColbyConsulting.com From mmattys at rochester.rr.com Sun Jan 7 09:09:03 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 7 Jan 2007 10:09:03 -0500 Subject: [AccessD] Log class References: <006701c731b6$6b5fae30$ccb6fea9@m6805> Message-ID: <005e01c7326d$c5ca44e0$0302a8c0@default> >I thought you guys might appreciate seeing how I do this. Yes, very much so. Thanks, John. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From mwp.reid at qub.ac.uk Sun Jan 7 09:13:20 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 Jan 2007 15:13:20 -0000 Subject: [AccessD] Lopping over events A 2007 References: <006701c731b6$6b5fae30$ccb6fea9@m6805> <005e01c7326d$c5ca44e0$0302a8c0@default> Message-ID: Is it possible to check every form buttons on click property to see if they are using Event Procedures or Embedded macros. If using macros is there a way to capture the text of the macro? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From mmattys at rochester.rr.com Sun Jan 7 09:52:33 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 7 Jan 2007 10:52:33 -0500 Subject: [AccessD] Lopping over events A 2007 References: <006701c731b6$6b5fae30$ccb6fea9@m6805> <005e01c7326d$c5ca44e0$0302a8c0@default> Message-ID: <009801c73273$d94fec30$0302a8c0@default> Hi Martin, You'd check the property for the string "[Event Procedure]" For macros, you'll need to figure out the hidden AccWiz stuff. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Martin Reid" To: "Access Developers discussion and problem solving" Sent: Sunday, January 07, 2007 10:13 AM Subject: [AccessD] Lopping over events A 2007 Is it possible to check every form buttons on click property to see if they are using Event Procedures or Embedded macros. If using macros is there a way to capture the text of the macro? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 -------------------------------------------------------------------------------- > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Sun Jan 7 11:25:24 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 07 Jan 2007 09:25:24 -0800 Subject: [AccessD] Log files In-Reply-To: <006c01c731b6$e2789270$ccb6fea9@m6805> Message-ID: <0JBI00GXBDNAN440@l-daemon> Hi John: > I thought you guys might appreciate seeing how I do this. You have created an excellent environment where it is almost a cookie cutter process to build and design applications. Mind you this is not the sort of environment, that after an application has been completed and you have left, the client can now employee some junior Access programmer to do support work on and expect any major progress for a couple of weeks ...and that may be the entire client's expected support budget. ...Which I guess is a good thing. Jim From mwp.reid at qub.ac.uk Sun Jan 7 11:47:31 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 Jan 2007 17:47:31 -0000 Subject: [AccessD] Log class References: <006701c731b6$6b5fae30$ccb6fea9@m6805> <005e01c7326d$c5ca44e0$0302a8c0@default> Message-ID: Personally I think you shoud sell the framework Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Michael R Mattys Sent: Sun 07/01/2007 15:09 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log class >I thought you guys might appreciate seeing how I do this. Yes, very much so. Thanks, John. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sun Jan 7 12:40:46 2007 From: robert at servicexp.com (Robert) Date: Sun, 7 Jan 2007 13:40:46 -0500 Subject: [AccessD] Log class In-Reply-To: <005e01c7326d$c5ca44e0$0302a8c0@default> Message-ID: <001101c7328b$58dd4e90$6501a8c0@roberts> John, Indeed, your time, effort and energy to teach is always appreciated. Keep up the good work! Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Sunday, January 07, 2007 10:09 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log class >I thought you guys might appreciate seeing how I do this. Yes, very much so. Thanks, John. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sun Jan 7 13:02:14 2007 From: robert at servicexp.com (Robert) Date: Sun, 7 Jan 2007 14:02:14 -0500 Subject: [AccessD] Log file - part 2 In-Reply-To: <008e01c731d3$c7f9dd10$ccb6fea9@m6805> Message-ID: <001201c7328e$59028270$6501a8c0@roberts> John, Have you thought about having your classes or "Objects" pass any errors to the calling form or function, rather then generating the error message direction from the class? Something like incorporating an "Error Object" within your classes (Framework), letting the object raise the error, and the listeners response to the error? Maybe over kill... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, January 06, 2007 3:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log file - part 2 Nope. I haven't done a runtime in ages. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, January 06, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log file - part 2 JC .....have you tested the FSO to run in a runtime install? William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, January 06, 2007 12:21 PM Subject: [AccessD] Log file - part 2 > This is the class text described in part 1. > > The following is the log file class. It is a work in progress, but > any additions you need, you can add. > > Option Compare Database > Option Explicit > '. > '.========================================================================= > '.Copyright : cColby Consulting 2000. 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. > '-------------------------------------------------------------------------- > '.Written By : John W. Colby > '.Date Created : 05/29/2002 > '.Rev. History : > '.Comments : > '.------------------------------------------------------------------------- > '. > ' ADDITIONAL NOTES: > ' > ' BEHAVIORS: > ' > '*+ Class constant declaration > Private Const DebugPrint As Boolean = False Private Const > mcstrModuleName As String = "clsLogFile" > '*- Class constant declaration > > '*+ Class variables declarations > 'THE STRING INSTANCE NAME IS BUILT UP FROM THE MODULE NAME AND 'A > RANDOM INT Private mname As String > '*- Class variables declarations > > '*+ custom constants declaration > '*- custom constants declaration > > '*+ custom variables declarations > Private mFSO As Scripting.FileSystemObject Private mTS As > Scripting.TextStream > > Private mstrFileName As String > Private mstrFileExt As String > Private mstrFilePath As String > Private mstrFileSpec As String > Private mstrDteFmt As String > Private mstrDte As String > Private mstrTimeFmt As String > Private mstrTime As String > '*- custom variables declarations > '*+ Private Init/Terminate interface > Private Sub Class_Initialize() > Randomize > mname = strModuleName & ":" & Random(999999, 0) 'Make a random > name for ourself > Set mFSO = New Scripting.FileSystemObject End Sub Private Sub > Class_Terminate() On Error Resume Next > Term > Set mobjChildren = Nothing > Set mobjParent = Nothing > Set mFSO = Nothing > mTS.Close > Set mTS = Nothing > End Sub > '*- Private Init/Terminate interface > > '*+ Public Init/Terminate interface > Public Function Init(ByRef robjParent As Object, _ > strFilePath As String, strFileName As String, > strFileExt As String, _ > Optional strDteFmt As String = "", Optional > strTimeFmt As String = "") As Boolean On Error GoTo Err_Init > > mstrFilePath = strFilePath > mstrFileName = strFileName > mstrFileExt = strFileExt > mstrDteFmt = strDteFmt > mstrTimeFmt = strTimeFmt > ' > 'Now that we have stored the file spec pieces, create a file spec > mFmtFileSpec > > Exit_Init: > Exit Function > Err_Init: > MsgBox err.Description, , "Error in Function clsLWS.Init" > Resume Exit_Init > Resume 0 '.FOR TROUBLESHOOTING > End Function > 'CLEAN UP ALL OF THE CLASS POINTERS > Public Sub Term() > On Error Resume Next > End Sub > '*- Public Init/Terminate interface > > 'get the name of this class / module > Property Get strModuleName() As String > strModuleName = mcstrModuleName > End Property > 'get the pointer to this object's instance name Public Property Get > name() As String > name = mname > End Property > '*+ Parent/Child links interface > Property Get pFileName() As String > pFileName = mstrFileName > End Property > Property Let pFileName(strFileName As String) > mstrFileName = strFileName > End Property > Property Get pFileExt() As String > pFileExt = mstrFileExt > End Property > Property Let pFileExt(strFileExt As String) > mstrFileExt = strFileExt > End Property > Property Get pFilePath() As String > pFilePath = mstrFilePath > End Property > Property Let pFilePath(strFilePath As String) > mstrFilePath = strFilePath > End Property > Property Get pFileSpec() As String > pFileSpec = mstrFileSpec > End Property > Property Get pFSO() As Scripting.FileSystemObject > Set pFSO = mFSO > End Property > Property Get pTS() As Scripting.TextStream > Set pTS = mTS > End Property > '*- Parent/Child links interface > '*+ Withevents interface > '*- Withevents interface > '*+ Private class functions > '*- Private class functions > '*+ Public class functions > ' > 'This function creates the time string portion of the file spec at the > instant this function is called ' > Private Function mFmtTime() As String > On Error GoTo Err_mFmtTime > If Len(mstrTimeFmt) Then > mstrTime = Format(Time(), mstrTimeFmt) > End If > mFmtTime = mstrTime > Exit_mFmtTime: > Exit Function > Err_mFmtTime: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtTime" > Resume Exit_mFmtTime > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the date string portion of the file spec at the > instant this function is called ' > Private Function mFmtDte() As String > On Error GoTo Err_mFmtDte > If Len(mstrDteFmt) Then > mstrDte = Format(date, mstrDteFmt) > End If > mFmtDte = mstrDte > Exit_mFmtDte: > Exit Function > Err_mFmtDte: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtDte" > Resume Exit_mFmtDte > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the file spec string ' > Function mFmtFileSpec() As String > mstrFileSpec = mstrFilePath & mstrFileName > If Len(mstrDteFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtDte > End If > If Len(mstrTimeFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtTime > End If > mstrFileSpec = mstrFileSpec & "." & mstrFileExt End Function Public > Function mFSGetWrite() > Set mTS = mFSO.CreateTextFile(mstrFileSpec) End Function Public > Function mFSGetRead() > Set mTS = mFSO.OpenTextFile(mstrFileSpec) End Function Public > Function mFSClose() > mTS.Close > End Function > '*- Public class functions > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Jan 7 14:20:27 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 07 Jan 2007 12:20:27 -0800 Subject: [AccessD] Log class In-Reply-To: Message-ID: <0JBI00FJYLR11I90@l-daemon> Hi Martin: I think that would be a great idea but John has, in the past, been trying to sell and has allowed downloads of specific modules of related code. I am not sure how well he has done with this but suspect not as well as he should have. It seems to take more marketing than designing to sell a product. I was on a short term contract with a company that had a type of frame-work built on top of an Access database. The companies' staff deployment was as follows: 1 x Network support 3 x Frame Assemblers and help desk guys 2 x Framework designer, or real programmers 5 x Program managers 12 x Sales and advertising staff ... and the usual account clerks, front desk persons and managers. (5 more) >From this company, which was actually listed on the Toronto stock exchange, only 5% of the staff did programming. 95% of the people were support, management and on sales. I can not say whether this is fairly typical company layout but they have survived for over 15 years in the computer industry. To make a short story long, I think John's product is excellent and if he spent most of his time marketing, sales would have reflected that. Jim PS I hope you do not mind me commenting on you in third person. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, January 07, 2007 9:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log class Personally I think you shoud sell the framework Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Michael R Mattys Sent: Sun 07/01/2007 15:09 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log class >I thought you guys might appreciate seeing how I do this. Yes, very much so. Thanks, John. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.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 Jan 7 15:04:49 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 07 Jan 2007 13:04:49 -0800 Subject: [AccessD] Access 2007 In-Reply-To: References: <008301c731be$791476c0$ccb6fea9@m6805> Message-ID: <45A16071.4060308@shaw.ca> Interesting I haven't seen that before in Access The basic idea is of a recordset within a recordset, i.e. the multi-value attachment field is exposed as a recordset within each record of the main recordset. Parent child recordsets, I guess? or do you read via recursion. Martin Reid wrote: >Anyoen with Access 2007 have time to have a look at the attachment code for me. Doing some strange things and I am missing something here. > >Its simple code just run from a command button on a form. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > -- Marty Connelly Victoria, B.C. Canada From mwp.reid at qub.ac.uk Sun Jan 7 15:30:17 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 7 Jan 2007 21:30:17 -0000 Subject: [AccessD] Access 2007 References: <008301c731be$791476c0$ccb6fea9@m6805> <45A16071.4060308@shaw.ca> Message-ID: Marty Did you get the paper I send you of list last night? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of MartyConnelly Sent: Sun 07/01/2007 21:04 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 Interesting I haven't seen that before in Access The basic idea is of a recordset within a recordset, i.e. the multi-value attachment field is exposed as a recordset within each record of the main recordset. Parent child recordsets, I guess? or do you read via recursion. Martin Reid wrote: >Anyoen with Access 2007 have time to have a look at the attachment code for me. Doing some strange things and I am missing something here. > >Its simple code just run from a command button on a form. > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > -- 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 darrend at nimble.com.au Sun Jan 7 15:35:29 2007 From: darrend at nimble.com.au (Darren DICK) Date: Mon, 8 Jan 2007 08:35:29 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows Message-ID: <200701072135.l07LZbR19073@databaseadvisors.com> Hi Team I use the line below to open and 'run' a batch file Call Shell(strFileName) Can anyone tell me why 2 dos (Command) windows open? The syntax is valid - everything is cool - but 2 of them open up and then start trying to process the lines in the batch file And no. There is not some second call buried elsewhere in the code Many thanks Have a great day Darren From bill_Patten at earthlink.net Sun Jan 7 15:46:34 2007 From: bill_Patten at earthlink.net (Bill Patten) Date: Sun, 7 Jan 2007 13:46:34 -0800 Subject: [AccessD] A2003:Shell opens 2 DOS windows References: <200701072135.l07LZbR19073@databaseadvisors.com> Message-ID: <00c801c732a5$4d789810$0202fea9@BPCS> hi Daren, It's Sunday and not many appear to be working today so I'll take a SWAG. Is it possible that the Shell command is opening a dos window to open the batch file, then the batch file is opening a dos widow to do it's thing.??? Bill ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Sunday, January 07, 2007 1:35 PM Subject: [AccessD] A2003:Shell opens 2 DOS windows Hi Team I use the line below to open and 'run' a batch file Call Shell(strFileName) Can anyone tell me why 2 dos (Command) windows open? The syntax is valid - everything is cool - but 2 of them open up and then start trying to process the lines in the batch file And no. There is not some second call buried elsewhere in the code Many thanks Have a great day Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Jan 7 15:48:16 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 08 Jan 2007 07:48:16 +1000 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <200701072135.l07LZbR19073@databaseadvisors.com> References: <200701072135.l07LZbR19073@databaseadvisors.com> Message-ID: <45A16AA0.31421.252AC55F@stuart.lexacorp.com.pg> Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- Stuart From carbonnb at gmail.com Sun Jan 7 20:27:37 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Sun, 7 Jan 2007 21:27:37 -0500 Subject: [AccessD] Log files - part 1 In-Reply-To: <007601c731b7$576fa820$ccb6fea9@m6805> References: <007601c731b7$576fa820$ccb6fea9@m6805> Message-ID: On 1/6/07, JWColby wrote: > Sigh. I wrote an email discussing a log file class I wrote this morning. > Part 1 is being held up pending moderator approval. It was too big. If you sent it a plain text, and not HTML, it would have gone through just fine. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From jwcolby at colbyconsulting.com Sun Jan 7 20:48:15 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 21:48:15 -0500 Subject: [AccessD] Log Class part 1B In-Reply-To: <007501c73253$b4e1a6b0$8abea8c0@XPS> Message-ID: <000001c732cf$73901530$ccb6fea9@m6805> Jim, There certainly is no panacea in software, and I make no claim that my classes and the framework built from it solves every problem known to man. I do claim that doing things this way makes my development waaaay faster and more powerful than the old "functions in a library" method, or the older "functions in modules in the application" method. VBA's objects cannot even claim to be true OOP in the sense that most programmers of more powerful languages think of it. Without inheritance, the whole concept is crippled, however that does not mean that classes and objects in VBA are useless, far from it. It is true that Microsoft's office objects do not allow you inherit them, their properties and methods. However you can use classes to wrap them up. Given that classes can sink events, and source their own events, you can wrap any object up in a class and "extend" the object's functionality with your own ideas. True, I have no idea how a combo object works inside, it is about as "black box" as you can get, but I have a pretty fair understanding of what properties it has, what I can do with those properties, what events this object will source, and why the events happen. That is a lot of information and a lot of power. I do not see any reason to just throw up my hands and say "it's all useless anyway so why bother". I do a LOT of things that very few if any of you guys do, but perhaps that is only because you throw up you hands... Or perhaps it is because you just haven't yet "seen the light". THAT is why I keep preaching the concepts because what is possible is so much more than what I see being done by most of the people on this list. There is a saying out there "we all stand on the shoulders of giants" and I stood on Shamil's shoulders a long time before I "got it". Shamil has mostly moved on to other things I think but I finally started to see the power, and I am available to show anyone who wants to know this stuff what is possible. I am certainly no "giant", but I do think I have taken what I have learned from Shamil and moved it to a point where I can actually use it to get real work done, much more quickly than without using these concepts. Trying to discuss true OOP and all its intricacies is an exercise in futility when using VBA as the language. It is truly a "who cares, we can't do that" kind of thing, but that hardly means "we can't do anything". John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Sunday, January 07, 2007 7:02 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log Class part 1B John, <> Yeah it sounds good, but you haven't told them about the problem with composite classes. This is where OOP just falls flat on it's face. After programming with VFP for a few years, I realized I basically had the same problems as before except that things were a heck of a lot more complex to figure out. Up to that point, I had developed methods (calling standard procedures and changing code on the fly) to work in non-OOP languages that gave me the ability to do things like you are discussing. The promise of OOP is that you define it once and it works everywhere. But when you start getting into composite classes, you find once again that you have the same code in a lot of different places and are almost back to square one. Also with OOP you spend a lot of time figuring out the state of things because you don't know what other routines may have done. Since your not supposed to look inside the box, you can never be sure of anything when your within an object. It also requires heavy time up front to properly develop your classes and interfaces and the class hierarchy. Screw up with those and you'll be rewriting a lot. OOP does have it's place and it can be powerful and flexible, but you need to go into it with your eyes open. It's not the pancrea for programming problems that everyone believes. Think about how long OOP has been around; why is there not more of it? If it was really that great it should have flooded the development community by now, yet here we are almost 30 years later still using non-OOP languages. I think there is nothing wrong with using objects simply as a means of simplifying data structures, but using an object orientated language is not all it's cracked up to be. Jim. From jwcolby at colbyconsulting.com Sun Jan 7 21:15:29 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 22:15:29 -0500 Subject: [AccessD] Log files In-Reply-To: <0JBI00GXBDNAN440@l-daemon> Message-ID: <000101c732d3$40d04df0$ccb6fea9@m6805> Jim, There are two different ways to view this. By using a framework I can get more done faster, so for the original budget I can give the client more. You are absolutely correct, no "junior level access programmer" is going to come in and pick this up in a couple of weeks. My experience has been though that junior level programmers are brought in to do queries and reports using an existing application. No application of any complexity can be picked up by ANYONE in a few weeks. The framework is a tool. It is similar in concept to Access itself. It allows me, a developer to do things which if I had to do all this stuff from scratch would take years or decades (in the case of Access). I don't make any effort to "change" Access, I just use it. I would not expect any junior level programmer to "change" my framework either. I would just expect them to use it. Mostly it just happens. In fact, when I was in Mexico I hired a non-programmer, a girl who could type and wanted to learn Access. I had her "stamp out" forms for me, just set up the forms, I built the queries, she dragged and dropped the controls out and arranged them. I had a large project I needed to get out, 200 tables. I got 90% of the physical design work done using a smart girl who could use a mouse and type, and could follow a 10 step written instruction on how to do a form. To do it from scratch, build a form, dimension a variable for a clsFrm and pass a pointer to the form in to clsFrm. Voila, things start to happen. That simple. Learn how to pass in the name of a list form to a combo box and voila, the combo starts to respond to the double click event by opening the form. Drop a combo and a text box onto a form, bind the text box to the PK of the data displayed on the form, set the combo's rowsource to display a key piece of data, and voila, the combo can be a record selector and cause the form to move to that record. These are just behaviors that I have added to my classes. Like behaviors of the objects in Access itself, they "just work". All you have to know is what is required to cause the behavior to happen. I have a standing, stated agreement with all of my clients, which is, "if a behavior is generic, it goes in my framework, if it is application specific, it goes in the application". I say that up front. I own the framework. My client gets a limited use license to use the framework, in any application I DEVELOP for them. As I work for them, they pay me for all development, whether it goes in the framework, or in the application. I own the framework. The client gets all of the behaviors paid for by previous clients. They only have to pay for behaviors that have not been previously developed. That is fair enough I think. I walk in the door with (as you put it) a cookie cutter that allows me to do more for them, faster, than they could get with any other developer. I certainly do not force any client to use the framework, but I do advise them that it will cost many times as much to not use it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, January 07, 2007 12:25 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log files Hi John: > I thought you guys might appreciate seeing how I do this. You have created an excellent environment where it is almost a cookie cutter process to build and design applications. Mind you this is not the sort of environment, that after an application has been completed and you have left, the client can now employee some junior Access programmer to do support work on and expect any major progress for a couple of weeks ...and that may be the entire client's expected support budget. ...Which I guess is a good thing. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Jan 7 21:18:10 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 22:18:10 -0500 Subject: [AccessD] Log class In-Reply-To: Message-ID: <000201c732d3$a0679660$ccb6fea9@m6805> Martin, LOL, I tell you what, I wish I could. Unfortunately developers don't want MY framework, they want THEIR OWN framework. I think selling a book is the closest I will ever get to making money on the framework which does not come from my using it in client projects. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, January 07, 2007 12:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log class Personally I think you shoud sell the framework Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Michael R Mattys Sent: Sun 07/01/2007 15:09 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log class >I thought you guys might appreciate seeing how I do this. Yes, very much so. Thanks, John. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Jan 7 21:32:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 22:32:26 -0500 Subject: [AccessD] Log file - part 2 In-Reply-To: <001201c7328e$59028270$6501a8c0@roberts> Message-ID: <000301c732d5$9f07a650$ccb6fea9@m6805> Error handling is a complex subject, and one which is difficult to generalize. The framework can generate errors which are unrelated directly to the application. It can also generate errors that are directly related to the application. It can generate errors which are caused by activity up in the application and just manifests inside the framework. And of course the application can generate errors which are never handled by the framework. One of the problem with raising errors and causing them to be handled somewhere is that you can never be sure where they will be handled, particularly if they are buried down in code. A better solution would be to send messages, and have an object that listens to those messages. I want framework errors to be directed to me, and perhaps to someone else (a super user), but I want application errors to be handled mostly by the super users, calling me only if they cannot figure out what to do. I have a message class, the framework exposes these message channels similar to how it exposes a log file. Any object can talk over the message channel, it is really a matter of "how". The message channels can be public (a public function can send the message) but the receipt of messages utilizes sinking events, so each object that wants to RECEIVE messages has to dimension the message class WITHEVENTS and then sink the message class' events. A message class, with a public function to SEND messages, but SUNK in an error handler class would probably be the best solution to this kind of problem. Then any function could report an error just by calling a public function and the message handler (really mostly a logger / emailer) could sink the message events and handle them, perhaps by writing them to a table or a file, or generating an email. That would work for "unexpected" errors which the code simply does not know how to handle, and needs to alert someone that the error happened. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Sunday, January 07, 2007 2:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log file - part 2 John, Have you thought about having your classes or "Objects" pass any errors to the calling form or function, rather then generating the error message direction from the class? Something like incorporating an "Error Object" within your classes (Framework), letting the object raise the error, and the listeners response to the error? Maybe over kill... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Saturday, January 06, 2007 3:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log file - part 2 Nope. I haven't done a runtime in ages. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, January 06, 2007 2:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log file - part 2 JC .....have you tested the FSO to run in a runtime install? William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Saturday, January 06, 2007 12:21 PM Subject: [AccessD] Log file - part 2 > This is the class text described in part 1. > > The following is the log file class. It is a work in progress, but > any additions you need, you can add. > > Option Compare Database > Option Explicit > '. > '.========================================================================= > '.Copyright : cColby Consulting 2000. 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. > '-------------------------------------------------------------------------- > '.Written By : John W. Colby > '.Date Created : 05/29/2002 > '.Rev. History : > '.Comments : > '.------------------------------------------------------------------------- > '. > ' ADDITIONAL NOTES: > ' > ' BEHAVIORS: > ' > '*+ Class constant declaration > Private Const DebugPrint As Boolean = False Private Const > mcstrModuleName As String = "clsLogFile" > '*- Class constant declaration > > '*+ Class variables declarations > 'THE STRING INSTANCE NAME IS BUILT UP FROM THE MODULE NAME AND 'A > RANDOM INT Private mname As String > '*- Class variables declarations > > '*+ custom constants declaration > '*- custom constants declaration > > '*+ custom variables declarations > Private mFSO As Scripting.FileSystemObject Private mTS As > Scripting.TextStream > > Private mstrFileName As String > Private mstrFileExt As String > Private mstrFilePath As String > Private mstrFileSpec As String > Private mstrDteFmt As String > Private mstrDte As String > Private mstrTimeFmt As String > Private mstrTime As String > '*- custom variables declarations > '*+ Private Init/Terminate interface > Private Sub Class_Initialize() > Randomize > mname = strModuleName & ":" & Random(999999, 0) 'Make a random > name for ourself > Set mFSO = New Scripting.FileSystemObject End Sub Private Sub > Class_Terminate() On Error Resume Next > Term > Set mobjChildren = Nothing > Set mobjParent = Nothing > Set mFSO = Nothing > mTS.Close > Set mTS = Nothing > End Sub > '*- Private Init/Terminate interface > > '*+ Public Init/Terminate interface > Public Function Init(ByRef robjParent As Object, _ > strFilePath As String, strFileName As String, > strFileExt As String, _ > Optional strDteFmt As String = "", Optional > strTimeFmt As String = "") As Boolean On Error GoTo Err_Init > > mstrFilePath = strFilePath > mstrFileName = strFileName > mstrFileExt = strFileExt > mstrDteFmt = strDteFmt > mstrTimeFmt = strTimeFmt > ' > 'Now that we have stored the file spec pieces, create a file spec > mFmtFileSpec > > Exit_Init: > Exit Function > Err_Init: > MsgBox err.Description, , "Error in Function clsLWS.Init" > Resume Exit_Init > Resume 0 '.FOR TROUBLESHOOTING > End Function > 'CLEAN UP ALL OF THE CLASS POINTERS > Public Sub Term() > On Error Resume Next > End Sub > '*- Public Init/Terminate interface > > 'get the name of this class / module > Property Get strModuleName() As String > strModuleName = mcstrModuleName > End Property > 'get the pointer to this object's instance name Public Property Get > name() As String > name = mname > End Property > '*+ Parent/Child links interface > Property Get pFileName() As String > pFileName = mstrFileName > End Property > Property Let pFileName(strFileName As String) > mstrFileName = strFileName > End Property > Property Get pFileExt() As String > pFileExt = mstrFileExt > End Property > Property Let pFileExt(strFileExt As String) > mstrFileExt = strFileExt > End Property > Property Get pFilePath() As String > pFilePath = mstrFilePath > End Property > Property Let pFilePath(strFilePath As String) > mstrFilePath = strFilePath > End Property > Property Get pFileSpec() As String > pFileSpec = mstrFileSpec > End Property > Property Get pFSO() As Scripting.FileSystemObject > Set pFSO = mFSO > End Property > Property Get pTS() As Scripting.TextStream > Set pTS = mTS > End Property > '*- Parent/Child links interface > '*+ Withevents interface > '*- Withevents interface > '*+ Private class functions > '*- Private class functions > '*+ Public class functions > ' > 'This function creates the time string portion of the file spec at the > instant this function is called ' > Private Function mFmtTime() As String > On Error GoTo Err_mFmtTime > If Len(mstrTimeFmt) Then > mstrTime = Format(Time(), mstrTimeFmt) > End If > mFmtTime = mstrTime > Exit_mFmtTime: > Exit Function > Err_mFmtTime: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtTime" > Resume Exit_mFmtTime > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the date string portion of the file spec at the > instant this function is called ' > Private Function mFmtDte() As String > On Error GoTo Err_mFmtDte > If Len(mstrDteFmt) Then > mstrDte = Format(date, mstrDteFmt) > End If > mFmtDte = mstrDte > Exit_mFmtDte: > Exit Function > Err_mFmtDte: > MsgBox err.Description, , "Error in Function clsLogFile.mFmtDte" > Resume Exit_mFmtDte > Resume 0 '.FOR TROUBLESHOOTING > End Function > ' > 'This function creates the file spec string ' > Function mFmtFileSpec() As String > mstrFileSpec = mstrFilePath & mstrFileName > If Len(mstrDteFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtDte > End If > If Len(mstrTimeFmt) Then > mstrFileSpec = mstrFileSpec & "-" & mFmtTime > End If > mstrFileSpec = mstrFileSpec & "." & mstrFileExt End Function Public > Function mFSGetWrite() > Set mTS = mFSO.CreateTextFile(mstrFileSpec) End Function Public > Function mFSGetRead() > Set mTS = mFSO.OpenTextFile(mstrFileSpec) End Function Public > Function mFSClose() > mTS.Close > End Function > '*- Public class functions > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Jan 7 21:49:21 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 22:49:21 -0500 Subject: [AccessD] Log class In-Reply-To: <0JBI00FJYLR11I90@l-daemon> Message-ID: <000401c732d7$fc14fda0$ccb6fea9@m6805> Jim, >I am not sure how well he has done with this but suspect not as well as he should have. LOL, to say the least. >It seems to take more marketing than designing to sell a product. Again, so true. >To make a short story long, I think John's product is excellent and if he spent most of his time marketing, sales would have reflected that. LOL, yea but I am not a sales person, and further, if I spent most of my time marketing, then the product itself would not exist since it is a result of my time spent in the trenches. I thought long and hard about this many years ago, before the framework had evolved into what it is today. It appeared that I would have to sell for many hundreds of $ in order to provide support for the product. My take on the market was that it was simply too advanced a concept, sold to people who were too quirky (yea, YOU GUYS!!!) ;-) This is not a spreadsheet or word processor, sold to end users. It is a VERY specialized development tool sold to PROGRAMMERS, many of whom (myself included) are scouring the internet for FREE stuff to make their programming life easier. Further it is a product for ACCESS, which we all know is just a TOY, aimed at POWER USERS and denigrated by all the REAL PROGRAMMERS out there. In the end I decided to just use it as a tool to make my own life easier, my own development faster, and give me a competitive edge. Which it has, and has, and has. It just keeps getting better. I actually offered one time to head a group of AccessD people to develop an AccessD framework. For a lot of reasons it didn't fly. It takes a serious commitment to volunteer to work on something like this for the good of the community, but if there is ever enough interest and enough individuals who would step up and commit to working on it, I will put the offer out there again. I can't do it by myself though. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Sunday, January 07, 2007 3:20 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Log class Hi Martin: I think that would be a great idea but John has, in the past, been trying to sell and has allowed downloads of specific modules of related code. I am not sure how well he has done with this but suspect not as well as he should have. It seems to take more marketing than designing to sell a product. I was on a short term contract with a company that had a type of frame-work built on top of an Access database. The companies' staff deployment was as follows: 1 x Network support 3 x Frame Assemblers and help desk guys 2 x Framework designer, or real programmers 5 x Program managers 12 x Sales and advertising staff ... and the usual account clerks, front desk persons and managers. (5 more) >From this company, which was actually listed on the Toronto stock >exchange, only 5% of the staff did programming. 95% of the people were support, management and on sales. I can not say whether this is fairly typical company layout but they have survived for over 15 years in the computer industry. To make a short story long, I think John's product is excellent and if he spent most of his time marketing, sales would have reflected that. Jim PS I hope you do not mind me commenting on you in third person. From jwcolby at colbyconsulting.com Sun Jan 7 21:50:35 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 22:50:35 -0500 Subject: [AccessD] Log files - part 1 In-Reply-To: Message-ID: <000501c732d8$27f04150$ccb6fea9@m6805> OH. When I look at this message it claims it will be in plain text. Did do something inadvertently to cause Outlook to switch to HTML? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Sunday, January 07, 2007 9:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log files - part 1 On 1/6/07, JWColby wrote: > Sigh. I wrote an email discussing a log file class I wrote this morning. > Part 1 is being held up pending moderator approval. It was too big. If you sent it a plain text, and not HTML, it would have gone through just fine. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Jan 7 22:08:04 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 7 Jan 2007 23:08:04 -0500 Subject: [AccessD] Lopping over events A 2007 In-Reply-To: Message-ID: <004f01c732da$994fed80$ccb6fea9@m6805> Martin, I would suggest purchasing a documentor. They would likely allow this. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Sunday, January 07, 2007 10:13 AM To: Access Developers discussion and problem solving Subject: [AccessD] Lopping over events A 2007 Is it possible to check every form buttons on click property to see if they are using Event Procedures or Embedded macros. If using macros is there a way to capture the text of the macro? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From accessd666 at yahoo.com Mon Jan 8 03:23:24 2007 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 8 Jan 2007 01:23:24 -0800 (PST) Subject: [AccessD] Create parameter that holds the source control? Message-ID: <20070108092324.64810.qmail@web31611.mail.mud.yahoo.com> Hi, I need to create a zoom form. E.g.: I've got a textbox that can store let's say 200(+) chars. I don't want to create a textbox that large. So if the user double clicks on it I want to open a form with a large textfield. The user can type the info in this large textbox and send the data back after pressing ok. Sounds easy.... I've created a function that does this. However, it's not generic. I want add a parameter in wich I store the Form and Control of it's origin. How do I create a parameter in wich I store the 'source control'? This parameter is later used to return the data to the correct control. Regards, Sander __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From andy at minstersystems.co.uk Mon Jan 8 03:34:33 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 8 Jan 2007 9:34:33 +0000 Subject: [AccessD] Create parameter that holds the source control? Message-ID: <20070108093436.540B74C15B@smtp.nildram.co.uk> And you don't want to use the standard Shift-F2 zoom box? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Acces User Group" Subject: [AccessD] Create parameter that holds the source control? Date: 08/01/07 09:25 Hi, I need to create a zoom form. E.g.: I've got a textbox that can store let's say 200(+) chars. I don't want to create a textbox that large. So if the user double clicks on it I want to open a form with a large textfield. The user can type the info in this large textbox and send the data back after pressing ok. Sounds easy.... I've created a function that does this. However, it's not generic. I want add a parameter in wich I store the Form and Control of it's origin. How do I create a parameter in wich I store the 'source control'? This parameter is later used to return the data to the correct control. Regards, Sander __________________________________________________ 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 sent using UebiMiau 2.7.2 From mmattys at rochester.rr.com Mon Jan 8 03:40:21 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 8 Jan 2007 04:40:21 -0500 Subject: [AccessD] Create parameter that holds the source control? References: <20070108092324.64810.qmail@web31611.mail.mud.yahoo.com> Message-ID: <018401c73309$051b0e90$0302a8c0@default> Hi Sander, Something like this might do it for you ... Function ZoomBox (ctl As Control) Dim strControlName as String Dim strParentName as String strControlName = ctl.Name strParentName = ctl.Parent.Name End Function Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Sad Der" To: "Acces User Group" Sent: Monday, January 08, 2007 4:23 AM Subject: [AccessD] Create parameter that holds the source control? > Hi, > > I need to create a zoom form. > E.g.: I've got a textbox that can store let's say 200(+) chars. I don't > want to create a textbox that large. > > So if the user double clicks on it I want to open a form with a large > textfield. The user can type the info in this large textbox and send the > data back after pressing ok. > > Sounds easy.... > > I've created a function that does this. However, it's not generic. > I want add a parameter in wich I store the Form and Control of it's > origin. > > How do I create a parameter in wich I store the 'source control'? > This parameter is later used to return the data to the correct control. > > Regards, > > Sander > > __________________________________________________ > 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 Mon Jan 8 03:47:37 2007 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 8 Jan 2007 01:47:37 -0800 (PST) Subject: [AccessD] Create parameter that holds the source control? DOH! Message-ID: <20070108094737.28554.qmail@web31614.mail.mud.yahoo.com> Ok....that was a very nice monday morning simpson moment :-) ----- Original Message ---- From: Andy Lacey To: Access Developers discussion and problem solving Sent: Monday, January 8, 2007 10:34:33 AM Subject: Re: [AccessD] Create parameter that holds the source control? And you don't want to use the standard Shift-F2 zoom box? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Acces User Group" Subject: [AccessD] Create parameter that holds the source control? Date: 08/01/07 09:25 Hi, I need to create a zoom form. E.g.: I've got a textbox that can store let's say 200(+) chars. I don't want to create a textbox that large. So if the user double clicks on it I want to open a form with a large textfield. The user can type the info in this large textbox and send the data back after pressing ok. Sounds easy.... I've created a function that does this. However, it's not generic. I want add a parameter in wich I store the Form and Control of it's origin. How do I create a parameter in wich I store the 'source control'? This parameter is later used to return the data to the correct control. Regards, Sander __________________________________________________ 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 sent using UebiMiau 2.7.2 -- 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 stuart at lexacorp.com.pg Mon Jan 8 04:32:11 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 08 Jan 2007 20:32:11 +1000 Subject: [AccessD] Create parameter that holds the source control? In-Reply-To: <20070108092324.64810.qmail@web31611.mail.mud.yahoo.com> References: <20070108092324.64810.qmail@web31611.mail.mud.yahoo.com> Message-ID: <45A21DAB.6164.27E6278C@stuart.lexacorp.com.pg> WHy not just invoke a standard Shift+F2 zoom form in the DblCLick event? Private Sub txtMyTextBox_DblClick(Cancel As Integer) Cancel = True SendKeys "+{F2}" End Sub On 8 Jan 2007 at 1:23, Sad Der wrote: > Hi, > > I need to create a zoom form. > E.g.: I've got a textbox that can store let's say 200(+) chars. I don't want > to create a textbox that large. > > So if the user double clicks on it I want to open a form with a large > textfield. The user can type the info in this large textbox and send the > data back after pressing ok. > > Sounds easy.... > > I've created a function that does this. However, it's not generic. > I want add a parameter in wich I store the Form and Control of it's origin. > > How do I create a parameter in wich I store the 'source control'? > This parameter is later used to return the data to the correct control. > > Regards, > > Sander > > __________________________________________________ > 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 -- Stuart From jwcolby at colbyconsulting.com Mon Jan 8 04:49:44 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 8 Jan 2007 05:49:44 -0500 Subject: [AccessD] Frameworks and application development In-Reply-To: <000401c732d7$fc14fda0$ccb6fea9@m6805> Message-ID: <005301c73312$b66ea180$ccb6fea9@m6805> I would just like to stress that a framework only handles repetitive programming issues. The majority of a project is usually spent in analysis of business needs, design of a relational model to hold the data required to meet the business needs, MIGRATION of existing data into a relational model and so forth. It's easy to get off into how much time some tool saves, but those design pieces of the puzzle are still there to be done. I designed a call center application from an existing very basic and almost completely non-normalized Access Application. I spent almost 5 months simultaneously designing the application data tables, building up a set of queries to do the data migration, and building up the basic application that would use the new normalized data. Five months where the client used the old software while we rebuilt that old application from scratch. A huge amount of that time was spent building a push button system for normalizing the old data into the new data structures. When it worked, we pushed the button and switched to the new system. John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at rogers.com Mon Jan 8 05:49:20 2007 From: carbonnb at rogers.com (Bryan Carbonnell) Date: Mon, 08 Jan 2007 06:49:20 -0500 Subject: [AccessD] Log files - part 1 In-Reply-To: <000501c732d8$27f04150$ccb6fea9@m6805> References: , <000501c732d8$27f04150$ccb6fea9@m6805> Message-ID: <45A1E970.5351.F502CEC@carbonnb.rogers.com> On 7 Jan 2007 at 22:50, JWColby wrote: > OH. When I look at this message it claims it will be in plain text. Did > do something inadvertently to cause Outlook to switch to HTML? Dunno anything about Outlook. All I know is that the e-mail went out as HTML, it had both the plain text part and an HTML part, where the HTML part was double the size of the plain text. So there is a setting somewhere in Outlook that sends out HTML. Bryan From jwcolby at colbyconsulting.com Mon Jan 8 06:55:39 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 8 Jan 2007 07:55:39 -0500 Subject: [AccessD] Log files - part 1 In-Reply-To: <45A1E970.5351.F502CEC@carbonnb.rogers.com> Message-ID: <005801c73324$4d4168c0$ccb6fea9@m6805> How weird is that. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Monday, January 08, 2007 6:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Log files - part 1 On 7 Jan 2007 at 22:50, JWColby wrote: > OH. When I look at this message it claims it will be in plain text. > Did do something inadvertently to cause Outlook to switch to HTML? Dunno anything about Outlook. All I know is that the e-mail went out as HTML, it had both the plain text part and an HTML part, where the HTML part was double the size of the plain text. So there is a setting somewhere in Outlook that sends out HTML. Bryan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at gmail.com Mon Jan 8 07:01:29 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Mon, 8 Jan 2007 08:01:29 -0500 Subject: [AccessD] Log files - part 1 In-Reply-To: <005801c73324$4d4168c0$ccb6fea9@m6805> References: <45A1E970.5351.F502CEC@carbonnb.rogers.com> <005801c73324$4d4168c0$ccb6fea9@m6805> Message-ID: On 1/8/07, JWColby wrote: > How weird is that. Its Outlook Weird. If you want to try a test, send me a message off-list to carbonnb at rogers.com and I can see how it comes in. The list will automatically strip the HTML portion, but only AFTER it does the size validation, which is where you got burnt. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From wdhindman at dejpolsystems.com Mon Jan 8 08:29:46 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 8 Jan 2007 09:29:46 -0500 Subject: [AccessD] Frameworks and application development References: <005301c73312$b66ea180$ccb6fea9@m6805> Message-ID: <001801c73331$738a8360$b43fe944@50NM721> ...my life story :( William Hindman ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Monday, January 08, 2007 5:49 AM Subject: [AccessD] Frameworks and application development >I would just like to stress that a framework only handles repetitive > programming issues. The majority of a project is usually spent in > analysis > of business needs, design of a relational model to hold the data required > to > meet the business needs, MIGRATION of existing data into a relational > model > and so forth. It's easy to get off into how much time some tool saves, > but > those design pieces of the puzzle are still there to be done. > > I designed a call center application from an existing very basic and > almost > completely non-normalized Access Application. I spent almost 5 months > simultaneously designing the application data tables, building up a set of > queries to do the data migration, and building up the basic application > that > would use the new normalized data. Five months where the client used the > old software while we rebuilt that old application from scratch. > > A huge amount of that time was spent building a push button system for > normalizing the old data into the new data structures. When it worked, we > pushed the button and switched to the new system. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DElam at jenkens.com Mon Jan 8 08:53:18 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Mon, 8 Jan 2007 08:53:18 -0600 Subject: [AccessD] Date field sort Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DEB09@natexch.jenkens.com> The back end is a SQL server so there is a bit of a problem sending it to you. I can send the front end and the create statements for the tables and views involved. Would that work? Would it be too much to ask for in free support? Debbie -----Original Message----- From: A.D.TEJPAL [mailto:adtp at airtelbroadband.in] Sent: Saturday, January 06, 2007 12:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Debbie, If the problem continues to persist, despite trying out on a freshly created report built from scratch, are you in a position to make a skeleton zipped file having just a few records demonstrating the problem? If so, I could look into it. Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: Elam, Debbie To: 'Access Developers discussion and problem solving' Sent: Saturday, January 06, 2007 03:52 Subject: Re: [AccessD] Date field sort This is not precisely formatting. It is explicitly defining this as a date type for sorting purposes. I have both used this and not. They alternate as to which sorts the field like a date or like a string. Since the underlying field is a date field, I did not do this originally as it was not necessary and should have stayed that way. I see options in the report for changing how it looks visually, but not it's data type (and therefore it's sort properties). If this is something I have missed, let me know where to find it. Debbie -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Friday, January 05, 2007 4:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Are you applying a format to the Date field in the query underlying the report? That will have this sort of effect. As a general rule, you shouldn't do any formatting of data in queries which are used for reports. Do all of the formatting in the report On 5 Jan 2007 at 10:03, Elam, Debbie wrote: > I have an odd problem with a report that sorts on a date field. > 3 times now for no reason I can discern the sorting gets strange. The first time it happened, I used Cdate([MyDateField]) and it started sorting correctly again. Then I had to take the Cdate() off, then put it on again. Only one or the other works, but they alternate. > > The wrong sorts will sort like a string. Months are grouped together regardless of year and december comes before January. And yes, I have had it sort like a string when I used Cdate(). > > Has anyone seen anything like this in the past? > > Debbie -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From adtp at airtelbroadband.in Mon Jan 8 11:42:55 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Mon, 8 Jan 2007 23:12:55 +0530 Subject: [AccessD] Date field sort References: <7B1961ED924D1A459E378C9B1BB22B4C068DEB09@natexch.jenkens.com> Message-ID: <003501c7334c$90adf880$681065cb@pcadt> Debbie, Could you please make a local table, where you can copy approx 10 records (including some culprit records that are giving you the problem). This along with the relevant query & report can serve as a self contained sample db for studying the problem. A.D.Tejpal --------------- ----- Original Message ----- From: Elam, Debbie To: 'Access Developers discussion and problem solving' Sent: Monday, January 08, 2007 20:23 Subject: Re: [AccessD] Date field sort The back end is a SQL server so there is a bit of a problem sending it to you. I can send the front end and the create statements for the tables and views involved. Would that work? Would it be too much to ask for in free support? Debbie -----Original Message----- From: A.D.TEJPAL [mailto:adtp at airtelbroadband.in] Sent: Saturday, January 06, 2007 12:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Debbie, If the problem continues to persist, despite trying out on a freshly created report built from scratch, are you in a position to make a skeleton zipped file having just a few records demonstrating the problem? If so, I could look into it. Best wishes, A.D.Tejpal --------------- From DElam at jenkens.com Mon Jan 8 11:54:58 2007 From: DElam at jenkens.com (Elam, Debbie) Date: Mon, 8 Jan 2007 11:54:58 -0600 Subject: [AccessD] Date field sort Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C068DEB11@natexch.jenkens.com> OK, I will make the view this is based on local with a few records. There do not appear to be any culprits though. Everything will sort correctly or not. Debbie -----Original Message----- From: A.D.TEJPAL [mailto:adtp at airtelbroadband.in] Sent: Monday, January 08, 2007 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Debbie, Could you please make a local table, where you can copy approx 10 records (including some culprit records that are giving you the problem). This along with the relevant query & report can serve as a self contained sample db for studying the problem. A.D.Tejpal --------------- ----- Original Message ----- From: Elam, Debbie To: 'Access Developers discussion and problem solving' Sent: Monday, January 08, 2007 20:23 Subject: Re: [AccessD] Date field sort The back end is a SQL server so there is a bit of a problem sending it to you. I can send the front end and the create statements for the tables and views involved. Would that work? Would it be too much to ask for in free support? Debbie -----Original Message----- From: A.D.TEJPAL [mailto:adtp at airtelbroadband.in] Sent: Saturday, January 06, 2007 12:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date field sort Debbie, If the problem continues to persist, despite trying out on a freshly created report built from scratch, are you in a position to make a skeleton zipped file having just a few records demonstrating the problem? If so, I could look into it. Best wishes, A.D.Tejpal --------------- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com - JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject to the Attorney-Client Privilege, (2) an attorney work product, or (3) strictly confidential. If you are not the intended recipient of this message, you may not disclose, print, copy or disseminate this information. If you have received this in error, please reply and notify the sender (only) and delete the message. Unauthorized interception of this e-mail is a violation of federal criminal law. This communication does not reflect an intention by the sender or the sender's client or principal to conduct a transaction or make any agreement by electronic means. Nothing contained in this message or in any attachment shall satisfy the requirements for a writing, and nothing contained herein shall constitute a contract or electronic signature under the Electronic Signatures in Global and National Commerce Act, any version of the Uniform Electronic Transactions Act or any other statute governing electronic transactions. From robert at servicexp.com Mon Jan 8 13:07:34 2007 From: robert at servicexp.com (Robert) Date: Mon, 8 Jan 2007 14:07:34 -0500 Subject: [AccessD] Outlook In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C068DEB11@natexch.jenkens.com> Message-ID: <000601c73358$422ad370$6501a8c0@roberts> Hello, Does anyone know how to get Outlook to leave e-mail with certain subject lines on the server, basically to ignore them? 2002 or 2003. Thanks Robert From Jim.Hale at FleetPride.com Mon Jan 8 15:44:12 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Jan 2007 15:44:12 -0600 Subject: [AccessD] Create parameter that holds the source control? DOH ! Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1DD@corp-es01.fleetpride.com> I think this does what you want. I wish I could take credit for it but Mike Toole is the genius behind it. or to pop up a zoom box in any text box where your cursor is and you have "Set mclsZoomText.TextBox = ActiveControl" HTH Jim Hale in your form: Private mclsZoomText As mtZoomText Private Sub Form_Open(Cancel As Integer) Set mclsZoomText = New mtZoomText End Sub in each text field you want the zoom box to work: Private Sub Description_Enter() Set mclsZoomText.TextBox = ActiveControl End Sub Here is the magic class: (create a class module and drop in this code) Option Compare Database Option Explicit ' Helper class to Zoom a textbox ' Copyright Mike Toole Office IT Limited 2004 ' You are free to adapt this code for your own applications, ' but please include a credit Const cPopUpFormName As String = "frmZoom" Private mfrmPopUp As Access.Form Private WithEvents mTextBox As Access.TextBox Private WithEvents mCmdSave As Access.CommandButton Private mScreenWidth As Long Private mScreenheight As Long Private mTwipsPerPixelX As Long Private mTwipsPerPixelY As Long Public Property Set TextBox(TextBox As TextBox) Set mTextBox = TextBox ' Make sure the Keypress event is hooked mTextBox.OnKeyDown = "[Event Procedure]" End Property Private Sub Class_Initialize() GetScreenSize End Sub Private Sub mCmdSave_Click() If Nz(mTextBox) <> Nz(mfrmPopUp.txtZoom) Then mTextBox.Value = mfrmPopUp.txtZoom DoCmd.Close acForm, cPopUpFormName End Sub Private Sub mTextBox_KeyDown(KeyCode As Integer, Shift As Integer) If (Shift And acShiftMask) And (KeyCode = vbKeyF2) Or _ (Shift And acAltMask) And (KeyCode = vbKeyZ) Then ' Throw away the Keycode so that the Access ' Zoom function isn't triggered as well KeyCode = 0 ' Get the control's co-ordinates while it still has the focus Dim ctlRect As RECT_Type apiGetWindowRect GetFocus(), ctlRect 'Open the zoom form, hidden to prevent any flash on repositioning DoCmd.OpenForm cPopUpFormName, WindowMode:=acHidden Set mfrmPopUp = Forms(cPopUpFormName) With mfrmPopUp ' Hook-on to the form's keystrokes Set mCmdSave = Nothing Set mCmdSave = .Controls!cmdSave mCmdSave.OnClick = "[Event Procedure]" ' Assign the current value of the zoomed text box to the zoom form's text box .txtZoom.Value = mTextBox.Text .txtZoom.FontName = mTextBox.FontName .txtZoom.FontSize = mTextBox.FontSize .txtZoom.SelLength = 0 ' Position the zoom form on the zoomed control MoveSizeZoom ctlRect ' Show it mfrmPopUp.Visible = True End With End If End Sub PART 2 TO FOLLOW --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Acces User Group" Subject: [AccessD] Create parameter that holds the source control? Date: 08/01/07 09:25 Hi, I need to create a zoom form. E.g.: I've got a textbox that can store let's say 200(+) chars. I don't want to create a textbox that large. So if the user double clicks on it I want to open a form with a large textfield. The user can type the info in this large textbox and send the data back after pressing ok. Sounds easy.... I've created a function that does this. However, it's not generic. I want add a parameter in wich I store the Form and Control of it's origin. How do I create a parameter in wich I store the 'source control'? This parameter is later used to return the data to the correct control. Regards, Sander *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Mon Jan 8 15:47:39 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Jan 2007 15:47:39 -0600 Subject: [AccessD] Create parameter that holds the source control? DOH ! Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1DF@corp-es01.fleetpride.com> PART 3 This code goes into a regular module: Option Compare Database Option Explicit Type RECT_Type Left As Long Top As Long Right As Long Bottom As Long End Type Declare Function apiGetWindowRect Lib "User32" _ Alias "GetWindowRect" (ByVal hwnd As Long, _ lpRect As RECT_Type) As Long Declare Function apiMoveWindow Lib "User32" _ Alias "MoveWindow" (ByVal hwnd As Long, _ ByVal x As Long, ByVal y As Long, _ ByVal w As Long, ByVal h As Long, _ ByVal bRepaint As Long) As Long Declare Function GetFocus Lib "User32" () As Long Declare Function GetSystemMetrics Lib "User32" _ (ByVal nIndex As Long) As Long Declare Function GetDC Lib "User32" _ (ByVal hwnd As Long) As Long Declare Function ReleaseDC Lib "User32" _ (ByVal hwnd As Long, ByVal hdc As Long) As Long Declare Function GetDeviceCaps Lib "gdi32" _ (ByVal hdc As Long, ByVal nIndex As Long) As Long *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From Jim.Hale at FleetPride.com Mon Jan 8 15:50:10 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Jan 2007 15:50:10 -0600 Subject: [AccessD] Create parameter that holds the source control? DOH ! PART 1 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1E0@corp-es01.fleetpride.com> I think this does what you want. I wish I could take credit for it but Mike Toole is the genius behind it. or to pop up a zoom box in any text box where your cursor is and you have "Set mclsZoomText.TextBox = ActiveControl" HTH Jim Hale in your form: Private mclsZoomText As mtZoomText Private Sub Form_Open(Cancel As Integer) Set mclsZoomText = New mtZoomText End Sub in each text field you want the zoom box to work: Private Sub Description_Enter() Set mclsZoomText.TextBox = ActiveControl End Sub Here is the magic class: (create a class module and drop in this code) Option Compare Database Option Explicit ' Helper class to Zoom a textbox ' Copyright Mike Toole Office IT Limited 2004 ' You are free to adapt this code for your own applications, ' but please include a credit Const cPopUpFormName As String = "frmZoom" Private mfrmPopUp As Access.Form Private WithEvents mTextBox As Access.TextBox Private WithEvents mCmdSave As Access.CommandButton Private mScreenWidth As Long Private mScreenheight As Long Private mTwipsPerPixelX As Long Private mTwipsPerPixelY As Long Public Property Set TextBox(TextBox As TextBox) Set mTextBox = TextBox ' Make sure the Keypress event is hooked mTextBox.OnKeyDown = "[Event Procedure]" End Property Private Sub Class_Initialize() GetScreenSize End Sub Private Sub mCmdSave_Click() If Nz(mTextBox) <> Nz(mfrmPopUp.txtZoom) Then mTextBox.Value = mfrmPopUp.txtZoom DoCmd.Close acForm, cPopUpFormName End Sub Private Sub mTextBox_KeyDown(KeyCode As Integer, Shift As Integer) If (Shift And acShiftMask) And (KeyCode = vbKeyF2) Or _ (Shift And acAltMask) And (KeyCode = vbKeyZ) Then ' Throw away the Keycode so that the Access ' Zoom function isn't triggered as well KeyCode = 0 ' Get the control's co-ordinates while it still has the focus Dim ctlRect As RECT_Type apiGetWindowRect GetFocus(), ctlRect 'Open the zoom form, hidden to prevent any flash on repositioning DoCmd.OpenForm cPopUpFormName, WindowMode:=acHidden Set mfrmPopUp = Forms(cPopUpFormName) With mfrmPopUp ' Hook-on to the form's keystrokes Set mCmdSave = Nothing Set mCmdSave = .Controls!cmdSave mCmdSave.OnClick = "[Event Procedure]" ' Assign the current value of the zoomed text box to the zoom form's text box .txtZoom.Value = mTextBox.Text .txtZoom.FontName = mTextBox.FontName .txtZoom.FontSize = mTextBox.FontSize .txtZoom.SelLength = 0 ' Position the zoom form on the zoomed control MoveSizeZoom ctlRect ' Show it mfrmPopUp.Visible = True End With End If End Sub PART 2 TO FOLLOW *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Mon Jan 8 16:09:59 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Jan 2007 14:09:59 -0800 Subject: [AccessD] Create parameter that holds the source control? In-Reply-To: <20070108092324.64810.qmail@web31611.mail.mud.yahoo.com> Message-ID: We simply use Screen.ActiveControl like this: Set gctlZoom = Screen.ActiveControl DoCmd.OpenForm "frmZoom", acNormal, , , acFormPropertySettings, acDialog If IsLoaded("frmZoom") Then If intDataMode <> acFormReadOnly Then gctlZoom = Forms!frmZoom!txtMemo End If DoCmd.Close acForm, "frmZoom" End If Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Monday, January 08, 2007 1:23 AM To: Acces User Group Subject: [AccessD] Create parameter that holds the source control? Hi, I need to create a zoom form. E.g.: I've got a textbox that can store let's say 200(+) chars. I don't want to create a textbox that large. So if the user double clicks on it I want to open a form with a large textfield. The user can type the info in this large textbox and send the data back after pressing ok. Sounds easy.... I've created a function that does this. However, it's not generic. I want add a parameter in wich I store the Form and Control of it's origin. How do I create a parameter in wich I store the 'source control'? This parameter is later used to return the data to the correct control. Regards, Sander __________________________________________________ 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 Jim.Hale at FleetPride.com Mon Jan 8 16:13:10 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Jan 2007 16:13:10 -0600 Subject: [AccessD] Create parameter that holds the source control? DOH ! Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1E2@corp-es01.fleetpride.com> I can't seem to sent all the code to this solution. Anyone who wants a zoom box let me know and I will email a sample database. Sorry for all the emails Jim Hale *********************************************************************** 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 szayko at secor.com Mon Jan 8 16:32:32 2007 From: szayko at secor.com (Steve Zayko) Date: Mon, 8 Jan 2007 14:32:32 -0800 Subject: [AccessD] Allow Edits Message-ID: <5D71EC0BA06F7C41B6088EF70CA4014E1B99D9@exchangecolo.secor.com> I have a control that turns on and off the "AllowEdits" property on a form. This form also have several sub-forms embedded on it. If I turn off the AllowEdits property on the main form, then must I also do the same for each and every sub-form? Thanks -Z Stephen R. Zayko PE SECOR International Inc 2321 Club Meridian Drive Ste E Okemos, MI 48864 (517) 349-9499 ext 224 (517) 204-5136 (c) From andy at minstersystems.co.uk Mon Jan 8 16:40:33 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 8 Jan 2007 22:40:33 -0000 Subject: [AccessD] Allow Edits In-Reply-To: <5D71EC0BA06F7C41B6088EF70CA4014E1B99D9@exchangecolo.secor.com> Message-ID: <01f201c73376$05037a60$89970c54@minster33c3r25> You can do it with a loop Steve. Something like Function SubFormAllowEdits(blnOnOrOff As Boolean) Dim ctl as control For each ctl in me.controls if ctl.ControlType = acSubform then ctl.Form.AllowEdits=blnOnOrOff end if Next End Function Not tested but shouldn't be far off (I hope). -- 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 Zayko > Sent: 08 January 2007 22:33 > To: Access Developers discussion and problem solving > Subject: [AccessD] Allow Edits > > > I have a control that turns on and off the "AllowEdits" > property on a form. This form also have several sub-forms > embedded on it. > > If I turn off the AllowEdits property on the main form, then > must I also do the same for each and every sub-form? > > Thanks > > -Z > > Stephen R. Zayko PE > SECOR International Inc > 2321 Club Meridian Drive Ste E > Okemos, MI 48864 > > (517) 349-9499 ext 224 > (517) 204-5136 (c) > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From szayko at secor.com Mon Jan 8 16:52:18 2007 From: szayko at secor.com (Steve Zayko) Date: Mon, 8 Jan 2007 14:52:18 -0800 Subject: [AccessD] Allow Edits Message-ID: <5D71EC0BA06F7C41B6088EF70CA4014E1B9A1F@exchangecolo.secor.com> Dang. I was hoping that the properties of the main form would be super-imposed on the sub-forms. Thanks for the easy solution. -Z Stephen R. Zayko PE SECOR International Inc 2321 Club Meridian Drive Ste E Okemos, MI 48864 (517) 349-9499 ext 224 (517) 204-5136 (c) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Monday, January 08, 2007 5:41 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Allow Edits You can do it with a loop Steve. Something like Function SubFormAllowEdits(blnOnOrOff As Boolean) Dim ctl as control For each ctl in me.controls if ctl.ControlType = acSubform then ctl.Form.AllowEdits=blnOnOrOff end if Next End Function Not tested but shouldn't be far off (I hope). -- 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 Zayko > Sent: 08 January 2007 22:33 > To: Access Developers discussion and problem solving > Subject: [AccessD] Allow Edits > > > I have a control that turns on and off the "AllowEdits" > property on a form. This form also have several sub-forms embedded on > it. > > If I turn off the AllowEdits property on the main form, then must I > also do the same for each and every sub-form? > > Thanks > > -Z > > Stephen R. Zayko PE > SECOR International Inc > 2321 Club Meridian Drive Ste E > Okemos, MI 48864 > > (517) 349-9499 ext 224 > (517) 204-5136 (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 darrend at nimble.com.au Mon Jan 8 17:39:54 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 9 Jan 2007 10:39:54 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <00c801c732a5$4d789810$0202fea9@BPCS> Message-ID: <200701082339.l08NdxR32240@databaseadvisors.com> Hi Bill thanks for the reply - No the batch file doesn't open any new batch files - they both run processing the same lines as the other side by side Many thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: Bill Patten [mailto:bill_Patten at earthlink.net] Sent: Monday, 8 January 2007 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows hi Daren, It's Sunday and not many appear to be working today so I'll take a SWAG. Is it possible that the Shell command is opening a dos window to open the batch file, then the batch file is opening a dos widow to do it's thing.??? Bill ----- Original Message ----- From: "Darren DICK" To: "'Access Developers discussion and problem solving'" Sent: Sunday, January 07, 2007 1:35 PM Subject: [AccessD] A2003:Shell opens 2 DOS windows Hi Team I use the line below to open and 'run' a batch file Call Shell(strFileName) Can anyone tell me why 2 dos (Command) windows open? The syntax is valid - everything is cool - but 2 of them open up and then start trying to process the lines in the batch file And no. There is not some second call buried elsewhere in the code Many thanks Have a great day 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 darrend at nimble.com.au Mon Jan 8 17:39:54 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 9 Jan 2007 10:39:54 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <45A16AA0.31421.252AC55F@stuart.lexacorp.com.pg> Message-ID: <200701082339.l08NdxR32241@databaseadvisors.com> Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Jan 8 17:50:30 2007 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 8 Jan 2007 17:50:30 -0600 Subject: [AccessD] Outlook In-Reply-To: <9518166.1168283596731.JavaMail.root@sniper61> Message-ID: <00a701c7337f$c7f6c550$0200a8c0@danwaters> Robert, Take a look at the Rules Wizard - you can set up a variety of actions to take based on a variety of conditions! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, January 08, 2007 1:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Hello, Does anyone know how to get Outlook to leave e-mail with certain subject lines on the server, basically to ignore them? 2002 or 2003. Thanks Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Jan 8 18:19:06 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 08 Jan 2007 16:19:06 -0800 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <200701082339.l08NdxR32241@databaseadvisors.com> Message-ID: <0JBK009JHRGNTPO0@l-daemon> Hi Darren: This is an old suggestion from the DOS days but I was wondering if the batch file needed a carriage return to start it running. The old method worked something as follows: Given your batch file name is Darren.bat then a file named return.txt would be created. First create a txt file named return.txt with one letter/number in it, like a capital 'A' and save it. Then edit the file using the DOS debug command: 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex '41' to a Return hex value of '0D'. Then save the return.txt file and exit. Now the return.txt file can be used as a Return value provider, at the command prompt like: Darren.bat < return.txt The previous is a simple sample but very complex value provider files can be created as well HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 3:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- 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 robert at servicexp.com Mon Jan 8 18:45:03 2007 From: robert at servicexp.com (Robert) Date: Mon, 8 Jan 2007 19:45:03 -0500 Subject: [AccessD] Outlook In-Reply-To: <00a701c7337f$c7f6c550$0200a8c0@danwaters> Message-ID: <001001c73387$679889c0$6501a8c0@roberts> Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" or such isn't one of them... I don't think it is possible with Outlook.. :-( Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, January 08, 2007 6:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Robert, Take a look at the Rules Wizard - you can set up a variety of actions to take based on a variety of conditions! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, January 08, 2007 1:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Hello, Does anyone know how to get Outlook to leave e-mail with certain subject lines on the server, basically to ignore them? 2002 or 2003. Thanks Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Jan 8 18:51:08 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 9 Jan 2007 11:51:08 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <0JBK009JHRGNTPO0@l-daemon> Message-ID: <200701090051.l090pER22467@databaseadvisors.com> Hi Jim This looks really interesting When I went to a DOS window (In the same folder I created the return.txt file) and typed 'debug return.txt' (without the quotes) the DOS window changed size and I was presented with a new line and what looked like a hyphen ( - ) at the beginning o the new line. I was able to type stuff there but hitting 'enter' yielded an error and after typing in 0D there was no way to save this and I did not see the expected Hex 41 Did I do something wrong? Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: This is an old suggestion from the DOS days but I was wondering if the batch file needed a carriage return to start it running. The old method worked something as follows: Given your batch file name is Darren.bat then a file named return.txt would be created. First create a txt file named return.txt with one letter/number in it, like a capital 'A' and save it. Then edit the file using the DOS debug command: 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex '41' to a Return hex value of '0D'. Then save the return.txt file and exit. Now the return.txt file can be used as a Return value provider, at the command prompt like: Darren.bat < return.txt The previous is a simple sample but very complex value provider files can be created as well HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 3:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- 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 stuart at lexacorp.com.pg Mon Jan 8 19:49:03 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 09 Jan 2007 11:49:03 +1000 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <200701090051.l090pER22467@databaseadvisors.com> References: <0JBK009JHRGNTPO0@l-daemon>, <200701090051.l090pER22467@databaseadvisors.com> Message-ID: <45A2F48F.15189.2B2D8C50@stuart.lexacorp.com.pg> Ah, god old Debug - haven't used that one for years. Have a look at http://www.armory.com/~rstevew/Public/Tutor/Debug/debug-manual.html On 9 Jan 2007 at 11:51, Darren DICK wrote: > Hi Jim > > This looks really interesting > > When I went to a DOS window (In the same folder I created the return.txt > file) and typed 'debug return.txt' (without the quotes) the DOS window > changed size and I was presented with a new line and what looked like a > hyphen ( - ) at the beginning o the new line. I was able to type stuff there > but hitting 'enter' yielded an error and after typing in 0D there was no way > to save this and I did not see the expected Hex 41 > > Did I do something wrong? > > Many thanks > > Have a great day > > Darren > ------------------ > T: 0424 696 433 > -----Original Message----- > From: Jim Lawrence [mailto:accessd at shaw.ca] > Sent: Tuesday, 9 January 2007 11:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows > > Hi Darren: > > This is an old suggestion from the DOS days but I was wondering if the batch > file needed a carriage return to start it running. > > The old method worked something as follows: > Given your batch file name is Darren.bat then a file named return.txt would > be created. > > First create a txt file named return.txt with one letter/number in it, like > a capital 'A' and save it. Then edit the file using the DOS debug command: > > 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex > '41' to a Return hex value of '0D'. Then save the return.txt file and exit. > > Now the return.txt file can be used as a Return value provider, at the > command prompt like: > > Darren.bat < return.txt > > The previous is a simple sample but very complex value provider files can be > created as well > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, January 08, 2007 3:40 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows > > Hi Stuart > > The batch file works fine if I double click it by the way > Just not if I issue the Shell Command to it from Access > > - the batch file and its path are not the issue - I don't think > > >> What are in strFileName and the batch file? > > String File name is the path to the batch file - it is all cool > > Again - the batch file works fine and as desired if double clicked but not > when Shelled to by Access > > The batch file is full of repetitive lines like... > > (xml_creation.rb is a Ruby App we wrote ourselves) > > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a > sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a > sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a > sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10124 > > Many thanks > > Have a great day > > Darren > ------------------ > T: 0424 696 433 > > -----Original Message----- > From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] > Sent: Monday, 8 January 2007 8:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows > > Wjhat are in strFileName and the batch file? > > On 8 Jan 2007 at 8:35, Darren DICK wrote: > > > I use the line below to open and 'run' a batch file > > > > Call Shell(strFileName) > > > > Can anyone tell me why 2 dos (Command) windows open? > > > > The syntax is valid - everything is cool - but 2 of them open up and then > > start trying to process the lines in the batch file > > > > And no. There is not some second call buried elsewhere in the code > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From accessd at shaw.ca Mon Jan 8 19:57:46 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 08 Jan 2007 17:57:46 -0800 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <200701090051.l090pER22467@databaseadvisors.com> Message-ID: <0JBK00FFGW13PNZ0@l-daemon> Hi Darren: Debug has a number of commands options. The debug /? Or the help debug commands no longer product anything useful but if you go to http://www.microsoft.com/technet/archive/msdos/comm2.mspx?mfr=true there is a definitive list options and parameters. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Jim This looks really interesting When I went to a DOS window (In the same folder I created the return.txt file) and typed 'debug return.txt' (without the quotes) the DOS window changed size and I was presented with a new line and what looked like a hyphen ( - ) at the beginning o the new line. I was able to type stuff there but hitting 'enter' yielded an error and after typing in 0D there was no way to save this and I did not see the expected Hex 41 Did I do something wrong? Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: This is an old suggestion from the DOS days but I was wondering if the batch file needed a carriage return to start it running. The old method worked something as follows: Given your batch file name is Darren.bat then a file named return.txt would be created. First create a txt file named return.txt with one letter/number in it, like a capital 'A' and save it. Then edit the file using the DOS debug command: 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex '41' to a Return hex value of '0D'. Then save the return.txt file and exit. Now the return.txt file can be used as a Return value provider, at the command prompt like: Darren.bat < return.txt The previous is a simple sample but very complex value provider files can be created as well HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 3:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Jan 8 20:05:28 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 9 Jan 2007 13:05:28 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <45A2F48F.15189.2B2D8C50@stuart.lexacorp.com.pg> Message-ID: <200701090205.l0925UR13834@databaseadvisors.com> Hi Stuart Thanks for the reply But like I replied to Jim - I have the IQ of cloth - too tricky for me Thanks Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, 9 January 2007 12:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Ah, god old Debug - haven't used that one for years. Have a look at http://www.armory.com/~rstevew/Public/Tutor/Debug/debug-manual.html On 9 Jan 2007 at 11:51, Darren DICK wrote: > Hi Jim > > This looks really interesting > > When I went to a DOS window (In the same folder I created the return.txt > file) and typed 'debug return.txt' (without the quotes) the DOS window > changed size and I was presented with a new line and what looked like a > hyphen ( - ) at the beginning o the new line. I was able to type stuff there > but hitting 'enter' yielded an error and after typing in 0D there was no way > to save this and I did not see the expected Hex 41 > > Did I do something wrong? > > Many thanks > > Have a great day > > Darren > ------------------ > T: 0424 696 433 > -----Original Message----- > From: Jim Lawrence [mailto:accessd at shaw.ca] > Sent: Tuesday, 9 January 2007 11:19 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows > > Hi Darren: > > This is an old suggestion from the DOS days but I was wondering if the batch > file needed a carriage return to start it running. > > The old method worked something as follows: > Given your batch file name is Darren.bat then a file named return.txt would > be created. > > First create a txt file named return.txt with one letter/number in it, like > a capital 'A' and save it. Then edit the file using the DOS debug command: > > 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex > '41' to a Return hex value of '0D'. Then save the return.txt file and exit. > > Now the return.txt file can be used as a Return value provider, at the > command prompt like: > > Darren.bat < return.txt > > The previous is a simple sample but very complex value provider files can be > created as well > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Monday, January 08, 2007 3:40 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows > > Hi Stuart > > The batch file works fine if I double click it by the way > Just not if I issue the Shell Command to it from Access > > - the batch file and its path are not the issue - I don't think > > >> What are in strFileName and the batch file? > > String File name is the path to the batch file - it is all cool > > Again - the batch file works fine and as desired if double clicked but not > when Shelled to by Access > > The batch file is full of repetitive lines like... > > (xml_creation.rb is a Ruby App we wrote ourselves) > > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a > sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a > sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a > sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE > -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** > xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p > PASSWORDHERE -i 10124 > > Many thanks > > Have a great day > > Darren > ------------------ > T: 0424 696 433 > > -----Original Message----- > From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] > Sent: Monday, 8 January 2007 8:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows > > Wjhat are in strFileName and the batch file? > > On 8 Jan 2007 at 8:35, Darren DICK wrote: > > > I use the line below to open and 'run' a batch file > > > > Call Shell(strFileName) > > > > Can anyone tell me why 2 dos (Command) windows open? > > > > The syntax is valid - everything is cool - but 2 of them open up and then > > start trying to process the lines in the batch file > > > > And no. There is not some second call buried elsewhere in the code > -- > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Mon Jan 8 20:05:28 2007 From: darrend at nimble.com.au (Darren DICK) Date: Tue, 9 Jan 2007 13:05:28 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <0JBK00FFGW13PNZ0@l-daemon> Message-ID: <200701090205.l0925UR13838@databaseadvisors.com> Way over the top of my head - I am a luddite Thanks anyway Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: Debug has a number of commands options. The debug /? Or the help debug commands no longer product anything useful but if you go to http://www.microsoft.com/technet/archive/msdos/comm2.mspx?mfr=true there is a definitive list options and parameters. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Jim This looks really interesting When I went to a DOS window (In the same folder I created the return.txt file) and typed 'debug return.txt' (without the quotes) the DOS window changed size and I was presented with a new line and what looked like a hyphen ( - ) at the beginning o the new line. I was able to type stuff there but hitting 'enter' yielded an error and after typing in 0D there was no way to save this and I did not see the expected Hex 41 Did I do something wrong? Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: This is an old suggestion from the DOS days but I was wondering if the batch file needed a carriage return to start it running. The old method worked something as follows: Given your batch file name is Darren.bat then a file named return.txt would be created. First create a txt file named return.txt with one letter/number in it, like a capital 'A' and save it. Then edit the file using the DOS debug command: 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex '41' to a Return hex value of '0D'. Then save the return.txt file and exit. Now the return.txt file can be used as a Return value provider, at the command prompt like: Darren.bat < return.txt The previous is a simple sample but very complex value provider files can be created as well HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 3:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Jan 8 22:59:20 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 08 Jan 2007 20:59:20 -0800 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <200701090205.l0925UR13838@databaseadvisors.com> Message-ID: <0JBL00AHE4FNKIE0@l-daemon> Hi Darren: The process is fairly simple. Once you have created a file with one letter in it for simple purposed say it is 'A'. This is done in notepad as it adds no extra bytes for formatting. 1. Now save the notepad created file under the name return.txt into a specific directory like c:\temp 2. Start>run>'cmd' to get to the command prompt. 3. Navigate to the temp directory. 4. debug return.txt 5. -d 'Displays the first 128 bytes. Notice the first byte is 41 which it a capital 'A' in hex. 6. -e 0100 'You will see the following 7. xxxx.0100 41. 'You write 0D, for return. 8. xxxx.0100 41.0D '...and then press 9. -w to write the changes back to file. 10. -q to quit the debug mode. Now you have a file called return.txt with a single unprintable object, a return. Now you can use this file as to provide a 'return' value as if was manually performed like so: Darren.bat < c:\temp\return.txt HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 6:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Way over the top of my head - I am a luddite Thanks anyway Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: Debug has a number of commands options. The debug /? Or the help debug commands no longer product anything useful but if you go to http://www.microsoft.com/technet/archive/msdos/comm2.mspx?mfr=true there is a definitive list options and parameters. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Jim This looks really interesting When I went to a DOS window (In the same folder I created the return.txt file) and typed 'debug return.txt' (without the quotes) the DOS window changed size and I was presented with a new line and what looked like a hyphen ( - ) at the beginning o the new line. I was able to type stuff there but hitting 'enter' yielded an error and after typing in 0D there was no way to save this and I did not see the expected Hex 41 Did I do something wrong? Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: This is an old suggestion from the DOS days but I was wondering if the batch file needed a carriage return to start it running. The old method worked something as follows: Given your batch file name is Darren.bat then a file named return.txt would be created. First create a txt file named return.txt with one letter/number in it, like a capital 'A' and save it. Then edit the file using the DOS debug command: 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex '41' to a Return hex value of '0D'. Then save the return.txt file and exit. Now the return.txt file can be used as a Return value provider, at the command prompt like: Darren.bat < return.txt The previous is a simple sample but very complex value provider files can be created as well HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 3:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Johncliviger at aol.com Tue Jan 9 04:58:00 2007 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Tue, 9 Jan 2007 05:58:00 EST Subject: [AccessD] Changing colors on many controls on one Form Message-ID: Good morning all I've just been asked by a user if the backcolor can be changed when that control has got focus and changes back to original when it looses focus. Yeah thats OK I can handle that no problems. But with 30+ controls going to each control and adding one line of code to change the backcolor and change it back on each got and lost focus property is a pain. And next week the user will ask "can we have a different color". This job labour intensive so is there a more elegant approach to this simple but boring job?? TIA johnc From jwcolby at colbyconsulting.com Tue Jan 9 05:42:14 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 9 Jan 2007 06:42:14 -0500 Subject: [AccessD] Changing colors on many controls on one Form In-Reply-To: Message-ID: <001101c733e3$359bbc60$ccb6fea9@m6805> LOL, yep, a control class and a form class that has a scanner. The scanner loads an instance of the control class for each control of a given type (text box, combo etc). The control class sinks the focus events and changes the colors. In fact I have a demo of the concept on my web site. Goto www.colbyconsulting.com Register if you have not already done so. Click Example Code / Withevents Demo Click BackColorWithevents.zip. Then read up a bit. Click ExampleCode C2DbFW3G Articles. Select Supervisors in the menu to the left. That will give you a simple form class with the control scanner. Next select Control classes to see how to hook up control classes to the form class. You would then want a SysVars class to store the back color along with any other application variables. Click ExampleCode C2DbFW3G Articles. Select System Variables (sysvar) from the menu on the left side of the page. And you are on your way to a framework where other things of the kind of thing you are discussing can be added easily and quickly in the future. This stuff is not rocket science. If you can program events in your form you can understand and use this stuff. Once you do you will wonder how you ever got along without it. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: Tuesday, January 09, 2007 5:58 AM To: accessD at databaseadvisors.com Subject: [AccessD] Changing colors on many controls on one Form Good morning all I've just been asked by a user if the backcolor can be changed when that control has got focus and changes back to original when it looses focus. Yeah thats OK I can handle that no problems. But with 30+ controls going to each control and adding one line of code to change the backcolor and change it back on each got and lost focus property is a pain. And next week the user will ask "can we have a different color". This job labour intensive so is there a more elegant approach to this simple but boring job?? TIA johnc -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Tue Jan 9 05:45:41 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 9 Jan 2007 06:45:41 -0500 Subject: [AccessD] Changing colors on many controls on one Form References: Message-ID: <002701c733e3$b8239180$0302a8c0@default> Yes, the answer is to use WithEvents Take a look here: http://www.databaseadvisors.com/newsletters.asp First look at 'Preface to Tezt Box Class' and then 'Text Box Class' I'm certain that there are a few people here who can answer any questions you may have. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: Sent: Tuesday, January 09, 2007 5:58 AM Subject: [AccessD] Changing colors on many controls on one Form > Good morning all > > I've just been asked by a user if the backcolor can be changed when that > control has got focus and changes back to original when it looses focus. > Yeah > thats OK I can handle that no problems. But with 30+ controls going to > each > control and adding one line of code to change the backcolor and change it > back > on each got and lost focus property is a pain. And next week the user > will ask > "can we have a different color". > > This job labour intensive so is there a more elegant approach to this > simple > but boring job?? > > TIA > > johnc > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jan 9 05:49:56 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 9 Jan 2007 06:49:56 -0500 Subject: [AccessD] Changing colors on many controls on one Form In-Reply-To: <002701c733e3$b8239180$0302a8c0@default> Message-ID: <001201c733e4$4a148f90$ccb6fea9@m6805> OMG, would you look at the dates on those. I feel old all of a sudden. I sure feel better knowing someone is listening! ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Tuesday, January 09, 2007 6:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Changing colors on many controls on one Form Yes, the answer is to use WithEvents Take a look here: http://www.databaseadvisors.com/newsletters.asp First look at 'Preface to Tezt Box Class' and then 'Text Box Class' I'm certain that there are a few people here who can answer any questions you may have. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: To: Sent: Tuesday, January 09, 2007 5:58 AM Subject: [AccessD] Changing colors on many controls on one Form > Good morning all > > I've just been asked by a user if the backcolor can be changed when that > control has got focus and changes back to original when it looses focus. > Yeah > thats OK I can handle that no problems. But with 30+ controls going to > each > control and adding one line of code to change the backcolor and change it > back > on each got and lost focus property is a pain. And next week the user > will ask > "can we have a different color". > > This job labour intensive so is there a more elegant approach to this > simple > but boring job?? > > TIA > > johnc > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Tue Jan 9 06:00:37 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 9 Jan 2007 07:00:37 -0500 Subject: [AccessD] Changing colors on many controls on one Form References: <001201c733e4$4a148f90$ccb6fea9@m6805> Message-ID: <004301c733e5$c77fb030$0302a8c0@default> Same here. I wasn't aware of your site features. I'll be looking into that ASAP. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "JWColby" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, January 09, 2007 6:49 AM Subject: Re: [AccessD] Changing colors on many controls on one Form > OMG, would you look at the dates on those. I feel old all of a sudden. > > I sure feel better knowing someone is listening! ;-) > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R > Mattys > Sent: Tuesday, January 09, 2007 6:46 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Changing colors on many controls on one Form > > Yes, the answer is to use WithEvents > > Take a look here: > http://www.databaseadvisors.com/newsletters.asp > First look at 'Preface to Tezt Box Class' and then 'Text Box Class' > > I'm certain that there are a few people here who can answer any questions > you may have. > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: > To: > Sent: Tuesday, January 09, 2007 5:58 AM > Subject: [AccessD] Changing colors on many controls on one Form > > >> Good morning all >> >> I've just been asked by a user if the backcolor can be changed when that >> control has got focus and changes back to original when it looses focus. >> Yeah >> thats OK I can handle that no problems. But with 30+ controls going to >> each >> control and adding one line of code to change the backcolor and change >> it > >> back >> on each got and lost focus property is a pain. And next week the user >> will ask >> "can we have a different color". >> >> This job labour intensive so is there a more elegant approach to this >> simple >> but boring job?? >> >> TIA >> >> johnc >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Jan 9 08:01:30 2007 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Jan 2007 08:01:30 -0600 Subject: [AccessD] Changing colors on many controls on one Form In-Reply-To: <11337769.1168340736473.JavaMail.root@sniper65> Message-ID: <00a601c733f6$aa670c80$0200a8c0@danwaters> John, You could use Conditional Formatting. First, select all the controls (must be textboxes or comboboxes). Then, under Formatting, select Conditional Formatting (you need to get into Conditional Formatting this way for many controls at once.) Use the 'Field has Focus' option, select a background color, and OK. This sets up the background color for all the selected controls at once. Conditional formatting has many other options as well. Dan Waters -----Original Message----- Subject: [AccessD] Changing colors on many controls on one Form Good morning all I've just been asked by a user if the backcolor can be changed when that control has got focus and changes back to original when it looses focus. Yeah thats OK I can handle that no problems. But with 30+ controls going to each control and adding one line of code to change the backcolor and change it back on each got and lost focus property is a pain. And next week the user will ask "can we have a different color". This job labour intensive so is there a more elegant approach to this simple but boring job?? TIA johnc -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jim.Hale at FleetPride.com Mon Jan 8 15:58:03 2007 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 8 Jan 2007 15:58:03 -0600 Subject: [AccessD] Create parameter that holds the source control? DOH ! PART 2 Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB67727DE1E1@corp-es01.fleetpride.com> PART 2 PART 2 Sub MoveSizeZoom(ctlRect As RECT_Type) ' Popup=Yes must be set on the zoom form mfrmPopUp ' ------------------------------------------------ ' Border width for the pop-up Const cBorderPixels As Long = 1 ' Width for the Anchor control Const cAnchorWidthPixels As Long = 4 ' Get the co-ords of the midpoint of the zoomed control Dim lngOffsetX As Long Dim lngOffsetY As Long lngOffsetX = (ctlRect.Right - ctlRect.Left) / 2 Dim lngBorderTwipsX As Long Dim lngBorderTwipsY As Long lngBorderTwipsX = cBorderPixels * mTwipsPerPixelX lngBorderTwipsY = cBorderPixels * mTwipsPerPixelY Dim lngPopWidth As Long, lngPopHeight As Long Dim lngPopX As Long Dim lngPopY As Long With mfrmPopUp ' Round the zoom text box size to a number of pixels .txtZoom.Height = (.txtZoom.Height \ mTwipsPerPixelY) * mTwipsPerPixelY .txtZoom.Width = (.txtZoom.Width \ mTwipsPerPixelX) * mTwipsPerPixelX ' Round the command button heights to a number of pixels .cmdSave.Height = (.cmdSave.Height \ mTwipsPerPixelY) * mTwipsPerPixelY .cmdCancel.Height = .cmdSave.Height ' Set the Anchor width .shpAnchor.Width = cAnchorWidthPixels * mTwipsPerPixelX ' Set the anchor height .shpAnchor.Height = (ctlRect.Bottom - ctlRect.Top) * mTwipsPerPixelY ' Set the form width .Width = .txtZoom.Width + lngBorderTwipsX + .shpAnchor.Width ' Position the zoom textbox and the command buttons .txtZoom.Top = lngBorderTwipsY + mTwipsPerPixelY ' Seem to need an extra Pixel .cmdSave.Top = .txtZoom.Top + .txtZoom.Height + 3 * mTwipsPerPixelY .cmdCancel.Top = .cmdSave.Top ' Make sure that the Anchor's out of the way before resizing .shpAnchor.Top = 0 'Set the Detail height to fit the zoom textbox, the command buttons and some space .Section(acDetail).Height = .txtZoom.Height + lngBorderTwipsY + .cmdCancel.Height + (6 * mTwipsPerPixelY) ' Fix the window width/height to fit the detail section lngPopWidth = .Width / mTwipsPerPixelX lngPopHeight = (.Section(acDetail).Height / mTwipsPerPixelY) ' Find the vertical position for the pop-up form If ctlRect.Top + lngOffsetY + lngPopHeight <= mScreenheight Then ' The zoom form orients downwards of the zoomed control lngPopY = ctlRect.Top ' Put the Anchor at the top mfrmPopUp.shpAnchor.Top = 0 Else ' The zoom form orients upwards of the zoomed control lngPopY = ctlRect.Bottom - lngPopHeight ' Put the Anchor at the bottom mfrmPopUp.shpAnchor.Top = .Section(acDetail).Height - .shpAnchor.Height End If ' Find the horizontal position for the pop-up form If ctlRect.Left + lngOffsetX + lngPopWidth <= mScreenWidth Then ' Attach left corner of Popup lngPopX = ctlRect.Left + lngOffsetX ' Show the anchor on the left .shpAnchor.Left = 0 ' Leave room for the Anchor .txtZoom.Left = .shpAnchor.Width '+ mTwipsPerPixelX Else ' Attach right corner lngPopX = ctlRect.Left - lngPopWidth + lngOffsetX ' Show the anchor on the right mfrmPopUp.shpAnchor.Left = mfrmPopUp.Width - mfrmPopUp.shpAnchor.Width + mTwipsPerPixelX ' Move the zoom textbox to the left,leaving some background as a border .txtZoom.Left = lngBorderTwipsX + mTwipsPerPixelX End If ' Position and size the window apiMoveWindow .hwnd, lngPopX, lngPopY, lngPopWidth, lngPopHeight, True End With End Sub Sub GetScreenSize() Dim dc As Long Dim lngDPIx As Long Dim lngDPIy As Long Const HWND_DESKTOP = 0 dc = GetDC(HWND_DESKTOP) lngDPIx = GetDeviceCaps(dc, 88) lngDPIy = GetDeviceCaps(dc, 90) mTwipsPerPixelX = 1440 / lngDPIx mTwipsPerPixelY = 1440 / lngDPIy ' Release the information context. Call ReleaseDC(HWND_DESKTOP, dc) mScreenWidth = GetSystemMetrics(0) ' width in points mScreenheight = GetSystemMetrics(1) ' height in points End Sub *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email. From cfoust at infostatsystems.com Tue Jan 9 10:09:36 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Jan 2007 08:09:36 -0800 Subject: [AccessD] Outlook In-Reply-To: <001001c73387$679889c0$6501a8c0@roberts> Message-ID: In Outlook 2003, at least, you can define a location for you mail to be delivered, but it doesn't give you the choice of leaving part of it on the server. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, January 08, 2007 4:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" or such isn't one of them... I don't think it is possible with Outlook.. :-( Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, January 08, 2007 6:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Robert, Take a look at the Rules Wizard - you can set up a variety of actions to take based on a variety of conditions! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, January 08, 2007 1:08 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Outlook Hello, Does anyone know how to get Outlook to leave e-mail with certain subject lines on the server, basically to ignore them? 2002 or 2003. Thanks Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lembit.dbamail at t-online.de Tue Jan 9 10:42:36 2007 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Tue, 9 Jan 2007 17:42:36 +0100 Subject: [AccessD] Outlook References: Message-ID: <001701c7340d$2b3c9bc0$1800a8c0@s1800> thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to be > delivered, but it doesn't give you the choice of leaving part of it on > the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions to > take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Tue Jan 9 10:42:32 2007 From: wdhindman at dejpolsystems.com (William Hindman) Date: Tue, 9 Jan 2007 11:42:32 -0500 Subject: [AccessD] Shell: preventing multiple instances of the app References: Message-ID: <005201c7340d$29979e50$b43fe944@50NM721> ...I'm opening a 3rd party app, non Office, using Shell ...I want to check first that an instance of the app is not already open and use that if it is ...I have a module that I use the API from to do this with Access and other Office apps but I can't figure out how to do it from Shell. ...any help appreciated :) William Hindman From robert at servicexp.com Tue Jan 9 10:55:44 2007 From: robert at servicexp.com (Robert) Date: Tue, 9 Jan 2007 11:55:44 -0500 Subject: [AccessD] Outlook In-Reply-To: <001701c7340d$2b3c9bc0$1800a8c0@s1800> Message-ID: <000601c7340f$01c4d8a0$6501a8c0@roberts> Surprisingly, as it pertains to the e-mail filters it is, well I'm not sure "better" is the way I would put it. ;-) I'm just floored Outlook does not have these, IMHO, very basic options. "All or Nothing" thinking.... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to be > delivered, but it doesn't give you the choice of leaving part of it on > the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions to > take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Jan 9 11:04:29 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 9 Jan 2007 09:04:29 -0800 Subject: [AccessD] Outlook In-Reply-To: <001701c7340d$2b3c9bc0$1800a8c0@s1800> Message-ID: Some people seem to think so! ;o} You can set up Outlook to leave the mail on the server, but your Exchange admin might get upset after a while. The problem is that Outlook rules are client side, at least the junk mail filter is, so if you want to implement the junk mail filter, you have to set up to connect to the server and download the mail to a designated location. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to be > delivered, but it doesn't give you the choice of leaving part of it on > the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions to > take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Tue Jan 9 11:21:38 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 9 Jan 2007 11:21:38 -0600 Subject: [AccessD] Outlook Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B813@cpixchng-1.CPIQPC.NET> It depends on how you have Outlook setup. If you use Outlook to send/receive Internet e-mail (ie from your ISP like you use Outlook Express for), then you do have the options to leave a copy of the messages on your server. But if you are using Outlook to attach to an Exchange server on your local network, it's simply reading the messages on the server, not removing them from the server - UNLESS - you are using a personal folder on your local hard drive to download your Exchange information to, then you are correct that you cannot filter which items to leave on the server. -----Original Message----- From: Robert [mailto:robert at servicexp.com] Sent: Tuesday, January 09, 2007 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Surprisingly, as it pertains to the e-mail filters it is, well I'm not sure "better" is the way I would put it. ;-) I'm just floored Outlook does not have these, IMHO, very basic options. "All or Nothing" thinking.... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to be > delivered, but it doesn't give you the choice of leaving part of it on > the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions to > take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From mmattys at rochester.rr.com Tue Jan 9 11:23:51 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 9 Jan 2007 12:23:51 -0500 Subject: [AccessD] Shell: preventing multiple instances of the app References: <005201c7340d$29979e50$b43fe944@50NM721> Message-ID: <00bd01c73412$ef638180$0302a8c0@default> Mebbe? http://www.pbdr.com/vbtips/api/FindCloseAPI.htm Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 11:42 AM Subject: [AccessD] Shell: preventing multiple instances of the app > ...I'm opening a 3rd party app, non Office, using Shell ...I want to check > first that an instance of the app is not already open and use that if it > is > ...I have a module that I use the API from to do this with Access and > other > Office apps but I can't figure out how to do it from Shell. > > ...any help appreciated :) > > William Hindman > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at setel.com Tue Jan 9 11:27:01 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 9 Jan 2007 12:27:01 -0500 Subject: [AccessD] Outlook In-Reply-To: Message-ID: <000801c73413$60806a40$f232fad1@SUSANONE> Some people seem to think so! ;o} You can set up Outlook to leave the mail on the server, but your Exchange admin might get upset after a while. The problem is that Outlook rules are client side, at least the junk mail filter is, so if you want to implement the junk mail filter, you have to set up to connect to the server and download the mail to a designated location. =========How would you do that? I'm not following this. Susan H. From robert at servicexp.com Tue Jan 9 11:32:31 2007 From: robert at servicexp.com (Robert) Date: Tue, 9 Jan 2007 12:32:31 -0500 Subject: [AccessD] Outlook In-Reply-To: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B813@cpixchng-1.CPIQPC.NET> Message-ID: <000001c73414$255d4bd0$6501a8c0@roberts> Usage: Outlook as client, connection to ISP. Please explain how, I can filter for a string in the subject line and upon a match ignore the message. I don't want to leave all the mail on the server, simply the messages that meet the subject criteria. It's seems to me, that it's an all or nothing deal. To leave or delete ALL the messages on the server. Your help would be MUCH appreciated if you know how to do this... Thanks Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, January 09, 2007 12:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook It depends on how you have Outlook setup. If you use Outlook to send/receive Internet e-mail (ie from your ISP like you use Outlook Express for), then you do have the options to leave a copy of the messages on your server. But if you are using Outlook to attach to an Exchange server on your local network, it's simply reading the messages on the server, not removing them from the server - UNLESS - you are using a personal folder on your local hard drive to download your Exchange information to, then you are correct that you cannot filter which items to leave on the server. -----Original Message----- From: Robert [mailto:robert at servicexp.com] Sent: Tuesday, January 09, 2007 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Surprisingly, as it pertains to the e-mail filters it is, well I'm not sure "better" is the way I would put it. ;-) I'm just floored Outlook does not have these, IMHO, very basic options. "All or Nothing" thinking.... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to > be delivered, but it doesn't give you the choice of leaving part of it > on the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions > to take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Jan 9 14:08:18 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 09 Jan 2007 12:08:18 -0800 Subject: [AccessD] Outlook In-Reply-To: <000601c7340f$01c4d8a0$6501a8c0@roberts> Message-ID: <0JBM00I7NAIWA9D0@l-daemon> Most of the sophisticated functionality has been added/managed into/by the Exchange email server product. Outlook is now designed as more of an Exchange client as opposed to a stand-alone product. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Tuesday, January 09, 2007 8:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Surprisingly, as it pertains to the e-mail filters it is, well I'm not sure "better" is the way I would put it. ;-) I'm just floored Outlook does not have these, IMHO, very basic options. "All or Nothing" thinking.... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to be > delivered, but it doesn't give you the choice of leaving part of it on > the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions to > take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 9 14:10:23 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 09 Jan 2007 12:10:23 -0800 Subject: [AccessD] Outlook In-Reply-To: Message-ID: <0JBM00ERKAMBROI1@l-daemon> Charlotte... I just said that. Maybe I should read ahead before commenting. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, January 09, 2007 9:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook Some people seem to think so! ;o} You can set up Outlook to leave the mail on the server, but your Exchange admin might get upset after a while. The problem is that Outlook rules are client side, at least the junk mail filter is, so if you want to implement the junk mail filter, you have to set up to connect to the server and download the mail to a designated location. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to be > delivered, but it doesn't give you the choice of leaving part of it on > the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions to > take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 9 14:21:45 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 09 Jan 2007 12:21:45 -0800 Subject: [AccessD] Outlook In-Reply-To: <000801c73413$60806a40$f232fad1@SUSANONE> Message-ID: <0JBM00E4HB5A1TI1@l-daemon> I think that is referring to using rules to re-direct incoming messages to various folders. Our ISP deletes a message as soon as it confirms a client receipt. If I want to access or save messages for a while on my ISP I have to turn off the Outlook or some of the email accounts. Fortunately, my ISP provides 7 mail accounts and by using a system of redirection all the messages they can then be viewed from a remote site using their webmail app. (It is just an/their Exchange feature.) By turning one account off and then re-direct every message received back to the closed account then I can view all the messages online and still have them on my office computer. It is a little kludge but it works. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 9:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Some people seem to think so! ;o} You can set up Outlook to leave the mail on the server, but your Exchange admin might get upset after a while. The problem is that Outlook rules are client side, at least the junk mail filter is, so if you want to implement the junk mail filter, you have to set up to connect to the server and download the mail to a designated location. =========How would you do that? I'm not following this. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Tue Jan 9 14:36:02 2007 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 9 Jan 2007 14:36:02 -0600 Subject: [AccessD] Outlook Message-ID: <8301C8A868251E4C8ECD3D4FFEA40F8A2584B81A@cpixchng-1.CPIQPC.NET> Sorry Robert, I was responding to another reply whereas they were saying that Outlook express had more functionality then Outlook. I was just trying to point out that you could tell Outlook to leave a copy of the messages on the server, just like in Outlook Express. I don't think there is a way to filter which items stay on the server, when using Outlook to connect to an ISP to retrieve internet e-mail. You're right, it's an all or nothing deal (as far as I know). -----Original Message----- From: Robert [mailto:robert at servicexp.com] Sent: Tuesday, January 09, 2007 11:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Usage: Outlook as client, connection to ISP. Please explain how, I can filter for a string in the subject line and upon a match ignore the message. I don't want to leave all the mail on the server, simply the messages that meet the subject criteria. It's seems to me, that it's an all or nothing deal. To leave or delete ALL the messages on the server. Your help would be MUCH appreciated if you know how to do this... Thanks Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Tuesday, January 09, 2007 12:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Outlook It depends on how you have Outlook setup. If you use Outlook to send/receive Internet e-mail (ie from your ISP like you use Outlook Express for), then you do have the options to leave a copy of the messages on your server. But if you are using Outlook to attach to an Exchange server on your local network, it's simply reading the messages on the server, not removing them from the server - UNLESS - you are using a personal folder on your local hard drive to download your Exchange information to, then you are correct that you cannot filter which items to leave on the server. -----Original Message----- From: Robert [mailto:robert at servicexp.com] Sent: Tuesday, January 09, 2007 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Outlook Surprisingly, as it pertains to the e-mail filters it is, well I'm not sure "better" is the way I would put it. ;-) I'm just floored Outlook does not have these, IMHO, very basic options. "All or Nothing" thinking.... Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Tuesday, January 09, 2007 11:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Outlook thats funny, in Outlook Express you can define things to leave on server for a number of days, or you can make them delete from server without downloading. so Outlook Express is better than Outlook? Lembit ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Tuesday, January 09, 2007 5:09 PM Subject: Re: [AccessD] Outlook > In Outlook 2003, at least, you can define a location for you mail to > be delivered, but it doesn't give you the choice of leaving part of it > on the server. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 4:45 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > > Thank you Dan, but surprisingly enough, "ignoring" or "leave on server" > or such isn't one of them... I don't think it is possible with Outlook.. > :-( > > > Robert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters > Sent: Monday, January 08, 2007 6:51 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Outlook > > Robert, > > Take a look at the Rules Wizard - you can set up a variety of actions > to take based on a variety of conditions! > > Dan Waters > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert > Sent: Monday, January 08, 2007 1:08 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Outlook > > Hello, > Does anyone know how to get Outlook to leave e-mail with certain > subject lines on the server, basically to ignore them? 2002 or 2003. > > Thanks > Robert > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From accessd at shaw.ca Tue Jan 9 14:43:11 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 09 Jan 2007 12:43:11 -0800 Subject: [AccessD] Outlook In-Reply-To: <0JBM00E4HB5A1TI1@l-daemon> Message-ID: <0JBM00BM3C56RCQ0@l-daemon> Hi all: Here are links to methods of using the rules options to forward/re-direct mail: http://www.inquiry.com/techtips/exo_pro/10min/10min1099.asp http://kb.iu.edu/data/adjp.html ... and there is lot of funky things can be done with Outlook rules. Jim From gustav at cactus.dk Tue Jan 9 16:52:00 2007 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 09 Jan 2007 23:52:00 +0100 Subject: [AccessD] Outlook Message-ID: Hi all Pretty OT, this thread, isn't it? /gustav From bchacc at san.rr.com Tue Jan 9 17:28:18 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 9 Jan 2007 15:28:18 -0800 Subject: [AccessD] OT: New Web Site Message-ID: <009701c73445$d8357bc0$0701a8c0@HAL9005> Dear List: Excuse the OT but, in a desperate attempt to make a living this year, and after 10 years of doing this Access stuff, I have finally decided to put up a simple web site for Beach Access Software. Which means learning how to do it. Which means Front Page since I have it in the Action Pack. Never mind that it's finally obsolete. The problem, of course, is graphic design. I have the design equivalent of a tin ear. So the site is rather stark and has pretty much just the facts, ma'am. But any suggestions on how the content and/or appearance can be improved will be appreciated. And, no, I haven't set up my email there so the info email address is still road runner. But, one thing at a time. Site address is www.bchacc.com One thing I'd like to do is shorten the lines. Shorter lines are more readable on a web site. But I don't see how to do that yet. On the services page, should I put the projects into a table? Is that how the margins are set in general? Cells? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From slee at asu.edu Tue Jan 9 17:35:41 2007 From: slee at asu.edu (S Lee) Date: Tue, 9 Jan 2007 16:35:41 -0700 Subject: [AccessD] OT: New Web Site Message-ID: <68656C04C7C0AA4883E870908A8577B203C9EBDB@EX03.asurite.ad.asu.edu> I'll be glad to help off-list, this is right up my alley ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 4:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: New Web Site Dear List: Excuse the OT but, in a desperate attempt to make a living this year, and after 10 years of doing this Access stuff, I have finally decided to put up a simple web site for Beach Access Software. Which means learning how to do it. Which means Front Page since I have it in the Action Pack. Never mind that it's finally obsolete. The problem, of course, is graphic design. I have the design equivalent of a tin ear. So the site is rather stark and has pretty much just the facts, ma'am. But any suggestions on how the content and/or appearance can be improved will be appreciated. And, no, I haven't set up my email there so the info email address is still road runner. But, one thing at a time. Site address is www.bchacc.com One thing I'd like to do is shorten the lines. Shorter lines are more readable on a web site. But I don't see how to do that yet. On the services page, should I put the projects into a table? Is that how the margins are set in general? Cells? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From krosenstiel at comcast.net Tue Jan 9 17:38:39 2007 From: krosenstiel at comcast.net (krosenstiel at comcast.net) Date: Tue, 09 Jan 2007 23:38:39 +0000 Subject: [AccessD] OT: New Web Site Message-ID: <010920072338.5285.45A4277F0002A2FE000014A52216527966040A079B9C020A9C019D05@comcast.net> Rocky, I can help you with this. I'll talk to you tonight from home. Here is a web site I've been working on that I just put up last night: http://www.mindfulnesspugetsound.org -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Beach Access Software" > Dear List: > > > > Excuse the OT but, in a desperate attempt to make a living this year, and > after 10 years of doing this Access stuff, I have finally decided to put up > a simple web site for Beach Access Software. Which means learning how to do > it. Which means Front Page since I have it in the Action Pack. Never mind > that it's finally obsolete. > > > > The problem, of course, is graphic design. I have the design equivalent of > a tin ear. So the site is rather stark and has pretty much just the facts, > ma'am. > > > > But any suggestions on how the content and/or appearance can be improved > will be appreciated. > > > > And, no, I haven't set up my email there so the info email address is still > road runner. But, one thing at a time. > > > > Site address is www.bchacc.com > > > > One thing I'd like to do is shorten the lines. Shorter lines are more > readable on a web site. But I don't see how to do that yet. On the > services page, should I put the projects into a table? Is that how the > margins are set in general? Cells? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Jan 9 18:16:04 2007 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 10 Jan 2007 11:16:04 +1100 Subject: [AccessD] Changing colors on many controls on one Form In-Reply-To: Message-ID: <200701100016.l0A0GFR16750@databaseadvisors.com> Hi John I have a cheats way - no code- way cool Just to test this - pick just one control from your form Set its back colour to say...red then save the form Then change the back colour for that very same control to transparent and save the form Then open the form in run time Watch what happens when that control receives the focus then looses the focus Not too sure if this works for a97 - it works (as far as I can recall) for A2K and AXP Hope this helps See ya Darren ------------------ T: 0424 696 433 -----Original Message----- From: Johncliviger at aol.com [mailto:Johncliviger at aol.com] Sent: Tuesday, 9 January 2007 9:58 PM To: accessD at databaseadvisors.com Subject: [AccessD] Changing colors on many controls on one Form Good morning all I've just been asked by a user if the backcolor can be changed when that control has got focus and changes back to original when it looses focus. Yeah thats OK I can handle that no problems. But with 30+ controls going to each control and adding one line of code to change the backcolor and change it back on each got and lost focus property is a pain. And next week the user will ask "can we have a different color". This job labour intensive so is there a more elegant approach to this simple but boring job?? TIA johnc -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darrend at nimble.com.au Tue Jan 9 18:16:04 2007 From: darrend at nimble.com.au (Darren DICK) Date: Wed, 10 Jan 2007 11:16:04 +1100 Subject: [AccessD] A2003:Shell opens 2 DOS windows In-Reply-To: <0JBL00AHE4FNKIE0@l-daemon> Message-ID: <200701100016.l0A0GFR16745@databaseadvisors.com> Hi Jim Brilliant But I found the culprit (Me) - Says he very embarrassed I am not sure why but the calling code for the batch file was copied and pasted in the same module twice many many lines beneath the first Complete waste of half a day - though I have learned a bit about debug Thank you and Stuart for your efforts Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 3:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: The process is fairly simple. Once you have created a file with one letter in it for simple purposed say it is 'A'. This is done in notepad as it adds no extra bytes for formatting. 1. Now save the notepad created file under the name return.txt into a specific directory like c:\temp 2. Start>run>'cmd' to get to the command prompt. 3. Navigate to the temp directory. 4. debug return.txt 5. -d 'Displays the first 128 bytes. Notice the first byte is 41 which it a capital 'A' in hex. 6. -e 0100 'You will see the following 7. xxxx.0100 41. 'You write 0D, for return. 8. xxxx.0100 41.0D '...and then press 9. -w to write the changes back to file. 10. -q to quit the debug mode. Now you have a file called return.txt with a single unprintable object, a return. Now you can use this file as to provide a 'return' value as if was manually performed like so: Darren.bat < c:\temp\return.txt HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 6:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Way over the top of my head - I am a luddite Thanks anyway Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 12:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: Debug has a number of commands options. The debug /? Or the help debug commands no longer product anything useful but if you go to http://www.microsoft.com/technet/archive/msdos/comm2.mspx?mfr=true there is a definitive list options and parameters. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 4:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Jim This looks really interesting When I went to a DOS window (In the same folder I created the return.txt file) and typed 'debug return.txt' (without the quotes) the DOS window changed size and I was presented with a new line and what looked like a hyphen ( - ) at the beginning o the new line. I was able to type stuff there but hitting 'enter' yielded an error and after typing in 0D there was no way to save this and I did not see the expected Hex 41 Did I do something wrong? Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Jim Lawrence [mailto:accessd at shaw.ca] Sent: Tuesday, 9 January 2007 11:19 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Darren: This is an old suggestion from the DOS days but I was wondering if the batch file needed a carriage return to start it running. The old method worked something as follows: Given your batch file name is Darren.bat then a file named return.txt would be created. First create a txt file named return.txt with one letter/number in it, like a capital 'A' and save it. Then edit the file using the DOS debug command: 'Debug return.txt', at the command prompt and edit the 'A' now shown as hex '41' to a Return hex value of '0D'. Then save the return.txt file and exit. Now the return.txt file can be used as a Return value provider, at the command prompt like: Darren.bat < return.txt The previous is a simple sample but very complex value provider files can be created as well HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Monday, January 08, 2007 3:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Hi Stuart The batch file works fine if I double click it by the way Just not if I issue the Shell Command to it from Access - the batch file and its path are not the issue - I don't think >> What are in strFileName and the batch file? String File name is the path to the batch file - it is all cool Again - the batch file works fine and as desired if double clicked but not when Shelled to by Access The batch file is full of repetitive lines like... (xml_creation.rb is a Ruby App we wrote ourselves) xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10113 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10114 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10115 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10116 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10117 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10118 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10119 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10120 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10121 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10122 xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10123 echo **10123 done** xml_creation.rb -t TA -a sqlserver -h SERVERNAMEHERE -d DBNamehere-u sa -p PASSWORDHERE -i 10124 Many thanks Have a great day Darren ------------------ T: 0424 696 433 -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Monday, 8 January 2007 8:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2003:Shell opens 2 DOS windows Wjhat are in strFileName and the batch file? On 8 Jan 2007 at 8:35, Darren DICK wrote: > I use the line below to open and 'run' a batch file > > Call Shell(strFileName) > > Can anyone tell me why 2 dos (Command) windows open? > > The syntax is valid - everything is cool - but 2 of them open up and then > start trying to process the lines in the batch file > > And no. There is not some second call buried elsewhere in the code -- 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 9 18:39:12 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 9 Jan 2007 16:39:12 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: <68656C04C7C0AA4883E870908A8577B203C9EBDB@EX03.asurite.ad.asu.edu> Message-ID: <00ae01c7344f$c0191b00$0701a8c0@HAL9005> Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? I just set up email for this domain! rockysmolin at bchacc.com Regards, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S Lee Sent: Tuesday, January 09, 2007 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site I'll be glad to help off-list, this is right up my alley ;-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 4:28 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: New Web Site Dear List: Excuse the OT but, in a desperate attempt to make a living this year, and after 10 years of doing this Access stuff, I have finally decided to put up a simple web site for Beach Access Software. Which means learning how to do it. Which means Front Page since I have it in the Action Pack. Never mind that it's finally obsolete. The problem, of course, is graphic design. I have the design equivalent of a tin ear. So the site is rather stark and has pretty much just the facts, ma'am. But any suggestions on how the content and/or appearance can be improved will be appreciated. And, no, I haven't set up my email there so the info email address is still road runner. But, one thing at a time. Site address is www.bchacc.com One thing I'd like to do is shorten the lines. Shorter lines are more readable on a web site. But I don't see how to do that yet. On the services page, should I put the projects into a table? Is that how the margins are set in general? Cells? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM From bchacc at san.rr.com Tue Jan 9 18:40:01 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 9 Jan 2007 16:40:01 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: <010920072338.5285.45A4277F0002A2FE000014A52216527966040A079B9C020A9C019D05@comcast.net> Message-ID: <00af01c7344f$dd33aac0$0701a8c0@HAL9005> That looks nice! It's got the short lines as well. That's the first thing I think I have to do. Regards, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of krosenstiel at comcast.net Sent: Tuesday, January 09, 2007 3:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, I can help you with this. I'll talk to you tonight from home. Here is a web site I've been working on that I just put up last night: http://www.mindfulnesspugetsound.org -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Beach Access Software" > Dear List: > > > > Excuse the OT but, in a desperate attempt to make a living this year, and > after 10 years of doing this Access stuff, I have finally decided to put up > a simple web site for Beach Access Software. Which means learning how to do > it. Which means Front Page since I have it in the Action Pack. Never mind > that it's finally obsolete. > > > > The problem, of course, is graphic design. I have the design equivalent of > a tin ear. So the site is rather stark and has pretty much just the facts, > ma'am. > > > > But any suggestions on how the content and/or appearance can be improved > will be appreciated. > > > > And, no, I haven't set up my email there so the info email address is still > road runner. But, one thing at a time. > > > > Site address is www.bchacc.com > > > > One thing I'd like to do is shorten the lines. Shorter lines are more > readable on a web site. But I don't see how to do that yet. On the > services page, should I put the projects into a table? Is that how the > margins are set in general? Cells? > > > > MTIA > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM From ssharkins at setel.com Tue Jan 9 19:06:48 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 9 Jan 2007 20:06:48 -0500 Subject: [AccessD] Outlook In-Reply-To: Message-ID: <006b01c73453$9b1d0a10$f232fad1@SUSANONE> Could move it over to the Tech list. Susan H. Hi all Pretty OT, this thread, isn't it? /gustav From ssharkins at setel.com Tue Jan 9 19:14:22 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 9 Jan 2007 20:14:22 -0500 Subject: [AccessD] OT: New Web Site In-Reply-To: <00ae01c7344f$c0191b00$0701a8c0@HAL9005> Message-ID: <006d01c73454$ac8cbbf0$f232fad1@SUSANONE> Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? From bchacc at san.rr.com Tue Jan 9 19:47:43 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 9 Jan 2007 17:47:43 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: <006d01c73454$ac8cbbf0$f232fad1@SUSANONE> Message-ID: <00ef01c73459$521e7550$0701a8c0@HAL9005> More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM From Kwilliamson at RTKL.com Tue Jan 9 20:05:22 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 9 Jan 2007 21:05:22 -0500 Subject: [AccessD] OT: New Web Site In-Reply-To: <00ef01c73459$521e7550$0701a8c0@HAL9005> Message-ID: Rocky, This is a judgment call...but I would refrain from the "Rocky understands your business"....and instead focus on BAS understands your business. You have a business name, which I assume you have been developing. I'd focus more on the business credentials, rather than yours. You could have another page setup to tout your own accomplishments. This is strictly my own interpretation.....not a critique. :) Just my opinion. You can crumple it up and toss it, with no feelings hurt. :) Good luck! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Tue Jan 9 20:04:16 2007 From: ssharkins at setel.com (Susan Harkins) Date: Tue, 9 Jan 2007 21:04:16 -0500 Subject: [AccessD] OT: New Web Site In-Reply-To: <00ef01c73459$521e7550$0701a8c0@HAL9005> Message-ID: <008a01c7345b$a258def0$f232fad1@SUSANONE> No, I didn't actually edit it myself. By all means, I think you should use Pundit when you can. :) Couldn't hurt. Mistakes happen. I just realized that I'd sent a request to a publisher for submission "guidelines" -- left out the e -- too late. :( Susan H. More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... From bchacc at san.rr.com Tue Jan 9 20:19:39 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 9 Jan 2007 18:19:39 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: Message-ID: <00f901c7345d$c8605db0$0701a8c0@HAL9005> Good idea. I'll do that. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 09, 2007 6:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, This is a judgment call...but I would refrain from the "Rocky understands your business"....and instead focus on BAS understands your business. You have a business name, which I assume you have been developing. I'd focus more on the business credentials, rather than yours. You could have another page setup to tout your own accomplishments. This is strictly my own interpretation.....not a critique. :) Just my opinion. You can crumple it up and toss it, with no feelings hurt. :) Good luck! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM From bchacc at san.rr.com Tue Jan 9 20:25:50 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Tue, 9 Jan 2007 18:25:50 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: Message-ID: <00fa01c7345e$a58e8720$0701a8c0@HAL9005> OK, check the revised home page. Better? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 09, 2007 6:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, This is a judgment call...but I would refrain from the "Rocky understands your business"....and instead focus on BAS understands your business. You have a business name, which I assume you have been developing. I'd focus more on the business credentials, rather than yours. You could have another page setup to tout your own accomplishments. This is strictly my own interpretation.....not a critique. :) Just my opinion. You can crumple it up and toss it, with no feelings hurt. :) Good luck! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM From Johncliviger at aol.com Wed Jan 10 03:03:31 2007 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Wed, 10 Jan 2007 04:03:31 EST Subject: [AccessD] Changing colors on many controls on one Form Message-ID: Hi all thank you for the feedback on backcolors I shall wade my way through all info you have kindly provided and come back to ypu regards johnc From Kwilliamson at RTKL.com Wed Jan 10 08:50:26 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 09:50:26 -0500 Subject: [AccessD] OT: New Web Site In-Reply-To: <00fa01c7345e$a58e8720$0701a8c0@HAL9005> Message-ID: Rocky, Yeah. I think that has a stronger ring to it. Never hurts (even for a one-man show) to give the illusion that there is much more support behind the name, than there may actually be. As long as you are not outright lying. :) This way the presentation is of strong support, whilst you are touting your own personal service. Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 9:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site OK, check the revised home page. Better? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 09, 2007 6:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, This is a judgment call...but I would refrain from the "Rocky understands your business"....and instead focus on BAS understands your business. You have a business name, which I assume you have been developing. I'd focus more on the business credentials, rather than yours. You could have another page setup to tout your own accomplishments. This is strictly my own interpretation.....not a critique. :) Just my opinion. You can crumple it up and toss it, with no feelings hurt. :) Good luck! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Jan 10 09:10:00 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 10 Jan 2007 15:10:00 +0000 Subject: [AccessD] OT: New Web Site In-Reply-To: Message-ID: Rocky, Just a thought...when I clicked on Services...I kinda expected to see services you offer. Don't get me wrong...the list of things you have done is cool, I just didn't expect them under services. Just a thought. Mark A. Matte >From: "Keith Williamson" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] OT: New Web Site >Date: Wed, 10 Jan 2007 09:50:26 -0500 > >Rocky, > >Yeah. I think that has a stronger ring to it. Never hurts (even for a >one-man show) to give the illusion that there is much more support >behind the name, than there may actually be. As long as you are not >outright lying. :) > >This way the presentation is of strong support, whilst you are touting >your own personal service. > >Regards, > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Tuesday, January 09, 2007 9:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: New Web Site > >OK, check the revised home page. Better? > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith >Williamson >Sent: Tuesday, January 09, 2007 6:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: New Web Site > >Rocky, > >This is a judgment call...but I would refrain from the "Rocky >understands your business"....and instead focus on BAS understands your >business. You have a business name, which I assume you have been >developing. I'd focus more on the business credentials, rather than >yours. You could have another page setup to tout your own >accomplishments. This is strictly my own interpretation.....not a >critique. :) Just my opinion. You can crumple it up and toss it, with >no feelings hurt. > >:) > >Good luck! > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Tuesday, January 09, 2007 8:48 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: New Web Site > >More than. > >See any typos? Bad grammar? Punctuation? Awkward wording? Stupid >things? > >I suppose I should turn the Pundit loose on it. > >Any and all suggestions welcome... > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Tuesday, January 09, 2007 5:14 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: New Web Site > >Considering editing the text? :) > >Susan H. > >Thank you. I guess my first problem is to get those long lines of text >shorter. What's the best way to do this? > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 >4:12 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 >4:12 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview From bchacc at san.rr.com Wed Jan 10 09:24:59 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 10 Jan 2007 07:24:59 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: Message-ID: <002d01c734cb$7dfdf7f0$0701a8c0@HAL9005> Would it be better retitled at "Projects"? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, January 10, 2007 7:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: New Web Site Rocky, Just a thought...when I clicked on Services...I kinda expected to see services you offer. Don't get me wrong...the list of things you have done is cool, I just didn't expect them under services. Just a thought. Mark A. Matte >From: "Keith Williamson" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: Re: [AccessD] OT: New Web Site >Date: Wed, 10 Jan 2007 09:50:26 -0500 > >Rocky, > >Yeah. I think that has a stronger ring to it. Never hurts (even for a >one-man show) to give the illusion that there is much more support >behind the name, than there may actually be. As long as you are not >outright lying. :) > >This way the presentation is of strong support, whilst you are touting >your own personal service. > >Regards, > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Tuesday, January 09, 2007 9:26 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: New Web Site > >OK, check the revised home page. Better? > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith >Williamson >Sent: Tuesday, January 09, 2007 6:05 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] OT: New Web Site > >Rocky, > >This is a judgment call...but I would refrain from the "Rocky >understands your business"....and instead focus on BAS understands your >business. You have a business name, which I assume you have been >developing. I'd focus more on the business credentials, rather than >yours. You could have another page setup to tout your own >accomplishments. This is strictly my own interpretation.....not a >critique. :) Just my opinion. You can crumple it up and toss it, with >no feelings hurt. > >:) > >Good luck! > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access >Software >Sent: Tuesday, January 09, 2007 8:48 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: New Web Site > >More than. > >See any typos? Bad grammar? Punctuation? Awkward wording? Stupid >things? > >I suppose I should turn the Pundit loose on it. > >Any and all suggestions welcome... > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Tuesday, January 09, 2007 5:14 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: New Web Site > >Considering editing the text? :) > >Susan H. > >Thank you. I guess my first problem is to get those long lines of text >shorter. What's the best way to do this? > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 >4:12 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 >4:12 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM From bchacc at san.rr.com Wed Jan 10 09:25:45 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 10 Jan 2007 07:25:45 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: Message-ID: <002e01c734cb$992172a0$0701a8c0@HAL9005> I agree. I'm still a little shaky even on the first person stuff that's there. Maybe I'll move it to a box with my picture or something - make it a sidebar. Would that be better? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 6:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, Yeah. I think that has a stronger ring to it. Never hurts (even for a one-man show) to give the illusion that there is much more support behind the name, than there may actually be. As long as you are not outright lying. :) This way the presentation is of strong support, whilst you are touting your own personal service. Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 9:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site OK, check the revised home page. Better? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 09, 2007 6:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, This is a judgment call...but I would refrain from the "Rocky understands your business"....and instead focus on BAS understands your business. You have a business name, which I assume you have been developing. I'd focus more on the business credentials, rather than yours. You could have another page setup to tout your own accomplishments. This is strictly my own interpretation.....not a critique. :) Just my opinion. You can crumple it up and toss it, with no feelings hurt. :) Good luck! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM From Kwilliamson at RTKL.com Wed Jan 10 09:41:17 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 10:41:17 -0500 Subject: [AccessD] OT: New Web Site In-Reply-To: <002e01c734cb$992172a0$0701a8c0@HAL9005> Message-ID: Yeah. Probably. Move all the personal stuff to a "Staff Biography" or "Owner Biography"....or something like that. Looking at the Home Page....no one should be able to determine if you are an office of 1 or 100. Make them search your site a bit (and at least get the opportunity to review your "Projects" page, before they move on. Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, January 10, 2007 10:26 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site I agree. I'm still a little shaky even on the first person stuff that's there. Maybe I'll move it to a box with my picture or something - make it a sidebar. Would that be better? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 6:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, Yeah. I think that has a stronger ring to it. Never hurts (even for a one-man show) to give the illusion that there is much more support behind the name, than there may actually be. As long as you are not outright lying. :) This way the presentation is of strong support, whilst you are touting your own personal service. Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 9:26 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site OK, check the revised home page. Better? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 09, 2007 6:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: New Web Site Rocky, This is a judgment call...but I would refrain from the "Rocky understands your business"....and instead focus on BAS understands your business. You have a business name, which I assume you have been developing. I'd focus more on the business credentials, rather than yours. You could have another page setup to tout your own accomplishments. This is strictly my own interpretation.....not a critique. :) Just my opinion. You can crumple it up and toss it, with no feelings hurt. :) Good luck! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Tuesday, January 09, 2007 8:48 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site More than. See any typos? Bad grammar? Punctuation? Awkward wording? Stupid things? I suppose I should turn the Pundit loose on it. Any and all suggestions welcome... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, January 09, 2007 5:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site Considering editing the text? :) Susan H. Thank you. I guess my first problem is to get those long lines of text shorter. What's the best way to do this? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Wed Jan 10 09:58:09 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 10:58:09 -0500 Subject: [AccessD] Date Compare Message-ID: Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From DWUTKA at marlow.com Wed Jan 10 10:02:05 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Jan 2007 10:02:05 -0600 Subject: [AccessD] Date Compare Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01862D2B@marlow_main2.marlow.ii-vi.net> Subqueries, posted a tutorial a few weeks ago, same process you used to get the salary levels during pay periods. Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 9:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Date Compare Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Wed Jan 10 10:07:59 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 10 Jan 2007 10:07:59 -0600 Subject: [AccessD] Date Compare In-Reply-To: References: Message-ID: I would make a table to fit in between that has one field with the individual dates and another field with the week ending date. Then you do a three table join. It's common to have a Date table in a data warehouse application where you have a record for each possible date and then have various values for that date set, the Fiscal period it is in, The fiscal year week it is in, things like that. Then you join in that date table whenever you need some of that stuff and you don't have to resort to calculations or formulas. Works pretty slick. GK On 1/10/07, Keith Williamson wrote: > Hi all, > > > > Anyone have a solution for how to link two tables with different dates? > > > > I have a Payroll Paid table, with field: DatePaid > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate field is > usually a weekly date, but occasionally there is a supplemental > timesheet date. What I am trying to do is link the Timesheet table for > all dates that fall within the 13 days prior to, and including, the > DatePaid. > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets with a > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > Anyone have a solution for that? > > > > Thanks kindly, for any help. > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Wed Jan 10 10:15:23 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 11:15:23 -0500 Subject: [AccessD] Date Compare In-Reply-To: Message-ID: Oops! Nevermind. :) I figured out how to get the between operator to work in the "Select" statement. It appears, though, that once you use this....you can no longer view the query in Design View...only in SQL view???? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 10:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Date Compare Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Wed Jan 10 10:20:29 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 11:20:29 -0500 Subject: [AccessD] Date Compare In-Reply-To: Message-ID: Yeah. That is basically what I just came up with, I guess. I created another table with BeginDate and EndDate. Then I am adding the "Between" operator as part of my join statement. It appears to be working...but I need to run some more data through it, to be sure. Thanks! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Wednesday, January 10, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare I would make a table to fit in between that has one field with the individual dates and another field with the week ending date. Then you do a three table join. It's common to have a Date table in a data warehouse application where you have a record for each possible date and then have various values for that date set, the Fiscal period it is in, The fiscal year week it is in, things like that. Then you join in that date table whenever you need some of that stuff and you don't have to resort to calculations or formulas. Works pretty slick. GK On 1/10/07, Keith Williamson wrote: > Hi all, > > > > Anyone have a solution for how to link two tables with different dates? > > > > I have a Payroll Paid table, with field: DatePaid > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate field is > usually a weekly date, but occasionally there is a supplemental > timesheet date. What I am trying to do is link the Timesheet table for > all dates that fall within the 13 days prior to, and including, the > DatePaid. > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets with a > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > Anyone have a solution for that? > > > > Thanks kindly, for any help. > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 DWUTKA at marlow.com Wed Jan 10 10:23:42 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Jan 2007 10:23:42 -0600 Subject: [AccessD] Date Compare Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01862D45@marlow_main2.marlow.ii-vi.net> No, should be able to see it in design view too, it just won't have a 'join' line. Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 10:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Oops! Nevermind. :) I figured out how to get the between operator to work in the "Select" statement. It appears, though, that once you use this....you can no longer view the query in Design View...only in SQL view???? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 10:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Date Compare Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Jan 10 11:04:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 10 Jan 2007 18:04:36 +0100 Subject: [AccessD] Date Compare Message-ID: Hi Keith If you can count on the weeks you can create two queries which retrieves the year and weeknumber of each table from the date. Now join these queries in a new query by the year and the weeknumber. If a two-week window is allowed for one of the tables, round the weeknumber up or down to even or uneven in the query for that table. For example: WeekEvenUp = -Int(-WeekNumber / 2) * 2 WeekOddUp = -Int((-WeekNumber + 1) / 2) * 2 + 1 /gustav >>> Kwilliamson at RTKL.com 10-01-2007 16:58 >>> Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com From garykjos at gmail.com Wed Jan 10 11:08:08 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 10 Jan 2007 11:08:08 -0600 Subject: [AccessD] Date Compare In-Reply-To: References: Message-ID: Whatever works but I think you are making it harder on yourself than you have to. You don't need that between. Make a table with one record for each date, keyed by that date and then have a second field for the beginning of the weekdate or the end of the week date or whatever you want to really track.....You have to set it up one time but you can then use it over and over. I can send you a table offline with a bunch of dates in it if you would like. GK On 1/10/07, Keith Williamson wrote: > Yeah. That is basically what I just came up with, I guess. I created > another table with BeginDate and EndDate. Then I am adding the > "Between" operator as part of my join statement. It appears to be > working...but I need to run some more data through it, to be sure. > > Thanks! > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Wednesday, January 10, 2007 11:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Date Compare > > I would make a table to fit in between that has one field with the > individual dates and another field with the week ending date. Then you > do a three table join. It's common to have a Date table in a data > warehouse application where you have a record for each possible date > and then have various values for that date set, the Fiscal period it > is in, The fiscal year week it is in, things like that. Then you join > in that date table whenever you need some of that stuff and you don't > have to resort to calculations or formulas. Works pretty slick. > > GK > > On 1/10/07, Keith Williamson wrote: > > Hi all, > > > > > > > > Anyone have a solution for how to link two tables with different > dates? > > > > > > > > I have a Payroll Paid table, with field: DatePaid > > > > > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate field is > > usually a weekly date, but occasionally there is a supplemental > > timesheet date. What I am trying to do is link the Timesheet table > for > > all dates that fall within the 13 days prior to, and including, the > > DatePaid. > > > > > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets with a > > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > > > > > Anyone have a solution for that? > > > > > > > > Thanks kindly, for any help. > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > -- Gary Kjos garykjos at gmail.com From Kwilliamson at RTKL.com Wed Jan 10 11:14:58 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 12:14:58 -0500 Subject: [AccessD] Date Compare In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01862D45@marlow_main2.marlow.ii-vi.net> Message-ID: Here is my query: SELECT DISTINCTROW dbo_CFGPostControl.Company, dbo_CFGPostControl.TransType, dbo_CFGPostControl.Period, dbo_CFGPostControl.Completed, dbo_CFGPostControl.PostSeq, dbo_CFGPostControl.EndDate, tblPayPeriods.End FROM tblPayPeriods INNER JOIN dbo_CFGPostControl ON (dbo_CFGPostControl.EndDate between tblPayPeriods.End and tblPayPeriods.Begin) WHERE (((dbo_CFGPostControl.TransType)="TS")) Order by dbo_CFGPostControl.EndDate; It runs....ONCE. If I try to sort on a field, I get an error: ---------------------------------- Between Operator without And in query expression 'dbo_CFGPostcontrol.EndDate betweentblPayPeriods.End'. ---------------------------------- Huh?? There is an "And" in there. ?? If I try to view in Design View, I get the error: ---------------------------------- Microsoft Access can't represent the join expression dbo_CFGPostControl.EndDate between tblPayPeriods.End and tblPayPeriods.Begin in Design view. *One of more fields may have been deleted or renamed. *The name of one or more fields or tables specified in the join expression may be misspelled. *The join may use an operator that isn't supported in Design view, such as > or<. -------------------------------- Grrrrrr!!!!!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 10, 2007 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare No, should be able to see it in design view too, it just won't have a 'join' line. Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 10:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Oops! Nevermind. :) I figured out how to get the between operator to work in the "Select" statement. It appears, though, that once you use this....you can no longer view the query in Design View...only in SQL view???? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 10:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Date Compare Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Wed Jan 10 11:30:57 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 12:30:57 -0500 Subject: [AccessD] Date Compare In-Reply-To: Message-ID: So you are basically saying to setup a table with 365 records, per year. Field1 = (every day of the year), and field2 = the associated paydate? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Wednesday, January 10, 2007 12:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Whatever works but I think you are making it harder on yourself than you have to. You don't need that between. Make a table with one record for each date, keyed by that date and then have a second field for the beginning of the weekdate or the end of the week date or whatever you want to really track.....You have to set it up one time but you can then use it over and over. I can send you a table offline with a bunch of dates in it if you would like. GK On 1/10/07, Keith Williamson wrote: > Yeah. That is basically what I just came up with, I guess. I created > another table with BeginDate and EndDate. Then I am adding the > "Between" operator as part of my join statement. It appears to be > working...but I need to run some more data through it, to be sure. > > Thanks! > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Wednesday, January 10, 2007 11:08 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Date Compare > > I would make a table to fit in between that has one field with the > individual dates and another field with the week ending date. Then you > do a three table join. It's common to have a Date table in a data > warehouse application where you have a record for each possible date > and then have various values for that date set, the Fiscal period it > is in, The fiscal year week it is in, things like that. Then you join > in that date table whenever you need some of that stuff and you don't > have to resort to calculations or formulas. Works pretty slick. > > GK > > On 1/10/07, Keith Williamson wrote: > > Hi all, > > > > > > > > Anyone have a solution for how to link two tables with different > dates? > > > > > > > > I have a Payroll Paid table, with field: DatePaid > > > > > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate field is > > usually a weekly date, but occasionally there is a supplemental > > timesheet date. What I am trying to do is link the Timesheet table > for > > all dates that fall within the 13 days prior to, and including, the > > DatePaid. > > > > > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets with a > > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > > > > > Anyone have a solution for that? > > > > > > > > Thanks kindly, for any help. > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > -- 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 DWUTKA at marlow.com Wed Jan 10 11:30:39 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Jan 2007 11:30:39 -0600 Subject: [AccessD] Date Compare Message-ID: <17724746D360394AA3BFE5B8D40A9C1B01862D94@marlow_main2.marlow.ii-vi.net> Oh, you are putting it in the FROM clause...ya, Access won't let you edit that in design view. Try this: SELECT Company, TransType, Period, Completed, PostSeq, EndDate, End FROM tblPayPeriods AS T1, dbo_CFGPostControl WHERE TransType="TS" AND ENDDate Between End AND Begin ORDER BY EndDate Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Here is my query: SELECT DISTINCTROW dbo_CFGPostControl.Company, dbo_CFGPostControl.TransType, dbo_CFGPostControl.Period, dbo_CFGPostControl.Completed, dbo_CFGPostControl.PostSeq, dbo_CFGPostControl.EndDate, tblPayPeriods.End FROM tblPayPeriods INNER JOIN dbo_CFGPostControl ON (dbo_CFGPostControl.EndDate between tblPayPeriods.End and tblPayPeriods.Begin) WHERE (((dbo_CFGPostControl.TransType)="TS")) Order by dbo_CFGPostControl.EndDate; It runs....ONCE. If I try to sort on a field, I get an error: ---------------------------------- Between Operator without And in query expression 'dbo_CFGPostcontrol.EndDate betweentblPayPeriods.End'. ---------------------------------- Huh?? There is an "And" in there. ?? If I try to view in Design View, I get the error: ---------------------------------- Microsoft Access can't represent the join expression dbo_CFGPostControl.EndDate between tblPayPeriods.End and tblPayPeriods.Begin in Design view. *One of more fields may have been deleted or renamed. *The name of one or more fields or tables specified in the join expression may be misspelled. *The join may use an operator that isn't supported in Design view, such as > or<. -------------------------------- Grrrrrr!!!!!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 10, 2007 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare No, should be able to see it in design view too, it just won't have a 'join' line. Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 10:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Oops! Nevermind. :) I figured out how to get the between operator to work in the "Select" statement. It appears, though, that once you use this....you can no longer view the query in Design View...only in SQL view???? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 10:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Date Compare Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Jan 10 12:13:14 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 10 Jan 2007 18:13:14 +0000 Subject: [AccessD] OT: New Web Site In-Reply-To: <002d01c734cb$7dfdf7f0$0701a8c0@HAL9005> Message-ID: I think Projects would be a better description of what is there...and maybe a different format(like alot of the FAQ pages)...a list at the top of the page with the app/project names and then the descriptions at the bottom(ex:Finacial DB,Asset tracking DB...and click on either and it takes you lower on the page describing the project/app). When I was looking through it...I really didn't care who it was for...I just wanted to know what the app was. Maybe just me...but a list at the top with 3 to 10 words describing the app that links to the full description at the bottom would be a little more informative and easy to decifer. Also, if you wanted you could do the same thing with the client names(list at the top...link to description at bottom)...or both ways. Just depends on what you want there attention to goto. Just my 1.4? Thanks, Mark A. Matte >From: "Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: New Web Site >Date: Wed, 10 Jan 2007 07:24:59 -0800 > >Would it be better retitled at "Projects"? > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, January 10, 2007 7:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] OT: New Web Site > >Rocky, > >Just a thought...when I clicked on Services...I kinda expected to see >services you offer. Don't get me wrong...the list of things you have done >is cool, I just didn't expect them under services. > >Just a thought. > >Mark A. Matte > > > >From: "Keith Williamson" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: New Web Site > >Date: Wed, 10 Jan 2007 09:50:26 -0500 > > > >Rocky, > > > >Yeah. I think that has a stronger ring to it. Never hurts (even for a > >one-man show) to give the illusion that there is much more support > >behind the name, than there may actually be. As long as you are not > >outright lying. :) > > > >This way the presentation is of strong support, whilst you are touting > >your own personal service. > > > >Regards, > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > >21231-3305 > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > >Software > >Sent: Tuesday, January 09, 2007 9:26 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >OK, check the revised home page. Better? > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > >Williamson > >Sent: Tuesday, January 09, 2007 6:05 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] OT: New Web Site > > > >Rocky, > > > >This is a judgment call...but I would refrain from the "Rocky > >understands your business"....and instead focus on BAS understands your > >business. You have a business name, which I assume you have been > >developing. I'd focus more on the business credentials, rather than > >yours. You could have another page setup to tout your own > >accomplishments. This is strictly my own interpretation.....not a > >critique. :) Just my opinion. You can crumple it up and toss it, with > >no feelings hurt. > > > >:) > > > >Good luck! > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > >21231-3305 > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > >Software > >Sent: Tuesday, January 09, 2007 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >More than. > > > >See any typos? Bad grammar? Punctuation? Awkward wording? Stupid > >things? > > > >I suppose I should turn the Pundit loose on it. > > > >Any and all suggestions welcome... > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > >Sent: Tuesday, January 09, 2007 5:14 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >Considering editing the text? :) > > > >Susan H. > > > >Thank you. I guess my first problem is to get those long lines of text > >shorter. What's the best way to do this? > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 > >4:12 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 > >4:12 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Communicate instantly! Use your Hotmail address to sign into Windows Live >Messenger now. http://get.live.com/messenger/overview > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 >1:37 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 From rl_stewart at highstream.net Wed Jan 10 12:18:12 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 10 Jan 2007 12:18:12 -0600 Subject: [AccessD] Date Compare In-Reply-To: References: Message-ID: <200701101821.l0AILNR20745@databaseadvisors.com> Keith, I do not think that was not what Gary was suggesting. The date dimension table would have a column in it for PayDate. Then all of the dates that fall within that pay period would have the save date in PayDate. By doing this there are no between statements required in the query you are talking about. Now to load the data initially, is a different story. Data warehouses use this technique to cut down on exactly the type of queries you are doing with the between on the two tables. It give a significant increase in performance. Robert At 12:00 PM 1/10/2007, you wrote: >Message: 8 >Date: Wed, 10 Jan 2007 11:20:29 -0500 >From: "Keith Williamson" >Subject: Re: [AccessD] Date Compare >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Yeah. That is basically what I just came up with, I guess. I created >another table with BeginDate and EndDate. Then I am adding the >"Between" operator as part of my join statement. It appears to be >working...but I need to run some more data through it, to be sure. > >Thanks! > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos >Sent: Wednesday, January 10, 2007 11:08 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Date Compare > >I would make a table to fit in between that has one field with the >individual dates and another field with the week ending date. Then you >do a three table join. It's common to have a Date table in a data >warehouse application where you have a record for each possible date >and then have various values for that date set, the Fiscal period it >is in, The fiscal year week it is in, things like that. Then you join >in that date table whenever you need some of that stuff and you don't >have to resort to calculations or formulas. Works pretty slick. > >GK From bchacc at san.rr.com Wed Jan 10 12:36:46 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 10 Jan 2007 10:36:46 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: Message-ID: <007901c734e6$4a2b90c0$0701a8c0@HAL9005> That sound like a good idea. I have it on the task list to convert that page to a table to that the lines aren't so long. And a list at the top with 10 word description and a like to the detail below sounds like a better approach. Thanks for the feedback. Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, January 10, 2007 10:13 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: New Web Site I think Projects would be a better description of what is there...and maybe a different format(like alot of the FAQ pages)...a list at the top of the page with the app/project names and then the descriptions at the bottom(ex:Finacial DB,Asset tracking DB...and click on either and it takes you lower on the page describing the project/app). When I was looking through it...I really didn't care who it was for...I just wanted to know what the app was. Maybe just me...but a list at the top with 3 to 10 words describing the app that links to the full description at the bottom would be a little more informative and easy to decifer. Also, if you wanted you could do the same thing with the client names(list at the top...link to description at bottom)...or both ways. Just depends on what you want there attention to goto. Just my 1.4" Thanks, Mark A. Matte >From: "Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: New Web Site >Date: Wed, 10 Jan 2007 07:24:59 -0800 > >Would it be better retitled at "Projects"? > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, January 10, 2007 7:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] OT: New Web Site > >Rocky, > >Just a thought...when I clicked on Services...I kinda expected to see >services you offer. Don't get me wrong...the list of things you have done >is cool, I just didn't expect them under services. > >Just a thought. > >Mark A. Matte > > > >From: "Keith Williamson" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: New Web Site > >Date: Wed, 10 Jan 2007 09:50:26 -0500 > > > >Rocky, > > > >Yeah. I think that has a stronger ring to it. Never hurts (even for a > >one-man show) to give the illusion that there is much more support > >behind the name, than there may actually be. As long as you are not > >outright lying. :) > > > >This way the presentation is of strong support, whilst you are touting > >your own personal service. > > > >Regards, > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > >21231-3305 > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > >Software > >Sent: Tuesday, January 09, 2007 9:26 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >OK, check the revised home page. Better? > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > >Williamson > >Sent: Tuesday, January 09, 2007 6:05 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] OT: New Web Site > > > >Rocky, > > > >This is a judgment call...but I would refrain from the "Rocky > >understands your business"....and instead focus on BAS understands your > >business. You have a business name, which I assume you have been > >developing. I'd focus more on the business credentials, rather than > >yours. You could have another page setup to tout your own > >accomplishments. This is strictly my own interpretation.....not a > >critique. :) Just my opinion. You can crumple it up and toss it, with > >no feelings hurt. > > > >:) > > > >Good luck! > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > >21231-3305 > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > >Software > >Sent: Tuesday, January 09, 2007 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >More than. > > > >See any typos? Bad grammar? Punctuation? Awkward wording? Stupid > >things? > > > >I suppose I should turn the Pundit loose on it. > > > >Any and all suggestions welcome... > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > >Sent: Tuesday, January 09, 2007 5:14 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >Considering editing the text? :) > > > >Susan H. > > > >Thank you. I guess my first problem is to get those long lines of text > >shorter. What's the best way to do this? > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 > >4:12 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 > >4:12 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Communicate instantly! Use your Hotmail address to sign into Windows Live >Messenger now. http://get.live.com/messenger/overview > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 >1:37 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM From Kwilliamson at RTKL.com Wed Jan 10 13:03:51 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 14:03:51 -0500 Subject: [AccessD] Date Compare In-Reply-To: <200701101821.l0AILNR20745@databaseadvisors.com> Message-ID: Do "Between" statements make the query inherently inefficient? Cause it is no big deal to create a table in Excel with all the possible fields, and then import to the table in Access. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert L. Stewart Sent: Wednesday, January 10, 2007 1:18 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date Compare Keith, I do not think that was not what Gary was suggesting. The date dimension table would have a column in it for PayDate. Then all of the dates that fall within that pay period would have the save date in PayDate. By doing this there are no between statements required in the query you are talking about. Now to load the data initially, is a different story. Data warehouses use this technique to cut down on exactly the type of queries you are doing with the between on the two tables. It give a significant increase in performance. Robert At 12:00 PM 1/10/2007, you wrote: >Message: 8 >Date: Wed, 10 Jan 2007 11:20:29 -0500 >From: "Keith Williamson" >Subject: Re: [AccessD] Date Compare >To: "Access Developers discussion and problem solving" > >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Yeah. That is basically what I just came up with, I guess. I created >another table with BeginDate and EndDate. Then I am adding the >"Between" operator as part of my join statement. It appears to be >working...but I need to run some more data through it, to be sure. > >Thanks! > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland >21231-3305 > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos >Sent: Wednesday, January 10, 2007 11:08 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Date Compare > >I would make a table to fit in between that has one field with the >individual dates and another field with the week ending date. Then you >do a three table join. It's common to have a Date table in a data >warehouse application where you have a record for each possible date >and then have various values for that date set, the Fiscal period it >is in, The fiscal year week it is in, things like that. Then you join >in that date table whenever you need some of that stuff and you don't >have to resort to calculations or formulas. Works pretty slick. > >GK -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Wed Jan 10 13:04:03 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 14:04:03 -0500 Subject: [AccessD] Date Compare In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B01862D94@marlow_main2.marlow.ii-vi.net> Message-ID: Thanks, Drew. I'll give this a try. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 10, 2007 12:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Oh, you are putting it in the FROM clause...ya, Access won't let you edit that in design view. Try this: SELECT Company, TransType, Period, Completed, PostSeq, EndDate, End FROM tblPayPeriods AS T1, dbo_CFGPostControl WHERE TransType="TS" AND ENDDate Between End AND Begin ORDER BY EndDate Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Here is my query: SELECT DISTINCTROW dbo_CFGPostControl.Company, dbo_CFGPostControl.TransType, dbo_CFGPostControl.Period, dbo_CFGPostControl.Completed, dbo_CFGPostControl.PostSeq, dbo_CFGPostControl.EndDate, tblPayPeriods.End FROM tblPayPeriods INNER JOIN dbo_CFGPostControl ON (dbo_CFGPostControl.EndDate between tblPayPeriods.End and tblPayPeriods.Begin) WHERE (((dbo_CFGPostControl.TransType)="TS")) Order by dbo_CFGPostControl.EndDate; It runs....ONCE. If I try to sort on a field, I get an error: ---------------------------------- Between Operator without And in query expression 'dbo_CFGPostcontrol.EndDate betweentblPayPeriods.End'. ---------------------------------- Huh?? There is an "And" in there. ?? If I try to view in Design View, I get the error: ---------------------------------- Microsoft Access can't represent the join expression dbo_CFGPostControl.EndDate between tblPayPeriods.End and tblPayPeriods.Begin in Design view. *One of more fields may have been deleted or renamed. *The name of one or more fields or tables specified in the join expression may be misspelled. *The join may use an operator that isn't supported in Design view, such as > or<. -------------------------------- Grrrrrr!!!!!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, January 10, 2007 11:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare No, should be able to see it in design view too, it just won't have a 'join' line. Drew -----Original Message----- From: Keith Williamson [mailto:Kwilliamson at rtkl.com] Sent: Wednesday, January 10, 2007 10:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Oops! Nevermind. :) I figured out how to get the between operator to work in the "Select" statement. It appears, though, that once you use this....you can no longer view the query in Design View...only in SQL view???? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Wednesday, January 10, 2007 10:58 AM To: Access Developers discussion and problem solving Subject: [AccessD] Date Compare Hi all, Anyone have a solution for how to link two tables with different dates? I have a Payroll Paid table, with field: DatePaid I also have a Timesheet table, with field: TimesheetEndDate The DatePaid field is a bi-weekly date. The TimesheetEndDate field is usually a weekly date, but occasionally there is a supplemental timesheet date. What I am trying to do is link the Timesheet table for all dates that fall within the 13 days prior to, and including, the DatePaid. So, for DatePaid of 11/29/06.....I want to link all Timesheets with a TimesheetEndDate falling 13 days prior to, and including 11/29/06. Anyone have a solution for that? Thanks kindly, for any help. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 10 13:04:34 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 10 Jan 2007 11:04:34 -0800 Subject: [AccessD] OT: New Web Site In-Reply-To: <007901c734e6$4a2b90c0$0701a8c0@HAL9005> Message-ID: <008e01c734ea$2b579460$0701a8c0@HAL9005> Ooops. Sorry. I'm trying to keep this thread off accessd. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, January 10, 2007 10:37 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: New Web Site That sound like a good idea. I have it on the task list to convert that page to a table to that the lines aren't so long. And a list at the top with 10 word description and a like to the detail below sounds like a better approach. Thanks for the feedback. Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, January 10, 2007 10:13 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: New Web Site I think Projects would be a better description of what is there...and maybe a different format(like alot of the FAQ pages)...a list at the top of the page with the app/project names and then the descriptions at the bottom(ex:Finacial DB,Asset tracking DB...and click on either and it takes you lower on the page describing the project/app). When I was looking through it...I really didn't care who it was for...I just wanted to know what the app was. Maybe just me...but a list at the top with 3 to 10 words describing the app that links to the full description at the bottom would be a little more informative and easy to decifer. Also, if you wanted you could do the same thing with the client names(list at the top...link to description at bottom)...or both ways. Just depends on what you want there attention to goto. Just my 1.4" Thanks, Mark A. Matte >From: "Beach Access Software" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] OT: New Web Site >Date: Wed, 10 Jan 2007 07:24:59 -0800 > >Would it be better retitled at "Projects"? > >Rocky Smolin >Beach Access Software >858-259-4334 >www.e-z-mrp.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Wednesday, January 10, 2007 7:10 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] OT: New Web Site > >Rocky, > >Just a thought...when I clicked on Services...I kinda expected to see >services you offer. Don't get me wrong...the list of things you have done >is cool, I just didn't expect them under services. > >Just a thought. > >Mark A. Matte > > > >From: "Keith Williamson" > >Reply-To: Access Developers discussion and problem > >solving > >To: "Access Developers discussion and problem > >solving" > >Subject: Re: [AccessD] OT: New Web Site > >Date: Wed, 10 Jan 2007 09:50:26 -0500 > > > >Rocky, > > > >Yeah. I think that has a stronger ring to it. Never hurts (even for a > >one-man show) to give the illusion that there is much more support > >behind the name, than there may actually be. As long as you are not > >outright lying. :) > > > >This way the presentation is of strong support, whilst you are touting > >your own personal service. > > > >Regards, > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > >21231-3305 > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > >Software > >Sent: Tuesday, January 09, 2007 9:26 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >OK, check the revised home page. Better? > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > >Williamson > >Sent: Tuesday, January 09, 2007 6:05 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] OT: New Web Site > > > >Rocky, > > > >This is a judgment call...but I would refrain from the "Rocky > >understands your business"....and instead focus on BAS understands your > >business. You have a business name, which I assume you have been > >developing. I'd focus more on the business credentials, rather than > >yours. You could have another page setup to tout your own > >accomplishments. This is strictly my own interpretation.....not a > >critique. :) Just my opinion. You can crumple it up and toss it, with > >no feelings hurt. > > > >:) > > > >Good luck! > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > >21231-3305 > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access > >Software > >Sent: Tuesday, January 09, 2007 8:48 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >More than. > > > >See any typos? Bad grammar? Punctuation? Awkward wording? Stupid > >things? > > > >I suppose I should turn the Pundit loose on it. > > > >Any and all suggestions welcome... > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > >Sent: Tuesday, January 09, 2007 5:14 PM > >To: 'Access Developers discussion and problem solving' > >Subject: Re: [AccessD] OT: New Web Site > > > >Considering editing the text? :) > > > >Susan H. > > > >Thank you. I guess my first problem is to get those long lines of text > >shorter. What's the best way to do this? > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 > >4:12 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 > >4:12 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Communicate instantly! Use your Hotmail address to sign into Windows Live >Messenger now. http://get.live.com/messenger/overview > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 >1:37 PM > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: 1/9/2007 1:37 PM From garykjos at gmail.com Wed Jan 10 13:21:32 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 10 Jan 2007 13:21:32 -0600 Subject: [AccessD] Date Compare In-Reply-To: References: Message-ID: Yes, that is correct. That's the way it would be done in a typical data warehouse. GK. On 1/10/07, Keith Williamson wrote: > So you are basically saying to setup a table with 365 records, per year. > Field1 = (every day of the year), and field2 = the associated paydate? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Wednesday, January 10, 2007 12:08 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Date Compare > > Whatever works but I think you are making it harder on yourself than > you have to. You don't need that between. Make a table with one record > for each date, keyed by that date and then have a second field for the > beginning of the weekdate or the end of the week date or whatever you > want to really track.....You have to set it up one time but you can > then use it over and over. I can send you a table offline with a bunch > of dates in it if you would like. > > GK > > On 1/10/07, Keith Williamson wrote: > > Yeah. That is basically what I just came up with, I guess. I created > > another table with BeginDate and EndDate. Then I am adding the > > "Between" operator as part of my join statement. It appears to be > > working...but I need to run some more data through it, to be sure. > > > > Thanks! > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Wednesday, January 10, 2007 11:08 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Date Compare > > > > I would make a table to fit in between that has one field with the > > individual dates and another field with the week ending date. Then you > > do a three table join. It's common to have a Date table in a data > > warehouse application where you have a record for each possible date > > and then have various values for that date set, the Fiscal period it > > is in, The fiscal year week it is in, things like that. Then you join > > in that date table whenever you need some of that stuff and you don't > > have to resort to calculations or formulas. Works pretty slick. > > > > GK > > > > On 1/10/07, Keith Williamson wrote: > > > Hi all, > > > > > > > > > > > > Anyone have a solution for how to link two tables with different > > dates? > > > > > > > > > > > > I have a Payroll Paid table, with field: DatePaid > > > > > > > > > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > > > > > > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate field > is > > > usually a weekly date, but occasionally there is a supplemental > > > timesheet date. What I am trying to do is link the Timesheet table > > for > > > all dates that fall within the 13 days prior to, and including, the > > > DatePaid. > > > > > > > > > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets with > a > > > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > > > > > > > > > Anyone have a solution for that? > > > > > > > > > > > > Thanks kindly, for any help. > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > -- > > > 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 > > > > > -- > 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 > -- Gary Kjos garykjos at gmail.com From andy at minstersystems.co.uk Wed Jan 10 13:22:21 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Jan 2007 19:22:21 -0000 Subject: [AccessD] OT: New Web Site In-Reply-To: <008e01c734ea$2b579460$0701a8c0@HAL9005> Message-ID: <005001c734ec$a70fb860$89970c54@minster33c3r25> Thanks Rocky. I know it's interesting but can I suggest that this thread move to dba-Tech which is more appropraite. If anyone's not already signed up to it see http://databaseadvisors.com/mailman/listinfo/dba-tech -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: 10 January 2007 19:05 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: New Web Site > > > Ooops. Sorry. I'm trying to keep this thread off accessd. > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Beach Access Software > Sent: Wednesday, January 10, 2007 10:37 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: New Web Site > > That sound like a good idea. I have it on the task list to > convert that page to a table to that the lines aren't so > long. And a list at the top with 10 word description and a > like to the detail below sounds like a better approach. > > Thanks for the feedback. > > Rocky > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > Sent: Wednesday, January 10, 2007 10:13 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] OT: New Web Site > > I think Projects would be a better description of what is > there...and maybe > a different format(like alot of the FAQ pages)...a list at > the top of the > page with the app/project names and then the descriptions at the > bottom(ex:Finacial DB,Asset tracking DB...and click on either > and it takes > you lower on the page describing the project/app). > > When I was looking through it...I really didn't care who it > was for...I just > > wanted to know what the app was. Maybe just me...but a list > at the top with > > 3 to 10 words describing the app that links to the full > description at the > bottom would be a little more informative and easy to > decifer. Also, if you > > wanted you could do the same thing with the client names(list at the > top...link to description at bottom)...or both ways. Just > depends on what > you want there attention to goto. > > Just my 1.4" > > Thanks, > > Mark A. Matte > > > >From: "Beach Access Software" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: Re: [AccessD] OT: New Web Site > >Date: Wed, 10 Jan 2007 07:24:59 -0800 > > > >Would it be better retitled at "Projects"? > > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mark A Matte > >Sent: Wednesday, January 10, 2007 7:10 AM > >To: accessd at databaseadvisors.com > >Subject: Re: [AccessD] OT: New Web Site > > > >Rocky, > > > >Just a thought...when I clicked on Services...I kinda > expected to see > >services you offer. Don't get me wrong...the list of things > you have > >done is cool, I just didn't expect them under services. > > > >Just a thought. > > > >Mark A. Matte > > > > > > >From: "Keith Williamson" > > >Reply-To: Access Developers discussion and problem > > >solving > > >To: "Access Developers discussion and problem > > >solving" > > >Subject: Re: [AccessD] OT: New Web Site > > >Date: Wed, 10 Jan 2007 09:50:26 -0500 > > > > > >Rocky, > > > > > >Yeah. I think that has a stronger ring to it. Never > hurts (even for > > >a one-man show) to give the illusion that there is much > more support > > >behind the name, than there may actually be. As long as > you are not > > >outright lying. :) > > > > > >This way the presentation is of strong support, whilst you are > > >touting your own personal service. > > > > > >Regards, > > > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > >21231-3305 > > > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach > > >Access Software > > >Sent: Tuesday, January 09, 2007 9:26 PM > > >To: 'Access Developers discussion and problem solving' > > >Subject: Re: [AccessD] OT: New Web Site > > > > > >OK, check the revised home page. Better? > > > > > >Rocky Smolin > > >Beach Access Software > > >858-259-4334 > > >www.e-z-mrp.com > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > > >Williamson > > >Sent: Tuesday, January 09, 2007 6:05 PM > > >To: Access Developers discussion and problem solving > > >Subject: Re: [AccessD] OT: New Web Site > > > > > >Rocky, > > > > > >This is a judgment call...but I would refrain from the "Rocky > > >understands your business"....and instead focus on BAS understands > > >your business. You have a business name, which I assume you have > > >been developing. I'd focus more on the business > credentials, rather > > >than yours. You could have another page setup to tout your own > > >accomplishments. This is strictly my own interpretation.....not a > > >critique. :) Just my opinion. You can crumple it up and > toss it, > > >with no feelings hurt. > > > > > >:) > > > > > >Good luck! > > > > > >Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > >RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > >21231-3305 > > > > > >410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach > > >Access Software > > >Sent: Tuesday, January 09, 2007 8:48 PM > > >To: 'Access Developers discussion and problem solving' > > >Subject: Re: [AccessD] OT: New Web Site > > > > > >More than. > > > > > >See any typos? Bad grammar? Punctuation? Awkward > wording? Stupid > > >things? > > > > > >I suppose I should turn the Pundit loose on it. > > > > > >Any and all suggestions welcome... > > > > > >Rocky Smolin > > >Beach Access Software > > >858-259-4334 > > >www.e-z-mrp.com > > > > > > > > >-----Original Message----- > > >From: accessd-bounces at databaseadvisors.com > > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > > >Harkins > > >Sent: Tuesday, January 09, 2007 5:14 PM > > >To: 'Access Developers discussion and problem solving' > > >Subject: Re: [AccessD] OT: New Web Site > > > > > >Considering editing the text? :) > > > > > >Susan H. > > > > > >Thank you. I guess my first problem is to get those long lines of > > >text shorter. What's the best way to do this? > > > > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > > >-- > > >No virus found in this incoming message. > > >Checked by AVG Free Edition. > > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: > > >1/8/2007 4:12 PM > > > > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > > >-- > > >No virus found in this incoming message. > > >Checked by AVG Free Edition. > > >Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: > > >1/8/2007 4:12 PM > > > > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > > >-- > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > >_________________________________________________________________ > >Communicate instantly! Use your Hotmail address to sign into Windows > >Live Messenger now. http://get.live.com/messenger/overview > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >-- > >No virus found in this incoming message. > >Checked by AVG Free Edition. > >Version: 7.5.432 / Virus Database: 268.16.8/621 - Release Date: > >1/9/2007 1:37 PM > > > > > >-- > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > _________________________________________________________________ > The MSN Entertainment Guide to Golden Globes is here. Get > all the scoop. > http://tv.msn.com/tv/globes2007/?icid=nctagline2 > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.16.8/621 - Release > Date: 1/9/2007 1:37 PM > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.16.8/621 - Release > Date: 1/9/2007 1:37 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Kwilliamson at RTKL.com Wed Jan 10 14:44:12 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Wed, 10 Jan 2007 15:44:12 -0500 Subject: [AccessD] Date Compare In-Reply-To: Message-ID: You are right. I setup both ways. The "Between" method took about 3 minutes to run the query. Your way took about 20 seconds. Thanks!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Wednesday, January 10, 2007 2:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Compare Yes, that is correct. That's the way it would be done in a typical data warehouse. GK. On 1/10/07, Keith Williamson wrote: > So you are basically saying to setup a table with 365 records, per year. > Field1 = (every day of the year), and field2 = the associated paydate? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Wednesday, January 10, 2007 12:08 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Date Compare > > Whatever works but I think you are making it harder on yourself than > you have to. You don't need that between. Make a table with one record > for each date, keyed by that date and then have a second field for the > beginning of the weekdate or the end of the week date or whatever you > want to really track.....You have to set it up one time but you can > then use it over and over. I can send you a table offline with a bunch > of dates in it if you would like. > > GK > > On 1/10/07, Keith Williamson wrote: > > Yeah. That is basically what I just came up with, I guess. I created > > another table with BeginDate and EndDate. Then I am adding the > > "Between" operator as part of my join statement. It appears to be > > working...but I need to run some more data through it, to be sure. > > > > Thanks! > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Wednesday, January 10, 2007 11:08 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Date Compare > > > > I would make a table to fit in between that has one field with the > > individual dates and another field with the week ending date. Then you > > do a three table join. It's common to have a Date table in a data > > warehouse application where you have a record for each possible date > > and then have various values for that date set, the Fiscal period it > > is in, The fiscal year week it is in, things like that. Then you join > > in that date table whenever you need some of that stuff and you don't > > have to resort to calculations or formulas. Works pretty slick. > > > > GK > > > > On 1/10/07, Keith Williamson wrote: > > > Hi all, > > > > > > > > > > > > Anyone have a solution for how to link two tables with different > > dates? > > > > > > > > > > > > I have a Payroll Paid table, with field: DatePaid > > > > > > > > > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > > > > > > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate field > is > > > usually a weekly date, but occasionally there is a supplemental > > > timesheet date. What I am trying to do is link the Timesheet table > > for > > > all dates that fall within the 13 days prior to, and including, the > > > DatePaid. > > > > > > > > > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets with > a > > > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > > > > > > > > > Anyone have a solution for that? > > > > > > > > > > > > Thanks kindly, for any help. > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > -- > > > 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 > > > > > -- > 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 > -- 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 garykjos at gmail.com Wed Jan 10 15:13:09 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 10 Jan 2007 15:13:09 -0600 Subject: [AccessD] Date Compare In-Reply-To: References: Message-ID: Glad it worked for you. It's kind of an odd concept, at least it was for me whe I first started working with Data Warehouses. Different from trying to minimize data duplication and more joins than you might otherwise need. But it has huge speed benifits verses the other ways of going about it especially when you get more records involved. And there is lots of flexibility for dealing with exceptions and having lots of different groupings of things. We recently switched to a 4-5-4 week accounting period calender here and using the date table made that a snap. (We have 4 weeks in the first period of a quarter, 5 weeks in the second period and 4 weeks in the 3rd period. All weeks start on Sunday and end on Saturday.) It is a bit of a pain to set the calendar originally but once it's done - and you can set it years into the future - you are good to go for a long time. And if you need to group things in a different manner, just add another field to the date table, initialize it and you are good to go. GK On 1/10/07, Keith Williamson wrote: > You are right. I setup both ways. The "Between" method took about 3 > minutes to run the query. Your way took about 20 seconds. > > Thanks!! > > :) > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Wednesday, January 10, 2007 2:22 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Date Compare > > Yes, that is correct. That's the way it would be done in a typical > data warehouse. > > GK. > > On 1/10/07, Keith Williamson wrote: > > So you are basically saying to setup a table with 365 records, per > year. > > Field1 = (every day of the year), and field2 = the associated paydate? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > Sent: Wednesday, January 10, 2007 12:08 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Date Compare > > > > Whatever works but I think you are making it harder on yourself than > > you have to. You don't need that between. Make a table with one record > > for each date, keyed by that date and then have a second field for the > > beginning of the weekdate or the end of the week date or whatever you > > want to really track.....You have to set it up one time but you can > > then use it over and over. I can send you a table offline with a bunch > > of dates in it if you would like. > > > > GK > > > > On 1/10/07, Keith Williamson wrote: > > > Yeah. That is basically what I just came up with, I guess. I > created > > > another table with BeginDate and EndDate. Then I am adding the > > > "Between" operator as part of my join statement. It appears to be > > > working...but I need to run some more data through it, to be sure. > > > > > > Thanks! > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > 21231-3305 > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > > > Sent: Wednesday, January 10, 2007 11:08 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Date Compare > > > > > > I would make a table to fit in between that has one field with the > > > individual dates and another field with the week ending date. Then > you > > > do a three table join. It's common to have a Date table in a data > > > warehouse application where you have a record for each possible date > > > and then have various values for that date set, the Fiscal period it > > > is in, The fiscal year week it is in, things like that. Then you > join > > > in that date table whenever you need some of that stuff and you > don't > > > have to resort to calculations or formulas. Works pretty slick. > > > > > > GK > > > > > > On 1/10/07, Keith Williamson wrote: > > > > Hi all, > > > > > > > > > > > > > > > > Anyone have a solution for how to link two tables with different > > > dates? > > > > > > > > > > > > > > > > I have a Payroll Paid table, with field: DatePaid > > > > > > > > > > > > > > > > I also have a Timesheet table, with field: TimesheetEndDate > > > > > > > > > > > > > > > > The DatePaid field is a bi-weekly date. The TimesheetEndDate > field > > is > > > > usually a weekly date, but occasionally there is a supplemental > > > > timesheet date. What I am trying to do is link the Timesheet > table > > > for > > > > all dates that fall within the 13 days prior to, and including, > the > > > > DatePaid. > > > > > > > > > > > > > > > > So, for DatePaid of 11/29/06.....I want to link all Timesheets > with > > a > > > > TimesheetEndDate falling 13 days prior to, and including 11/29/06. > > > > > > > > > > > > > > > > Anyone have a solution for that? > > > > > > > > > > > > > > > > Thanks kindly, for any help. > > > > > > > > > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > > > 21231-3305 > > > > > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > -- > > 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 > > > > > -- > 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 > -- Gary Kjos garykjos at gmail.com From martyconnelly at shaw.ca Wed Jan 10 18:52:38 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 Jan 2007 16:52:38 -0800 Subject: [AccessD] Date Comparison Problem In-Reply-To: References: Message-ID: <45A58A56.10103@shaw.ca> Old versions of MS Works and some real early versions of DB IV or was it II used to let you enter dates like February 31'st. Most disconcerting Charlotte Foust wrote: >Thanks, Gustav. Sorry I took so long to reply to this but I've been up >to my eyes in problems with a SQL backend. Our code has to deal with >date strings brought in from a delimited text file and with converting a >date to a string for export in that format, as well as just handling the >data in the application. When you look at a date string in a text file, >you have no idea what system date format is used or whether it is >compatible with the current date format, but we still have to convert >them to US format for use in SQL statements. Since those dates may NOT >be formatted to the local settings, it can get very entertaining. ;-> > > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Saturday, April 01, 2006 5:33 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Date Comparison Problem > >Hi Charlotte > >As soon as you have a Date value you cannot fail; all you have to is do >to apply the formatting and, using the principle in my StrDateSQL, no >local setting will influence that. It's foolproof. > >However, to get to the Date value is another task and requires careful >handling. As you correctly point out, users can type anything. >For this purpose I would recommend the suggestion by Stuart, DateValue, >as it understands date expression strings formatted as to the local >settings. >Unfortunately, it understands more than that which can lead to >unpredictable results. How to avoid this, read on here: > >http://databaseadvisors.com/pipermail/accessd/2004-December/029764.html > >/gustav > > > >>>>cfoust at infostatsystems.com 31-03-2006 18:37:58 >>> >>>> >>>> >Oh, and we also have to deal with converting data between systems that >use different date formats and delimiters. Start playing with languages >that use a dot as a date delimiter or a space. ;o> > > >-- >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 Wed Jan 10 18:59:17 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 Jan 2007 16:59:17 -0800 Subject: [AccessD] Lopping over events A 2007 In-Reply-To: References: <006701c731b6$6b5fae30$ccb6fea9@m6805> <005e01c7326d$c5ca44e0$0302a8c0@default> Message-ID: <45A58BE5.4050209@shaw.ca> Some snippets that might help You may have to use code to open the form in design view to get at module text For Each ctl In Me.Controls Select Case TypeName(ctl) 'Case "TextBox" _ ' , "ComboBox" _ ' , "CommandButton" _ ' , "ListBox" _ ' , "Label" ' ctl.Font = "Arial" ' ctl.FontSize = 10 Case "CommandButton" Debug.Print ctl.Name; ctl.Properties.Item("OnClick").Value 'note the above property name has spaces removed 'this print line returns ButtonName [Event Procedure] 'tells you a module is associated with button End Select Next ctl or to get the code behind the form Dim strFrmName As String Dim loForm As Form Dim loMod As Module Dim pkType As Long strFrmName = Me.Form.Name DoCmd.OpenForm strFrmName, acDesign Set loForm = Forms(strFrmName) Debug.Print loForm.Name; ".HasModule = "; loForm.HasModule If loForm.HasModule = True Then Set loMod = loForm.Module On Error Resume Next Debug.Print loMod.CountOfDeclarationLines ' Number of Declares for form module Debug.Print loMod.CountOfLines ' Number of module lines of code for form. Debug.Print loMod.Name ' form name being interogated Debug.Print loMod.Lines(1, loMod.CountOfLines) ' List All Module lines of code 'I guess you have to use this to find start and end of proc lines 'Debug.Print loMod.Find("PART", 1, 1, loMod.CountOfLines, 1000, False, False, True) ' returns true if "part" is found 'Debug.Print loMod.ProcStartLine("OutputToHTML_Click", pkType) End If Exit_OutputToHTML_Click: Exit Sub Martin Reid wrote: >Is it possible to check every form buttons on click property to see if they are using Event Procedures or Embedded macros. If using macros is there a way to capture the text of the macro? > >Martin > >Martin WP Reid >Training and Assessment Unit >Riddle Hall >Belfast > >tel: 02890 974477 > > > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.5.432 / Virus Database: 268.16.7/618 - Release Date: 06/01/2007 7:47 PM > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Thu Jan 11 07:02:34 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 11 Jan 2007 08:02:34 -0500 Subject: [AccessD] An interesting article from the other side Message-ID: <009e01c73580$c36969e0$657aa8c0@m6805> The Failure of Relational Database, The Rise of Object Technology and the Need for the Hybrid Database http://www.sswug.org/whitepapers/whitepaperinfo.asp?id=133 John W. Colby Colby Consulting www.ColbyConsulting.com From ssharkins at setel.com Thu Jan 11 09:39:36 2007 From: ssharkins at setel.com (Susan Harkins) Date: Thu, 11 Jan 2007 10:39:36 -0500 Subject: [AccessD] OT: For Darren Dick Message-ID: <003501c73596$b3ab4120$c2b82ad1@SUSANONE> I apologize to the list, but my private to Darren keeps bouncing. :( Darren, can you contact me privately at ssharkins at setel.com. I'd like to propose a possible article. Susan Harkins From Kwilliamson at RTKL.com Thu Jan 11 12:28:11 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 11 Jan 2007 13:28:11 -0500 Subject: [AccessD] Test?? Message-ID: Where'd everybody go? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From garykjos at gmail.com Thu Jan 11 12:31:50 2007 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 11 Jan 2007 12:31:50 -0600 Subject: [AccessD] Test?? In-Reply-To: References: Message-ID: I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Thu Jan 11 12:41:08 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 11 Jan 2007 13:41:08 -0500 Subject: [AccessD] Test?? In-Reply-To: Message-ID: LOL! I think I am good. I just hate when things go quiet. Makes me afraid to look outside...like, maybe, I'll see a mushroom cloud, or something. :) I need the reassuring chatter of these lists. But I can't do OT at work. Okay. I'm reassured. Thank you!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, January 11, 2007 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 lembit.dbamail at t-online.de Thu Jan 11 12:43:03 2007 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Thu, 11 Jan 2007 19:43:03 +0100 Subject: [AccessD] Test?? References: Message-ID: <000e01c735b0$54129a50$1800a8c0@s1800> didnt you read OT? we are all on the plane to Hawaii Lembit ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, January 11, 2007 7:28 PM Subject: [AccessD] Test?? > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Jan 11 12:51:42 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 11 Jan 2007 13:51:42 -0500 Subject: [AccessD] Test?? In-Reply-To: <000e01c735b0$54129a50$1800a8c0@s1800> Message-ID: YOU LEFT WITHOUT ME????!!!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lembit Soobik Sent: Thursday, January 11, 2007 1:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? didnt you read OT? we are all on the plane to Hawaii Lembit ----- Original Message ----- From: "Keith Williamson" To: "Access Developers discussion and problem solving" Sent: Thursday, January 11, 2007 7:28 PM Subject: [AccessD] Test?? > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Jan 11 13:03:26 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 11 Jan 2007 14:03:26 -0500 Subject: [AccessD] Test?? In-Reply-To: Message-ID: <0e4401c735b3$2d643af0$657aa8c0@m6805> A mushroom cloud? Hmmm.... Psilocybin anyone? If you are seeing (or expect to see) mushroom clouds... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? LOL! I think I am good. I just hate when things go quiet. Makes me afraid to look outside...like, maybe, I'll see a mushroom cloud, or something. :) I need the reassuring chatter of these lists. But I can't do OT at work. Okay. I'm reassured. Thank you!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, January 11, 2007 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Thu Jan 11 13:16:22 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 11 Jan 2007 14:16:22 -0500 Subject: [AccessD] Test?? In-Reply-To: <0e4401c735b3$2d643af0$657aa8c0@m6805> Message-ID: Mock me if you must. Unfortunately, I fully believe that within my lifetime.....we WILL be seeing one, overtop of one (or more) of our cities. It seems inevitable, I'm afraid. :( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 11, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Test?? A mushroom cloud? Hmmm.... Psilocybin anyone? If you are seeing (or expect to see) mushroom clouds... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? LOL! I think I am good. I just hate when things go quiet. Makes me afraid to look outside...like, maybe, I'll see a mushroom cloud, or something. :) I need the reassuring chatter of these lists. But I can't do OT at work. Okay. I'm reassured. Thank you!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, January 11, 2007 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jan 11 13:46:30 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 11 Jan 2007 14:46:30 -0500 Subject: [AccessD] Test?? In-Reply-To: Message-ID: <0e4e01c735b9$3152f290$657aa8c0@m6805> Another reason to live in Hudson, NC. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? Mock me if you must. Unfortunately, I fully believe that within my lifetime.....we WILL be seeing one, overtop of one (or more) of our cities. It seems inevitable, I'm afraid. :( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 11, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Test?? A mushroom cloud? Hmmm.... Psilocybin anyone? If you are seeing (or expect to see) mushroom clouds... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? LOL! I think I am good. I just hate when things go quiet. Makes me afraid to look outside...like, maybe, I'll see a mushroom cloud, or something. :) I need the reassuring chatter of these lists. But I can't do OT at work. Okay. I'm reassured. Thank you!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, January 11, 2007 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Jan 11 14:06:50 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 11 Jan 2007 15:06:50 -0500 Subject: [AccessD] Test?? In-Reply-To: <0e4e01c735b9$3152f290$657aa8c0@m6805> Message-ID: Were there other ones?? :>) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 11, 2007 2:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Test?? Another reason to live in Hudson, NC. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? Mock me if you must. Unfortunately, I fully believe that within my lifetime.....we WILL be seeing one, overtop of one (or more) of our cities. It seems inevitable, I'm afraid. :( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 11, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Test?? A mushroom cloud? Hmmm.... Psilocybin anyone? If you are seeing (or expect to see) mushroom clouds... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? LOL! I think I am good. I just hate when things go quiet. Makes me afraid to look outside...like, maybe, I'll see a mushroom cloud, or something. :) I need the reassuring chatter of these lists. But I can't do OT at work. Okay. I'm reassured. Thank you!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, January 11, 2007 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Jan 11 14:15:48 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 11 Jan 2007 20:15:48 +0000 Subject: [AccessD] Field Names In-Reply-To: Message-ID: Hello All,(You to Keith) I know we've talked about it...but I can't remember where...I need to get a list of all field names by table...I know I can use the analyzer...but its not in a very userfriendly format. Ideas? Thanks, Mark A. Matte P.S...Don't be scared Keith...most likely if its close enough...we won't have to see the cloud...just vaporize...sorry. _____ / \ | | \ / \ / / \....Boom? _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview From carbonnb at gmail.com Thu Jan 11 14:16:44 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 11 Jan 2007 15:16:44 -0500 Subject: [AccessD] Test?? In-Reply-To: References: <0e4401c735b3$2d643af0$657aa8c0@m6805> Message-ID: On 1/11/07, Keith Williamson wrote: > Mock me if you must. Unfortunately, I fully believe that within my > lifetime.....we WILL be seeing one, overtop of one (or more) of our > cities. It seems inevitable, I'm afraid. Keith, Keith, Keith... Wrong list for this topic :) -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mwp.reid at qub.ac.uk Thu Jan 11 14:33:01 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 11 Jan 2007 20:33:01 -0000 Subject: [AccessD] My Book and your permissions References: Message-ID: Folks Lots of you give me permission to add your code into a chapter called Code You can steal. I am doing it now. I will post a list when done of everyones code I have used. If anyone wants their code removed please let me know and I wil remove it. This is just in case I happen to add in something I should not. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From markamatte at hotmail.com Thu Jan 11 14:36:19 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 11 Jan 2007 20:36:19 +0000 Subject: [AccessD] Field Names In-Reply-To: Message-ID: Thanks, But I figured it out...I was just confused. Thanks All, mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] Field Names >Date: Thu, 11 Jan 2007 20:15:48 +0000 > >Hello All,(You to Keith) > >I know we've talked about it...but I can't remember where...I need to get a >list of all field names by table...I know I can use the analyzer...but its >not in a very userfriendly format. > >Ideas? > >Thanks, > >Mark A. Matte > >P.S...Don't be scared Keith...most likely if its close enough...we won't >have to see the cloud...just vaporize...sorry. > _____ > / \ > | | > \ / > \ / > / \....Boom? > >_________________________________________________________________ >Communicate instantly! Use your Hotmail address to sign into Windows Live >Messenger now. http://get.live.com/messenger/overview > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview From Chester_Kaup at kindermorgan.com Thu Jan 11 15:04:24 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 11 Jan 2007 15:04:24 -0600 Subject: [AccessD] Field Names In-Reply-To: Message-ID: Here is some code I use to populate a table with all the fields in all the tables in a database with some info about the fields. Option Compare Database Sub TableNames() Set MyDb = CurrentDb() ' Set AllTableDefs to definitions of all tables in the database: Set AllTableDefs = MyDb.TableDefs ' Set tbl Table Definitions to save table name and field information Set myds = MyDb.OpenRecordset("tbl Table Definitions", dbOpenTable) Dim Table_Name As String, Field_Name As String, Field_Size As Integer, Field_Type As String For I = 0 To AllTableDefs.Count - 1 'Get the name of the table and save it to a variable Table_Name = AllTableDefs(I).Name Set SingleTableDef = AllTableDefs(I) ' Display the properties of each field in the table: For J = 0 To SingleTableDef.Fields.Count - 1 ' save the name of the field in the table selected to a variable Field_Name = SingleTableDef.Fields(J).Name 'Name of field Field_Size = SingleTableDef.Fields(J).Size 'Size of field. Select Case SingleTableDef.Fields(J).Type 'Type of field. Case 1 Field_Type = "Byte" Case 3 Field_Type = "Integer" Case 4 Field_Type = "Long Integer" Case 5 Field_Type = "Currency" Case 6 Field_Type = "Single" Case 7 Field_Type = "Double" Case 8 Field_Type = "Date/Time" Case 10 Field_Type = "Text" Case 11 Field_Type = "OLE Object" Case 12 Field_Type = "Hyperlink" Case 16 Field_Type = "Replication ID" Case 20 Field_Type = "Decimal" End Select 'Save the info about each filed to the table tbble Table Definitions With myds .AddNew ![Table_Name] = Table_Name ![Field_Name] = Field_Name ![Field_Size] = Field_Size ![Field_Type] = Field_Type .Update End With Next 'next field in table Next 'next table End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, January 11, 2007 2:36 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Field Names Thanks, But I figured it out...I was just confused. Thanks All, mark >From: "Mark A Matte" >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] Field Names >Date: Thu, 11 Jan 2007 20:15:48 +0000 > >Hello All,(You to Keith) > >I know we've talked about it...but I can't remember where...I need to get a >list of all field names by table...I know I can use the analyzer...but its >not in a very userfriendly format. > >Ideas? > >Thanks, > >Mark A. Matte > >P.S...Don't be scared Keith...most likely if its close enough...we won't >have to see the cloud...just vaporize...sorry. > _____ > / \ > | | > \ / > \ / > / \....Boom? > >_________________________________________________________________ >Communicate instantly! Use your Hotmail address to sign into Windows Live >Messenger now. http://get.live.com/messenger/overview > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Communicate instantly! Use your Hotmail address to sign into Windows Live Messenger now. http://get.live.com/messenger/overview -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jan 11 15:28:55 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 11 Jan 2007 16:28:55 -0500 Subject: [AccessD] Test?? In-Reply-To: Message-ID: <0e5e01c735c7$803e5080$657aa8c0@m6805> LOL, how about... A 15 year old 5000 sq ft house on an acre for 260K, a tax rate of .75 mil on that house, furnishing my house at what is wholesale elsewhere, gasoline at $2.12 / gallon, a crime rate that is barely discernable, friendly people, good food, no traffic (much less traffic jams), temperatures 20 degrees warmer during the winter (and only mildly warmer in the summer)... And many more where those came from. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 3:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? Were there other ones?? :>) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 11, 2007 2:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Test?? Another reason to live in Hudson, NC. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 2:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? Mock me if you must. Unfortunately, I fully believe that within my lifetime.....we WILL be seeing one, overtop of one (or more) of our cities. It seems inevitable, I'm afraid. :( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 11, 2007 2:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Test?? A mushroom cloud? Hmmm.... Psilocybin anyone? If you are seeing (or expect to see) mushroom clouds... John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 11, 2007 1:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? LOL! I think I am good. I just hate when things go quiet. Makes me afraid to look outside...like, maybe, I'll see a mushroom cloud, or something. :) I need the reassuring chatter of these lists. But I can't do OT at work. Okay. I'm reassured. Thank you!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, January 11, 2007 1:32 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test?? I'm here. And I hear you. What can I help you with today ;-) GK On 1/11/07, Keith Williamson wrote: > Where'd everybody go? > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Jan 12 03:22:04 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 12 Jan 2007 12:22:04 +0300 Subject: [AccessD] OT:FYI: Interesting article - creating simple PDF from stored procedure Message-ID: <001c01c7362b$2049f580$6401a8c0@nant> Hi All, Just thought that would be interesting to read for you: To Create PDF from SQL stored procedure: ======================================== http://database.ittoolbox.com/white-papers/to-create-pdf-from-sql-stored-pro cedure-5094?r=DO:Docs I did a quick test - it works well. -- Shamil From paul.hartland at fsmail.net Fri Jan 12 04:54:45 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Jan 2007 11:54:45 +0100 (CET) Subject: [AccessD] Return Autonumber Value Message-ID: <14787448.60371168599285955.JavaMail.www@wwinf3101> To all, I have a user log table (tblUserLog) for which I want to store user logon details (Name, LogonDate, LogonTime, LogoffTime, TotalTime), I also have an autonumber field called LogID. What I need is when I write the initial user log details, I want to return the LogID into a variable. What I did think of is write the record details and then do a MAX on the LogID field, but what would happen if two users logged on at the same time would it be possible to return the wrong LogID for one of the users ? What is the best way to go about this ? Thanks in advance for any help. Paul Hartland From Gustav at cactus.dk Fri Jan 12 05:42:12 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Jan 2007 12:42:12 +0100 Subject: [AccessD] Return Autonumber Value Message-ID: Hi Paul One way to handle this is to write the complete procedure using DAO or ADO only - without DMax or action queries. Here's how with ADO: Public Function NextID() As Long Const cstrTable As String = "tblYourTable" Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Dim lngID As Long Set cnn = CurrentProject.Connection Set rst = New ADODB.Recordset With rst ' Open table as recordset. .ActiveConnection = cnn .CursorType = adOpenKeyset .Source = cstrTable .LockType = adLockOptimistic .Open .AddNew ' Write your field values. .Fields(1).Value = .Fields(2).Value = .Fields(3).Value = ' Retrieve new ID from Autonumber field. lngID = .Fields(0).Value .Update .Close End With Set rst = Nothing Set cnn = Nothing ' Return new ID. NextID = lngID End Function /gustav >>> paul.hartland at fsmail.net 12-01-2007 11:54 >>> To all, I have a user log table (tblUserLog) for which I want to store user logon details (Name, LogonDate, LogonTime, LogoffTime, TotalTime), I also have an autonumber field called LogID. What I need is when I write the initial user log details, I want to return the LogID into a variable. What I did think of is write the record details and then do a MAX on the LogID field, but what would happen if two users logged on at the same time would it be possible to return the wrong LogID for one of the users ? What is the best way to go about this ? Thanks in advance for any help. Paul Hartland From paul.hartland at fsmail.net Fri Jan 12 05:58:04 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Jan 2007 12:58:04 +0100 (CET) Subject: [AccessD] Return Autonumber Value Message-ID: <14122496.209541168603084185.JavaMail.www@wwinf3103> LOL thanks gustav, no idea why I never thought of that....Friday blonde moment... Message Received: Jan 12 2007, 11:46 AM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Return Autonumber Value Hi Paul One way to handle this is to write the complete procedure using DAO or ADO only - without DMax or action queries. Here's how with ADO: Public Function NextID() As Long Const cstrTable As String = "tblYourTable" Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Dim lngID As Long Set cnn = CurrentProject.Connection Set rst = New ADODB.Recordset With rst ' Open table as recordset. .ActiveConnection = cnn .CursorType = adOpenKeyset .Source = cstrTable .LockType = adLockOptimistic .Open .AddNew ' Write your field values. .Fields(1).Value = .Fields(2).Value = .Fields(3).Value = ' Retrieve new ID from Autonumber field. lngID = .Fields(0).Value .Update .Close End With Set rst = Nothing Set cnn = Nothing ' Return new ID. NextID = lngID End Function /gustav >>> paul.hartland at fsmail.net 12-01-2007 11:54 >>> To all, I have a user log table (tblUserLog) for which I want to store user logon details (Name, LogonDate, LogonTime, LogoffTime, TotalTime), I also have an autonumber field called LogID. What I need is when I write the initial user log details, I want to return the LogID into a variable. What I did think of is write the record details and then do a MAX on the LogID field, but what would happen if two users logged on at the same time would it be possible to return the wrong LogID for one of the users ? What is the best way to go about this ? Thanks in advance for any help. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From paul.hartland at fsmail.net Fri Jan 12 05:59:44 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 12 Jan 2007 12:59:44 +0100 (CET) Subject: [AccessD] Return Autonumber Value Message-ID: <13651626.209731168603184228.JavaMail.www@wwinf3103> LOL thanks gustav, no idea why I never thought of that....Friday blonde moment... Message Received: Jan 12 2007, 11:46 AM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] Return Autonumber Value Hi Paul One way to handle this is to write the complete procedure using DAO or ADO only - without DMax or action queries. Here's how with ADO: Public Function NextID() As Long Const cstrTable As String = "tblYourTable" Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Dim lngID As Long Set cnn = CurrentProject.Connection Set rst = New ADODB.Recordset With rst ' Open table as recordset. .ActiveConnection = cnn .CursorType = adOpenKeyset .Source = cstrTable .LockType = adLockOptimistic .Open .AddNew ' Write your field values. .Fields(1).Value = .Fields(2).Value = .Fields(3).Value = ' Retrieve new ID from Autonumber field. lngID = .Fields(0).Value .Update .Close End With Set rst = Nothing Set cnn = Nothing ' Return new ID. NextID = lngID End Function /gustav >>> paul.hartland at fsmail.net 12-01-2007 11:54 >>> To all, I have a user log table (tblUserLog) for which I want to store user logon details (Name, LogonDate, LogonTime, LogoffTime, TotalTime), I also have an autonumber field called LogID. What I need is when I write the initial user log details, I want to return the LogID into a variable. What I did think of is write the record details and then do a MAX on the LogID field, but what would happen if two users logged on at the same time would it be possible to return the wrong LogID for one of the users ? What is the best way to go about this ? Thanks in advance for any help. Paul Hartland -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Fri Jan 12 08:01:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 12 Jan 2007 09:01:17 -0500 Subject: [AccessD] Return Autonumber Value In-Reply-To: <14787448.60371168599285955.JavaMail.www@wwinf3101> Message-ID: <001401c73652$222e5b30$657aa8c0@m6805> You didn't say how you write this into the table. If you use a SQL statement or query then that is about the best you can do I think, although... If you know the name of the user you could do a Top 1 where user = "SomeUserName". Or you could use a function that opens a recordset and writes the record. Doing that you could grab the autonumber right in that routine. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Friday, January 12, 2007 5:55 AM To: accessd Subject: [AccessD] Return Autonumber Value Importance: High To all, I have a user log table (tblUserLog) for which I want to store user logon details (Name, LogonDate, LogonTime, LogoffTime, TotalTime), I also have an autonumber field called LogID. What I need is when I write the initial user log details, I want to return the LogID into a variable. What I did think of is write the record details and then do a MAX on the LogID field, but what would happen if two users logged on at the same time would it be possible to return the wrong LogID for one of the users ? What is the best way to go about this ? Thanks in advance for any help. 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 Fri Jan 12 11:52:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Jan 2007 18:52:29 +0100 Subject: [AccessD] Mozilla ActiveX Control Message-ID: Hi all "Wouldn't it be great if the Mozilla control used the same API as the Internet Explorer control?" Anyone familiar with this replacement(?) for the MS control: http://www.iol.ie/~locka/mozilla/control.htm /gustav From jwcolby at colbyconsulting.com Fri Jan 12 13:17:15 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 12 Jan 2007 14:17:15 -0500 Subject: [AccessD] Comparing strings Message-ID: <004101c7367e$45a5c720$657aa8c0@m6805> Is there a syntax in VBA for showing the position of the first difference between two strings? John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at gmail.com Fri Jan 12 13:38:05 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 12 Jan 2007 14:38:05 -0500 Subject: [AccessD] Mozilla ActiveX Control In-Reply-To: References: Message-ID: On 1/12/07, Gustav Brock wrote: > Hi all > > "Wouldn't it be great if the Mozilla control used the same API as the Internet Explorer control?" > > Anyone familiar with this replacement(?) for the MS control: > > http://www.iol.ie/~locka/mozilla/control.htm I've used it the past for running ActiveX on web sites. Worked fine from what I can recall. But it's been a while since I've used it. -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From accessd at shaw.ca Fri Jan 12 13:51:39 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 12 Jan 2007 11:51:39 -0800 Subject: [AccessD] Mozilla ActiveX Control In-Reply-To: Message-ID: <0JBR00JKPTQQ34V0@l-daemon> Gustav: Access to the MS EI controls have always been fairly easy (well documented) and it relatively straightforward to create a few specialty browser type interfaces for government offices which only use the WindowOS and IE. It would be great if Mozilla extended the same functionality. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 12, 2007 9:52 AM To: accessd at databaseadvisors.com Subject: [AccessD] Mozilla ActiveX Control Hi all "Wouldn't it be great if the Mozilla control used the same API as the Internet Explorer control?" Anyone familiar with this replacement(?) for the MS control: http://www.iol.ie/~locka/mozilla/control.htm /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Jan 12 13:17:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 12 Jan 2007 11:17:55 -0800 Subject: [AccessD] OT:FYI: Interesting article - creating simple PDF fromstored procedure In-Reply-To: <001c01c7362b$2049f580$6401a8c0@nant> Message-ID: <0JBR00FY7S6IDWG3@l-daemon> That is incredible, Shamil... I can use that right away. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, January 12, 2007 1:22 AM To: 'Access-D' Subject: [AccessD] OT:FYI: Interesting article - creating simple PDF fromstored procedure Hi All, Just thought that would be interesting to read for you: To Create PDF from SQL stored procedure: ======================================== http://database.ittoolbox.com/white-papers/to-create-pdf-from-sql-stored-pro cedure-5094?r=DO:Docs I did a quick test - it works well. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Jan 12 14:40:39 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 12 Jan 2007 20:40:39 +0000 Subject: [AccessD] Comparing strings In-Reply-To: <004101c7367e$45a5c720$657aa8c0@m6805> Message-ID: John, If I understand your question...in this example Text1 and Text2 are textboxes. This may do what you need: Dim T1 'length of Text1 Dim CP 'Current Position T1 = Len(Me!Text1) CP = 0 Do Until CP > T1 CP = CP + 1 If Left(Me!Text1, CP) = Left(Me!Text2, CP) Then Else MsgBox "The first difference between text1 and text2 is in position " & CP Exit Sub End If Loop MsgBox "Text1 and Text2 are the same" Hope it helps. Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Comparing strings >Date: Fri, 12 Jan 2007 14:17:15 -0500 > >Is there a syntax in VBA for showing the position of the first difference >between two strings? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Type your favorite song.? Get a customized station.? Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 From Patricia.O'Connor at otda.state.ny.us Fri Jan 12 15:17:11 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Fri, 12 Jan 2007 16:17:11 -0500 Subject: [AccessD] tsGetFileFromUser() In-Reply-To: Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BACFF@EXCNYSM0A1AI.nysemail.nyenet> When using tsGetFileFromUser() function how can I set it up to display the screen as DETAILS instead of the thumbnail, tiles, icon, list? I want the user to be able to see when a particular file was modified/created, so they select the most current. Access 97 for now will be upgrading very soon. Thanks ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. From galeper at gmail.com Fri Jan 12 15:42:38 2007 From: galeper at gmail.com (Gale Perez) Date: Fri, 12 Jan 2007 13:42:38 -0800 Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date Message-ID: <5b2621db0701121342k4b719b1bj427d4b93fe5db284@mail.gmail.com> Hello! I have been given an Access table, exported from Clarion, with a date field containing a serial number representing the date. I understand that the Clarion date begins December 28,1800, and that Access begins with December 31, 1899, or 36162 days later. I created a query to update the Clarion date to ClarionDate-36162 (although i've also seen advice to subtract 36161 - I'll know which is right once I've converted the serial to a date), but how do I convert that serial number to a regular date? I've tried CDate([MyNumber] and Format([MyNumber,"mm/dd/yyyy") (and I've tried rearranging the days, months and years in the Format function), but to no avail. Could someone please advise me how to do this? Thank you very much for any suggestions, Gale From mmattys at rochester.rr.com Fri Jan 12 16:12:26 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Fri, 12 Jan 2007 17:12:26 -0500 Subject: [AccessD] tsGetFileFromUser() References: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BACFF@EXCNYSM0A1AI.nysemail.nyenet> Message-ID: <01a901c73696$bf03f390$0302a8c0@default> Look for adhcGfniViewDetails in Google Groups Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "O'Connor, Patricia (OTDA)" To: "Access Developers discussion and problem solving" Sent: Friday, January 12, 2007 4:17 PM Subject: [AccessD] tsGetFileFromUser() > When using tsGetFileFromUser() function how can I set it up to display > the screen as DETAILS instead of the thumbnail, tiles, icon, list? > > I want the user to be able to see when a particular file was > modified/created, so they select the most current. > Access 97 for now will be upgrading very soon. > > Thanks > > ************************************************** > * Patricia O'Connor > * Associate Computer Programmer Analyst > * OTDA - BDMA > * (W) mailto:Patricia.O'Connor at otda.state.ny.us > * (w) mailto:aa1160 at nysemail.state.ny.us > ************************************************** > -------------------------------------------------------- > This e-mail, including any attachments, may be confidential, privileged or > otherwise legally protected. It is intended only for the addressee. If you > received this e-mail in error or from someone who was not authorized to > send it to you, do not disseminate, copy or otherwise use this e-mail or > its attachments. Please notify the sender immediately by reply e-mail and > delete the e-mail from your system. > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at users.mns.ru Fri Jan 12 17:14:57 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Sat, 13 Jan 2007 02:14:57 +0300 Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date In-Reply-To: <5b2621db0701121342k4b719b1bj427d4b93fe5db284@mail.gmail.com> Message-ID: <000901c7369f$7a253ff0$6401a8c0@nant> <<< ? I've tried CDate([MyNumber] >>> Hello Gale, Cdate([MyNumber]) Where [MyNumber] should work OK is [myNumber] is a well formed number... Maybe you've just missed trailing round bracket in your update query? <<< and Format([MyNumber,"mm/dd/yyyy") >>> Here square bracket is missing... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gale Perez Sent: Saturday, January 13, 2007 12:43 AM To: accessd at databaseadvisors.com Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date Hello! I have been given an Access table, exported from Clarion, with a date field containing a serial number representing the date. I understand that the Clarion date begins December 28,1800, and that Access begins with December 31, 1899, or 36162 days later. I created a query to update the Clarion date to ClarionDate-36162 (although i've also seen advice to subtract 36161 - I'll know which is right once I've converted the serial to a date), but how do I convert that serial number to a regular date? I've tried CDate([MyNumber] and Format([MyNumber,"mm/dd/yyyy") (and I've tried rearranging the days, months and years in the Format function), but to no avail. Could someone please advise me how to do this? Thank you very much for any suggestions, Gale -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Sat Jan 13 15:59:31 2007 From: kismert at gmail.com (Ken Ismert) Date: Sat, 13 Jan 2007 15:59:31 -0600 Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date In-Reply-To: References: Message-ID: <45A95643.4010004@gmail.com> Gale, Actually, Microsoft Day 0 is: 12/30/1899, 12:00:00 AM. That is 36161 days after Clarion Day 0. So, your function should be: MSDate = CDate(ClarionDate-36161) Incidentally, the smallest expressible MSDate is 1/1/100 (-642416), and the largest is 12/31/9999 (2973483). -Ken > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gale Perez > Sent: Saturday, January 13, 2007 12:43 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date > > Hello! > > I have been given an Access table, exported from Clarion, with a date field > containing a serial number representing the date. I understand that the > Clarion date begins December 28,1800, and that Access begins with December > 31, 1899, or 36162 days later. I created a query to update the Clarion date > to ClarionDate-36162 (although i've also seen advice to subtract 36161 > - I'll know which is right once I've converted the serial to a date), but > how do I convert that serial number to a regular date? I've tried > CDate([MyNumber] and Format([MyNumber,"mm/dd/yyyy") (and I've tried > rearranging the days, months and years in the Format function), but to no > avail. Could someone please advise me how to do this? > > > Thank you very much for any suggestions, > Gale > From Gustav at cactus.dk Sun Jan 14 05:08:31 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 14 Jan 2007 12:08:31 +0100 Subject: [AccessD] tsGetFileFromUser() Message-ID: Hi Patricia This sounds like job for Drew! I once wondered the same but all I could find was comments like these: --- > Does anybody know how to set the 'view' that is used when you use > the ShowOpen method of the CommonDialog. > I would like to default the view to the 'details' view. That feature is not available in either the common control, or the API version. In the API version you can do it using subclassing, The idea is that if you need to provide extra functionality, you provide your own dialog (template and/or resource) and then handle all the messages via a custom hook function. This is not a very practical solution for VB programmers. --- And this VB code using a timer(!): http://www.vbsight.com/CodeO.htm /gustav >>> Patricia.O'Connor at otda.state.ny.us 12-01-2007 22:17:11 >>> When using tsGetFileFromUser() function how can I set it up to display the screen as DETAILS instead of the thumbnail, tiles, icon, list? I want the user to be able to see when a particular file was modified/created, so they select the most current. Access 97 for now will be upgrading very soon. From artful at rogers.com Sun Jan 14 09:04:43 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 14 Jan 2007 07:04:43 -0800 (PST) Subject: [AccessD] tsGetFileFromUser() Message-ID: <20070114150443.28596.qmail@web88211.mail.re2.yahoo.com> Wouldn't it be nice if there were some registry setting somewhere that would affect all the File Open|Select dialogs in all your programs? It sometimes seems as if various apps remember exactly the setting I don't want, and foist it upon me time after time. I always want the Details view; the only issue is whether I want it sorted by name or by date, and that's only one or two clicks at most. It must lurk in the registry somewhere, but I am anything but a registry-wiz. ----- Original Message ---- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Sunday, January 14, 2007 6:08:31 AM Subject: Re: [AccessD] tsGetFileFromUser() Hi Patricia This sounds like job for Drew! I once wondered the same but all I could find was comments like these: --- > Does anybody know how to set the 'view' that is used when you use > the ShowOpen method of the CommonDialog. > I would like to default the view to the 'details' view. That feature is not available in either the common control, or the API version. In the API version you can do it using subclassing, The idea is that if you need to provide extra functionality, you provide your own dialog (template and/or resource) and then handle all the messages via a custom hook function. This is not a very practical solution for VB programmers. --- And this VB code using a timer(!): http://www.vbsight.com/CodeO.htm /gustav >>> Patricia.O'Connor at otda.state.ny.us 12-01-2007 22:17:11 >>> When using tsGetFileFromUser() function how can I set it up to display the screen as DETAILS instead of the thumbnail, tiles, icon, list? I want the user to be able to see when a particular file was modified/created, so they select the most current. Access 97 for now will be upgrading very soon. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mmattys at rochester.rr.com Sun Jan 14 09:12:02 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Sun, 14 Jan 2007 10:12:02 -0500 Subject: [AccessD] tsGetFileFromUser() References: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BACFF@EXCNYSM0A1AI.nysemail.nyenet> <01a901c73696$bf03f390$0302a8c0@default> Message-ID: <030e01c737ee$594b26f0$0302a8c0@default> Oh! I didn't read the whole thing. Sorry, Ken. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "Michael R Mattys" To: "Access Developers discussion and problem solving" Sent: Friday, January 12, 2007 5:12 PM Subject: Re: [AccessD] tsGetFileFromUser() > Look for ****** in Google Groups > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com > > ----- Original Message ----- > From: "O'Connor, Patricia (OTDA)" > To: "Access Developers discussion and problem solving" > > Sent: Friday, January 12, 2007 4:17 PM > Subject: [AccessD] tsGetFileFromUser() > > >> When using tsGetFileFromUser() function how can I set it up to display >> the screen as DETAILS instead of the thumbnail, tiles, icon, list? >> >> I want the user to be able to see when a particular file was >> modified/created, so they select the most current. >> Access 97 for now will be upgrading very soon. >> >> Thanks >> >> ************************************************** >> * Patricia O'Connor >> * Associate Computer Programmer Analyst >> * OTDA - BDMA >> * (W) mailto:Patricia.O'Connor at otda.state.ny.us >> * (w) mailto:aa1160 at nysemail.state.ny.us >> ************************************************** >> -------------------------------------------------------- >> This e-mail, including any attachments, may be confidential, privileged >> or >> otherwise legally protected. It is intended only for the addressee. If >> you >> received this e-mail in error or from someone who was not authorized to >> send it to you, do not disseminate, copy or otherwise use this e-mail or >> its attachments. Please notify the sender immediately by reply e-mail >> and >> delete the e-mail from your system. >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Jan 14 14:33:27 2007 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 Jan 2007 20:33:27 -0000 Subject: [AccessD] OT: Access Book and Your Permissions References: Message-ID: Folks I forgot one thing when I requested your permissions to republish your code. I need to write up some of your questions as well. Now I will do this without identifying either the individual/company/product etc etc but if anyone does not want a question asked please email me off list and let me know. I permissions to use the code examples and forgot all about questions etc Of course if I use your code I will ID you. But will not ID the individual asking the question at all. If you asked a question and the resulting code being published could damage your software in any way please let me know as well. I am just covering the book here as they require permissions for everything. Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast tel: 02890 974477 From bheid at sc.rr.com Sun Jan 14 14:37:56 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sun, 14 Jan 2007 15:37:56 -0500 Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? Message-ID: <008a01c7381b$df8fe390$2d01a8c0@bhxp> Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby From jwcolby at colbyconsulting.com Sun Jan 14 14:51:04 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 14 Jan 2007 15:51:04 -0500 Subject: [AccessD] Comparing strings In-Reply-To: Message-ID: <006701c7381d$b5caead0$657aa8c0@m6805> Yea, I can do something like that. I was hoping for a built-in syntax. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, January 12, 2007 3:41 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Comparing strings John, If I understand your question...in this example Text1 and Text2 are textboxes. This may do what you need: Dim T1 'length of Text1 Dim CP 'Current Position T1 = Len(Me!Text1) CP = 0 Do Until CP > T1 CP = CP + 1 If Left(Me!Text1, CP) = Left(Me!Text2, CP) Then Else MsgBox "The first difference between text1 and text2 is in position " & CP Exit Sub End If Loop MsgBox "Text1 and Text2 are the same" Hope it helps. Mark A. Matte >From: "JWColby" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Comparing strings >Date: Fri, 12 Jan 2007 14:17:15 -0500 > >Is there a syntax in VBA for showing the position of the first >difference between two strings? > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Type your favorite song. Get a customized station. Try MSN Radio powered by Pandora. http://radio.msn.com/?icid=T002MSN03A07001 From shamil at users.mns.ru Sun Jan 14 17:02:54 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Mon, 15 Jan 2007 02:02:54 +0300 Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? In-Reply-To: <008a01c7381b$df8fe390$2d01a8c0@bhxp> Message-ID: <000001c73830$1fb8f830$6501a8c0@nant> Bobby, If you have Visual Studio 2005 Professional Edition then you can use Crystal Reports, which comes free together with VS2005 Profesional. Crystal Reports runtime is also free (most of the options needed for usually created repots) and can be installed with your VS2005 applications on your customers' computers. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Sunday, January 14, 2007 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT,sort of: What reporting components are you using for .Net? Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sun Jan 14 19:49:40 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 14 Jan 2007 17:49:40 -0800 (PST) Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? Message-ID: <20070115014940.86469.qmail@web88211.mail.re2.yahoo.com> What's wrong with Reporting Services? ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Sunday, January 14, 2007 3:37:56 PM Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Sun Jan 14 21:07:38 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sun, 14 Jan 2007 22:07:38 -0500 Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? In-Reply-To: <000001c73830$1fb8f830$6501a8c0@nant> References: <008a01c7381b$df8fe390$2d01a8c0@bhxp> <000001c73830$1fb8f830$6501a8c0@nant> Message-ID: <003c01c73852$50f66ff0$2d01a8c0@bhxp> I only have VS2005 standard at the moment. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Sunday, January 14, 2007 6:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT, sort of: What reporting components are you using for .Net? Bobby, If you have Visual Studio 2005 Professional Edition then you can use Crystal Reports, which comes free together with VS2005 Profesional. Crystal Reports runtime is also free (most of the options needed for usually created repots) and can be installed with your VS2005 applications on your customers' computers. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Sunday, January 14, 2007 11:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT,sort of: What reporting components are you using for .Net? Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Sun Jan 14 21:08:14 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Sun, 14 Jan 2007 22:08:14 -0500 Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? In-Reply-To: <20070115014940.86469.qmail@web88211.mail.re2.yahoo.com> References: <20070115014940.86469.qmail@web88211.mail.re2.yahoo.com> Message-ID: <003d01c73852$65d57470$2d01a8c0@bhxp> This is going against an Access back-end. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Sunday, January 14, 2007 8:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT, sort of: What reporting components are you using for .Net? What's wrong with Reporting Services? ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Sunday, January 14, 2007 3:37:56 PM Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sun Jan 14 21:49:28 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Sun, 14 Jan 2007 22:49:28 -0500 Subject: [AccessD] deduplication Message-ID: <007801c73858$28f96920$657aa8c0@m6805> Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com From artful at rogers.com Sun Jan 14 22:20:07 2007 From: artful at rogers.com (artful at rogers.com) Date: Sun, 14 Jan 2007 20:20:07 -0800 (PST) Subject: [AccessD] deduplication Message-ID: <20070115042007.62158.qmail@web88210.mail.re2.yahoo.com> This can only be done by identifying which columns are of interest and which are not. After that, it's straightforward. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving ; dba-sqlserver at databaseadvisors.com Sent: Sunday, January 14, 2007 10:49:28 PM Subject: [AccessD] deduplication Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelbroadband.in Sun Jan 14 23:04:52 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Mon, 15 Jan 2007 10:34:52 +0530 Subject: [AccessD] deduplication References: <007801c73858$28f96920$657aa8c0@m6805> Message-ID: <0cf401c73862$dcb490c0$0709177d@pcadt> Sample query as given below, would remove all duplicates (other than the first occurrence for each case). T_Data is the name of table, while F1, F2 & F3 are the names of fields, whose combined value determines whether a record is duplicate or not. ID is the primary key (number type). A.D.Tejpal --------------- ===================================== DELETE * FROM T_Data WHERE (SELECT Count(*) FROM T_Data As T1 WHERE (T1.F1 & T1.F2 & T1.F3 = T_Data.F1 & T_Data.F2 & T_Data.F3) AND (T1.ID <= T_Data.ID)) > 1; ===================================== ----- Original Message ----- From: JWColby To: 'Access Developers discussion and problem solving' ; dba-sqlserver at databaseadvisors.com Sent: Monday, January 15, 2007 09:19 Subject: [AccessD] deduplication Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com From accessd666 at yahoo.com Mon Jan 15 04:21:06 2007 From: accessd666 at yahoo.com (Sad Der) Date: Mon, 15 Jan 2007 02:21:06 -0800 (PST) Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Message-ID: <643598.51220.qm@web31613.mail.mud.yahoo.com> Hi, I've got a serious problem with an ADP that we created in Access 2000. I've been working on this project for about 10 days now and the ADP keeps crashing!! This problem occurs when I modify the code (sometimes) As a solution I create a new adp and import all objects. The problem now is that It won't let me import anything from the current ADP (yes ive got backups) The definition of 'crash' is that I see a window that states: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvience. I've got an optio to repair the database and restart. It happens when: 1 - I want to go to the code 2 - A user clicks on menu item 1 and 2. It doesn't happen when: 1 - A user clicks on menu item 3 and 4? That's strange because option 3 and 4 (and the forms they open) do exactly the same as 1 and 2 => Retrieve and write data via SP's. F.y.i. After clicking menu option 1,2,3 or 4 (there are 4 options). The following code is executed: ...ok...I forgot I cannot go the $%#$#$ code Anyway, something like this: g_MenuOption = ExecuteSP (param1, param2, param3...) Call OpenForm(g_MenuOption) I've checked the SP's, connection everything seems to work fine.... DOES ANYBODY KNOW WHY THIS KEEPS HAPPENING?!? Regards, Sander ____________________________________________________________________________________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html From jwcolby at colbyconsulting.com Mon Jan 15 04:34:48 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 15 Jan 2007 05:34:48 -0500 Subject: [AccessD] deduplication In-Reply-To: <0cf401c73862$dcb490c0$0709177d@pcadt> Message-ID: <008e01c73890$c8e845e0$657aa8c0@m6805> Wow, thanks! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.TEJPAL Sent: Monday, January 15, 2007 12:05 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] deduplication Sample query as given below, would remove all duplicates (other than the first occurrence for each case). T_Data is the name of table, while F1, F2 & F3 are the names of fields, whose combined value determines whether a record is duplicate or not. ID is the primary key (number type). A.D.Tejpal --------------- ===================================== DELETE * FROM T_Data WHERE (SELECT Count(*) FROM T_Data As T1 WHERE (T1.F1 & T1.F2 & T1.F3 = T_Data.F1 & T_Data.F2 & T_Data.F3) AND (T1.ID <= T_Data.ID)) > 1; ===================================== ----- Original Message ----- From: JWColby To: 'Access Developers discussion and problem solving' ; dba-sqlserver at databaseadvisors.com Sent: Monday, January 15, 2007 09:19 Subject: [AccessD] deduplication Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jan 15 04:36:52 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 Jan 2007 11:36:52 +0100 Subject: [AccessD] deduplication Message-ID: Hi John I think you need to tighten this a bit ... Deleting dupes is quite easy, so is to flag (update) the dupes, but - of course - the outcome would be quite different. If the dupes are deleted, nothing is to be merged. Further, what do you mean by "merge"? Concatenate the field contents? Add more fields to the remaining single occurrence of every record? Or build a new parent table with a child table with a record for each dupe? As far as I know, there is no general SQL method or syntax for any of these situations except for deleting dupes if you have a unique key in addition to the fields of interest containing the duplicated information. I believe you easily could figure out how to accomplish what you wish in SQL. That said, I'm not so sure SQL will be fastest; if you can move through the recordset in a single run reading each record and write to another recordset as needed, that will be very fast, even with ADO. Wrap it in a transaction and it may run even faster. /gustav >>> jwcolby at colbyconsulting.com 15-01-2007 04:49:28 >>> Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon Jan 15 05:13:26 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 Jan 2007 12:13:26 +0100 Subject: [AccessD] deduplication Message-ID: Hi John If you just wish to delete the dupes, this method may be the simplest and fastest. Bill Mitchell told me in January 2001 how to do that. The idea is twofold: - to Group By that or those field(s) defining what makes records dupes - pick the first unique ID of the dupes Then delete all records in a set of dupes except that with the selected ID Make sure to make a backup & test it first. . . 1. Add an autonumber field if you don't have a PK. 2. Create a totals Query1 which shows GroupBy the name, and First of the PK. 3. Create a delete Query2 with the PK criteria like this: Not In (Select FirstOfPK From Query1;) When you run the delete Query2 it will delete everything _except_ the first occurrence of each name. If you don't have real dupes, you'll need to modify 2. and 3. as this: 2. Create a Query1 which selects TOP 1 PK and sorts ascending on all three significant fields. 3. Create a delete Query2 with the PK criteria like this: Not In (Select PK From Query1;) /gustav From jwcolby at colbyconsulting.com Mon Jan 15 05:47:33 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 15 Jan 2007 06:47:33 -0500 Subject: [AccessD] deduplication In-Reply-To: Message-ID: <009201c7389a$f2b73340$657aa8c0@m6805> Gustav, My problem here is that the database in question is (I believe) outside the capabilities of Access to link to and understand. This is that monster db I have discussed in the past. It will contain (after preliminary validation processing) about 50 million records and ~700 fields. I do have to more closely define what I mean, but in general, the table has a small handful of "person" data fields - the typical name address stuff. It will be this that defines duplicates. The industry that provided the table uses a system called "match codes" where you take the first X characters of a set of relevant fields and merge them all into one field. For example, to create an "Address match code", you might take the Address field, plus the zip5 plus the zip 4. Given that the addresses have been validated as deliverable (they have) then this uniquely identifies an address. The data actually discusses people however so in addition to the address, you have to take the first 5 or so characters of the last name plus the address match code to create a "family" match code, then add the first 5 or so characters of the first name plus the "family" match code to create a person match code. All three match codes are useful in various scenarios, but for "deduping" of the database you want to perform this operation at the "person" level. So in essence, you create these three different match code fields. You then compare the person match code to all other person match codes to fine "the same person" in multiple records. It is a single field compare across the database. What you DO is then the crux of the matter. "Deduplication" is a catchphrase used to denote an actual process of removing duplicate records from the database. However in my life at least, it is a little more complicated than that. The reason is that people get in the database because they filled out a survey somewhere. Someone took all of these surveys and started denormalizing them, i.e. adding all of the fields into one big table (thus the ~700 fields in the table). Unfortunately, as often happens in such cases, things don't always go as intended and people end up in the database several times, with only the fields for a specific survey filled in for each time they are in the database. They might have John Colby in there 3 times, once because he filled in a survey about what soft drinks he liked, another because of a surveys about what automobile he drove, and another because of a survey about what electronics he buys. What is SUPPOSED to happen is that all three are merged into one "john Colby" record, but alas, this is not always the case. Thus my job is to now identify all three of these "john Colby" records and merge all of the "survey" fields back into a single record, deleting the two now un-needed extra records in the process. If it weren't for the fact that there are about 650 "survey" fields this would not be such a big task. Because there are so many survey fields, I really need to do this in the least human time consuming way possible. So in essence I need to create a view of the data with just the PKID, the People Match Code, and the survey fields. I then need to take "john Colby" record ONE and update the SURVEY FIELDS with the survey fields from "John Colby" record 2 and 3, then delete "John Colby" record 2 and 3. Out of ~50 million records, find only the duplicate "sets" for any people in the database more than once, then "dedupe" those "sets" using the procedure described above. It is specifically the ~650 fields that causes the issue for Access as (I believe) Access cannot handle that many fields at a time. Of course I could figure out a way to break the table down into smaller sets of fields but that just adds to the human time required to solve the problem. So I am trying to discover whether this is a problem that SQL syntax can directly handle. If so, then I can have SQL Server do it instead of going to programming. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, January 15, 2007 5:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] deduplication Hi John I think you need to tighten this a bit ... Deleting dupes is quite easy, so is to flag (update) the dupes, but - of course - the outcome would be quite different. If the dupes are deleted, nothing is to be merged. Further, what do you mean by "merge"? Concatenate the field contents? Add more fields to the remaining single occurrence of every record? Or build a new parent table with a child table with a record for each dupe? As far as I know, there is no general SQL method or syntax for any of these situations except for deleting dupes if you have a unique key in addition to the fields of interest containing the duplicated information. I believe you easily could figure out how to accomplish what you wish in SQL. That said, I'm not so sure SQL will be fastest; if you can move through the recordset in a single run reading each record and write to another recordset as needed, that will be very fast, even with ADO. Wrap it in a transaction and it may run even faster. /gustav >>> jwcolby at colbyconsulting.com 15-01-2007 04:49:28 >>> Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jan 15 06:20:50 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 Jan 2007 13:20:50 +0100 Subject: [AccessD] deduplication Message-ID: Hi John Ouch, it's that monster again. That explains. You might consider extracting the data to temp tables - with only the fields you need. Again, DAO may be very fast, even with 50 mio. records but, of course, not with 700 fields. With the 256 field limit that will take 3 tables for JET to hold. If you need to aggregate from 50 mio. records more than a few times, I think you will have to put the data on a server engine. However, reading through the records writing these to a second table with the ID and the calculated match codes, you should be able from the second table to write to a third table either the IDs to keep or those to delete. Then run a final delete query on the master table. /gustav >>> jwcolby at colbyconsulting.com 15-01-2007 12:47:33 >>> Gustav, My problem here is that the database in question is (I believe) outside the capabilities of Access to link to and understand. This is that monster db I have discussed in the past. It will contain (after preliminary validation processing) about 50 million records and ~700 fields. I do have to more closely define what I mean, but in general, the table has a small handful of "person" data fields - the typical name address stuff. It will be this that defines duplicates. The industry that provided the table uses a system called "match codes" where you take the first X characters of a set of relevant fields and merge them all into one field. For example, to create an "Address match code", you might take the Address field, plus the zip5 plus the zip 4. Given that the addresses have been validated as deliverable (they have) then this uniquely identifies an address. The data actually discusses people however so in addition to the address, you have to take the first 5 or so characters of the last name plus the address match code to create a "family" match code, then add the first 5 or so characters of the first name plus the "family" match code to create a person match code. All three match codes are useful in various scenarios, but for "deduping" of the database you want to perform this operation at the "person" level. So in essence, you create these three different match code fields. You then compare the person match code to all other person match codes to fine "the same person" in multiple records. It is a single field compare across the database. What you DO is then the crux of the matter. "Deduplication" is a catchphrase used to denote an actual process of removing duplicate records from the database. However in my life at least, it is a little more complicated than that. The reason is that people get in the database because they filled out a survey somewhere. Someone took all of these surveys and started denormalizing them, i.e. adding all of the fields into one big table (thus the ~700 fields in the table). Unfortunately, as often happens in such cases, things don't always go as intended and people end up in the database several times, with only the fields for a specific survey filled in for each time they are in the database. They might have John Colby in there 3 times, once because he filled in a survey about what soft drinks he liked, another because of a surveys about what automobile he drove, and another because of a survey about what electronics he buys. What is SUPPOSED to happen is that all three are merged into one "john Colby" record, but alas, this is not always the case. Thus my job is to now identify all three of these "john Colby" records and merge all of the "survey" fields back into a single record, deleting the two now un-needed extra records in the process. If it weren't for the fact that there are about 650 "survey" fields this would not be such a big task. Because there are so many survey fields, I really need to do this in the least human time consuming way possible. So in essence I need to create a view of the data with just the PKID, the People Match Code, and the survey fields. I then need to take "john Colby" record ONE and update the SURVEY FIELDS with the survey fields from "John Colby" record 2 and 3, then delete "John Colby" record 2 and 3. Out of ~50 million records, find only the duplicate "sets" for any people in the database more than once, then "dedupe" those "sets" using the procedure described above. It is specifically the ~650 fields that causes the issue for Access as (I believe) Access cannot handle that many fields at a time. Of course I could figure out a way to break the table down into smaller sets of fields but that just adds to the human time required to solve the problem. So I am trying to discover whether this is a problem that SQL syntax can directly handle. If so, then I can have SQL Server do it instead of going to programming. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, January 15, 2007 5:37 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] deduplication Hi John I think you need to tighten this a bit ... Deleting dupes is quite easy, so is to flag (update) the dupes, but - of course - the outcome would be quite different. If the dupes are deleted, nothing is to be merged. Further, what do you mean by "merge"? Concatenate the field contents? Add more fields to the remaining single occurrence of every record? Or build a new parent table with a child table with a record for each dupe? As far as I know, there is no general SQL method or syntax for any of these situations except for deleting dupes if you have a unique key in addition to the fields of interest containing the duplicated information. I believe you easily could figure out how to accomplish what you wish in SQL. That said, I'm not so sure SQL will be fastest; if you can move through the recordset in a single run reading each record and write to another recordset as needed, that will be very fast, even with ADO. Wrap it in a transaction and it may run even faster. /gustav >>> jwcolby at colbyconsulting.com 15-01-2007 04:49:28 >>> Is there a SQL syntax or method for identifying duplicate records based on and automatically removing (or marking) the second and subsequent instances of that record. I am working with a database where there may be several records for the same person. Each record will have slightly different data in the record. I need to find all the records for a given person, remove or somehow flag the "duplicate" records, and eventually "merge" the duplicate records together. I know how to use groupby and count to find the dupes but I don't really know how to then merge fields F through M from records 2,3 and 4 back into fields F through M in record 1. This is going to be an ongoing project so I need to learn the methodology to get it done. I can do it with recordsets and code, but not with SQL, and given the large potential numbers of records SQL would be my first choice. John W. Colby Colby Consulting www.ColbyConsulting.com From stuart at lexacorp.com.pg Mon Jan 15 06:31:44 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 15 Jan 2007 22:31:44 +1000 Subject: [AccessD] deduplication In-Reply-To: <009201c7389a$f2b73340$657aa8c0@m6805> References: , <009201c7389a$f2b73340$657aa8c0@m6805> Message-ID: <45AB7430.28215.680060D@stuart.lexacorp.com.pg> How about creating a new table with the final data and then deleting all of the initial data. It looks as though you want a "Select Distinct" on the match codes and a MAX() on all the other fields. On 15 Jan 2007 at 6:47, JWColby wrote: > Gustav, > > My problem here is that the database in question is (I believe) outside the > capabilities of Access to link to and understand. This is that monster db I > have discussed in the past. It will contain (after preliminary validation > processing) about 50 million records and ~700 fields. I do have to more > closely define what I mean, but in general, the table has a small handful of > "person" data fields - the typical name address stuff. It will be this that > defines duplicates. > > The industry that provided the table uses a system called "match codes" > where you take the first X characters of a set of relevant fields and merge > them all into one field. For example, to create an "Address match code", > you might take the Address field, plus the zip5 plus the zip 4. Given that > the addresses have been validated as deliverable (they have) then this > uniquely identifies an address. > > The data actually discusses people however so in addition to the address, > you have to take the first 5 or so characters of the last name plus the > address match code to create a "family" match code, then add the first 5 or > so characters of the first name plus the "family" match code to create a > person match code. All three match codes are useful in various scenarios, > but for "deduping" of the database you want to perform this operation at the > "person" level. > > So in essence, you create these three different match code fields. You then > compare the person match code to all other person match codes to fine "the > same person" in multiple records. It is a single field compare across the > database. > > What you DO is then the crux of the matter. "Deduplication" is a > catchphrase used to denote an actual process of removing duplicate records > from the database. However in my life at least, it is a little more > complicated than that. The reason is that people get in the database > because they filled out a survey somewhere. Someone took all of these > surveys and started denormalizing them, i.e. adding all of the fields into > one big table (thus the ~700 fields in the table). > > Unfortunately, as often happens in such cases, things don't always go as > intended and people end up in the database several times, with only the > fields for a specific survey filled in for each time they are in the > database. They might have John Colby in there 3 times, once because he > filled in a survey about what soft drinks he liked, another because of a > surveys about what automobile he drove, and another because of a survey > about what electronics he buys. What is SUPPOSED to happen is that all > three are merged into one "john Colby" record, but alas, this is not always > the case. > > Thus my job is to now identify all three of these "john Colby" records and > merge all of the "survey" fields back into a single record, deleting the two > now un-needed extra records in the process. If it weren't for the fact that > there are about 650 "survey" fields this would not be such a big task. > Because there are so many survey fields, I really need to do this in the > least human time consuming way possible. > > So in essence I need to create a view of the data with just the PKID, the > People Match Code, and the survey fields. I then need to take "john Colby" > record ONE and update the SURVEY FIELDS with the survey fields from "John > Colby" record 2 and 3, then delete "John Colby" record 2 and 3. > > Out of ~50 million records, find only the duplicate "sets" for any people in > the database more than once, then "dedupe" those "sets" using the procedure > described above. > > It is specifically the ~650 fields that causes the issue for Access as (I > believe) Access cannot handle that many fields at a time. Of course I could > figure out a way to break the table down into smaller sets of fields but > that just adds to the human time required to solve the problem. So I am > trying to discover whether this is a problem that SQL syntax can directly > handle. If so, then I can have SQL Server do it instead of going to > programming. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Monday, January 15, 2007 5:37 AM To: accessd at databaseadvisors.com > Subject: Re: [AccessD] deduplication > > Hi John > > I think you need to tighten this a bit ... > > Deleting dupes is quite easy, so is to flag (update) the dupes, but - of > course - the outcome would be quite different. If the dupes are deleted, > nothing is to be merged. Further, what do you mean by "merge"? Concatenate > the field contents? Add more fields to the remaining single occurrence of > every record? Or build a new parent table with a child table with a record > for each dupe? > > As far as I know, there is no general SQL method or syntax for any of these > situations except for deleting dupes if you have a unique key in addition to > the fields of interest containing the duplicated information. I believe you > easily could figure out how to accomplish what you wish in SQL. That said, > I'm not so sure SQL will be fastest; if you can move through the recordset > in a single run reading each record and write to another recordset as > needed, that will be very fast, even with ADO. Wrap it in a transaction and > it may run even faster. > > /gustav > > >>> jwcolby at colbyconsulting.com 15-01-2007 04:49:28 >>> > Is there a SQL syntax or method for identifying duplicate records based on > and automatically removing (or marking) the second and subsequent instances > of that record. > > I am working with a database where there may be several records for the same > person. Each record will have slightly different data in the record. I > need to find all the records for a given person, remove or somehow flag the > "duplicate" records, and eventually "merge" the duplicate records together. > > > I know how to use groupby and count to find the dupes but I don't really > know how to then merge fields F through M from records 2,3 and 4 back into > fields F through M in record 1. This is going to be an ongoing project so I > need to learn the methodology to get it done. I can do it with recordsets > and code, but not with SQL, and given the large potential numbers of records > SQL would be my first choice. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Stuart From mmattys at rochester.rr.com Mon Jan 15 06:46:14 2007 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Mon, 15 Jan 2007 07:46:14 -0500 Subject: [AccessD] deduplication References: <009201c7389a$f2b73340$657aa8c0@m6805> Message-ID: <007301c738a3$255dafb0$0302a8c0@default> ----- Original Message ----- From: "JWColby" > Thus my job is to now identify all three of these "john Colby" records and > merge all of the "survey" fields back into a single record, deleting the > two > now un-needed extra records in the process. If it weren't for the fact > that > there are about 650 "survey" fields this would not be such a big task. > It is specifically the ~650 fields that causes the issue for Access as (I > believe) Access cannot handle that many fields at a time. I think I'd still look at how to normalize the database. Look at how to query the data such that an INSERT ...WHERE would create a distinct table for Survey N. Then write all 700 fields as the header to a csv Then use each survey-query to populate the one line across. Import into a new table when finished. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com From jwcolby at colbyconsulting.com Mon Jan 15 07:51:42 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 15 Jan 2007 08:51:42 -0500 Subject: [AccessD] deduplication In-Reply-To: <007301c738a3$255dafb0$0302a8c0@default> Message-ID: <00a201c738ac$4a464cc0$657aa8c0@m6805> Michael, I am looking at normalizing the data. However in many cases the client has to determine the fields that belong in a "child" survey table. Sometimes you can just look at the field names and tell the groupings, sometimes not. And of course, visually LOOKING at the data is simply not an option when there are 50 million records and any given survey may only populate a million of those records. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Monday, January 15, 2007 7:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] deduplication ----- Original Message ----- From: "JWColby" > Thus my job is to now identify all three of these "john Colby" records > and merge all of the "survey" fields back into a single record, > deleting the two now un-needed extra records in the process. If it > weren't for the fact that there are about 650 "survey" fields this > would not be such a big task. > It is specifically the ~650 fields that causes the issue for Access as > (I > believe) Access cannot handle that many fields at a time. I think I'd still look at how to normalize the database. Look at how to query the data such that an INSERT ...WHERE would create a distinct table for Survey N. Then write all 700 fields as the header to a csv Then use each survey-query to populate the one line across. Import into a new table when finished. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From developer at ultradnt.com Mon Jan 15 08:18:10 2007 From: developer at ultradnt.com (Steve Conklin) Date: Mon, 15 Jan 2007 09:18:10 -0500 Subject: [AccessD] deduplication In-Reply-To: <00a201c738ac$4a464cc0$657aa8c0@m6805> References: <007301c738a3$255dafb0$0302a8c0@default> <00a201c738ac$4a464cc0$657aa8c0@m6805> Message-ID: <000501c738af$ff5b6340$0200a8c0@ULTRADNT> John: To proces this many records, and not have it running for days seems to me to need an SP, and use of a temp table (a real, MSSQL in-memory temp table, which is much faster than a writing to 'real' table). So, write an SP that opens a cursor on the unique person-identifier. Loop thru these, then on each, select the count of matching records; if more than 1, open another cursor and loop those that match. Write all the data in the matches to a single record in a temp table, delete all the matches from the main table, then append the temp record to the real table. My VBA is much better than my TSQL, so bear with this pseudo-code: Declare rs cursor for select unique person-identifier from main_table Fetch next from rs into @id Count how many records in main_table have person-identifier = @id If > 1 then inset into #tmp 1 record with person-identifier = @id, and all the rest of the fields Declare rs2 cursor for select * from main_table where person-identifier = @id for i= 1 to 650 if fld(i) not null update #tmp set fld(i)=some_value next I fetch next delete from main_table where person-identifier = @id insert #tmp record into main_table End if Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, January 15, 2007 8:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] deduplication Michael, I am looking at normalizing the data. However in many cases the client has to determine the fields that belong in a "child" survey table. Sometimes you can just look at the field names and tell the groupings, sometimes not. And of course, visually LOOKING at the data is simply not an option when there are 50 million records and any given survey may only populate a million of those records. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael R Mattys Sent: Monday, January 15, 2007 7:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] deduplication ----- Original Message ----- From: "JWColby" > Thus my job is to now identify all three of these "john Colby" records > and merge all of the "survey" fields back into a single record, > deleting the two now un-needed extra records in the process. If it > weren't for the fact that there are about 650 "survey" fields this > would not be such a big task. > It is specifically the ~650 fields that causes the issue for Access as > (I > believe) Access cannot handle that many fields at a time. I think I'd still look at how to normalize the database. Look at how to query the data such that an INSERT ...WHERE would create a distinct table for Survey N. Then write all 700 fields as the header to a csv Then use each survey-query to populate the one line across. Import into a new table when finished. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From herringb at charter.net Mon Jan 15 09:38:38 2007 From: herringb at charter.net (Barry G. Herring) Date: Mon, 15 Jan 2007 09:38:38 -0600 Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) In-Reply-To: <643598.51220.qm@web31613.mail.mud.yahoo.com> References: <643598.51220.qm@web31613.mail.mud.yahoo.com> Message-ID: <000001c738bb$3a2065b0$6b01a8c0@D9Q51F61> I have run into this problem. Check your form filters to ensure that nothing has been save in forms filter. Clear them out and resave the form. Barry G. Herring -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Monday, January 15, 2007 4:21 AM To: Acces User Group Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Hi, I've got a serious problem with an ADP that we created in Access 2000. I've been working on this project for about 10 days now and the ADP keeps crashing!! This problem occurs when I modify the code (sometimes) As a solution I create a new adp and import all objects. The problem now is that It won't let me import anything from the current ADP (yes ive got backups) The definition of 'crash' is that I see a window that states: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvience. I've got an optio to repair the database and restart. It happens when: 1 - I want to go to the code 2 - A user clicks on menu item 1 and 2. It doesn't happen when: 1 - A user clicks on menu item 3 and 4? That's strange because option 3 and 4 (and the forms they open) do exactly the same as 1 and 2 => Retrieve and write data via SP's. F.y.i. After clicking menu option 1,2,3 or 4 (there are 4 options). The following code is executed: ...ok...I forgot I cannot go the $%#$#$ code Anyway, something like this: g_MenuOption = ExecuteSP (param1, param2, param3...) Call OpenForm(g_MenuOption) I've checked the SP's, connection everything seems to work fine.... DOES ANYBODY KNOW WHY THIS KEEPS HAPPENING?!? Regards, Sander ____________________________________________________________________________ ________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Jan 15 10:57:47 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Jan 2007 08:57:47 -0800 Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? In-Reply-To: <008a01c7381b$df8fe390$2d01a8c0@bhxp> References: <008a01c7381b$df8fe390$2d01a8c0@bhxp> Message-ID: We use ActiveReports from DataDynamics. Interface is not unlike the Access report generator and it has a wizard from converting an Access report, although there's a lot of cleanup and tweaking required. Not sure of the price, but it depends on the license. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Sunday, January 14, 2007 12:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT,sort of: What reporting components are you using for .Net? Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at sc.rr.com Mon Jan 15 11:16:41 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Mon, 15 Jan 2007 12:16:41 -0500 Subject: [AccessD] OT, sort of: What reporting components are you using for .Net? In-Reply-To: References: <008a01c7381b$df8fe390$2d01a8c0@bhxp> Message-ID: <001c01c738c8$ed0f0e30$2d01a8c0@bhxp> Hi Charlotte, Thanks for the info. I had looked at them, but the standard version (3.0) is about $600. More than I care to spend. Now if I start getting a lot of people wanting me to write programs for them.... Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, January 15, 2007 11:58 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT, sort of: What reporting components are you using for .Net? We use ActiveReports from DataDynamics. Interface is not unlike the Access report generator and it has a wizard from converting an Access report, although there's a lot of cleanup and tweaking required. Not sure of the price, but it depends on the license. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Sunday, January 14, 2007 12:38 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT,sort of: What reporting components are you using for .Net? Sorry for the OT post, but I knew that several here on the list are dabbling in .net. I would prefer something <$200. Thanks, Bobby From jwcolby at colbyconsulting.com Mon Jan 15 11:57:38 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Mon, 15 Jan 2007 12:57:38 -0500 Subject: [AccessD] First / last day of week Message-ID: <000a01c738ce$a60c4970$657aa8c0@m6805> Has anyone got more efficient code than the following? Function DteFirstDayOfWeek(dte As Date) As Date Dim intDOW As Integer intDOW = Weekday(date, vbUseSystemDayOfWeek) DteFirstDayOfWeek = date - (intDOW - 1) End Function Function DteLastDayOfWeek(dte As Date) As Date Dim intDOW As Integer intDOW = Weekday(date, vbUseSystemDayOfWeek) DteLastDayOfWeek = date + (7 - intDOW) End Function John W. Colby Colby Consulting www.ColbyConsulting.com From Gustav at cactus.dk Mon Jan 15 12:08:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 15 Jan 2007 19:08:29 +0100 Subject: [AccessD] First / last day of week Message-ID: Hi John They look pretty efficient (fast) to me. We use these function which are a bit more flexible but I doubt they are faster: Public Function DateWeekFirst( _ ByVal datDate As Date, _ Optional ByVal lngFirstDayOfWeek As Long = vbMonday) _ As Date ' Returns the first date of the week of datDate. ' lngFirstDayOfWeek defines the first weekday of the week. ' 2000-09-07. Cactus Data ApS. ' No special error handling. On Error Resume Next ' Validate lngFirstDayOfWeek. Select Case lngFirstDayOfWeek Case _ vbMonday, _ vbTuesday, _ vbWednesday, _ vbThursday, _ vbFriday, _ vbSaturday, _ vbSunday, _ vbUseSystemDayOfWeek Case Else lngFirstDayOfWeek = vbMonday End Select DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, lngFirstDayOfWeek), datDate) End Function Public Function DateWeekLast( _ ByVal datDate As Date, _ Optional ByVal lngFirstDayOfWeek As Long = vbMonday) _ As Date ' Returns the last date of the week of datDate. ' lngFirstDayOfWeek defines the first weekday of the week. ' 2000-09-07. Cactus Data ApS. ' No special error handling. On Error Resume Next ' Validate lngFirstDayOfWeek. Select Case lngFirstDayOfWeek Case _ vbMonday, _ vbTuesday, _ vbWednesday, _ vbThursday, _ vbFriday, _ vbSaturday, _ vbSunday, _ vbUseSystemDayOfWeek Case Else lngFirstDayOfWeek = vbMonday End Select DateWeekLast = DateAdd("d", vbSaturday - WeekDay(datDate, lngFirstDayOfWeek), datDate) End Function /gustav >>> jwcolby at colbyconsulting.com 15-01-2007 18:57:38 >>> Has anyone got more efficient code than the following? Function DteFirstDayOfWeek(dte As Date) As Date Dim intDOW As Integer intDOW = Weekday(date, vbUseSystemDayOfWeek) DteFirstDayOfWeek = date - (intDOW - 1) End Function Function DteLastDayOfWeek(dte As Date) As Date Dim intDOW As Integer intDOW = Weekday(date, vbUseSystemDayOfWeek) DteLastDayOfWeek = date + (7 - intDOW) End Function John W. Colby Colby Consulting www.ColbyConsulting.com From bheid at sc.rr.com Mon Jan 15 12:19:53 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Mon, 15 Jan 2007 13:19:53 -0500 Subject: [AccessD] First / last day of week In-Reply-To: <000a01c738ce$a60c4970$657aa8c0@m6805> References: <000a01c738ce$a60c4970$657aa8c0@m6805> Message-ID: <002601c738d1$c1420c40$2d01a8c0@bhxp> What if you had DteFirstDayOfWeek add 4 days with dateadd to the date calculated in DteFirstDayOfWeek to come up with the date of last day of the week? Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Monday, January 15, 2007 12:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] First / last day of week Has anyone got more efficient code than the following? Function DteFirstDayOfWeek(dte As Date) As Date Dim intDOW As Integer intDOW = Weekday(date, vbUseSystemDayOfWeek) DteFirstDayOfWeek = date - (intDOW - 1) End Function Function DteLastDayOfWeek(dte As Date) As Date Dim intDOW As Integer intDOW = Weekday(date, vbUseSystemDayOfWeek) DteLastDayOfWeek = date + (7 - intDOW) End Function John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mfisch4 at capex.com.ar Mon Jan 15 13:13:23 2007 From: mfisch4 at capex.com.ar (MF) Date: Mon, 15 Jan 2007 16:13:23 -0300 Subject: [AccessD] test In-Reply-To: <002601c738d1$c1420c40$2d01a8c0@bhxp> References: <000a01c738ce$a60c4970$657aa8c0@m6805> <002601c738d1$c1420c40$2d01a8c0@bhxp> Message-ID: <6.2.3.4.0.20070115161309.02ade360@bsas-mail> From rl_stewart at highstream.net Mon Jan 15 13:20:46 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 15 Jan 2007 13:20:46 -0600 Subject: [AccessD] deduplication In-Reply-To: References: Message-ID: <200701151924.l0FJOnR23326@databaseadvisors.com> John, take a look at cursors. They operate like recordsets do in Access. If you know how to do it in Access with a recordset, you can do the same with a cursor in SQL Server. Robert At 11:16 AM 1/15/2007, you wrote: >Date: Mon, 15 Jan 2007 07:46:14 -0500 >From: "Michael R Mattys" >Subject: Re: [AccessD] deduplication >To: "Access Developers discussion and problem solving" > >Message-ID: <007301c738a3$255dafb0$0302a8c0 at default> >Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > >----- Original Message ----- >From: "JWColby" > > > Thus my job is to now identify all three of these "john Colby" records and > > merge all of the "survey" fields back into a single record, deleting the > > two > > now un-needed extra records in the process. If it weren't for the fact > > that > > there are about 650 "survey" fields this would not be such a big task. > > > It is specifically the ~650 fields that causes the issue for Access as (I > > believe) Access cannot handle that many fields at a time. > > >I think I'd still look at how to normalize the database. >Look at how to query the data such that an INSERT ...WHERE >would create a distinct table for Survey N. >Then write all 700 fields as the header to a csv >Then use each survey-query to populate the one line across. >Import into a new table when finished. > >Michael R. Mattys >MapPoint & Access Dev >www.mattysconsulting.com From rl_stewart at highstream.net Mon Jan 15 13:27:50 2007 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 15 Jan 2007 13:27:50 -0600 Subject: [AccessD] First / last day of week In-Reply-To: References: Message-ID: <200701151929.l0FJTpR24688@databaseadvisors.com> John, If this is for your monster SQL database, you should be using a date dimension table with the date as the PK and all of the things like day of week, day of year, day of month, year, etc. as columns so there is no date math to calculate anything like what you are doing. And, it works with Access databases also. Robert At 12:00 PM 1/15/2007, you wrote: >Date: Mon, 15 Jan 2007 12:57:38 -0500 >From: "JWColby" >Subject: [AccessD] First / last day of week >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000a01c738ce$a60c4970$657aa8c0 at m6805> >Content-Type: text/plain; charset="us-ascii" > >Has anyone got more efficient code than the following? > >Function DteFirstDayOfWeek(dte As Date) As Date >Dim intDOW As Integer > intDOW = Weekday(date, vbUseSystemDayOfWeek) > DteFirstDayOfWeek = date - (intDOW - 1) >End Function > >Function DteLastDayOfWeek(dte As Date) As Date >Dim intDOW As Integer > intDOW = Weekday(date, vbUseSystemDayOfWeek) > DteLastDayOfWeek = date + (7 - intDOW) >End Function > >John W. Colby >Colby Consulting >www.ColbyConsulting.com > From accessd666 at yahoo.com Tue Jan 16 03:33:36 2007 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 16 Jan 2007 01:33:36 -0800 (PST) Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Message-ID: <59510.5863.qm@web31615.mail.mud.yahoo.com> thnx Barry. How do I clear these filters?? Regards, Sander ----- Original Message ---- From: Barry G. Herring To: Access Developers discussion and problem solving Sent: Monday, January 15, 2007 4:38:38 PM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) I have run into this problem. Check your form filters to ensure that nothing has been save in forms filter. Clear them out and resave the form. Barry G. Herring -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Monday, January 15, 2007 4:21 AM To: Acces User Group Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Hi, I've got a serious problem with an ADP that we created in Access 2000. I've been working on this project for about 10 days now and the ADP keeps crashing!! This problem occurs when I modify the code (sometimes) As a solution I create a new adp and import all objects. The problem now is that It won't let me import anything from the current ADP (yes ive got backups) The definition of 'crash' is that I see a window that states: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvience. I've got an optio to repair the database and restart. It happens when: 1 - I want to go to the code 2 - A user clicks on menu item 1 and 2. It doesn't happen when: 1 - A user clicks on menu item 3 and 4? That's strange because option 3 and 4 (and the forms they open) do exactly the same as 1 and 2 => Retrieve and write data via SP's. F.y.i. After clicking menu option 1,2,3 or 4 (there are 4 options). The following code is executed: ...ok...I forgot I cannot go the $%#$#$ code Anyway, something like this: g_MenuOption = ExecuteSP (param1, param2, param3...) Call OpenForm(g_MenuOption) I've checked the SP's, connection everything seems to work fine.... DOES ANYBODY KNOW WHY THIS KEEPS HAPPENING?!? Regards, Sander ___________ __________________________________ ________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php From accessd666 at yahoo.com Tue Jan 16 03:53:23 2007 From: accessd666 at yahoo.com (Sad Der) Date: Tue, 16 Jan 2007 01:53:23 -0800 (PST) Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Message-ID: <335836.17613.qm@web31613.mail.mud.yahoo.com> Hi, I've got a feeling that has nothing to do with the adp itself but with my machine/ Access itself/ etc. Why? I've got a version that works. I made a backup. Then the error occured again. So I opened my backup....and BANG! Another crash!?!? So the version that worked 30 minutes ago is now crashing as wel! Is there anyway to trace what is going on? Regards, Sander ----- Original Message ---- From: Sad Der To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 10:33:36 AM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) thnx Barry. How do I clear these filters?? Regards, Sander ----- Original Message ---- From: Barry G. Herring To: Access Developers discussion and problem solving Sent: Monday, January 15, 2007 4:38:38 PM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) I have run into this problem. Check your form filters to ensure that nothing has been save in forms filter. Clear them out and resave the form. Barry G. Herring -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Monday, January 15, 2007 4:21 AM To: Acces User Group Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Hi, I've got a serious problem with an ADP that we created in Access 2000. I've been working on this project for about 10 days now and the ADP keeps crashing!! This problem occurs when I modify the code (sometimes) As a solution I create a new adp and import all objects. The problem now is that It won't let me import anything from the current ADP (yes ive got backups) The definition of 'crash' is that I see a window that states: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvience. I've got an optio to repair the database and restart. It happens when: 1 - I want to go to the code 2 - A user cli r clicks on menu item 3 and 4? That's strange because option 3 and 4 (and the forms they open) do exactly the same as 1 and 2 => Retrieve and write data via SP's. F.y.i. After clicking menu option 1,2,3 or 4 (there are 4 options). The following code is executed: ...ok...I forgot I cannot go the $%#$#$ code Anyway, something like this: g_MenuOption = ExecuteSP (param1, param2, param3...) Call OpenForm(g_MenuOption) I've checked the SP's, connection everything seems to work fine.... DOES ANYBODY KNOW WHY THIS KEEPS HAPPENING?!? Regards, Sander ___________ __________________________________ ________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From Kwilliamson at RTKL.com Tue Jan 16 08:56:09 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 09:56:09 -0500 Subject: [AccessD] Data Type Mismatch Message-ID: Is there an easy way to determine exactly what data type is being returned by a query? I have a report I am trying to run, with a "Docmd.openreport".....but I keep getting a data mismatch error. For the life of me, I can't figure out why......and I've tried playing with the Where statement, to get it to give me the right data...to no avail. I figure, if I can definitively determine the data type, for my three criterias....I can format the Where statement properly.....and also figure out why the query is changing the data type. Grrrrr!! Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From artful at rogers.com Tue Jan 16 09:09:32 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 16 Jan 2007 07:09:32 -0800 (PST) Subject: [AccessD] Data Type Mismatch Message-ID: <20070116150933.74208.qmail@web88206.mail.re2.yahoo.com> I assume this means you can run the query itself successfully without running the report. If that is the case, then are there any controls on the report which are calculated on the basis of the query contents? I would also try generating an autoreport based on the query, then comparing it with your original report. It's a little tedious, but you could open them side by side and compare the controls one by one. hth, Arthur ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 9:56:09 AM Subject: [AccessD] Data Type Mismatch Is there an easy way to determine exactly what data type is being returned by a query? I have a report I am trying to run, with a "Docmd.openreport".....but I keep getting a data mismatch error. For the life of me, I can't figure out why......and I've tried playing with the Where statement, to get it to give me the right data...to no avail. I figure, if I can definitively determine the data type, for my three criterias....I can format the Where statement properly.....and also figure out why the query is changing the data type. Grrrrr!! Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Jan 16 09:10:30 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 16 Jan 2007 07:10:30 -0800 (PST) Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Message-ID: <20070116151030.96729.qmail@web88210.mail.re2.yahoo.com> First thing I'd look at is the service patches. Are you all up to date? ----- Original Message ---- From: Sad Der To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:53:23 AM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Hi, I've got a feeling that has nothing to do with the adp itself but with my machine/ Access itself/ etc. Why? I've got a version that works. I made a backup. Then the error occured again. So I opened my backup....and BANG! Another crash!?!? So the version that worked 30 minutes ago is now crashing as wel! Is there anyway to trace what is going on? Regards, Sander ----- Original Message ---- From: Sad Der To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 10:33:36 AM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) thnx Barry. How do I clear these filters?? Regards, Sander ----- Original Message ---- From: Barry G. Herring To: Access Developers discussion and problem solving Sent: Monday, January 15, 2007 4:38:38 PM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) I have run into this problem. Check your form filters to ensure that nothing has been save in forms filter. Clear them out and resave the form. Barry G. Herring -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Monday, January 15, 2007 4:21 AM To: Acces User Group Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Hi, I've got a serious problem with an ADP that we created in Access 2000. I've been working on this project for about 10 days now and the ADP keeps crashing!! This problem occurs when I modify the code (sometimes) As a solution I create a new adp and import all objects. The problem now is that It won't let me import anything from the current ADP (yes ive got backups) The definition of 'crash' is that I see a window that states: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvience. I've got an optio to repair the database and restart. It happens when: 1 - I want to go to the code 2 - A user cli r clicks on menu item 3 and 4? That's strange because option 3 and 4 (and the forms they open) do exactly the same as 1 and 2 => Retrieve and write data via SP's. F.y.i. After clicking menu option 1,2,3 or 4 (there are 4 options). The following code is executed: ...ok...I forgot I cannot go the $%#$#$ code Anyway, something like this: g_MenuOption = ExecuteSP (param1, param2, param3...) Call OpenForm(g_MenuOption) I've checked the SP's, connection everything seems to work fine.... DOES ANYBODY KNOW WHY THIS KEEPS HAPPENING?!? Regards, Sander ___________ __________________________________ ________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Tue Jan 16 09:11:44 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 16 Jan 2007 07:11:44 -0800 (PST) Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Message-ID: <20070116151144.35308.qmail@web88204.mail.re2.yahoo.com> In an ADP there are two places: the standard filter attribute and the serverFilter attribute. ----- Original Message ---- From: Sad Der To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:33:36 AM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) thnx Barry. How do I clear these filters?? Regards, Sander ----- Original Message ---- From: Barry G. Herring To: Access Developers discussion and problem solving Sent: Monday, January 15, 2007 4:38:38 PM Subject: Re: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) I have run into this problem. Check your form filters to ensure that nothing has been save in forms filter. Clear them out and resave the form. Barry G. Herring -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Sad Der Sent: Monday, January 15, 2007 4:21 AM To: Acces User Group Subject: [AccessD] ADP (2000) keeps crashing (PLEASE TAKE A LOOK) Hi, I've got a serious problem with an ADP that we created in Access 2000. I've been working on this project for about 10 days now and the ADP keeps crashing!! This problem occurs when I modify the code (sometimes) As a solution I create a new adp and import all objects. The problem now is that It won't let me import anything from the current ADP (yes ive got backups) The definition of 'crash' is that I see a window that states: Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvience. I've got an optio to repair the database and restart. It happens when: 1 - I want to go to the code 2 - A user clicks on menu item 1 and 2. It doesn't happen when: 1 - A user clicks on menu item 3 and 4? That's strange because option 3 and 4 (and the forms they open) do exactly the same as 1 and 2 => Retrieve and write data via SP's. F.y.i. After clicking menu option 1,2,3 or 4 (there are 4 options). The following code is executed: ...ok...I forgot I cannot go the $%#$#$ code Anyway, something like this: g_MenuOption = ExecuteSP (param1, param2, param3...) Call OpenForm(g_MenuOption) I've checked the SP's, connection everything seems to work fine.... DOES ANYBODY KNOW WHY THIS KEEPS HAPPENING?!? Regards, Sander ___________ __________________________________ ________ Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Tue Jan 16 09:14:26 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 16 Jan 2007 09:14:26 -0600 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. GK On 1/16/07, Keith Williamson wrote: > Is there an easy way to determine exactly what data type is being > returned by a query? I have a report I am trying to run, with a > "Docmd.openreport".....but I keep getting a data mismatch error. For > the life of me, I can't figure out why......and I've tried playing with > the Where statement, to get it to give me the right data...to no avail. > I figure, if I can definitively determine the data type, for my three > criterias....I can format the Where statement properly.....and also > figure out why the query is changing the data type. Grrrrr!! > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Tue Jan 16 09:41:44 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 10:41:44 -0500 Subject: [AccessD] Data Type Mismatch In-Reply-To: <20070116150933.74208.qmail@web88206.mail.re2.yahoo.com> References: <20070116150933.74208.qmail@web88206.mail.re2.yahoo.com> Message-ID: The report, itself, runs as well. It is only when I try running the report, from my form, with criteria. It is the criteria (I have textboxes to input Month, Year, and Entity) which the user fills in, that is creating the data mismatch. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, January 16, 2007 10:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch I assume this means you can run the query itself successfully without running the report. If that is the case, then are there any controls on the report which are calculated on the basis of the query contents? I would also try generating an autoreport based on the query, then comparing it with your original report. It's a little tedious, but you could open them side by side and compare the controls one by one. hth, Arthur ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 9:56:09 AM Subject: [AccessD] Data Type Mismatch Is there an easy way to determine exactly what data type is being returned by a query? I have a report I am trying to run, with a "Docmd.openreport".....but I keep getting a data mismatch error. For the life of me, I can't figure out why......and I've tried playing with the Where statement, to get it to give me the right data...to no avail. I figure, if I can definitively determine the data type, for my three criterias....I can format the Where statement properly.....and also figure out why the query is changing the data type. Grrrrr!! Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Tue Jan 16 09:41:56 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 10:41:56 -0500 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: Good idea. I'll try this. Thanks, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. GK On 1/16/07, Keith Williamson wrote: > Is there an easy way to determine exactly what data type is being > returned by a query? I have a report I am trying to run, with a > "Docmd.openreport".....but I keep getting a data mismatch error. For > the life of me, I can't figure out why......and I've tried playing with > the Where statement, to get it to give me the right data...to no avail. > I figure, if I can definitively determine the data type, for my three > criterias....I can format the Where statement properly.....and also > figure out why the query is changing the data type. Grrrrr!! > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Tue Jan 16 09:43:57 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 10:43:57 -0500 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: Ack! It is a Union Query that is the source for the report. I can't change that, as I can't bring that up in Design view...only SQL view. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. GK On 1/16/07, Keith Williamson wrote: > Is there an easy way to determine exactly what data type is being > returned by a query? I have a report I am trying to run, with a > "Docmd.openreport".....but I keep getting a data mismatch error. For > the life of me, I can't figure out why......and I've tried playing with > the Where statement, to get it to give me the right data...to no avail. > I figure, if I can definitively determine the data type, for my three > criterias....I can format the Where statement properly.....and also > figure out why the query is changing the data type. Grrrrr!! > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Tue Jan 16 10:03:24 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 11:03:24 -0500 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: My [Period] field is the source for both "Month" and "Year". The period is formatted as a number, in the source table; consisting of YearMonth (ie. 200610 - for October 2006.) IF I use "left([period],4)" to generate year, and "right([period],2)" to generate month........does this change the data type? Using left function on a long integer, should still keep the result in long integer format, wouldn't it? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Ack! It is a Union Query that is the source for the report. I can't change that, as I can't bring that up in Design view...only SQL view. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. GK On 1/16/07, Keith Williamson wrote: > Is there an easy way to determine exactly what data type is being > returned by a query? I have a report I am trying to run, with a > "Docmd.openreport".....but I keep getting a data mismatch error. For > the life of me, I can't figure out why......and I've tried playing with > the Where statement, to get it to give me the right data...to no avail. > I figure, if I can definitively determine the data type, for my three > criterias....I can format the Where statement properly.....and also > figure out why the query is changing the data type. Grrrrr!! > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Tue Jan 16 10:14:36 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 Jan 2007 17:14:36 +0100 Subject: [AccessD] Data Type Mismatch Message-ID: Hi Keith Union queries have a bad habit of turning anything into strings. If so, use your union query as source in a new select query where you force all the fields into the datatypes they were: SELECT CLng(FieldLong) AS lngFieldLong, CInt(FieldInteger) AS IntFieldInteger ... etc. FROM qdyYourUnionQuery The adjust your report to use this query and its fieldnames. /gustav >>> Kwilliamson at RTKL.com 16-01-2007 16:43:57 >>> Ack! It is a Union Query that is the source for the report. I can't change that, as I can't bring that up in Design view...only SQL view. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. GK On 1/16/07, Keith Williamson wrote: > Is there an easy way to determine exactly what data type is being > returned by a query? I have a report I am trying to run, with a > "Docmd.openreport".....but I keep getting a data mismatch error. For > the life of me, I can't figure out why......and I've tried playing with > the Where statement, to get it to give me the right data...to no avail. > I figure, if I can definitively determine the data type, for my three > criterias....I can format the Where statement properly.....and also > figure out why the query is changing the data type. Grrrrr!! > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > From Gustav at cactus.dk Tue Jan 16 10:16:40 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 Jan 2007 17:16:40 +0100 Subject: [AccessD] Data Type Mismatch Message-ID: Hi Keith No, you are turning them into strings. Wrap them in VAL(). /gustav >>> Kwilliamson at RTKL.com 16-01-2007 17:03:24 >>> My [Period] field is the source for both "Month" and "Year". The period is formatted as a number, in the source table; consisting of YearMonth (ie. 200610 - for October 2006.) IF I use "left([period],4)" to generate year, and "right([period],2)" to generate month........does this change the data type? Using left function on a long integer, should still keep the result in long integer format, wouldn't it? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com From Gustav at cactus.dk Tue Jan 16 10:21:16 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 16 Jan 2007 17:21:16 +0100 Subject: [AccessD] Access 2003 and Windows 2003 crash Message-ID: Hi all A client is trying to install Access 2003 SP2 on his Windows 2003 Standard Server SP1 with MySQL 3.51.12 ODBC driver. Windows Update has updated the server OS. >From Excel he can open a connection to the MySQL and read the data off the tables. When he tries that with Access it crashes as soon as he tries to open an attached MySQL table. No errors, just poof. What gives? Any ideas? /gustav From john at winhaven.net Tue Jan 16 10:23:15 2007 From: john at winhaven.net (John Bartow) Date: Tue, 16 Jan 2007 10:23:15 -0600 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: <03a301c7398a$a07b6560$6502a8c0@ScuzzPaq> Keith, You could make a separate "make table" query based on the union query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Ack! It is a Union Query that is the source for the report. I can't change that, as I can't bring that up in Design view...only SQL view. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. From garykjos at gmail.com Tue Jan 16 10:26:01 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 16 Jan 2007 10:26:01 -0600 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: So? Just use that query as the source for a seperate make table query. GK On 1/16/07, Keith Williamson wrote: > Ack! It is a Union Query that is the source for the report. I can't > change that, as I can't bring that up in Design view...only SQL view. > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, January 16, 2007 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Temporarily create a "Make Table Query" with the other query as input. > Create a temporary table and then run the query, open the result table > in design mode and you will see the data types. > > GK > > On 1/16/07, Keith Williamson wrote: > > Is there an easy way to determine exactly what data type is being > > returned by a query? I have a report I am trying to run, with a > > "Docmd.openreport".....but I keep getting a data mismatch error. For > > the life of me, I can't figure out why......and I've tried playing > with > > the Where statement, to get it to give me the right data...to no > avail. > > I figure, if I can definitively determine the data type, for my three > > criterias....I can format the Where statement properly.....and also > > figure out why the query is changing the data type. Grrrrr!! > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > -- Gary Kjos garykjos at gmail.com From garykjos at gmail.com Tue Jan 16 10:27:15 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 16 Jan 2007 10:27:15 -0600 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: No. Anything you do to edit a numeric will give you a text type field back I think. GK On 1/16/07, Keith Williamson wrote: > My [Period] field is the source for both "Month" and "Year". The period > is formatted as a number, in the source table; consisting of YearMonth > (ie. 200610 - for October 2006.) IF I use "left([period],4)" to > generate year, and "right([period],2)" to generate month........does > this change the data type? Using left function on a long integer, > should still keep the result in long integer format, wouldn't it? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Tuesday, January 16, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Ack! It is a Union Query that is the source for the report. I can't > change that, as I can't bring that up in Design view...only SQL view. > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, January 16, 2007 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Temporarily create a "Make Table Query" with the other query as input. > Create a temporary table and then run the query, open the result table > in design mode and you will see the data types. > > GK > > On 1/16/07, Keith Williamson wrote: > > Is there an easy way to determine exactly what data type is being > > returned by a query? I have a report I am trying to run, with a > > "Docmd.openreport".....but I keep getting a data mismatch error. For > > the life of me, I can't figure out why......and I've tried playing > with > > the Where statement, to get it to give me the right data...to no > avail. > > I figure, if I can definitively determine the data type, for my three > > criterias....I can format the Where statement properly.....and also > > figure out why the query is changing the data type. Grrrrr!! > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From cfoust at infostatsystems.com Tue Jan 16 10:28:37 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 16 Jan 2007 08:28:37 -0800 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: No, you're converting it when you apply the Left function. You would need to wrap it in a conversion function, like CLng() to turn it back into a number. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 8:03 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch My [Period] field is the source for both "Month" and "Year". The period is formatted as a number, in the source table; consisting of YearMonth (ie. 200610 - for October 2006.) IF I use "left([period],4)" to generate year, and "right([period],2)" to generate month........does this change the data type? Using left function on a long integer, should still keep the result in long integer format, wouldn't it? Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Ack! It is a Union Query that is the source for the report. I can't change that, as I can't bring that up in Design view...only SQL view. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 10:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Temporarily create a "Make Table Query" with the other query as input. Create a temporary table and then run the query, open the result table in design mode and you will see the data types. GK On 1/16/07, Keith Williamson wrote: > Is there an easy way to determine exactly what data type is being > returned by a query? I have a report I am trying to run, with a > "Docmd.openreport".....but I keep getting a data mismatch error. For > the life of me, I can't figure out why......and I've tried playing with > the Where statement, to get it to give me the right data...to no avail. > I figure, if I can definitively determine the data type, for my three > criterias....I can format the Where statement properly.....and also > figure out why the query is changing the data type. Grrrrr!! > > > > Thanks, > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Tue Jan 16 10:40:40 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 11:40:40 -0500 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: Yup. Okay. I got it now. Thanks. I did as you and John suggested (created a MakeTable query off of the Union query...and Gustov is correct. I have turned these values into strings. :( Well...actually this is a :) cause now I know what the problem is. THANKS GUYS!!!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 11:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch So? Just use that query as the source for a seperate make table query. GK On 1/16/07, Keith Williamson wrote: > Ack! It is a Union Query that is the source for the report. I can't > change that, as I can't bring that up in Design view...only SQL view. > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, January 16, 2007 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Temporarily create a "Make Table Query" with the other query as input. > Create a temporary table and then run the query, open the result table > in design mode and you will see the data types. > > GK > > On 1/16/07, Keith Williamson wrote: > > Is there an easy way to determine exactly what data type is being > > returned by a query? I have a report I am trying to run, with a > > "Docmd.openreport".....but I keep getting a data mismatch error. For > > the life of me, I can't figure out why......and I've tried playing > with > > the Where statement, to get it to give me the right data...to no > avail. > > I figure, if I can definitively determine the data type, for my three > > criterias....I can format the Where statement properly.....and also > > figure out why the query is changing the data type. Grrrrr!! > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > -- 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 Kwilliamson at RTKL.com Tue Jan 16 10:44:09 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 11:44:09 -0500 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: Once again proving I am NOT the smartest person in the world. :)) Come to think of it....I seem to prove that quite regularly. LOL Thanks for the help guys!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch No. Anything you do to edit a numeric will give you a text type field back I think. GK On 1/16/07, Keith Williamson wrote: > My [Period] field is the source for both "Month" and "Year". The period > is formatted as a number, in the source table; consisting of YearMonth > (ie. 200610 - for October 2006.) IF I use "left([period],4)" to > generate year, and "right([period],2)" to generate month........does > this change the data type? Using left function on a long integer, > should still keep the result in long integer format, wouldn't it? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Tuesday, January 16, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Ack! It is a Union Query that is the source for the report. I can't > change that, as I can't bring that up in Design view...only SQL view. > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, January 16, 2007 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Temporarily create a "Make Table Query" with the other query as input. > Create a temporary table and then run the query, open the result table > in design mode and you will see the data types. > > GK > > On 1/16/07, Keith Williamson wrote: > > Is there an easy way to determine exactly what data type is being > > returned by a query? I have a report I am trying to run, with a > > "Docmd.openreport".....but I keep getting a data mismatch error. For > > the life of me, I can't figure out why......and I've tried playing > with > > the Where statement, to get it to give me the right data...to no > avail. > > I figure, if I can definitively determine the data type, for my three > > criterias....I can format the Where statement properly.....and also > > figure out why the query is changing the data type. Grrrrr!! > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > > -- > 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 john at winhaven.net Tue Jan 16 11:14:28 2007 From: john at winhaven.net (John Bartow) Date: Tue, 16 Jan 2007 11:14:28 -0600 Subject: [AccessD] Data Type Mismatch In-Reply-To: References: Message-ID: <03bd01c73991$c9046ca0$6502a8c0@ScuzzPaq> Keith, Now that you've seem what the problem is, I suggest following up on Gustav's post to eliminate it :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 10:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch Once again proving I am NOT the smartest person in the world. :)) Come to think of it....I seem to prove that quite regularly. LOL Thanks for the help guys!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Tuesday, January 16, 2007 11:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Type Mismatch No. Anything you do to edit a numeric will give you a text type field back I think. GK On 1/16/07, Keith Williamson wrote: > My [Period] field is the source for both "Month" and "Year". The period > is formatted as a number, in the source table; consisting of YearMonth > (ie. 200610 - for October 2006.) IF I use "left([period],4)" to > generate year, and "right([period],2)" to generate month........does > this change the data type? Using left function on a long integer, > should still keep the result in long integer format, wouldn't it? > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith > Williamson > Sent: Tuesday, January 16, 2007 10:44 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Ack! It is a Union Query that is the source for the report. I can't > change that, as I can't bring that up in Design view...only SQL view. > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos > Sent: Tuesday, January 16, 2007 10:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Type Mismatch > > Temporarily create a "Make Table Query" with the other query as input. > Create a temporary table and then run the query, open the result table > in design mode and you will see the data types. > > GK > > On 1/16/07, Keith Williamson wrote: > > Is there an easy way to determine exactly what data type is being > > returned by a query? I have a report I am trying to run, with a > > "Docmd.openreport".....but I keep getting a data mismatch error. For > > the life of me, I can't figure out why......and I've tried playing > with > > the Where statement, to get it to give me the right data...to no > avail. > > I figure, if I can definitively determine the data type, for my three > > criterias....I can format the Where statement properly.....and also > > figure out why the query is changing the data type. Grrrrr!! > > > > > > > > Thanks, > > > > > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > > 21231-3305 > > > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > > > > > > -- > > 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 > > -- > 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 galeper at gmail.com Tue Jan 16 12:00:23 2007 From: galeper at gmail.com (Gale Perez) Date: Tue, 16 Jan 2007 10:00:23 -0800 Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date In-Reply-To: <45A95643.4010004@gmail.com> References: <45A95643.4010004@gmail.com> Message-ID: <5b2621db0701161000s7e76444dv85d2847c32550227@mail.gmail.com> Thank you, Ken and everyone who responded! Got it!! Gale On 1/13/07, Ken Ismert wrote: > > > Gale, > > Actually, Microsoft Day 0 is: 12/30/1899, 12:00:00 AM. That is 36161 > days after Clarion Day 0. > > So, your function should be: > > MSDate = CDate(ClarionDate-36161) > > Incidentally, the smallest expressible MSDate is 1/1/100 (-642416), and > the largest is 12/31/9999 (2973483). > > -Ken > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gale Perez > > Sent: Saturday, January 13, 2007 12:43 AM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Convert Clarion Serial Date to Access Normal Date > > > > Hello! > > > > I have been given an Access table, exported from Clarion, with a date > field > > containing a serial number representing the date. I understand that the > > Clarion date begins December 28,1800, and that Access begins with > December > > 31, 1899, or 36162 days later. I created a query to update the Clarion > date > > to ClarionDate-36162 (although i've also seen advice to subtract 36161 > > - I'll know which is right once I've converted the serial to a date), > but > > how do I convert that serial number to a regular date? I've tried > > CDate([MyNumber] and Format([MyNumber,"mm/dd/yyyy") (and I've tried > > rearranging the days, months and years in the Format function), but to > no > > avail. Could someone please advise me how to do this? > > > > > > Thank you very much for any suggestions, > > Gale > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Kwilliamson at RTKL.com Tue Jan 16 12:54:49 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 13:54:49 -0500 Subject: [AccessD] OMG!!!!!! Message-ID: I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. Stumped. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From artful at rogers.com Tue Jan 16 13:06:36 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 16 Jan 2007 11:06:36 -0800 (PST) Subject: [AccessD] OMG!!!!!! Message-ID: <20070116190636.73504.qmail@web88206.mail.re2.yahoo.com> Any chance you can open it in SQL mode instead? Failing that, what about importing that query into a new database and inspecting it there? ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 1:54:49 PM Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. Stumped. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Tue Jan 16 13:08:36 2007 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 16 Jan 2007 13:08:36 -0600 Subject: [AccessD] OMG!!!!!! In-Reply-To: References: Message-ID: Seems like you have a corrupted query there. Try to delete it and recreate it or reimport from a backup copy, you do have a backup copy of the database right??? ;-) You may have to create an entirely NEW database and import things into the new database. You could also try a reboot before you go too far. Sometimes that works. Sometimes. GK On 1/16/07, Keith Williamson wrote: > I have been going through my database application....streamlining....and > converting to pulling data from linked tables, to the backend of our SQL > database accounting system. During the process, I have been deleting a > lot of old tables......that I originally created for downloading data > from the application. Since, in most cases, I am now linked directly > to the sources tables....I don't need the downloaded data. > > > > I was just about to start on the last conversion.......and when I click > on the source query (for a LOT of other activity for this particular > series of add'l queries/forms/reports.......it immediately kills Access. > I mean IMMEDIATELY. I am just clicking on the query, and then clicking > the "Design" button. Access instantly closes!! I can only imagine it > must have something to do with one of the source tables no longer > existing, or something. BUT...how am I supposed to edit this (not to > mention even use this query for all the functions it is needed for) if > it kills my access? Anyone run across this before? I've already run > "Compact and Repair Database" to no avail. > > > > Stumped. > > > > Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com > > RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland > 21231-3305 > > 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com > > > > > -- > 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 Kwilliamson at RTKL.com Tue Jan 16 13:13:36 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 14:13:36 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: References: Message-ID: Nevermind. I'm just going back to a saved version of the database, and converting it there. Then I'll copy back to the active version. Still weird, though. :( Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 1:55 PM To: Access Developers discussion and problem solving Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. Stumped. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Jan 16 13:17:47 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Tue, 16 Jan 2007 14:17:47 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: Message-ID: <006b01c739a3$031e5340$657aa8c0@m6805> Decompile/compile / compact/repair. If that doesn't fix it, then try exporting the object to another database, or even to text. If that doesn't work, try opening a new database and importing everything into that container. The corrupted object will fail to import to the new container and you will know what it is. In my experience it is usually a form, report or module, but it could be a query I suppose. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 1:55 PM To: Access Developers discussion and problem solving Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. Stumped. Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.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 Jan 16 14:46:14 2007 From: john at winhaven.net (John Bartow) Date: Tue, 16 Jan 2007 14:46:14 -0600 Subject: [AccessD] OMG!!!!!! In-Reply-To: References: Message-ID: <04a601c739af$5de160e0$6502a8c0@ScuzzPaq> unfortunately, that sounds very familiar! 1. Decompile - I keep a shortcut on hand at all time: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile 2. compact and repair 3. compile 4. compact and repair 5. throw hands up in the air 6. stand up 7. go whoosh! (and pretend your doing the wave at a big stadium) 8. when people around you think that's weird - explain to them that Microsoft had produced MS Access for over 10 years now and stills allows it to corrupt itself on a regular basis. They're well a respected company, so how can me, doing the wave in my office after overcoming their mistakes with an undocumented startup switch be weird?! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 12:55 PM To: Access Developers discussion and problem solving Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. From Kwilliamson at RTKL.com Tue Jan 16 15:04:03 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 16:04:03 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <04a601c739af$5de160e0$6502a8c0@ScuzzPaq> References: <04a601c739af$5de160e0$6502a8c0@ScuzzPaq> Message-ID: ROFLOL!!! I can't do that dance, yet. I'm still in my 6-month evaluation period, here at work. If I did that dance.......I'd probably wind up bounced out on the street. :))) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, January 16, 2007 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! unfortunately, that sounds very familiar! 1. Decompile - I keep a shortcut on hand at all time: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile 2. compact and repair 3. compile 4. compact and repair 5. throw hands up in the air 6. stand up 7. go whoosh! (and pretend your doing the wave at a big stadium) 8. when people around you think that's weird - explain to them that Microsoft had produced MS Access for over 10 years now and stills allows it to corrupt itself on a regular basis. They're well a respected company, so how can me, doing the wave in my office after overcoming their mistakes with an undocumented startup switch be weird?! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 12:55 PM To: Access Developers discussion and problem solving Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Tue Jan 16 15:07:04 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 16:07:04 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <04a601c739af$5de160e0$6502a8c0@ScuzzPaq> References: <04a601c739af$5de160e0$6502a8c0@ScuzzPaq> Message-ID: BUT.....this all speaks to a VERY good reason to periodically back up your database, to another drive, while in development mode. IF I'd had to recreate that EXTREMELY complicated query, from scratch.....SOMEBODY was getting a swift kick in the shin....faster then they had a chance to say..."Hey Keith...you look upsettttttttt....OUCH!!!" :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, January 16, 2007 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! unfortunately, that sounds very familiar! 1. Decompile - I keep a shortcut on hand at all time: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile 2. compact and repair 3. compile 4. compact and repair 5. throw hands up in the air 6. stand up 7. go whoosh! (and pretend your doing the wave at a big stadium) 8. when people around you think that's weird - explain to them that Microsoft had produced MS Access for over 10 years now and stills allows it to corrupt itself on a regular basis. They're well a respected company, so how can me, doing the wave in my office after overcoming their mistakes with an undocumented startup switch be weird?! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 12:55 PM To: Access Developers discussion and problem solving Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Jan 16 15:04:40 2007 From: john at winhaven.net (John Bartow) Date: Tue, 16 Jan 2007 15:04:40 -0600 Subject: [AccessD] OMG!!!!!! In-Reply-To: References: <04a601c739af$5de160e0$6502a8c0@ScuzzPaq> Message-ID: <04bf01c739b1$f1f490c0$6502a8c0@ScuzzPaq> OK - in your mind just picture me doing it for you ;o) (Since I've probably had to doit a gazillion times in the last year!) whoosh! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 3:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! ROFLOL!!! I can't do that dance, yet. I'm still in my 6-month evaluation period, here at work. If I did that dance.......I'd probably wind up bounced out on the street. :))) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, January 16, 2007 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! unfortunately, that sounds very familiar! 1. Decompile - I keep a shortcut on hand at all time: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile 2. compact and repair 3. compile 4. compact and repair 5. throw hands up in the air 6. stand up 7. go whoosh! (and pretend your doing the wave at a big stadium) 8. when people around you think that's weird - explain to them that Microsoft had produced MS Access for over 10 years now and stills allows it to corrupt itself on a regular basis. They're well a respected company, so how can me, doing the wave in my office after overcoming their mistakes with an undocumented startup switch be weird?! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Tuesday, January 16, 2007 12:55 PM To: Access Developers discussion and problem solving Subject: [AccessD] OMG!!!!!! I have been going through my database application....streamlining....and converting to pulling data from linked tables, to the backend of our SQL database accounting system. During the process, I have been deleting a lot of old tables......that I originally created for downloading data from the application. Since, in most cases, I am now linked directly to the sources tables....I don't need the downloaded data. I was just about to start on the last conversion.......and when I click on the source query (for a LOT of other activity for this particular series of add'l queries/forms/reports.......it immediately kills Access. I mean IMMEDIATELY. I am just clicking on the query, and then clicking the "Design" button. Access instantly closes!! I can only imagine it must have something to do with one of the source tables no longer existing, or something. BUT...how am I supposed to edit this (not to mention even use this query for all the functions it is needed for) if it kills my access? Anyone run across this before? I've already run "Compact and Repair Database" to no avail. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 16 15:19:20 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 16 Jan 2007 15:19:20 -0600 Subject: [AccessD] OMG!!!!!! Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2027042BE@xlivmbx35.aig.com> Re decompiling: you can also set up a context menu option: In Win XP open an Explorer window. On the Folder menu select "Folder Options" select the File Types tab and locate and select the .MDB file type click the 'Advanced' button, there click the 'New' button. The 'New Action' dialog appears. Type a name for the new action: "decompile" enter the command line exactly as shown below, including and double quotes... "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "%1" /decompile make sure the "Use DDE" checkbox is cleared. You can now decompile any MDB from a right-click on the file. Of course you still have to keep backups in case your use of the semi-documented /decompile switch goes awry. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, January 16, 2007 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! unfortunately, that sounds very familiar! 1. Decompile - I keep a shortcut on hand at all time: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile From Kwilliamson at RTKL.com Tue Jan 16 15:35:03 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Tue, 16 Jan 2007 16:35:03 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2027042BE@xlivmbx35.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2027042BE@xlivmbx35.aig.com> Message-ID: Thanks!! I'll definitely keep this tip!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, January 16, 2007 4:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Re decompiling: you can also set up a context menu option: In Win XP open an Explorer window. On the Folder menu select "Folder Options" select the File Types tab and locate and select the .MDB file type click the 'Advanced' button, there click the 'New' button. The 'New Action' dialog appears. Type a name for the new action: "decompile" enter the command line exactly as shown below, including and double quotes... "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "%1" /decompile make sure the "Use DDE" checkbox is cleared. You can now decompile any MDB from a right-click on the file. Of course you still have to keep backups in case your use of the semi-documented /decompile switch goes awry. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Tuesday, January 16, 2007 3:46 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! unfortunately, that sounds very familiar! 1. Decompile - I keep a shortcut on hand at all time: "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" /decompile -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Tue Jan 16 16:05:31 2007 From: john at winhaven.net (John Bartow) Date: Tue, 16 Jan 2007 16:05:31 -0600 Subject: [AccessD] OMG!!!!!! In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2027042BE@xlivmbx35.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2027042BE@xlivmbx35.aig.com> Message-ID: <000001c739ba$7772c8e0$6502a8c0@ScuzzPaq> Great tip Lambert! I used to do this but I now use the little shortcut thingy sidebar to open my apps so I've fallen out of the practice. One thing MS added that actually makes life a tad bit easier on me. I have my apps spread all over because of the hierarchical way I organize my clients files and folders. So now I use essentially three shortcut icons on the quick launch tool bar: Access, Access Decompile, Access Runtime. But for anyone who opens their apps via clicking on the file - this is definitely the way to go! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Tuesday, January 16, 2007 3:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Re decompiling: you can also set up a context menu option: In Win XP open an Explorer window. On the Folder menu select "Folder Options" select the File Types tab and locate and select the .MDB file type click the 'Advanced' button, there click the 'New' button. The 'New Action' dialog appears. Type a name for the new action: "decompile" enter the command line exactly as shown below, including and double quotes... "C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "%1" /decompile make sure the "Use DDE" checkbox is cleared. You can now decompile any MDB from a right-click on the file. Of course you still have to keep backups in case your use of the semi-documented /decompile switch goes awry. HTH Lambert From stuart at lexacorp.com.pg Tue Jan 16 20:27:39 2007 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 17 Jan 2007 12:27:39 +1000 Subject: [AccessD] Problem opening ADP In-Reply-To: <000001c739ba$7772c8e0$6502a8c0@ScuzzPaq> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2027042BE@xlivmbx35.aig.com>, <000001c739ba$7772c8e0$6502a8c0@ScuzzPaq> Message-ID: <45AE163B.3060.A79F740@stuart.lexacorp.com.pg> I create an ADP (A2K format using A2002 ) pointing to SQL Server. It contains nothing apart from a couple of data maintenance forms. The startup options are standard. When I open Access and then open the ADP inside Access, it opens as normal. When I open the ADP by double clicking on it, it opens as though I have deselected the Startup options "Allow Full menus", "Allow Database Window", "Allow Right Click Menus" "Allow Bypass keys" etc. There are no funny switches in Explorer's "File Types, Open". Any idea what is causing this and how to correct it? -- Stuart From artful at rogers.com Tue Jan 16 21:00:18 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 16 Jan 2007 19:00:18 -0800 (PST) Subject: [AccessD] OMG!!!!!! Message-ID: <20070117030018.75995.qmail@web88212.mail.re2.yahoo.com> Call me an idiot for overlooking the obvious, but am I the only person here to use religiously VSS? A. ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:07:04 PM Subject: Re: [AccessD] OMG!!!!!! BUT.....this all speaks to a VERY good reason to periodically back up your database, to another drive, while in development mode. IF I'd had to recreate that EXTREMELY complicated query, from scratch.....SOMEBODY was getting a swift kick in the shin....faster then they had a chance to say..."Hey Keith...you look upsettttttttt....OUCH!!!" :) From bheid at sc.rr.com Tue Jan 16 21:18:30 2007 From: bheid at sc.rr.com (Bobby Heid) Date: Tue, 16 Jan 2007 22:18:30 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <20070117030018.75995.qmail@web88212.mail.re2.yahoo.com> References: <20070117030018.75995.qmail@web88212.mail.re2.yahoo.com> Message-ID: <002401c739e6$29b668b0$2d01a8c0@bhxp> But, if you don't check in until you're finished with the object.... Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, January 16, 2007 10:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! Call me an idiot for overlooking the obvious, but am I the only person here to use religiously VSS? A. ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:07:04 PM Subject: Re: [AccessD] OMG!!!!!! BUT.....this all speaks to a VERY good reason to periodically back up your database, to another drive, while in development mode. IF I'd had to recreate that EXTREMELY complicated query, from scratch.....SOMEBODY was getting a swift kick in the shin....faster then they had a chance to say..."Hey Keith...you look upsettttttttt....OUCH!!!" :) From artful at rogers.com Tue Jan 16 21:57:06 2007 From: artful at rogers.com (artful at rogers.com) Date: Tue, 16 Jan 2007 19:57:06 -0800 (PST) Subject: [AccessD] OMG!!!!!! Message-ID: <20070117035706.51838.qmail@web88214.mail.re2.yahoo.com> Well then, I guess I'm not the idiot, Bobby. I check in every hour. ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 10:18:30 PM Subject: Re: [AccessD] OMG!!!!!! But, if you don't check in until you're finished with the object.... Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, January 16, 2007 10:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! Call me an idiot for overlooking the obvious, but am I the only person here to use religiously VSS? A. ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:07:04 PM Subject: Re: [AccessD] OMG!!!!!! BUT.....this all speaks to a VERY good reason to periodically back up your database, to another drive, while in development mode. IF I'd had to recreate that EXTREMELY complicated query, from scratch.....SOMEBODY was getting a swift kick in the shin....faster then they had a chance to say..."Hey Keith...you look upsettttttttt....OUCH!!!" :) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Jan 17 00:22:24 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 16 Jan 2007 22:22:24 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: <20070117035706.51838.qmail@web88214.mail.re2.yahoo.com> Message-ID: <0JC000MMK1MDFSD0@l-daemon> Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, January 16, 2007 7:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! Well then, I guess I'm not the idiot, Bobby. I check in every hour. ----- Original Message ---- From: Bobby Heid To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 10:18:30 PM Subject: Re: [AccessD] OMG!!!!!! But, if you don't check in until you're finished with the object.... Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, January 16, 2007 10:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! Call me an idiot for overlooking the obvious, but am I the only person here to use religiously VSS? A. ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:07:04 PM Subject: Re: [AccessD] OMG!!!!!! BUT.....this all speaks to a VERY good reason to periodically back up your database, to another drive, while in development mode. IF I'd had to recreate that EXTREMELY complicated query, from scratch.....SOMEBODY was getting a swift kick in the shin....faster then they had a chance to say..."Hey Keith...you look upsettttttttt....OUCH!!!" :) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Jan 17 01:56:59 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Jan 2007 08:56:59 +0100 Subject: [AccessD] Access 2003 and Windows 2003 crash. Solved Message-ID: Hi all This is a bug: http://bugs.mysql.com/bug.php?id=9932 This is one solution which sports the little known feature using a file named msaccess.exe.local, and it will even if a later Windows service pack (SP2?) should be installed: --- [19 Sep 2005 11:44] Jean-Nicholas Harvey 1 - Go to the msaccess.exe folder (e.g. C:\Program Files\Microsoft Office\Office) 2 - Create an empty file named msaccess.exe.local 3 - Copy a working version of MSJET40.DLL (earlier than 4.0.9025.0) in this folder This should work even if people is in charges of the updated is incensed in installing the roll-up patch or if Microsoft decide to update the MSJET40.DLL for another time. --- [14 Jan 23:55] Daniel Kasak Search on this page for '.local'. This method seems to work best for us, and survives successive Windows Update operations. --- The other option is to replace MSJET40.DLL with version 8618 or older: --- [1 Jul 2005 12:32] Erik van Uffelen Essence is to replace ONLY the MSJET40.DLL file with an older version. Windows System File protection protects the msjet40.dll file when you try to replace it with an older version. How to fix this issue: 1. Disable system file protection (not very neat) or... 2. Make sure systemfile protection uses the old MSJET40.dll file Option 2 is preferable to me. I'll explain how: 1. Go to %SystemRoot%\system32\dllcache (it is a hidden system folder) and replace MSJET40.dll with the old version (4.0.8618.0) 2. Go to %SystemRoot%\system32 and also replace the MSJET40.dll file. This must be done in the specified order. Now SFP thinks the file is correct and will not replace it. --- The last method is described here as well: http://forums.mysql.com/read.php?37,40799,87744#msg-87744 /gustav >>> Gustav at cactus.dk 16-01-2007 17:21 >>> Hi all A client is trying to install Access 2003 SP2 on his Windows 2003 Standard Server SP1 with MySQL 3.51.12 ODBC driver. Windows Update has updated the server OS. >From Excel he can open a connection to the MySQL and read the data off the tables. When he tries that with Access it crashes as soon as he tries to open an attached MySQL table. No errors, just poof. What gives? Any ideas? /gustav From paul.hartland at fsmail.net Wed Jan 17 04:50:03 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Jan 2007 11:50:03 +0100 (CET) Subject: [AccessD] OT - Microsoft Certifications Message-ID: <22316533.64001169031003701.JavaMail.www@wwinf3203> To all, I currently use Visual Basic 6.0, Access & SQL Server 7.0/2000 to develop databases and front-ends, but I am starting to think about going for Microsoft Certified courses. Could anyone recommend the right qualifications to go for, for developers. While on this note, I would really like to start (I know it's a bit late) getting into .NET Any advice greatly appreciated Paul Hartland paul.hartland at fsmail.net 07730 523179 From Johncliviger at aol.com Wed Jan 17 06:07:51 2007 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Wed, 17 Jan 2007 07:07:51 EST Subject: [AccessD] OT - Microsoft Certifications Message-ID: Hi Paul Many years ago I went down this certification route with Novell netware and on reflection I feel that the time, effort and cost are outweigh the benefits. You become very good at ticking boxes on screen to get the requsite number of marks but when you have an every day problem its only experience thats get you out of the hole! As I see certification if you have no experience on that product they help get the first job and that all. Remember there is a whole industry with a vested interest in promoting and selling this software certification circus. johnb From artful at rogers.com Wed Jan 17 10:00:41 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 17 Jan 2007 08:00:41 -0800 (PST) Subject: [AccessD] OMG!!!!!! Message-ID: <20070117160041.12456.qmail@web88202.mail.re2.yahoo.com> What an excellent thing to do with an old beater box. I have a few of those around. Do you version-control everything or just database projects? (I ask because at the last large gig I worked on, everything was versioned. It never occurred to me before that how valuable it was to version every technical document relating to a project. Once I realized that, the small leap to versioning stories, books, articles, etc. was obvious. Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage of this box with no more evidence than that. It must have been a big step up to add the 30 GB drive LOL. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 1:22:24 AM Subject: Re: [AccessD] OMG!!!!!! Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim From cfoust at infostatsystems.com Wed Jan 17 10:13:35 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Jan 2007 08:13:35 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: <20070117030018.75995.qmail@web88212.mail.re2.yahoo.com> References: <20070117030018.75995.qmail@web88212.mail.re2.yahoo.com> Message-ID: Even though I swear at it sometimes, we use it in our shop, and I use it on my personal laptop when building a serious app, but it doesn't replace the need for backups. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Tuesday, January 16, 2007 7:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! Call me an idiot for overlooking the obvious, but am I the only person here to use religiously VSS? A. ----- Original Message ---- From: Keith Williamson To: Access Developers discussion and problem solving Sent: Tuesday, January 16, 2007 4:07:04 PM Subject: Re: [AccessD] OMG!!!!!! BUT.....this all speaks to a VERY good reason to periodically back up your database, to another drive, while in development mode. IF I'd had to recreate that EXTREMELY complicated query, from scratch.....SOMEBODY was getting a swift kick in the shin....faster then they had a chance to say..."Hey Keith...you look upsettttttttt....OUCH!!!" :) -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Jan 17 10:16:50 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Jan 2007 08:16:50 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: <20070117160041.12456.qmail@web88202.mail.re2.yahoo.com> References: <20070117160041.12456.qmail@web88202.mail.re2.yahoo.com> Message-ID: >>Ah, I remember the days of 8 and 10 GB drives. Youngster! LOL *I* remember the days of 10Mb drives! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 17, 2007 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! What an excellent thing to do with an old beater box. I have a few of those around. Do you version-control everything or just database projects? (I ask because at the last large gig I worked on, everything was versioned. It never occurred to me before that how valuable it was to version every technical document relating to a project. Once I realized that, the small leap to versioning stories, books, articles, etc. was obvious. Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage of this box with no more evidence than that. It must have been a big step up to add the 30 GB drive LOL. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 1:22:24 AM Subject: Re: [AccessD] OMG!!!!!! Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Jan 17 10:20:09 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 Jan 2007 16:20:09 +0000 Subject: [AccessD] compare nulls In-Reply-To: Message-ID: Hello All, I have 2 text boxes I need to compare to see if they are equal...but if they are both null it does not match. In the example below if text1 and text2 are both null...it says not equal? I'm sure its easy to get around this...or is this even normal? IF me!text1=me!text2 then msgbox"Equal" else msgbox"Not Equal" end if Thanks, Mark _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 From Gustav at cactus.dk Wed Jan 17 10:28:16 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Jan 2007 17:28:16 +0100 Subject: [AccessD] OMG!!!!!! Message-ID: Hi Charlotte I once had two Fujitsu drives, 5,25" and full-height - as hard drives were at those days - each at ... 5 MB! /gustav >>> cfoust at infostatsystems.com 17-01-2007 17:16:50 >>> >>Ah, I remember the days of 8 and 10 GB drives. Youngster! LOL *I* remember the days of 10Mb drives! Charlotte Foust From Gustav at cactus.dk Wed Jan 17 10:31:29 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 17 Jan 2007 17:31:29 +0100 Subject: [AccessD] compare nulls Message-ID: Hi Mark That's because Null is undefined - it cannot be equal to anything. You can use IsNull() to check that condition, or wrap the textboxes in Nz() /gustav >>> markamatte at hotmail.com 17-01-2007 17:20:09 >>> Hello All, I have 2 text boxes I need to compare to see if they are equal...but if they are both null it does not match. In the example below if text1 and text2 are both null...it says not equal? I'm sure its easy to get around this...or is this even normal? IF me!text1=me!text2 then msgbox"Equal" else msgbox"Not Equal" end if Thanks, Mark From garykjos at gmail.com Wed Jan 17 10:37:04 2007 From: garykjos at gmail.com (Gary Kjos) Date: Wed, 17 Jan 2007 10:37:04 -0600 Subject: [AccessD] compare nulls In-Reply-To: References: Message-ID: I think the explanation is that Null is nothing and nothing can't be equal to anything, not even another nothing. Or thereabouts. Perhaps some IS NULL functions can be added. GK On 1/17/07, Mark A Matte wrote: > Hello All, > > I have 2 text boxes I need to compare to see if they are equal...but if they > are both null it does not match. In the example below if text1 and text2 > are both null...it says not equal? I'm sure its easy to get around > this...or is this even normal? > > IF me!text1=me!text2 then > msgbox"Equal" > else > msgbox"Not Equal" > end if > > Thanks, > > Mark > > _________________________________________________________________ > The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. > http://tv.msn.com/tv/globes2007/?icid=nctagline2 > > -- > 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 markamatte at hotmail.com Wed Jan 17 10:45:20 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 Jan 2007 16:45:20 +0000 Subject: [AccessD] compare nulls In-Reply-To: Message-ID: Thank you Teacher. >From: "Gustav Brock" >Reply-To: Access Developers discussion and problem >solving >To: >Subject: Re: [AccessD] compare nulls >Date: Wed, 17 Jan 2007 17:31:29 +0100 > >Hi Mark > > >That's because Null is undefined - it cannot be equal to anything. > > >You can use IsNull() to check that condition, or wrap the textboxes in Nz() > >/gustav > > > >>> markamatte at hotmail.com 17-01-2007 17:20:09 >>> >Hello All, > >I have 2 text boxes I need to compare to see if they are equal...but if >they >are both null it does not match. In the example below if text1 and text2 >are both null...it says not equal? I'm sure its easy to get around >this...or is this even normal? > >IF me!text1=me!text2 then >msgbox"Equal" >else >msgbox"Not Equal" >end if > >Thanks, > >Mark > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get live scores and news about your team: Add the Live.com Football Page www.live.com/?addtemplate=football&icid=T001MSN30A0701 From cfoust at infostatsystems.com Wed Jan 17 10:50:33 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Jan 2007 08:50:33 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: References: Message-ID: Oh, I had the 5.25" floppies too. But we couldn't afford the 5Mb hard drives and couldn't imagine what we'd need them for, so I didn't get a HD until the 10s came out at the same price, about $1000 as I recall! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, January 17, 2007 8:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OMG!!!!!! Hi Charlotte I once had two Fujitsu drives, 5,25" and full-height - as hard drives were at those days - each at ... 5 MB! /gustav >>> cfoust at infostatsystems.com 17-01-2007 17:16:50 >>> >>Ah, I remember the days of 8 and 10 GB drives. Youngster! LOL *I* remember the days of 10Mb drives! Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From krosenstiel at comcast.net Wed Jan 17 10:55:42 2007 From: krosenstiel at comcast.net (krosenstiel at comcast.net) Date: Wed, 17 Jan 2007 16:55:42 +0000 Subject: [AccessD] OMG!!!!!! Message-ID: <011720071655.27254.45AE550E000EAE6D00006A762212020784040A079B9C020A9C019D05@comcast.net> My first box had a 20 mb drive and I remember being told I could run a small business on that. -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Charlotte Foust" > >>Ah, I remember the days of 8 and 10 GB drives. > > Youngster! LOL *I* remember the days of 10Mb drives! > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > artful at rogers.com > Sent: Wednesday, January 17, 2007 8:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OMG!!!!!! > > What an excellent thing to do with an old beater box. I have a few of > those around. Do you version-control everything or just database > projects? (I ask because at the last large gig I worked on, everything > was versioned. It never occurred to me before that how valuable it was > to version every technical document relating to a project. Once I > realized that, the small leap to versioning stories, books, articles, > etc. was obvious. > > Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage > of this box with no more evidence than that. It must have been a big > step up to add the 30 GB drive LOL. > > A. > > ----- Original Message ---- > From: Jim Lawrence > To: Access Developers discussion and problem solving > > Sent: Wednesday, January 17, 2007 1:22:24 AM > Subject: Re: [AccessD] OMG!!!!!! > > Arthur, > > I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 > drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great > and is more reliable than most of the other high performance stuff > around the office. Mind you if it ever fails..... > > Jim > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Jan 17 10:58:42 2007 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 17 Jan 2007 10:58:42 -0600 Subject: [AccessD] compare nulls In-Reply-To: <4338012.1169052550625.JavaMail.root@sniper60> References: <4338012.1169052550625.JavaMail.root@sniper60> Message-ID: <005201c73a58$bef838a0$0200a8c0@danwaters> Hi Mark, Would this work? If IsNull(txt1) and IsNull(txt2) Then Do this Else Do that End If Dan Waters -----Original Message----- Subject: Re: [AccessD] compare nulls I think the explanation is that Null is nothing and nothing can't be equal to anything, not even another nothing. Or thereabouts. Perhaps some IS NULL functions can be added. GK On 1/17/07, Mark A Matte wrote: > Hello All, > > I have 2 text boxes I need to compare to see if they are equal...but if they > are both null it does not match. In the example below if text1 and text2 > are both null...it says not equal? I'm sure its easy to get around > this...or is this even normal? > > IF me!text1=me!text2 then > msgbox"Equal" > else > msgbox"Not Equal" > end if > > Thanks, > > Mark > From ssharkins at setel.com Wed Jan 17 11:04:49 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 17 Jan 2007 12:04:49 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <011720071655.27254.45AE550E000EAE6D00006A762212020784040A079B9C020A9C019D05@comcast.net> Message-ID: <003f01c73a59$99872620$7e34fad1@SUSANONE> I remember loading DOS because there WAS no hard drive -- do I win? :) Susan H. My first box had a 20 mb drive and I remember being told I could run a small business on that. From cfoust at infostatsystems.com Wed Jan 17 11:14:34 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Jan 2007 09:14:34 -0800 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: <003f01c73a59$99872620$7e34fad1@SUSANONE> References: <011720071655.27254.45AE550E000EAE6D00006A762212020784040A079B9C020A9C019D05@comcast.net> <003f01c73a59$99872620$7e34fad1@SUSANONE> Message-ID: DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a tape recorder! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, January 17, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! I remember loading DOS because there WAS no hard drive -- do I win? :) Susan H. My first box had a 20 mb drive and I remember being told I could run a small business on that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at setel.com Wed Jan 17 11:31:31 2007 From: ssharkins at setel.com (Susan Harkins) Date: Wed, 17 Jan 2007 12:31:31 -0500 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: Message-ID: <005801c73a5d$5629fbb0$7e34fad1@SUSANONE> Man, you're old! YOU WIN!!!!!! ;) Susan H. DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a tape recorder! LOL From shamil at users.mns.ru Wed Jan 17 11:35:06 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Wed, 17 Jan 2007 20:35:06 +0300 Subject: [AccessD] OT - Microsoft Certifications In-Reply-To: <22316533.64001169031003701.JavaMail.www@wwinf3203> Message-ID: <000701c73a5d$d4fdc980$6401a8c0@nant> Hello Paul, If you have some free money to spare and a good MS CTEC provider near to you then I'd say that MS Certification courses is a very good experience one can't get by themselves as speedy as these courses do force them to get. And the money you spend on them will pay back rather quickly (it was so in my case). Of course, after all, the real experience is what matters but I must say that MS CTEC give very good "jump-start"... I think, for starters, you can "aim" at MCAD.NET and MCSD.NET and even MCDBA certifications... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, January 17, 2007 1:50 PM To: accessd Subject: [AccessD] OT - Microsoft Certifications Importance: High To all, I currently use Visual Basic 6.0, Access & SQL Server 7.0/2000 to develop databases and front-ends, but I am starting to think about going for Microsoft Certified courses. Could anyone recommend the right qualifications to go for, for developers. While on this note, I would really like to start (I know it's a bit late) getting into .NET Any advice greatly appreciated Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Wed Jan 17 12:12:20 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 Jan 2007 18:12:20 +0000 Subject: [AccessD] compare nulls In-Reply-To: <005201c73a58$bef838a0$0200a8c0@danwaters> Message-ID: Thanks Dan, That would need other If statements because I needed to know if the 2 were equal...the nulls just caused a problem. I solved it with gustav's suggestion: >If nz(text1) = nz(text2) then > Do this >Else > Do that >End If Thanks Again, Mark A. Matte >From: "Dan Waters" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: Re: [AccessD] compare nulls >Date: Wed, 17 Jan 2007 10:58:42 -0600 > >Hi Mark, > >Would this work? > >If IsNull(txt1) and IsNull(txt2) Then > Do this >Else > Do that >End If > > >Dan Waters > >-----Original Message----- >Subject: Re: [AccessD] compare nulls > >I think the explanation is that Null is nothing and nothing can't be >equal to anything, not even another nothing. Or thereabouts. Perhaps >some IS NULL functions can be added. > >GK > >On 1/17/07, Mark A Matte wrote: > > Hello All, > > > > I have 2 text boxes I need to compare to see if they are equal...but if >they > > are both null it does not match. In the example below if text1 and >text2 > > are both null...it says not equal? I'm sure its easy to get around > > this...or is this even normal? > > > > IF me!text1=me!text2 then > > msgbox"Equal" > > else > > msgbox"Not Equal" > > end if > > > > Thanks, > > > > Mark > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Get FREE Web site and company branded e-mail from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ From martyconnelly at shaw.ca Wed Jan 17 12:06:46 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 17 Jan 2007 10:06:46 -0800 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: References: <011720071655.27254.45AE550E000EAE6D00006A762212020784040A079B9C020A9C019D05@comcast.net> <003f01c73a59$99872620$7e34fad1@SUSANONE> Message-ID: <45AE65B6.80705@shaw.ca> I started in the dark ages, did an IPL ( Boot or Initial Program Load) from a series of 16 toggle switches, you had a cheat sheet on the console as you had to enter 3 sequences of these switches on an IBM 360 -50 to get the thing started. Old IBMers never say boot but instead re-IPL. I think it was similar on a IBM 1610 but my memory gets foggy. I do remember working on a CDC mainframe with no disks You read your card deck to tape then by running against a tape compiler created a load go tape that you eventually executed from. Charlotte Foust wrote: >DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a >tape recorder! LOL > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >Sent: Wednesday, January 17, 2007 9:05 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OMG!!!!!! > >I remember loading DOS because there WAS no hard drive -- do I win? :) > >Susan H. > >My first box had a 20 mb drive and I remember being told I could run a >small business on that. > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Wed Jan 17 12:26:58 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Jan 2007 10:26:58 -0800 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: <005801c73a5d$5629fbb0$7e34fad1@SUSANONE> References: <005801c73a5d$5629fbb0$7e34fad1@SUSANONE> Message-ID: Hey, I've never denied that!! :oP Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, January 17, 2007 9:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [OT] OMG!!!!!! Man, you're old! YOU WIN!!!!!! ;) Susan H. DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a tape recorder! LOL -- 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 Jan 17 12:36:18 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 17 Jan 2007 10:36:18 -0800 Subject: [AccessD] OT: Shamil Message-ID: <018c01c73a66$62420ec0$0701a8c0@HAL9005> Shamil: I'm trying to respond to your email this morning, but my reply to shamil at users.mns.ru is getting bounced. ----- The following addresses had permanent fatal errors ----- (reason: 550 Mail not accepted from listed spam relay - see http://sorbs.net ) Is your mail down or do you have another address? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From drboz at pacbell.net Wed Jan 17 12:52:05 2007 From: drboz at pacbell.net (Don Bozarth) Date: Wed, 17 Jan 2007 10:52:05 -0800 Subject: [AccessD] [OT] OMG!!!!!! References: <005801c73a5d$5629fbb0$7e34fad1@SUSANONE> Message-ID: <00be01c73a68$95cf9e90$6501a8c0@don> Nah... a youngster still. How bout having about 256 bytes of memory, 16 switches with which you key in binary your instructions... then hope for the best... Don B. ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, January 17, 2007 9:31 AM Subject: Re: [AccessD] [OT] OMG!!!!!! > Man, you're old! YOU WIN!!!!!! ;) > > Susan H. > > DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a tape > recorder! LOL > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Jan 17 13:11:32 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Jan 2007 11:11:32 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: <20070117160041.12456.qmail@web88202.mail.re2.yahoo.com> Message-ID: <0JC100EZG187S061@l-daemon> Hi Arthur: Subversion has versioning, even automatic backup cycles, it has allowed me to co-author projects over the internet and it has a great list of other features. I tend to just force a backup of coding or letter writing when the mood hits.... once an hour or less. It has saved my bacon (getting good instincts) a number of times and works on both main OS environments. I had some problems running and using VSS and found this package so much friendlier. Check it out at: http://subversion.tigris.org/ Use it with all my MS Access, web site and Word work. You can now buy a TeraByte worth of hard drive space for about $375.00... less than paid for the 8GB drive. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 17, 2007 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! What an excellent thing to do with an old beater box. I have a few of those around. Do you version-control everything or just database projects? (I ask because at the last large gig I worked on, everything was versioned. It never occurred to me before that how valuable it was to version every technical document relating to a project. Once I realized that, the small leap to versioning stories, books, articles, etc. was obvious. Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage of this box with no more evidence than that. It must have been a big step up to add the 30 GB drive LOL. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 1:22:24 AM Subject: Re: [AccessD] OMG!!!!!! Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Jan 17 13:18:24 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 17 Jan 2007 11:18:24 -0800 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: <45AE65B6.80705@shaw.ca> References: <011720071655.27254.45AE550E000EAE6D00006A762212020784040A079B9C020A9C019D05@comcast.net><003f01c73a59$99872620$7e34fad1@SUSANONE> <45AE65B6.80705@shaw.ca> Message-ID: You're talking big iron! I was talking about PCs. ;o} Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Wednesday, January 17, 2007 10:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [OT] OMG!!!!!! I started in the dark ages, did an IPL ( Boot or Initial Program Load) from a series of 16 toggle switches, you had a cheat sheet on the console as you had to enter 3 sequences of these switches on an IBM 360 -50 to get the thing started. Old IBMers never say boot but instead re-IPL. I think it was similar on a IBM 1610 but my memory gets foggy. I do remember working on a CDC mainframe with no disks You read your card deck to tape then by running against a tape compiler created a load go tape that you eventually executed from. Charlotte Foust wrote: >DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a >tape recorder! LOL > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan >Harkins >Sent: Wednesday, January 17, 2007 9:05 AM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OMG!!!!!! > >I remember loading DOS because there WAS no hard drive -- do I win? :) > >Susan H. > >My first box had a 20 mb drive and I remember being told I could run a >small business on that. > > -- 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 Wed Jan 17 13:31:24 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 17 Jan 2007 14:31:24 -0500 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: Message-ID: <00a801c73a6e$1431a580$657aa8c0@m6805> CPM? Newcomer! In 1972 the US Navy trained me to fix computers. The "trainer" was a 12 bit wide instruction with 512 words (12 bit) of CORE memory. You loaded the computer program in via spring loaded switches with light bulbs inside of them, loading machine language instructions and data into a register. The contents of that were transferred to a core memory location when you pressed a "store" switch. To SAVE the program you loaded a roll of paper tape onto a tape reader / punch and then the machine would punch holes into the paper tape. You would carefully roll the paper tape up and carry it around with you since you could then read that paper tape back into the machine if you wanted to. The trainer ran at the startling speed of 125 K instructions per second. I learned to fix that (and subsequent machines) down to the transistor level, though in fact we just replaced the entire little card, each card would have a flip-flop or a couple of and gates. It took entire rows of cards just to build up a register. My first personal computer was an "s-100" based Z-80 machine with 24K bytes of static ram. When I bought the computer it came with "zapple basic", which when I look at the name makes me think perhaps it was a z-80 translation of an apple basic language. At any rate, the interpreter was 12K so I had 12K free for my program. Zapple basic came on a cassette (the music kind) and I connected my stereo cassette deck to the board to load the program. IIRC it used a serial data stream at 300 baud to read from the cassette tape. At any rate, it took over 3 minutes to load Zapple Basic into the computer. Once that was done I used a dumb terminal on a serial port to display the programming prompt and the terminal's keyboard to type in my program. BTW I BUILT all of the boards in the system from kits I ordered from advertisements in the back of Popular Electronics, this was about 1977. Yep, with a soldering iron and schematics. In about 1982 I built my first REAL personal computer, a "single board computer" (SBC) from a kit. It used the 80186 uP at an incredible 16 MHz clock and had room on the board for 256K bytes of dynamic ram. By placing another dynamic ram chip on top of the first, carefully bending up the RAS pin of the dynamic ram, soldering all the remaining pins to the ram chip below, and then running a wire from the bent up pin down to a pad on the board, I "piggy backed" the memory and doubled my ram to 512 Kbytes. This SBC had 2 serial ports and a built-in floppy disk controller. For about $700 I purchased a dual 8" floppy drive, each drive could store 1 mbyte. This computer ran CPM-86. I purchased a 1200 baud modem which attached to one of the Serial ports, and since at that time I worked for a graphics terminal company called Megatek, I scrounged an old color graphics terminal which I attached to the other serial port. A REAL computer. I then purchased a Pascal compiler from a brand new startup by the name of Borland and I was on my way to a successful (?) programming career. Until 1986 I continued to fix electronics for a living, but eventually I switched to programming in around 1986 and never looked back. In 1987 I purchased my first brand name assembled computer from Epson of all companies, a 80188 running at 12mhz (PCXT clone) running DOS, with a 5gb disk drive and 2 mbytes of ram (1 on the MB and an add-on card for EMS). BTW, the only other preassembled computer I ever purchased was a 20mzh PCAT clone in around 1989. From that point on I purchased parts and just kept upgrading. I still buy all my components and build my own boxes. My most recent server is a dual core AMD with 4gb ram and a 2 terabyte raid6 array. In about 6 months I will be building a machine using a dual cpu motherboard (the AMD 4X4) using the quad core CPUs from AMD, which HOPEFULLY will be available by mid summer. Eight cores on a motherboard. That should make a fine SQL server for the big database I am working on. In 1984 I DREAMED of owning a VAX 11760 with 2 mbytes. Now I have a machine (in fact several) that is a thousand times more powerful, all that power being sucked up by Windows. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, January 17, 2007 12:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] [OT] OMG!!!!!! DOS?? Newcomer! I started with CP/M and loaded the bootstrap from a tape recorder! LOL Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, January 17, 2007 9:05 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! I remember loading DOS because there WAS no hard drive -- do I win? :) Susan H. My first box had a 20 mb drive and I remember being told I could run a small business on that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 17 13:34:54 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Jan 2007 11:34:54 -0800 Subject: [AccessD] compare nulls In-Reply-To: Message-ID: <0JC100EE22B4S091@l-daemon> Mark: Try IF me!text1 & "" = me!text2 & "" then... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, January 17, 2007 8:20 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] compare nulls Hello All, I have 2 text boxes I need to compare to see if they are equal...but if they are both null it does not match. In the example below if text1 and text2 are both null...it says not equal? I'm sure its easy to get around this...or is this even normal? IF me!text1=me!text2 then msgbox"Equal" else msgbox"Not Equal" end if Thanks, Mark _________________________________________________________________ The MSN Entertainment Guide to Golden Globes is here. Get all the scoop. http://tv.msn.com/tv/globes2007/?icid=nctagline2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Jan 17 13:30:53 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Jan 2007 11:30:53 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: Message-ID: <0JC10030I24F5OK0@l-daemon> Charlotte: There seemed to be so much more room on drives. The first major site I designed and installed had a full unlimited Novell network; a hand built POS, accounting system, word processors (bought), ran across 2 offices in different cities and allowed remote access from a home office. All for a large book store. The server had 386-20Mhz, 8MB RAM, 20MB HD. It was not that long ago. We just work in one of the world's fastest changing industries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, January 17, 2007 8:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! >>Ah, I remember the days of 8 and 10 GB drives. Youngster! LOL *I* remember the days of 10Mb drives! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 17, 2007 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! What an excellent thing to do with an old beater box. I have a few of those around. Do you version-control everything or just database projects? (I ask because at the last large gig I worked on, everything was versioned. It never occurred to me before that how valuable it was to version every technical document relating to a project. Once I realized that, the small leap to versioning stories, books, articles, etc. was obvious. Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage of this box with no more evidence than that. It must have been a big step up to add the 30 GB drive LOL. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 1:22:24 AM Subject: Re: [AccessD] OMG!!!!!! Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Wed Jan 17 14:08:25 2007 From: kismert at gmail.com (Ken Ismert) Date: Wed, 17 Jan 2007 14:08:25 -0600 Subject: [AccessD] compare nulls In-Reply-To: References: Message-ID: <45AE8239.8000700@gmail.com> Mark, While it is logically tricky to say Null = Null (even though Null is represented by a discrete value in VB), it is sometimes useful to ask if two variants have the same value. A slight distinction, but a useful one. To that end, I wrote this VarComp routine some time back. This is my third try at this code. It has shortcomings: for performance reasons, it doesn't attempt even a shallow comparison of object properties or array contents. Obviously, there are no hard and fast rules here: one can bend this to their own ends. ' VarComp ' ======= ' Compares two Variants. Returns True (same) or False (different), ' according to these rules: ' ' Value1 Value1 Returns ' ======================================================== ' Empty Empty True ' Null Null True ' Nothing Nothing True ' Object Object Result of Typename comparison ' Array Array Type and Bounds match only ' Matching Value Types Result of Value Comparison ' ' Condition Returns ' ========================================================= ' Any are Missing False ' Any One is Empty False ' Any One is Null False ' Any One is Nothing False ' Type Mismatch False ' ' Notes: ' String Comparisons are done using the TextCompare parameter ' User Defined Types can't be passed as variants ' Public Function VarComp(ByRef vValue1 As Variant, _ ByRef vValue2 As Variant, _ Optional ByVal TextCompare As VbCompareMethod = vbBinaryCompare) As Boolean Const CS_TypeString = "String" Static sType1 As String Static sType2 As String On Error GoTo HandleErr ' Init VarComp = False If IsMissing(vValue1) Or IsMissing(vValue2) Then Exit Function sType1 = TypeName(vValue1) sType2 = TypeName(vValue2) If (sType1 = sType2) Then ' Typenames match If IsObject(vValue1) Or IsEmpty(vValue1) Or IsNull(vValue1) Then ' Both are Same Object type, Nothing, Empty or Null VarComp = True ElseIf IsArray(vValue1) Then ' Both arrays of matching type VarComp = (LBound(vValue1) = LBound(vValue2)) And (UBound(vValue1) = UBound(vValue2)) ElseIf sType1 = CS_TypeString Then ' Both are String VarComp = (StrComp(vValue1, vValue2, TextCompare) = 0) Else ' Value Type: not Object, Array, Empty, Null VarComp = (vValue1 = vValue2) End If End If Exit Function HandleErr: Err.Raise Err.Number, "VarComp" & vbCrLf & Err.Source, Err.Description End Function > Hi Mark, > > Would this work? > > If IsNull(txt1) and IsNull(txt2) Then > Do this > Else > Do that > End If > > > Dan Waters > > -----Original Message----- > Subject: Re: [AccessD] compare nulls > > I think the explanation is that Null is nothing and nothing can't be > equal to anything, not even another nothing. Or thereabouts. Perhaps > some IS NULL functions can be added. > > GK > > From markamatte at hotmail.com Wed Jan 17 14:40:58 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 17 Jan 2007 20:40:58 +0000 Subject: [AccessD] compare nulls In-Reply-To: <45AE8239.8000700@gmail.com> Message-ID: Thanks Ken, The main purpose was "are text1 and text2 the same", if so do something, if not do something else(the nulls got in the way)...but with gustav's suggestion I used the following: >If nz(text1) = nz(text2) then > Do this >Else > Do that >End If ...and it worked fine. Thanks Again, Mark A. Matte >From: Ken Ismert >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] compare nulls >Date: Wed, 17 Jan 2007 14:08:25 -0600 > > >Mark, > >While it is logically tricky to say Null = Null (even though Null is >represented by a discrete value in VB), it is sometimes useful to ask if >two variants have the same value. A slight distinction, but a useful one. > >To that end, I wrote this VarComp routine some time back. This is my >third try at this code. It has shortcomings: for performance reasons, it >doesn't attempt even a shallow comparison of object properties or array >contents. Obviously, there are no hard and fast rules here: one can bend >this to their own ends. > >' VarComp >' ======= >' Compares two Variants. Returns True (same) or False (different), >' according to these rules: >' >' Value1 Value1 Returns >' ======================================================== >' Empty Empty True >' Null Null True >' Nothing Nothing True >' Object Object Result of Typename comparison >' Array Array Type and Bounds match only >' Matching Value Types Result of Value Comparison >' >' Condition Returns >' ========================================================= >' Any are Missing False >' Any One is Empty False >' Any One is Null False >' Any One is Nothing False >' Type Mismatch False >' >' Notes: >' String Comparisons are done using the TextCompare parameter >' User Defined Types can't be passed as variants >' >Public Function VarComp(ByRef vValue1 As Variant, _ > ByRef vValue2 As Variant, _ > Optional ByVal TextCompare As VbCompareMethod = vbBinaryCompare) As >Boolean > > Const CS_TypeString = "String" > > Static sType1 As String > Static sType2 As String > > On Error GoTo HandleErr > > ' Init > VarComp = False > > If IsMissing(vValue1) Or IsMissing(vValue2) Then Exit Function > > sType1 = TypeName(vValue1) > sType2 = TypeName(vValue2) > > If (sType1 = sType2) Then > ' Typenames match > If IsObject(vValue1) Or IsEmpty(vValue1) Or IsNull(vValue1) Then > ' Both are Same Object type, Nothing, Empty or Null > VarComp = True > ElseIf IsArray(vValue1) Then > ' Both arrays of matching type > VarComp = (LBound(vValue1) = LBound(vValue2)) And >(UBound(vValue1) = UBound(vValue2)) > ElseIf sType1 = CS_TypeString Then > ' Both are String > VarComp = (StrComp(vValue1, vValue2, TextCompare) = 0) > Else > ' Value Type: not Object, Array, Empty, Null > VarComp = (vValue1 = vValue2) > End If > End If > > Exit Function > >HandleErr: > Err.Raise Err.Number, "VarComp" & vbCrLf & Err.Source, Err.Description >End Function > > > Hi Mark, > > > > Would this work? > > > > If IsNull(txt1) and IsNull(txt2) Then > > Do this > > Else > > Do that > > End If > > > > > > Dan Waters > > > > -----Original Message----- > > Subject: Re: [AccessD] compare nulls > > > > I think the explanation is that Null is nothing and nothing can't be > > equal to anything, not even another nothing. Or thereabouts. Perhaps > > some IS NULL functions can be added. > > > > GK > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Your Hotmail address already works to sign into Windows Live Messenger! Get it now http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview From jwcolby at colbyconsulting.com Wed Jan 17 14:47:12 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 17 Jan 2007 15:47:12 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <0JC10030I24F5OK0@l-daemon> Message-ID: <00b601c73a78$aaa67270$657aa8c0@m6805> Jim, I have WAY more free room than that. My system drive (C:) has several gigabytes left, hundreds of times the 20mb on that systems drive. ;-) If it weren't for the cost of a high speed RAID controller, massive capacity hard drives are now within reach for us average joes. I have a real need of course, but I bought 8 320g Seagates for $95 each delivered. The RAID controller cost me 60% of that amount at $500. In the end, for about $1300 I built a raid 6 raid array which contains (after deducting 2 drives for parity striping) 6 X 300 (real) gbytes for almost 1.8 terrabytes of storage. And this thing is WICKED fast, streaming read data at over 300 mbytes / sec. AND it can lose two drives and still continue to work. For someone in my position, that is an incredible bargain. Now if I could just figure out how to back it up economically. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, January 17, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Charlotte: There seemed to be so much more room on drives. The first major site I designed and installed had a full unlimited Novell network; a hand built POS, accounting system, word processors (bought), ran across 2 offices in different cities and allowed remote access from a home office. All for a large book store. The server had 386-20Mhz, 8MB RAM, 20MB HD. It was not that long ago. We just work in one of the world's fastest changing industries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, January 17, 2007 8:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! >>Ah, I remember the days of 8 and 10 GB drives. Youngster! LOL *I* remember the days of 10Mb drives! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 17, 2007 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! What an excellent thing to do with an old beater box. I have a few of those around. Do you version-control everything or just database projects? (I ask because at the last large gig I worked on, everything was versioned. It never occurred to me before that how valuable it was to version every technical document relating to a project. Once I realized that, the small leap to versioning stories, books, articles, etc. was obvious. Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage of this box with no more evidence than that. It must have been a big step up to add the 30 GB drive LOL. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 1:22:24 AM Subject: Re: [AccessD] OMG!!!!!! Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jan 17 15:15:44 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 17 Jan 2007 13:15:44 -0800 (PST) Subject: [AccessD] OMG!!!!!! Message-ID: <20070117211544.74734.qmail@web88207.mail.re2.yahoo.com> Sorry, babe. I remember CP/M and Apple SOS. ----- Original Message ---- From: Susan Harkins To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 12:04:49 PM Subject: Re: [AccessD] OMG!!!!!! I remember loading DOS because there WAS no hard drive -- do I win? :) Susan H. My first box had a 20 mb drive and I remember being told I could run a small business on that. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at otda.state.ny.us Wed Jan 17 15:51:17 2007 From: Patricia.O'Connor at otda.state.ny.us (O'Connor, Patricia (OTDA)) Date: Wed, 17 Jan 2007 16:51:17 -0500 Subject: [AccessD] tsGetFileFromUser() In-Reply-To: <20070114150443.28596.qmail@web88211.mail.re2.yahoo.com> Message-ID: <01DBAB52E30A9A4AB3D94EF8029EDBE8021BAD12@EXCNYSM0A1AI.nysemail.nyenet> Thanks Art Gustav You would think MS would have it documented somewhere. I searched through Google didn't find very much. Here http://p2p.wrox.com/topic.asp?TOPIC_ID=6064 I found some code but not sure where to exactly put things. Tried to modify mine a little but it kept erroring so I kept the original Thanks Patti ************************************************** * Patricia O'Connor * Associate Computer Programmer Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at otda.state.ny.us * (w) mailto:aa1160 at nysemail.state.ny.us ************************************************** - -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. From bchacc at san.rr.com Wed Jan 17 15:59:38 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 17 Jan 2007 13:59:38 -0800 Subject: [AccessD] Closing Word Message-ID: <01bd01c73a82$ce433920$0701a8c0@HAL9005> Dear List: I am using the following code to open a word doc the path and file name of which are in the bound field fldFabWorkInstrucitons. Private Sub fldFABWorkInstructions_DblClick(Cancel As Integer) Dim objWord As Word.Application Dim objWordDoc As Word.Document Set objWord = CreateObject("Word.Application") With objWord 'Visible is set True in order to view the operation. .Visible = True .Documents.Open (Me.fldFABWorkInstructions) End With End Sub If works fine, but I'd like to terminate the process when the user is finished looking at the document. How can I know when this happens? The user might, while the doc is open, leave the form where it was opened. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com From accessd at shaw.ca Wed Jan 17 16:24:27 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Jan 2007 14:24:27 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: <00b601c73a78$aaa67270$657aa8c0@m6805> Message-ID: <0JC1004TTA5OG5S0@l-daemon> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, January 17, 2007 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Jim, I have WAY more free room than that. My system drive (C:) has several gigabytes left, hundreds of times the 20mb on that systems drive. ;-) If it weren't for the cost of a high speed RAID controller, massive capacity hard drives are now within reach for us average joes. I have a real need of course, but I bought 8 320g Seagates for $95 each delivered. The RAID controller cost me 60% of that amount at $500. In the end, for about $1300 I built a raid 6 raid array which contains (after deducting 2 drives for parity striping) 6 X 300 (real) gbytes for almost 1.8 terrabytes of storage. And this thing is WICKED fast, streaming read data at over 300 mbytes / sec. AND it can lose two drives and still continue to work. For someone in my position, that is an incredible bargain. Now if I could just figure out how to back it up economically. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, January 17, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Charlotte: There seemed to be so much more room on drives. The first major site I designed and installed had a full unlimited Novell network; a hand built POS, accounting system, word processors (bought), ran across 2 offices in different cities and allowed remote access from a home office. All for a large book store. The server had 386-20Mhz, 8MB RAM, 20MB HD. It was not that long ago. We just work in one of the world's fastest changing industries. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, January 17, 2007 8:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! >>Ah, I remember the days of 8 and 10 GB drives. Youngster! LOL *I* remember the days of 10Mb drives! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of artful at rogers.com Sent: Wednesday, January 17, 2007 8:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OMG!!!!!! What an excellent thing to do with an old beater box. I have a few of those around. Do you version-control everything or just database projects? (I ask because at the last large gig I worked on, everything was versioned. It never occurred to me before that how valuable it was to version every technical document relating to a project. Once I realized that, the small leap to versioning stories, books, articles, etc. was obvious. Ah, I remember the days of 8 and 10 GB drives. One can trace the lineage of this box with no more evidence than that. It must have been a big step up to add the 30 GB drive LOL. A. ----- Original Message ---- From: Jim Lawrence To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 1:22:24 AM Subject: Re: [AccessD] OMG!!!!!! Arthur, I use Subversion as it utilizes an old beater box, 300Mhz, 256MB RAM, 3 drives, (8, 10 & 30GB) and a handcrafted ancient Linux.... works great and is more reliable than most of the other high performance stuff around the office. Mind you if it ever fails..... Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Wed Jan 17 17:19:52 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 17 Jan 2007 15:19:52 -0800 (PST) Subject: [AccessD] tsGetFileFromUser() Message-ID: <20070117231952.65435.qmail@web88213.mail.re2.yahoo.com> I'm not sure what your question is now. I have code that obtains a file | filename from the user, which draws upon Windows API stuff. It's not at all complex. If you like I could send you a sample MDB which does only one thing: open a form that requests the user to choose a filename, allowing her to navigate to the drive/dir tree and either enter a filename or choose one for a new file. ----- Original Message ---- From: "O'Connor, Patricia (OTDA)" To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 4:51:17 PM Subject: Re: [AccessD] tsGetFileFromUser() Thanks Art Gustav You would think MS would have it documented somewhere. I searched through Google didn't find very much. Here http://p2p.wrox.com/topic.asp?TOPIC_ID=6064 I found some code but not sure where to exactly put things. Tried to modify mine a little but it kept erroring so I kept the original Thanks Patti From jwcolby at colbyconsulting.com Wed Jan 17 19:55:40 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 17 Jan 2007 20:55:40 -0500 Subject: [AccessD] OMG!!!!!! In-Reply-To: <0JC1004TTA5OG5S0@l-daemon> Message-ID: <00c701c73aa3$c2236bd0$657aa8c0@m6805> Jim, Mirrors are fine for small data needs but the cost is 50% anyway. One drive for data, one for the mirror. If you need a single large drive, 750 gig drives are as big as you can get, and they cost ~$350 or so right now, so that is $700 for 700 (real) MB and that is as big as it gets. Plus, if you use the controller built in to the motherboard they are not particularly fast. That is a great solution though if that falls within your needs. For reliably protecting music or software or document archives it is "good enough". OTOH, I have a single partition that is > 1 tbyte, and I am trying to backup a half dozen BIG SQL Server data files, so a simple "copy everything" just won't work very well. I'm still thinking about how to do this. It probably will be a low power "box" at the other end of a LAN cable. I may go with a "hardware assisted" cheap raid card to get the speed up, and perhaps a raid 5 to get some level of redundancy in case of a disk failure. If I can get compression in the backup then a tbyte backup array will handle the backup. Another very real issue with backing up large files like this is simply the time required to do the copy. I have 1 gBit LAN between all of my boxes, but it still requires 15-20 minutes just to copy a 30g file. OTOH, the options are limited. Economical tape backup simply doesn't exist for this size disk, and DVDs are not an option either. Disk backup is about the only option for someone in my shoes. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, January 17, 2007 5:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, January 17, 2007 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Jim, I have WAY more free room than that. My system drive (C:) has several gigabytes left, hundreds of times the 20mb on that systems drive. ;-) If it weren't for the cost of a high speed RAID controller, massive capacity hard drives are now within reach for us average joes. I have a real need of course, but I bought 8 320g Seagates for $95 each delivered. The RAID controller cost me 60% of that amount at $500. In the end, for about $1300 I built a raid 6 raid array which contains (after deducting 2 drives for parity striping) 6 X 300 (real) gbytes for almost 1.8 terrabytes of storage. And this thing is WICKED fast, streaming read data at over 300 mbytes / sec. AND it can lose two drives and still continue to work. For someone in my position, that is an incredible bargain. Now if I could just figure out how to back it up economically. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com From artful at rogers.com Wed Jan 17 20:35:43 2007 From: artful at rogers.com (artful at rogers.com) Date: Wed, 17 Jan 2007 18:35:43 -0800 (PST) Subject: [AccessD] OMG!!!!!! Message-ID: <20070118023543.66097.qmail@web88202.mail.re2.yahoo.com> You need to become acquainted with SAN, JC. Multi-TB solutions are available. Of course the cost goes up, but you are stepping into turf where HW cost is the least of your problems. A. ----- Original Message ---- From: JWColby To: Access Developers discussion and problem solving Sent: Wednesday, January 17, 2007 8:55:40 PM Subject: Re: [AccessD] OMG!!!!!! Jim, Mirrors are fine for small data needs but the cost is 50% anyway. One drive for data, one for the mirror. If you need a single large drive, 750 gig drives are as big as you can get, and they cost ~$350 or so right now, so that is $700 for 700 (real) MB and that is as big as it gets. Plus, if you use the controller built in to the motherboard they are not particularly fast. That is a great solution though if that falls within your needs. For reliably protecting music or software or document archives it is "good enough". From jwcolby at colbyconsulting.com Wed Jan 17 21:09:09 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Wed, 17 Jan 2007 22:09:09 -0500 Subject: [AccessD] AND YOU THOUGHT IT WAS JUST A GAME... Message-ID: <000001c73aae$06464ee0$657aa8c0@m6805> A largish database... http://www.wwpi.com/casestudies/eveonline.htm John W. Colby Colby Consulting www.ColbyConsulting.com From bchacc at san.rr.com Wed Jan 17 22:41:25 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Wed, 17 Jan 2007 20:41:25 -0800 Subject: [AccessD] Closing Word In-Reply-To: <01bd01c73a82$ce433920$0701a8c0@HAL9005> Message-ID: <01ec01c73aba$f05d4180$0701a8c0@HAL9005> Never mind. I think. Adding Set objWord = Nothing at the end of the routine seems to work. It leaves the document open and there's no WINWORD left in the task manager's processes. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Beach Access Software Sent: Wednesday, January 17, 2007 2:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Closing Word Dear List: I am using the following code to open a word doc the path and file name of which are in the bound field fldFabWorkInstrucitons. Private Sub fldFABWorkInstructions_DblClick(Cancel As Integer) Dim objWord As Word.Application Dim objWordDoc As Word.Document Set objWord = CreateObject("Word.Application") With objWord 'Visible is set True in order to view the operation. .Visible = True .Documents.Open (Me.fldFABWorkInstructions) End With End Sub If works fine, but I'd like to terminate the process when the user is finished looking at the document. How can I know when this happens? The user might, while the doc is open, leave the form where it was opened. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.13/632 - Release Date: 1/16/2007 4:36 PM From accessd at shaw.ca Thu Jan 18 01:15:35 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 17 Jan 2007 23:15:35 -0800 Subject: [AccessD] OMG!!!!!! In-Reply-To: <00c701c73aa3$c2236bd0$657aa8c0@m6805> Message-ID: <0JC100JQUYQVGEU0@l-daemon> Hi John: If you buy one very large drive then the costs are through the roof. That is why I was suggesting a clutch of smaller drives partitioned together as one big drive. You could also go the SATA drive routine. A number of manufactures make motherboards with 2 SATA connectors built on them. That means 7 drives per connection. With enough cheap drives a backup solution can be created. (Of course there may be other physical limits...) As I see it you have to have a backup system and the solution is either expensive or very expensive. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, January 17, 2007 5:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Jim, Mirrors are fine for small data needs but the cost is 50% anyway. One drive for data, one for the mirror. If you need a single large drive, 750 gig drives are as big as you can get, and they cost ~$350 or so right now, so that is $700 for 700 (real) MB and that is as big as it gets. Plus, if you use the controller built in to the motherboard they are not particularly fast. That is a great solution though if that falls within your needs. For reliably protecting music or software or document archives it is "good enough". OTOH, I have a single partition that is > 1 tbyte, and I am trying to backup a half dozen BIG SQL Server data files, so a simple "copy everything" just won't work very well. I'm still thinking about how to do this. It probably will be a low power "box" at the other end of a LAN cable. I may go with a "hardware assisted" cheap raid card to get the speed up, and perhaps a raid 5 to get some level of redundancy in case of a disk failure. If I can get compression in the backup then a tbyte backup array will handle the backup. Another very real issue with backing up large files like this is simply the time required to do the copy. I have 1 gBit LAN between all of my boxes, but it still requires 15-20 minutes just to copy a 30g file. OTOH, the options are limited. Economical tape backup simply doesn't exist for this size disk, and DVDs are not an option either. Disk backup is about the only option for someone in my shoes. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, January 17, 2007 5:24 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, January 17, 2007 12:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OMG!!!!!! Jim, I have WAY more free room than that. My system drive (C:) has several gigabytes left, hundreds of times the 20mb on that systems drive. ;-) If it weren't for the cost of a high speed RAID controller, massive capacity hard drives are now within reach for us average joes. I have a real need of course, but I bought 8 320g Seagates for $95 each delivered. The RAID controller cost me 60% of that amount at $500. In the end, for about $1300 I built a raid 6 raid array which contains (after deducting 2 drives for parity striping) 6 X 300 (real) gbytes for almost 1.8 terrabytes of storage. And this thing is WICKED fast, streaming read data at over 300 mbytes / sec. AND it can lose two drives and still continue to work. For someone in my position, that is an incredible bargain. Now if I could just figure out how to back it up economically. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Jan 18 02:37:45 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 09:37:45 +0100 Subject: [AccessD] Linux file server backup Message-ID: Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim From Gustav at cactus.dk Thu Jan 18 02:56:19 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 09:56:19 +0100 Subject: [AccessD] tsGetFileFromUser() Message-ID: Hi Patricia This code seems to use the open file dialogue of Access, not that (the common) of Windows: Declare Function adh_accOfficeGetFileName Lib "msaccess.exe" _ Alias "#56" (gfni As adh_accOfficeGetFileNameInfo, ByVal fOpen As Integer) As Long However, as you can read from the message, this won't work for A2003 and probably neither for A2007. The internal function "#56# has changed to something else but who knows what? Arthur: Patti wish to open the file dialogue box with the view "Details" selected as default. /gustav >>> Patricia.O'Connor at otda.state.ny.us 17-01-2007 22:51 >>> Thanks Art Gustav You would think MS would have it documented somewhere. I searched through Google didn't find very much. Here http://p2p.wrox.com/topic.asp?TOPIC_ID=6064 I found some code but not sure where to exactly put things. Tried to modify mine a little but it kept erroring so I kept the original Thanks Patti From john at winhaven.net Thu Jan 18 03:37:16 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 03:37:16 -0600 Subject: [AccessD] VBA syntax for selecting a record Message-ID: <017701c73ae4$3e31bcf0$6502a8c0@ScuzzPaq> What would be the correct VBA syntax for selecting a record on a continues form using the primary key? TIA John B. From accessd at shaw.ca Thu Jan 18 03:39:34 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 18 Jan 2007 01:39:34 -0800 Subject: [AccessD] Linux file server backup In-Reply-To: Message-ID: <0JC200IZL5ETD7Q1@l-daemon> Hi Gustav: I am not sure of its raid capabilities (the basic Linux Kernel has a Raid layer implemented in software) but the logical Volume Manager allows files systems to span several disks which makes it appear that it is just on drive. None of this is particularly unusual for Linux. Throw in the ReiserFS and you have as stable of package that software can give you. See the Wikipedia comments on the FS: http://en.wikipedia.org/wiki/ReiserFS. You are correct saying it all hinges on the reliability of the controller. The only controllers that have ever failed for me were raid controllers... the most expensive ones, of course. One client had one crash on a big Dell server and it cost more to replace than a new server. I have never tried Rsync before. Tell me how the testing goes as I will be very interested. (I know a fellow who is running a business doing over-night backups for clients using the product but he was shy about giving any of the details.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 12:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Thu Jan 18 04:00:39 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 18 Jan 2007 10:00:39 +0000 Subject: [AccessD] VBA syntax for selecting a record Message-ID: <20070118100042.A3AF52BB283@smtp.nildram.co.uk> John It'd be something like: With Me.RecordSetClone .FindFirst "YourPrimaryKeyField=" & Me.txtKey If Not .Nomatch Then Me.BookMark=.BookMark End If End With Assumes a field like txtKet holds the record number sought -- 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] VBA syntax for selecting a record Date: 18/01/07 09:38 What would be the correct VBA syntax for selecting a record on a continues form using the primary key? TIA John B. -- 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 Gustav at cactus.dk Thu Jan 18 04:47:53 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 11:47:53 +0100 Subject: [AccessD] Linux file server backup Message-ID: Hi Jim I see your point with the logical volumes, Novell NetWare has the same feature, quite nice. As for the controllers, one was an onboard, the other was - as you've seen too - an expensive top branded RAID controller. Rsync is in fact a basic Unix tool which has been ported to both NetWare and Windows and Linux, of course. I'm surprised of your friend's shy attitude - no secrets here to reveal. A quick way to check it out is to set up two virtual server with VMware Server (free): http://www.vmware.com/vmtn/appliances/challenge/winners.html where you install FreeNAS: http://www.freenas.org/ An excellent package, by the way. Still in beta, though, so some features are missing. Full VMware/FreeNAS here, though this is version 0.66, not the current 0.68: http://www.vmware.com/vmtn/appliances/directory/168 /gustav >>> accessd at shaw.ca 18-01-2007 10:39 >>> Hi Gustav: I am not sure of its raid capabilities (the basic Linux Kernel has a Raid layer implemented in software) but the logical Volume Manager allows files systems to span several disks which makes it appear that it is just on drive. None of this is particularly unusual for Linux. Throw in the ReiserFS and you have as stable of package that software can give you. See the Wikipedia comments on the FS: http://en.wikipedia.org/wiki/ReiserFS. You are correct saying it all hinges on the reliability of the controller. The only controllers that have ever failed for me were raid controllers... the most expensive ones, of course. One client had one crash on a big Dell server and it cost more to replace than a new server. I have never tried Rsync before. Tell me how the testing goes as I will be very interested. (I know a fellow who is running a business doing over-night backups for clients using the product but he was shy about giving any of the details.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 12:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim From paul.hartland at fsmail.net Thu Jan 18 05:01:54 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 18 Jan 2007 12:01:54 +0100 (CET) Subject: [AccessD] SQL Server - Make Date Field Display 2 Digit Year Only Message-ID: <20389518.198761169118114607.JavaMail.www@wwinf3004.me-wanadoo.net> To all, I have a date field in a table in SQL Server 2000, which displays the date as DD/MM/YYYY. Does anyone know how to make the date field just hold a 2 digit year DD/MM/YY ? Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From Gustav at cactus.dk Thu Jan 18 05:44:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 12:44:43 +0100 Subject: [AccessD] SQL Server - Make Date Field Display 2 Digit Year Only Message-ID: Hi Paul The datefield will always "hold" a 4-digit year, but you can format it as a string: SELECT CONVERT(varchar, datefield, 103) ... /gustav >>> paul.hartland at fsmail.net 18-01-2007 12:01 >>> To all, I have a date field in a table in SQL Server 2000, which displays the date as DD/MM/YYYY. Does anyone know how to make the date field just hold a 2 digit year DD/MM/YY ? Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 From paul.hartland at fsmail.net Thu Jan 18 06:03:06 2007 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 18 Jan 2007 13:03:06 +0100 (CET) Subject: [AccessD] SQL Server - Make Date Field Display 2 Digit Year Only Message-ID: <31826644.204471169121786590.JavaMail.www@wwinf3004.me-wanadoo.net> Thanks Gustav..... Message Received: Jan 18 2007, 11:46 AM From: "Gustav Brock" To: accessd at databaseadvisors.com Cc: Subject: Re: [AccessD] SQL Server - Make Date Field Display 2 Digit Year Only Hi Paul The datefield will always "hold" a 4-digit year, but you can format it as a string: SELECT CONVERT(varchar, datefield, 103) ... /gustav >>> paul.hartland at fsmail.net 18-01-2007 12:01 >>> To all, I have a date field in a table in SQL Server 2000, which displays the date as DD/MM/YYYY. Does anyone know how to make the date field just hold a 2 digit year DD/MM/YY ? Thanks in advance for any help on this. Paul Hartland paul.hartland at fsmail.net 07730 523179 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Paul Hartland paul.hartland at fsmail.net 07730 523179 From jwcolby at colbyconsulting.com Thu Jan 18 06:59:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 18 Jan 2007 07:59:23 -0500 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: <00a801c73a6e$1431a580$657aa8c0@m6805> Message-ID: <000e01c73b00$7a5b21a0$657aa8c0@m6805> >In 1987 I purchased ... a 80188 running at 12mhz (PCXT clone) running DOS, with a 5gb disk LOL, Epson was sooooo ahead of the times to have a 5 GIGABYTE disk back in 1987. We are so used to gigabytes now my fingers are just trained to type that. In fact it was megabytes and stored everything I owned with ease, Dbase III+, Lotus 123, WordPerfect (all of the essentials back then) and of course my Borland Turbo Pascal compiler and all my projects. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, January 17, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [OT] OMG!!!!!! CPM? Newcomer! In 1972 the US Navy trained me to fix computers. The "trainer" was a 12 bit wide instruction with 512 words (12 bit) of CORE memory. You loaded the computer program in via spring loaded switches with light bulbs inside of them, loading machine language instructions and data into a register. The contents of that were transferred to a core memory location when you pressed a "store" switch. To SAVE the program you loaded a roll of paper tape onto a tape reader / punch and then the machine would punch holes into the paper tape. You would carefully roll the paper tape up and carry it around with you since you could then read that paper tape back into the machine if you wanted to. The trainer ran at the startling speed of 125 K instructions per second. I learned to fix that (and subsequent machines) down to the transistor level, though in fact we just replaced the entire little card, each card would have a flip-flop or a couple of and gates. It took entire rows of cards just to build up a register. My first personal computer was an "s-100" based Z-80 machine with 24K bytes of static ram. When I bought the computer it came with "zapple basic", which when I look at the name makes me think perhaps it was a z-80 translation of an apple basic language. At any rate, the interpreter was 12K so I had 12K free for my program. Zapple basic came on a cassette (the music kind) and I connected my stereo cassette deck to the board to load the program. IIRC it used a serial data stream at 300 baud to read from the cassette tape. At any rate, it took over 3 minutes to load Zapple Basic into the computer. Once that was done I used a dumb terminal on a serial port to display the programming prompt and the terminal's keyboard to type in my program. BTW I BUILT all of the boards in the system from kits I ordered from advertisements in the back of Popular Electronics, this was about 1977. Yep, with a soldering iron and schematics. In about 1982 I built my first REAL personal computer, a "single board computer" (SBC) from a kit. It used the 80186 uP at an incredible 16 MHz clock and had room on the board for 256K bytes of dynamic ram. By placing another dynamic ram chip on top of the first, carefully bending up the RAS pin of the dynamic ram, soldering all the remaining pins to the ram chip below, and then running a wire from the bent up pin down to a pad on the board, I "piggy backed" the memory and doubled my ram to 512 Kbytes. This SBC had 2 serial ports and a built-in floppy disk controller. For about $700 I purchased a dual 8" floppy drive, each drive could store 1 mbyte. This computer ran CPM-86. I purchased a 1200 baud modem which attached to one of the Serial ports, and since at that time I worked for a graphics terminal company called Megatek, I scrounged an old color graphics terminal which I attached to the other serial port. A REAL computer. I then purchased a Pascal compiler from a brand new startup by the name of Borland and I was on my way to a successful (?) programming career. Until 1986 I continued to fix electronics for a living, but eventually I switched to programming in around 1986 and never looked back. In 1987 I purchased my first brand name assembled computer from Epson of all companies, a 80188 running at 12mhz (PCXT clone) running DOS, with a 5gb disk drive and 2 mbytes of ram (1 on the MB and an add-on card for EMS). BTW, the only other preassembled computer I ever purchased was a 20mzh PCAT clone in around 1989. From that point on I purchased parts and just kept upgrading. I still buy all my components and build my own boxes. My most recent server is a dual core AMD with 4gb ram and a 2 terabyte raid6 array. In about 6 months I will be building a machine using a dual cpu motherboard (the AMD 4X4) using the quad core CPUs from AMD, which HOPEFULLY will be available by mid summer. Eight cores on a motherboard. That should make a fine SQL server for the big database I am working on. In 1984 I DREAMED of owning a VAX 11760 with 2 mbytes. Now I have a machine (in fact several) that is a thousand times more powerful, all that power being sucked up by Windows. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com From carbonnb at gmail.com Thu Jan 18 07:04:30 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Thu, 18 Jan 2007 08:04:30 -0500 Subject: [AccessD] Subversion was (Re: OMG!!!!!!) Message-ID: On 1/17/07, Jim Lawrence wrote: > Subversion has versioning, even automatic backup cycles, it has allowed me > to co-author projects over the internet and it has a great list of other > features. I tend to just force a backup of coding or letter writing when the > mood hits.... once an hour or less. It has saved my bacon (getting good > instincts) a number of times and works on both main OS environments. I had > some problems running and using VSS and found this package so much > friendlier. Check it out at: http://subversion.tigris.org/ Use it with all > my MS Access, web site and Word work. See what happens when you take a course. You miss good stuff :) Jim, With Subversion, can you check in individual components of an MDB, or is it just the whole file? IOW, can you check in queries, reports, forms, etc separately like you can with VSS? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From Gustav at cactus.dk Thu Jan 18 08:45:07 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 15:45:07 +0100 Subject: [AccessD] Linux file server backup Message-ID: Hi all For those interested in Rsync for Windows, check out DeltaCopy (free): http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp /gustav >>> Gustav at cactus.dk 18-01-2007 09:37 >>> Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim From jwcolby at colbyconsulting.com Thu Jan 18 09:08:23 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 18 Jan 2007 10:08:23 -0500 Subject: [AccessD] Linux file server backup In-Reply-To: Message-ID: <001001c73b12$800b68f0$657aa8c0@m6805> Gustav, Do you use this? Can you comment on actual performance, speed and usage? Does the system maintain a bunch of file fragments that it reconstructs in the event a restore is needed? Or does it magically "fix up" the target backup file so that it is a single file that can then be transferred back if needed? Have you ever tested the restore? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 9:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi all For those interested in Rsync for Windows, check out DeltaCopy (free): http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp /gustav >>> Gustav at cactus.dk 18-01-2007 09:37 >>> Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Jan 18 09:30:01 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 18 Jan 2007 10:30:01 -0500 Subject: [AccessD] Option Explicit Statement Message-ID: My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com From bchacc at san.rr.com Thu Jan 18 09:32:35 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 18 Jan 2007 07:32:35 -0800 Subject: [AccessD] tsGetFileFromUser() In-Reply-To: Message-ID: <004901c73b15$e3ea8ce0$0701a8c0@HAL9005> Patti: A little late to the thread and haven't been following it because I was away for a few days. But I use the common file open/save dialog box all the time from code I cribbed from the ADH. I could send it to you off line if that's what you're looking for. Or is there some other issue that this won't satisfy? HTH Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 12:56 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] tsGetFileFromUser() Hi Patricia This code seems to use the open file dialogue of Access, not that (the common) of Windows: Declare Function adh_accOfficeGetFileName Lib "msaccess.exe" _ Alias "#56" (gfni As adh_accOfficeGetFileNameInfo, ByVal fOpen As Integer) As Long However, as you can read from the message, this won't work for A2003 and probably neither for A2007. The internal function "#56# has changed to something else but who knows what? Arthur: Patti wish to open the file dialogue box with the view "Details" selected as default. /gustav >>> Patricia.O'Connor at otda.state.ny.us 17-01-2007 22:51 >>> Thanks Art Gustav You would think MS would have it documented somewhere. I searched through Google didn't find very much. Here http://p2p.wrox.com/topic.asp?TOPIC_ID=6064 I found some code but not sure where to exactly put things. Tried to modify mine a little but it kept erroring so I kept the original Thanks Patti -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.13/634 - Release Date: 1/17/2007 4:45 PM From Gustav at cactus.dk Thu Jan 18 09:45:10 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 16:45:10 +0100 Subject: [AccessD] Linux file server backup Message-ID: Hi John No, we are testing it currently to find a reliable and cheap alternative for off-site backup. The purpose is two-fold. First to create a file backup, not a system backup; then to allow users quick and self-serviced read-only access to an on-line 24 hour old archive. Off-line backup should go to either traditional tape or a rotating set of external USB/Firewire harddrives. The system will have some limitations. User rights granted on a system with sophisticated access control like NetWare will be lost, and databases and mail servers can probably only be backed up from db dumps. But the main purpose is to backup artwork, images, documents and similar typically stored in discrete closed files. As such, restore will be a simple copy back of the stored files. We are looking for issues caused by "foreign" (non-US ASCII) characters in folder and file names when transferred between Windows and Linux systems. /gustav >>> jwcolby at colbyconsulting.com 18-01-2007 16:08 >>> Gustav, Do you use this? Can you comment on actual performance, speed and usage? Does the system maintain a bunch of file fragments that it reconstructs in the event a restore is needed? Or does it magically "fix up" the target backup file so that it is a single file that can then be transferred back if needed? Have you ever tested the restore? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 9:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi all For those interested in Rsync for Windows, check out DeltaCopy (free): http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp /gustav >>> Gustav at cactus.dk 18-01-2007 09:37 >>> Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim From Gustav at cactus.dk Thu Jan 18 09:48:42 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 18 Jan 2007 16:48:42 +0100 Subject: [AccessD] Option Explicit Statement Message-ID: Hi Keith Follow that recommendation - with no exceptions. The reason is that you are a human, and humans do typos. /gustav >>> Kwilliamson at RTKL.com 18-01-2007 16:30 >>> My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com From Kwilliamson at RTKL.com Thu Jan 18 09:55:02 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 18 Jan 2007 10:55:02 -0500 Subject: [AccessD] [OT] OMG!!!!!! In-Reply-To: <000e01c73b00$7a5b21a0$657aa8c0@m6805> References: <00a801c73a6e$1431a580$657aa8c0@m6805> <000e01c73b00$7a5b21a0$657aa8c0@m6805> Message-ID: My first IBM PC had a WHOPPING 30MB hard drive. I can still remember thinking that I'd NEVER fill that sucker up. :) Hell...now....I might have a single Excel file that big. LOL Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 18, 2007 7:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [OT] OMG!!!!!! >In 1987 I purchased ... a 80188 running at 12mhz (PCXT clone) running DOS, with a 5gb disk LOL, Epson was sooooo ahead of the times to have a 5 GIGABYTE disk back in 1987. We are so used to gigabytes now my fingers are just trained to type that. In fact it was megabytes and stored everything I owned with ease, Dbase III+, Lotus 123, WordPerfect (all of the essentials back then) and of course my Borland Turbo Pascal compiler and all my projects. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Wednesday, January 17, 2007 2:31 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] [OT] OMG!!!!!! CPM? Newcomer! In 1972 the US Navy trained me to fix computers. The "trainer" was a 12 bit wide instruction with 512 words (12 bit) of CORE memory. You loaded the computer program in via spring loaded switches with light bulbs inside of them, loading machine language instructions and data into a register. The contents of that were transferred to a core memory location when you pressed a "store" switch. To SAVE the program you loaded a roll of paper tape onto a tape reader / punch and then the machine would punch holes into the paper tape. You would carefully roll the paper tape up and carry it around with you since you could then read that paper tape back into the machine if you wanted to. The trainer ran at the startling speed of 125 K instructions per second. I learned to fix that (and subsequent machines) down to the transistor level, though in fact we just replaced the entire little card, each card would have a flip-flop or a couple of and gates. It took entire rows of cards just to build up a register. My first personal computer was an "s-100" based Z-80 machine with 24K bytes of static ram. When I bought the computer it came with "zapple basic", which when I look at the name makes me think perhaps it was a z-80 translation of an apple basic language. At any rate, the interpreter was 12K so I had 12K free for my program. Zapple basic came on a cassette (the music kind) and I connected my stereo cassette deck to the board to load the program. IIRC it used a serial data stream at 300 baud to read from the cassette tape. At any rate, it took over 3 minutes to load Zapple Basic into the computer. Once that was done I used a dumb terminal on a serial port to display the programming prompt and the terminal's keyboard to type in my program. BTW I BUILT all of the boards in the system from kits I ordered from advertisements in the back of Popular Electronics, this was about 1977. Yep, with a soldering iron and schematics. In about 1982 I built my first REAL personal computer, a "single board computer" (SBC) from a kit. It used the 80186 uP at an incredible 16 MHz clock and had room on the board for 256K bytes of dynamic ram. By placing another dynamic ram chip on top of the first, carefully bending up the RAS pin of the dynamic ram, soldering all the remaining pins to the ram chip below, and then running a wire from the bent up pin down to a pad on the board, I "piggy backed" the memory and doubled my ram to 512 Kbytes. This SBC had 2 serial ports and a built-in floppy disk controller. For about $700 I purchased a dual 8" floppy drive, each drive could store 1 mbyte. This computer ran CPM-86. I purchased a 1200 baud modem which attached to one of the Serial ports, and since at that time I worked for a graphics terminal company called Megatek, I scrounged an old color graphics terminal which I attached to the other serial port. A REAL computer. I then purchased a Pascal compiler from a brand new startup by the name of Borland and I was on my way to a successful (?) programming career. Until 1986 I continued to fix electronics for a living, but eventually I switched to programming in around 1986 and never looked back. In 1987 I purchased my first brand name assembled computer from Epson of all companies, a 80188 running at 12mhz (PCXT clone) running DOS, with a 5gb disk drive and 2 mbytes of ram (1 on the MB and an add-on card for EMS). BTW, the only other preassembled computer I ever purchased was a 20mzh PCAT clone in around 1989. From that point on I purchased parts and just kept upgrading. I still buy all my components and build my own boxes. My most recent server is a dual core AMD with 4gb ram and a 2 terabyte raid6 array. In about 6 months I will be building a machine using a dual cpu motherboard (the AMD 4X4) using the quad core CPUs from AMD, which HOPEFULLY will be available by mid summer. Eight cores on a motherboard. That should make a fine SQL server for the big database I am working on. In 1984 I DREAMED of owning a VAX 11760 with 2 mbytes. Now I have a machine (in fact several) that is a thousand times more powerful, all that power being sucked up by Windows. ;-) John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Jan 18 09:51:46 2007 From: bchacc at san.rr.com (Beach Access Software) Date: Thu, 18 Jan 2007 07:51:46 -0800 Subject: [AccessD] Option Explicit Statement In-Reply-To: Message-ID: <004a01c73b18$9515db80$0701a8c0@HAL9005> I always use Option Explicit because, even though I declare my variables, if I misspell a variable name it catches it on the compile instead of me having to search out why the program failed. I don't know of any reason why you wouldn't want to use it. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 7:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.16.13/634 - Release Date: 1/17/2007 4:45 PM From Chester_Kaup at kindermorgan.com Thu Jan 18 09:55:37 2007 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Thu, 18 Jan 2007 09:55:37 -0600 Subject: [AccessD] Array as source for query Message-ID: I think I know the answer but in VBA can an array be used as the source data for a query instead of a table? If so how? Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From jwcolby at colbyconsulting.com Thu Jan 18 09:58:33 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 18 Jan 2007 10:58:33 -0500 Subject: [AccessD] Collection limitations Message-ID: <001101c73b19$82169e10$657aa8c0@m6805> I have always been under the impression that Collections in VBA could hold a maximum of 32K objects. The other day I thought someone said it was actually 65K. I just tested and got to ~500K before I broke out of the code. Does anyone know what the real limitation is? I thought that it had to do with using an integer to index in of no key was specified but that appears to not be the case. John W. Colby Colby Consulting www.ColbyConsulting.com From Kwilliamson at RTKL.com Thu Jan 18 10:10:40 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 18 Jan 2007 11:10:40 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: Message-ID: Ok. :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 10:49 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Option Explicit Statement Hi Keith Follow that recommendation - with no exceptions. The reason is that you are a human, and humans do typos. /gustav >>> Kwilliamson at RTKL.com 18-01-2007 16:30 >>> My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.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 Jan 18 10:07:34 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 18 Jan 2007 11:07:34 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: Message-ID: <001601c73b1a$c48a3990$657aa8c0@m6805> There is no performance impact one way or the other AFAIK. However "I always" is way different from "the system will not allow". One depends on the user enforcing the rule, the other allows the system to enforce the rule. Furthermore it disallows "implicit declarations" which is where the "explicit" in Option Explicit comes from. As an example, the code below is allowed if Option Explicit is not declared. Sub DoSomething x = 10 End sub In essence the variable X was never dimensioned, and so it is dimensioned at the point that you try to use it. This allows spelling errors to creep in to your code. For example: Sub DoSomethingElse Dim aDate as date aDate = date() aDte = aDate+1 End sub Notice that I dimensioned aDate as the variable I wanted to use, but I actually USED aDte to increment the date. Setting Option Explicit will not allow such implicit declarations and will cause a compile time error. I used to shudder every time I inherited a project where the developer did not set Option Explicit because I just knew I would have to go find and fix such bugs before I could do any real work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 10:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Jan 18 10:07:33 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Thu, 18 Jan 2007 10:07:33 -0600 Subject: [AccessD] Collection limitations Message-ID: <17724746D360394AA3BFE5B8D40A9C1B0186380D@marlow_main2.marlow.ii-vi.net> I believe the limitation is the max value of a Long Integer.... Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, January 18, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Collection limitations I have always been under the impression that Collections in VBA could hold a maximum of 32K objects. The other day I thought someone said it was actually 65K. I just tested and got to ~500K before I broke out of the code. Does anyone know what the real limitation is? I thought that it had to do with using an integer to index in of no key was specified but that appears to not be the case. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Jan 18 10:29:00 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 18 Jan 2007 11:29:00 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: <001601c73b1a$c48a3990$657aa8c0@m6805> References: <001601c73b1a$c48a3990$657aa8c0@m6805> Message-ID: Okay, Okay!! {hands up in the air, waving white flag} I give up, VBA Police!! I'm a bad person....take me in!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 18, 2007 11:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement There is no performance impact one way or the other AFAIK. However "I always" is way different from "the system will not allow". One depends on the user enforcing the rule, the other allows the system to enforce the rule. Furthermore it disallows "implicit declarations" which is where the "explicit" in Option Explicit comes from. As an example, the code below is allowed if Option Explicit is not declared. Sub DoSomething x = 10 End sub In essence the variable X was never dimensioned, and so it is dimensioned at the point that you try to use it. This allows spelling errors to creep in to your code. For example: Sub DoSomethingElse Dim aDate as date aDate = date() aDte = aDate+1 End sub Notice that I dimensioned aDate as the variable I wanted to use, but I actually USED aDte to increment the date. Setting Option Explicit will not allow such implicit declarations and will cause a compile time error. I used to shudder every time I inherited a project where the developer did not set Option Explicit because I just knew I would have to go find and fix such bugs before I could do any real work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 10:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jan 18 10:54:19 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 18 Jan 2007 11:54:19 -0500 Subject: [AccessD] Collection limitations In-Reply-To: <17724746D360394AA3BFE5B8D40A9C1B0186380D@marlow_main2.marlow.ii-vi.net> Message-ID: <001c01c73b21$4c971dc0$657aa8c0@m6805> That would make sense, and of course is way beyond the actual capabilities of Windows / VBA to actually use. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, January 18, 2007 11:08 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Collection limitations I believe the limitation is the max value of a Long Integer.... Drew -----Original Message----- From: JWColby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, January 18, 2007 9:59 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Collection limitations I have always been under the impression that Collections in VBA could hold a maximum of 32K objects. The other day I thought someone said it was actually 65K. I just tested and got to ~500K before I broke out of the code. Does anyone know what the real limitation is? I thought that it had to do with using an integer to index in of no key was specified but that appears to not be the case. John W. Colby Colby Consulting www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jan 18 10:59:17 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Thu, 18 Jan 2007 11:59:17 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: Message-ID: <001d01c73b21$fe0db820$657aa8c0@m6805> LOL, you have been creating a serious breach of national security, have been placed on all of the no-fly lists, you mail is being opened without a court order, your phone calls are tapped, all email in and out of your various computers are being processed for links to you know who. Man, you are screwed already. I would suggest you try and slip across the border and disappear before you end up in Gitmo. And DON'T use your credit cards, they will hunt you down! Good luck and please leave your desk in order as you leave. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Option Explicit Statement Okay, Okay!! {hands up in the air, waving white flag} I give up, VBA Police!! I'm a bad person....take me in!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 18, 2007 11:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement There is no performance impact one way or the other AFAIK. However "I always" is way different from "the system will not allow". One depends on the user enforcing the rule, the other allows the system to enforce the rule. Furthermore it disallows "implicit declarations" which is where the "explicit" in Option Explicit comes from. As an example, the code below is allowed if Option Explicit is not declared. Sub DoSomething x = 10 End sub In essence the variable X was never dimensioned, and so it is dimensioned at the point that you try to use it. This allows spelling errors to creep in to your code. For example: Sub DoSomethingElse Dim aDate as date aDate = date() aDte = aDate+1 End sub Notice that I dimensioned aDate as the variable I wanted to use, but I actually USED aDte to increment the date. Setting Option Explicit will not allow such implicit declarations and will cause a compile time error. I used to shudder every time I inherited a project where the developer did not set Option Explicit because I just knew I would have to go find and fix such bugs before I could do any real work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 10:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Thu Jan 18 11:36:05 2007 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Thu, 18 Jan 2007 11:36:05 -0600 Subject: [AccessD] Best Practices: Recording Hours and Minutes In-Reply-To: <001d01c73b21$fe0db820$657aa8c0@m6805> Message-ID: <00af01c73b27$22923900$036fa8c0@lcmdv8000> Hi: I'm trying to figure out the best ways to record hours and minutes (application tracks downtime of various equipment and time spent on maintenance), and am wondering how others do this. I'm currently using a decimal field to record the hours and minutes (EX: 1.25 is 1 hour, 15 minutes), but am wondering if I should do this differently as far as data entry and storage. Thanks in advance. Larry Mrazek LCM Research, Inc. www.lcm-res.com lmrazek at lcm-res.com ph. 314-432-5886 mobile: 314-496-1645 From accessd at shaw.ca Thu Jan 18 11:53:34 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 18 Jan 2007 09:53:34 -0800 Subject: [AccessD] Linux file server backup In-Reply-To: Message-ID: <0JC200JIESA9N490@l-daemon> An excellent set of reading Gustav. At this point in my career, I have made the observation that most revenue comes from supporting products not selling products. It does not matter which products as long as the client is happy. Most long term client site have embraced an eclectic selection of the best products and mixing and matching allows the best of all worlds. As long as the product architects stand behind their creations that should be the only criteria in making application adoption. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 2:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi Jim I see your point with the logical volumes, Novell NetWare has the same feature, quite nice. As for the controllers, one was an onboard, the other was - as you've seen too - an expensive top branded RAID controller. Rsync is in fact a basic Unix tool which has been ported to both NetWare and Windows and Linux, of course. I'm surprised of your friend's shy attitude - no secrets here to reveal. A quick way to check it out is to set up two virtual server with VMware Server (free): http://www.vmware.com/vmtn/appliances/challenge/winners.html where you install FreeNAS: http://www.freenas.org/ An excellent package, by the way. Still in beta, though, so some features are missing. Full VMware/FreeNAS here, though this is version 0.66, not the current 0.68: http://www.vmware.com/vmtn/appliances/directory/168 /gustav >>> accessd at shaw.ca 18-01-2007 10:39 >>> Hi Gustav: I am not sure of its raid capabilities (the basic Linux Kernel has a Raid layer implemented in software) but the logical Volume Manager allows files systems to span several disks which makes it appear that it is just on drive. None of this is particularly unusual for Linux. Throw in the ReiserFS and you have as stable of package that software can give you. See the Wikipedia comments on the FS: http://en.wikipedia.org/wiki/ReiserFS. You are correct saying it all hinges on the reliability of the controller. The only controllers that have ever failed for me were raid controllers... the most expensive ones, of course. One client had one crash on a big Dell server and it cost more to replace than a new server. I have never tried Rsync before. Tell me how the testing goes as I will be very interested. (I know a fellow who is running a business doing over-night backups for clients using the product but he was shy about giving any of the details.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 12:38 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Jan 18 12:05:39 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 18 Jan 2007 10:05:39 -0800 Subject: [AccessD] Subversion was (Re: OMG!!!!!!) In-Reply-To: Message-ID: <0JC200C44SUETHN3@l-daemon> Good point Bryan.... I am not sure.:-/ I have never separated out a product like MS Access and have always saved the application as a whole. Could see where that feature could come in very handy. Even when working with a remote programming buddy we have always kept to our own modules. Ever since a project got corrupted, a number of years ago I have not attempted merging. (Is it safe now?) Maybe these issues have now been resolved? > See what happens when you take a course. You miss good stuff :) I thought you take a course to learn good stuff :-) Jim PS I am always getting confused with the use of VSS. Never know whether Visual Safe Source or Volume Shadow copy Services is been discussed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, January 18, 2007 5:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Subversion was (Re: OMG!!!!!!) On 1/17/07, Jim Lawrence wrote: > Subversion has versioning, even automatic backup cycles, it has allowed me > to co-author projects over the internet and it has a great list of other > features. I tend to just force a backup of coding or letter writing when the > mood hits.... once an hour or less. It has saved my bacon (getting good > instincts) a number of times and works on both main OS environments. I had > some problems running and using VSS and found this package so much > friendlier. Check it out at: http://subversion.tigris.org/ Use it with all > my MS Access, web site and Word work. See what happens when you take a course. You miss good stuff :) Jim, With Subversion, can you check in individual components of an MDB, or is it just the whole file? IOW, can you check in queries, reports, forms, etc separately like you can with VSS? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Thu Jan 18 12:22:07 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Thu, 18 Jan 2007 13:22:07 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: <001d01c73b21$fe0db820$657aa8c0@m6805> References: <001d01c73b21$fe0db820$657aa8c0@m6805> Message-ID: Another day like that???!!!! Geez....that's 4 times, this week alone!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 18, 2007 11:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement LOL, you have been creating a serious breach of national security, have been placed on all of the no-fly lists, you mail is being opened without a court order, your phone calls are tapped, all email in and out of your various computers are being processed for links to you know who. Man, you are screwed already. I would suggest you try and slip across the border and disappear before you end up in Gitmo. And DON'T use your credit cards, they will hunt you down! Good luck and please leave your desk in order as you leave. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 11:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Option Explicit Statement Okay, Okay!! {hands up in the air, waving white flag} I give up, VBA Police!! I'm a bad person....take me in!! :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of JWColby Sent: Thursday, January 18, 2007 11:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement There is no performance impact one way or the other AFAIK. However "I always" is way different from "the system will not allow". One depends on the user enforcing the rule, the other allows the system to enforce the rule. Furthermore it disallows "implicit declarations" which is where the "explicit" in Option Explicit comes from. As an example, the code below is allowed if Option Explicit is not declared. Sub DoSomething x = 10 End sub In essence the variable X was never dimensioned, and so it is dimensioned at the point that you try to use it. This allows spelling errors to creep in to your code. For example: Sub DoSomethingElse Dim aDate as date aDate = date() aDte = aDate+1 End sub Notice that I dimensioned aDate as the variable I wanted to use, but I actually USED aDte to increment the date. Setting Option Explicit will not allow such implicit declarations and will cause a compile time error. I used to shudder every time I inherited a project where the developer did not set Option Explicit because I just knew I would have to go find and fix such bugs before I could do any real work. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 10:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Jan 18 12:44:38 2007 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 18 Jan 2007 18:44:38 +0000 Subject: [AccessD] Best Practices: Recording Hours and Minutes In-Reply-To: <00af01c73b27$22923900$036fa8c0@lcmdv8000> Message-ID: Larry, I don't know if it is best practice...but I have a number of dbs with 'time tracking' functionality. I either store the start time and end time...and then calculate the difference...or I store the smallest increment I need and then calculate from there. For example...I needed to display minutes and seconds...so I stored seconds and used the following to convert to display minutes and seconds: Seconds = DateDiff("s", Me!StartDTTM, Me!EndDTTM) Dim Check, Counter Check = True: Counter = 0 Do Counter = Counter + 1 If Counter * 60 > Seconds Then RMmin = Counter - 1 RMsec = Seconds - ((Counter - 1) * 60) Check = False Exit Do End If Loop Until Check = False Again, not sure if it is best practice...but works for me. Good Luck, Mark A. Matte >From: "Lawrence Mrazek" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: [AccessD] Best Practices: Recording Hours and Minutes >Date: Thu, 18 Jan 2007 11:36:05 -0600 > >Hi: > >I'm trying to figure out the best ways to record hours and minutes >(application tracks downtime of various equipment and time spent on >maintenance), and am wondering how others do this. > >I'm currently using a decimal field to record the hours and minutes (EX: >1.25 is 1 hour, 15 minutes), but am wondering if I should do this >differently as far as data entry and storage. > >Thanks in advance. > >Larry Mrazek >LCM Research, Inc. >www.lcm-res.com >lmrazek at lcm-res.com >ph. 314-432-5886 >mobile: 314-496-1645 > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline From cfoust at infostatsystems.com Thu Jan 18 13:04:18 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 Jan 2007 11:04:18 -0800 Subject: [AccessD] Subversion was (Re: OMG!!!!!!) In-Reply-To: <0JC200C44SUETHN3@l-daemon> References: <0JC200C44SUETHN3@l-daemon> Message-ID: I'm not sure you and Bryan are talking about the same thing. VSS has an Access add-in that must be installed to allow you to add and remove objects from a VSS project from the database as discrete files, even though they are included within the Access MDB. Those objects can be checked out individually from the Access MDB created from the VSS project. If you try to add the MDB to VSS the same way you would Word docs or a VB6 project, you wind up with a file that contains no discrete objects and is pretty useless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, January 18, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Subversion was (Re: OMG!!!!!!) Good point Bryan.... I am not sure.:-/ I have never separated out a product like MS Access and have always saved the application as a whole. Could see where that feature could come in very handy. Even when working with a remote programming buddy we have always kept to our own modules. Ever since a project got corrupted, a number of years ago I have not attempted merging. (Is it safe now?) Maybe these issues have now been resolved? > See what happens when you take a course. You miss good stuff :) I thought you take a course to learn good stuff :-) Jim PS I am always getting confused with the use of VSS. Never know whether Visual Safe Source or Volume Shadow copy Services is been discussed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, January 18, 2007 5:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Subversion was (Re: OMG!!!!!!) On 1/17/07, Jim Lawrence wrote: > Subversion has versioning, even automatic backup cycles, it has > allowed me to co-author projects over the internet and it has a great > list of other features. I tend to just force a backup of coding or > letter writing when the > mood hits.... once an hour or less. It has saved my bacon (getting > good > instincts) a number of times and works on both main OS environments. I > had some problems running and using VSS and found this package so much > friendlier. Check it out at: http://subversion.tigris.org/ Use it with > all my MS Access, web site and Word work. See what happens when you take a course. You miss good stuff :) Jim, With Subversion, can you check in individual components of an MDB, or is it just the whole file? IOW, can you check in queries, reports, forms, etc separately like you can with VSS? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Jan 18 14:10:23 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 14:10:23 -0600 Subject: [AccessD] Visual Source Safe with Access Add-in In-Reply-To: References: <0JC200C44SUETHN3@l-daemon> Message-ID: <025901c73b3c$b1754e40$6502a8c0@ScuzzPaq> Charlotte, Do you know of a good resource on the best method to set this up? Its about time I gave it a try. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust I'm not sure you and Bryan are talking about the same thing. VSS has an Access add-in that must be installed to allow you to add and remove objects from a VSS project from the database as discrete files, even though they are included within the Access MDB. Those objects can be checked out individually from the Access MDB created from the VSS project. If you try to add the MDB to VSS the same way you would Word docs or a VB6 project, you wind up with a file that contains no discrete objects and is pretty useless. Charlotte Foust From john at winhaven.net Thu Jan 18 14:15:24 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 14:15:24 -0600 Subject: [AccessD] Linux file server backup In-Reply-To: <0JC200JIESA9N490@l-daemon> References: <0JC200JIESA9N490@l-daemon> Message-ID: <026001c73b3d$63c50a90$6502a8c0@ScuzzPaq> Jim, Good take! And now: Preachy moment from me - (not directed at you Jim but this was a good lead in ;o) Unless this is headed into backing up Access or something remotely akin to that idea - this thread doesn't belong here, it belongs on dba-tech. Please guys, just subscribe to both and separate your mail with rules or by some other method. All of our lists are free! The reason is that we like to keep our archives as small as possible and as easily searchable as possible. Of course snipping and clipping enter into this also. I just used them last night to find a post Gustav had mad in reply to a question I posted. I used narrow search criteria and still had about 40 resulting posts to look through. I personally subscribe to every single lists we offer and believe me when I say, you won't regret it. I have everything sorted and filed by Outlook rules and groups. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, January 18, 2007 11:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Linux file server backup An excellent set of reading Gustav. At this point in my career, I have made the observation that most revenue comes from supporting products not selling products. It does not matter which products as long as the client is happy. Most long term client site have embraced an eclectic selection of the best products and mixing and matching allows the best of all worlds. As long as the product architects stand behind their creations that should be the only criteria in making application adoption. Jim From cfoust at infostatsystems.com Thu Jan 18 15:05:58 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 Jan 2007 13:05:58 -0800 Subject: [AccessD] Visual Source Safe with Access Add-in In-Reply-To: <025901c73b3c$b1754e40$6502a8c0@ScuzzPaq> References: <0JC200C44SUETHN3@l-daemon> <025901c73b3c$b1754e40$6502a8c0@ScuzzPaq> Message-ID: Which "this"? The Access add-in can be downloaded from the MS site. The XP version works for 2003. Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, January 18, 2007 12:10 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Visual Source Safe with Access Add-in Charlotte, Do you know of a good resource on the best method to set this up? Its about time I gave it a try. John B. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust I'm not sure you and Bryan are talking about the same thing. VSS has an Access add-in that must be installed to allow you to add and remove objects from a VSS project from the database as discrete files, even though they are included within the Access MDB. Those objects can be checked out individually from the Access MDB created from the VSS project. If you try to add the MDB to VSS the same way you would Word docs or a VB6 project, you wind up with a file that contains no discrete objects and is pretty useless. Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Jan 18 15:22:06 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 15:22:06 -0600 Subject: [AccessD] Visual Source Safe with Access Add-in In-Reply-To: References: <0JC200C44SUETHN3@l-daemon><025901c73b3c$b1754e40$6502a8c0@ScuzzPaq> Message-ID: <029301c73b46$b4cfdf60$6502a8c0@ScuzzPaq> this = Visual Source Safe with Access add-in. I'm just going on past experience that this won't be as easy as 1-2-3, boom, I'm done and now up and running VSS with Access. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Which "this"? The Access add-in can be downloaded from the MS site. The XP version works for 2003. Charlotte From cfoust at infostatsystems.com Thu Jan 18 15:39:26 2007 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 18 Jan 2007 13:39:26 -0800 Subject: [AccessD] Visual Source Safe with Access Add-in In-Reply-To: <029301c73b46$b4cfdf60$6502a8c0@ScuzzPaq> References: <0JC200C44SUETHN3@l-daemon><025901c73b3c$b1754e40$6502a8c0@ScuzzPaq> <029301c73b46$b4cfdf60$6502a8c0@ScuzzPaq> Message-ID: It isn't much harder than that once you have SourceSafe installed on your PC. I think there's a readme file with the download, but you just run the installer and it adds the SourceSafe item to your Access Tools menu (VSS needs to be installed first, though). To add all the objects in a database to SourceSafe, just open the database, select SourceSafe from the tools menu, and click on Add Objects to SourceSafe. Create Database from SourceSafe Project is the option you use when you want to pull a database out of SS so you can modify objects in it. To get a non-SS version of the database for testing or whatever, just close the database file and then compact it to a new name. When VSS asks if you want to remove it from source control, say yes, and the compacted copy is not bound to sourcesafe. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, January 18, 2007 1:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Visual Source Safe with Access Add-in this = Visual Source Safe with Access add-in. I'm just going on past experience that this won't be as easy as 1-2-3, boom, I'm done and now up and running VSS with Access. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Which "this"? The Access add-in can be downloaded from the MS site. The XP version works for 2003. Charlotte -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Thu Jan 18 17:56:12 2007 From: bheygood at abestsystems.com (Bob Heygood) Date: Thu, 18 Jan 2007 15:56:12 -0800 Subject: [AccessD] Goto First Record subform In-Reply-To: References: <0JC200C44SUETHN3@l-daemon><025901c73b3c$b1754e40$6502a8c0@ScuzzPaq><029301c73b46$b4cfdf60$6502a8c0@ScuzzPaq> Message-ID: <007b01c73b5c$3b9837d0$6401a8c0@speedy> Hello to the list, I have a form with a subform on it. The subform is synced with main form via the subform's record source and a combo on the main form. Everything works great, except that if I am on record number 4 on the subform and select a different value with the combo on the main form, the subform is blank unless there is at least 4 records. I want the subform to go to the first record each time I change the combo. I have tried to use different variations of : DoCmd.GoToRecord acDataForm, strFormName, acFirst Using a public function in the sub form doesn't seem to work. Using the afterupdate event in the combo on the main form, it tells me that the form is not open. I have tried different ways of referring to the subform, and even setting the focus to the subform. I know, it would be better if I used the standard linking child/parent scheme, but as someone here the other day said, I have reasons why not... TIA Bob Heygood From accessd at shaw.ca Thu Jan 18 18:21:55 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 18 Jan 2007 16:21:55 -0800 Subject: [AccessD] Linux file server backup In-Reply-To: Message-ID: <0JC300MLSA9GMDA0@l-daemon> Hi Gustav: This looks excellent. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, January 18, 2007 6:45 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Linux file server backup Hi all For those interested in Rsync for Windows, check out DeltaCopy (free): http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp /gustav >>> Gustav at cactus.dk 18-01-2007 09:37 >>> Hi Jim Are you talking about a Linux file server with "built-in" backup service or is this a separate box you set up for backing up an existing file server? Does Ubuntu have some special tools for easy setup of RAID arrays that other distributions miss? It sounds like the first, but then you only have a backup of the disks - leaving a critical single point of failure: the controller. While some say "controllers don't fail", they do, though rarely. We have seen two. We are currently testing a setup where we use Rsync for backup. It's very basic but it allows backup to remote servers. Probably not a solution for TB-sized backup but most clients are well below this. /gustav >>> accessd at shaw.ca 17-01-2007 23:24 >>> Well John; The RAID drives are mostly duplication... just add a couple or 320GB, single partition drives ($200.00) and you could have a mirrored backup. Fast, reliable and (in context) cheap... who says you can't have it all I have done this using an Ubuntu Linux. It uses a real old box (1.5 years old with four older small 100GB drives), the install was easier than Windows, (and when I say it is easy it really is. The only prompts that require entry are how much space to allocate for the partition(s) and an admin password.), it took only 15 minutes to connect to the network (which has always been the biggest pain when managing mix systems). The resultant partition created was across the all the drives making 400GBs of space. It is real cheap and fast. I have been selling this backup concept to clients who want a reliable cheap backup and have made a few sales. Even one government office is seriously planning on contracting my services. Jim -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Jan 18 18:32:37 2007 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 18 Jan 2007 16:32:37 -0800 Subject: [AccessD] Subversion was (Re: OMG!!!!!!) In-Reply-To: Message-ID: <0JC3003LUARBCL61@l-daemon> Thanks Charlotte.... I did not know that. Sounds like a very specialized tool for a specific product. Not sure if that is enough of an incentive to sway adoption. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, January 18, 2007 11:04 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Subversion was (Re: OMG!!!!!!) I'm not sure you and Bryan are talking about the same thing. VSS has an Access add-in that must be installed to allow you to add and remove objects from a VSS project from the database as discrete files, even though they are included within the Access MDB. Those objects can be checked out individually from the Access MDB created from the VSS project. If you try to add the MDB to VSS the same way you would Word docs or a VB6 project, you wind up with a file that contains no discrete objects and is pretty useless. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Thursday, January 18, 2007 10:06 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Subversion was (Re: OMG!!!!!!) Good point Bryan.... I am not sure.:-/ I have never separated out a product like MS Access and have always saved the application as a whole. Could see where that feature could come in very handy. Even when working with a remote programming buddy we have always kept to our own modules. Ever since a project got corrupted, a number of years ago I have not attempted merging. (Is it safe now?) Maybe these issues have now been resolved? > See what happens when you take a course. You miss good stuff :) I thought you take a course to learn good stuff :-) Jim PS I am always getting confused with the use of VSS. Never know whether Visual Safe Source or Volume Shadow copy Services is been discussed. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Thursday, January 18, 2007 5:05 AM To: Access Developers discussion and problem solving Subject: [AccessD] Subversion was (Re: OMG!!!!!!) On 1/17/07, Jim Lawrence wrote: > Subversion has versioning, even automatic backup cycles, it has > allowed me to co-author projects over the internet and it has a great > list of other features. I tend to just force a backup of coding or > letter writing when the > mood hits.... once an hour or less. It has saved my bacon (getting > good > instincts) a number of times and works on both main OS environments. I > had some problems running and using VSS and found this package so much > friendlier. Check it out at: http://subversion.tigris.org/ Use it with > all my MS Access, web site and Word work. See what happens when you take a course. You miss good stuff :) Jim, With Subversion, can you check in individual components of an MDB, or is it just the whole file? IOW, can you check in queries, reports, forms, etc separately like you can with VSS? -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Jan 18 22:37:17 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 22:37:17 -0600 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: Message-ID: <001b01c73b83$80f430f0$6502a8c0@ScuzzPaq> Keith, Unless you are a glutton for punishment, this is a "must do" practice. When I work on anything where it hasn't been used the first thing I do is add it to all modules. Just one time you have a typo (and I have plenty of them) which causes a problem and you'll know why :o) John PS: There are some tools out there that will do this for you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 9:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Thu Jan 18 22:46:44 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 22:46:44 -0600 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: <001601c73b1a$c48a3990$657aa8c0@m6805> Message-ID: <001c01c73b84$d25f47d0$6502a8c0@ScuzzPaq> LOL! Book him Danno! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 10:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Option Explicit Statement Okay, Okay!! {hands up in the air, waving white flag} I give up, VBA Police!! I'm a bad person....take me in!! :) From john at winhaven.net Thu Jan 18 22:46:44 2007 From: john at winhaven.net (John Bartow) Date: Thu, 18 Jan 2007 22:46:44 -0600 Subject: [AccessD] VBA syntax for selecting a record In-Reply-To: <20070118100042.A3AF52BB283@smtp.nildram.co.uk> References: <20070118100042.A3AF52BB283@smtp.nildram.co.uk> Message-ID: <002001c73b84$d4c8cdc0$6502a8c0@ScuzzPaq> Hi Andy, Thanks but I should've have been more specific (got a head cold and not thinking real clear :o( What would be the correct VBA syntax for selecting a record on a continuous form using the primary key from a separate module be (not the form's own module). Here's what I'm after: I'm on a specific form and I change the record being worked on via code. I want to have the selected record be the same on another open form (which precedes this form in the work flow). That form displays the same set of record using the continuous form style. I want to do this so that when the current form is closed the other form appears to be highlighting the same record that I switched to on the form that was just closed. I hope that is clearer. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Thursday, January 18, 2007 4:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA syntax for selecting a record Importance: High John It'd be something like: With Me.RecordSetClone .FindFirst "YourPrimaryKeyField=" & Me.txtKey If Not .Nomatch Then Me.BookMark=.BookMark End If End With Assumes a field like txtKet holds the record number sought -- 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] VBA syntax for selecting a record Date: 18/01/07 09:38 What would be the correct VBA syntax for selecting a record on a continues form using the primary key? TIA John B. -- 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 andy at minstersystems.co.uk Thu Jan 18 23:50:11 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 19 Jan 2007 05:50:11 -0000 Subject: [AccessD] Goto First Record subform In-Reply-To: <007b01c73b5c$3b9837d0$6401a8c0@speedy> Message-ID: <093401c73b8d$aee0e3f0$8db60c54@minster33c3r25> Hi Bob Yea this is a problem I've come across. Here's what I do (in a function on main form) after requerying the subform With Me.subx.form if .recordsetclone.recordcount>0 then .recordsetclone.movefirst .bookmark=.recordsetclone.bookmark end if End with HTH -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood > Sent: 18 January 2007 23:56 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Goto First Record subform > > > Hello to the list, > > I have a form with a subform on it. > The subform is synced with main form via the subform's record > source and a combo on the main form. > > Everything works great, except that if I am on record number > 4 on the subform and select a different value with the combo > on the main form, the subform is blank unless there is at > least 4 records. I want the subform to go to the first record > each time I change the combo. > > I have tried to use different variations of : > > DoCmd.GoToRecord acDataForm, strFormName, acFirst > > Using a public function in the sub form doesn't seem to work. > > Using the afterupdate event in the combo on the main form, it > tells me that the form is not open. I have tried different > ways of referring to the subform, and even setting the focus > to the subform. > > I know, it would be better if I used the standard linking > child/parent scheme, but as someone here the other day said, > I have reasons why not... > > > TIA > > Bob Heygood > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Thu Jan 18 23:54:03 2007 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 19 Jan 2007 05:54:03 -0000 Subject: [AccessD] VBA syntax for selecting a record In-Reply-To: <002001c73b84$d4c8cdc0$6502a8c0@ScuzzPaq> Message-ID: <093701c73b8e$39887ef0$8db60c54@minster33c3r25> Well I don't reckon it'd be much different. Try With Forms("Yourformname").Form .RecordSetClone.FindFirst "YourPrimaryKeyField=" & Me.txtKey If Not .RecordSetClone.Nomatch Then .BookMark=.RecordSetClone.BookMark End If End With -- 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 Bartow > Sent: 19 January 2007 04:47 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA syntax for selecting a record > > > Hi Andy, > Thanks but I should've have been more specific (got a head > cold and not thinking real clear :o( > > What would be the correct VBA syntax for selecting a record > on a continuous form using the primary key from a separate > module be (not the form's own module). > > Here's what I'm after: I'm on a specific form and I change > the record being worked on via code. I want to have the > selected record be the same on another open form (which > precedes this form in the work flow). That form displays the > same set of record using the continuous form style. > > I want to do this so that when the current form is closed the > other form appears to be highlighting the same record that I > switched to on the form that was just closed. > > I hope that is clearer. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, January 18, 2007 4:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA syntax for selecting a record > Importance: High > > John > It'd be something like: > > With Me.RecordSetClone > .FindFirst "YourPrimaryKeyField=" & Me.txtKey If Not .Nomatch > Then Me.BookMark=.BookMark End If End With > > > Assumes a field like txtKet holds the record number sought > > -- > 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] VBA syntax for selecting a record > Date: 18/01/07 09:38 > > > What would be the correct VBA syntax for selecting a record > on a continues form using the primary key? > > TIA > John B. > > -- > 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 jwcolby at colbyconsulting.com Fri Jan 19 00:07:49 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 19 Jan 2007 01:07:49 -0500 Subject: [AccessD] VBA syntax for selecting a record In-Reply-To: <002001c73b84$d4c8cdc0$6502a8c0@ScuzzPaq> Message-ID: <005201c73b90$264bcde0$657aa8c0@m6805> John, This problem has two pieces, communicating back to the calling form the current record (PKID), and having the current form move to that record. Obviously there are many ways to do this. First let me say that the process is a lot easier if you use a surrogate key so that the key is nothing more than a single long integer value. If the key is several fields taken together, then of course the process becomes more complex. Since I ALWAYS use a surrogate key, the way that I tend to do this is to set what I call a filter, which is a value stored in a collection keyed on a specific name. Let's take an example. FormA opens FormB. FormB moves to record K. The surrogate Key for form K is 1234. I would store 1234 as the VALUE in a collection, using the KEY "FormB-PKID". Whenever FormB changes the current record (OnCurrent) I store the PKID (the surrogate key) into the collection, overwriting the previous value. When FormB closes, FormA can look up the VALUE of the PKID in the collection using the KEY "FormB-PKID". FormA now knows what the LAST PKID FormB was on. Does that make sense? That is a global solution to the problem, i.e. it can be used over and over in a consistent manner throughout your application. In fact this can be a rather global issue. Perhaps a report or query needs to pull a dataset based on the PKID of a given form. If the form stores it's PKID in this collection keyed on the form's name, any other process, anywhere in the application "knows" what record that form is on simply by looking up the form name in the collection. Many people use "form references" in queries to accomplish this, which of course works. However that requires a form to remain open and on that record for the query to work. Using a filter of the type I describe allows you to close the form, or even to manually set the filter in the debug window if you desire. I use a "Filter" function to perform this storage for me. I have shown the code many times in the past but I will show it again. Public Function Fltr(lstrName As String, Optional lvarValue As Variant) As Variant On Error GoTo Err_Fltr Static mcolFilter As Collection If mcolFilter is nothing Then 'if the collection not initialized yet, do so now Set mcolFilter = New Collection End If If IsMissing(lvarValue) Then On Error Resume Next Fltr = mcolFilter(lstrName) If err <> 0 Then Fltr = Null End If Else On Error Resume Next mcolFilter.Remove lstrName mcolFilter.Add lvarValue, lstrName Fltr = lvarValue End If Exit_Fltr: Exit Function Err_Fltr: MsgBox err.Description, , "Error in Function basFltrFunctions.Fltr" Resume Exit_Fltr Resume 0 '.FOR TROUBLESHOOTING End Function Notice that this function is completely self contained, you can just copy it into your application and start using it. It can set up the collection all by itself, and stores the collection inside of itself as a static variable. If you use the syntax: Fltr "VarName", VarValue Then VarValue is stored in the collection using "VarName" as the key (without the quotes obviously). If you use the syntax: Fltr("VarName") then the VALUE stored in the collection under the name "VarName" is returned. If nothing is found, then a null is returned. The obvious advantage of this method is that a collection can efficiently store tens of thousands of such "variables". You could just have every form "store" it's PKID in the collection in the form's OnCurrent. You can IF YOU WISH have the form DELETE it's PKID from the collection when the form closes simply by storing a NULL using the form's name as the key. Obviously if you do that then the value is not available any longer, for example from your calling form. Collections are wonderful things. This Fltr function is designed precisely for purposes like you describe here. And of course, it is in my framework library. ;-) In order to use this method of course requires that FormA open FormB MODAL, which causes code execution to stop in FormA. Once FormB closes, code begins to execute on the line following the line that opened FormB. FormA would then use a seek to move to the correct PKID in the recordset clone. If opening FormB modal is inconvenient, then you have to somehow "cause" FormA to move to the correct record as FormB closes. There are many ways to do that and if you need that then say so and we will address that problem in another email. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, January 18, 2007 11:47 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA syntax for selecting a record Hi Andy, Thanks but I should've have been more specific (got a head cold and not thinking real clear :o( What would be the correct VBA syntax for selecting a record on a continuous form using the primary key from a separate module be (not the form's own module). Here's what I'm after: I'm on a specific form and I change the record being worked on via code. I want to have the selected record be the same on another open form (which precedes this form in the work flow). That form displays the same set of record using the continuous form style. I want to do this so that when the current form is closed the other form appears to be highlighting the same record that I switched to on the form that was just closed. I hope that is clearer. From jwcolby at colbyconsulting.com Fri Jan 19 00:14:15 2007 From: jwcolby at colbyconsulting.com (JWColby) Date: Fri, 19 Jan 2007 01:14:15 -0500 Subject: [AccessD] VBA syntax for selecting a record In-Reply-To: <093701c73b8e$39887ef0$8db60c54@minster33c3r25> Message-ID: <005301c73b91$0c6375d0$657aa8c0@m6805> John, This is one of the methods of "pushing" a value back to the calling form and forcing it to move. Of course this requires the currently open form to "know" who opened it. If this is hard coded that is fine, or the calling form could be passed in as an OpenArg. You do need to be careful where you call this method from however since if called too late (as the form is closing) me.txtKey may not have a valid value. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Friday, January 19, 2007 12:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA syntax for selecting a record Well I don't reckon it'd be much different. Try With Forms("Yourformname").Form .RecordSetClone.FindFirst "YourPrimaryKeyField=" & Me.txtKey If Not .RecordSetClone.Nomatch Then .BookMark=.RecordSetClone.BookMark End If End With -- 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 Bartow > Sent: 19 January 2007 04:47 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA syntax for selecting a record > > > Hi Andy, > Thanks but I should've have been more specific (got a head cold and > not thinking real clear :o( > > What would be the correct VBA syntax for selecting a record on a > continuous form using the primary key from a separate module be (not > the form's own module). > > Here's what I'm after: I'm on a specific form and I change the record > being worked on via code. I want to have the selected record be the > same on another open form (which precedes this form in the work flow). > That form displays the same set of record using the continuous form > style. > > I want to do this so that when the current form is closed the other > form appears to be highlighting the same record that I switched to on > the form that was just closed. > > I hope that is clearer. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: Thursday, January 18, 2007 4:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA syntax for selecting a record > Importance: High > > John > It'd be something like: > > With Me.RecordSetClone > .FindFirst "YourPrimaryKeyField=" & Me.txtKey If Not .Nomatch Then > Me.BookMark=.BookMark End If End With > > > Assumes a field like txtKet holds the record number sought > > -- > 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] VBA syntax for selecting a record > Date: 18/01/07 09:38 > > > What would be the correct VBA syntax for selecting a record on a > continues form using the primary key? > > TIA > John B. > > -- > 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 adtp at airtelbroadband.in Fri Jan 19 00:09:50 2007 From: adtp at airtelbroadband.in (A.D.TEJPAL) Date: Fri, 19 Jan 2007 11:39:50 +0530 Subject: [AccessD] VBA syntax for selecting a record References: <017701c73ae4$3e31bcf0$6502a8c0@ScuzzPaq> Message-ID: <02fe01c73b90$7c0f5ee0$f01c65cb@pcadt> John, Simple statement as given below, should be able to serve the purpose. MyID is the variable carrying desired value of primary key named ID (number type). Me.Recordset.FindFirst "ID = " & MyID Best wishes, A.D.Tejpal --------------- ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Thursday, January 18, 2007 15:07 Subject: [AccessD] VBA syntax for selecting a record What would be the correct VBA syntax for selecting a record on a continues form using the primary key? TIA John B. From accessd666 at yahoo.com Fri Jan 19 04:09:13 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 19 Jan 2007 02:09:13 -0800 (PST) Subject: [AccessD] CommandBars("mnuReportPrint").Enabled = False Message-ID: <936722.85704.qm@web31615.mail.mud.yahoo.com> Hi group, In all reports I have the following code: Private Sub Report_Close() CommandBars("mnuReportPrint").Enabled = False End Sub I receive the following error: Invalid procedure call or argument Why does this error occur? When I loop through all Commandbars there is no commandbar with the nae mnuReportPrint! Is this what's causing the error? Regards, Sander ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 From accessd666 at yahoo.com Fri Jan 19 04:14:28 2007 From: accessd666 at yahoo.com (Sad Der) Date: Fri, 19 Jan 2007 02:14:28 -0800 (PST) Subject: [AccessD] Import menubar in ADP (WAS: CommandBars("mnuReportPrint"...) Message-ID: <402545.60175.qm@web31613.mail.mud.yahoo.com> Hi group, I found out that this is a custom made commandbar. I found a link to import such a commandbar: http://www.mvps.org/access/general/gen0035.htm General: Copy CommandBars and Import/Export Specifications to a new database Author(s) Dev Ashish Import/Export Specifications and CommandBars travel with the database they were created in. That is, all the information about them is stored in hidden, system tables whose names are as follows: Information Type System Table Name Import/Export Specifications MSysImexSpecs and MSysImexColumns CommandBars MSysCmdBars Access's Import Wizard allows you to transfer these tables to a new database. To import these tables, bring up the Import wizard by right-clicking in the database window and selecting Import, and then clicking the Options button in the Import Objects dialog. However I'm using an ADP. I do not have these tables?! Where is the menubar stored in an adp? Regards, Sander ----- Original Message ---- From: Sad Der To: Acces User Group Sent: Friday, January 19, 2007 11:09:13 AM Subject: [AccessD] CommandBars("mnuReportPrint").Enabled = False Hi group, In all reports I have the following code: Private Sub Report_Close() CommandBars("mnuReportPrint").Enabled = False End Sub I receive the following error: Invalid procedure call or argument Why does this error occur? When I loop through all Commandbars there is no commandbar with the nae mnuReportPrint! Is this what's causing the error? Regards, Sander ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367 -- AccessD ma isors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 From Gustav at cactus.dk Fri Jan 19 04:23:31 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Jan 2007 11:23:31 +0100 Subject: [AccessD] Option Explicit Statement Message-ID: Hi Keith Also mark the checkbox at menu: Tools, Options, Tab: Editor Require Variable Declaration /gustav >>> john at winhaven.net 19-01-2007 05:37 >>> Keith, Unless you are a glutton for punishment, this is a "must do" practice. When I work on anything where it hasn't been used the first thing I do is add it to all modules. Just one time you have a typo (and I have plenty of them) which causes a problem and you'll know why :o) John From ssharkins at setel.com Fri Jan 19 06:02:09 2007 From: ssharkins at setel.com (Susan Harkins) Date: Fri, 19 Jan 2007 07:02:09 -0500 Subject: [AccessD] CommandBars("mnuReportPrint").Enabled = False In-Reply-To: <936722.85704.qm@web31615.mail.mud.yahoo.com> Message-ID: <005101c73bc1$a621d330$b7b62ad1@SUSANONE> How do you open the command bar with each report? Susan H. When I loop through all Commandbars there is no commandbar with the nae mnuReportPrint! Is this what's causing the error? From Gustav at cactus.dk Fri Jan 19 07:08:43 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Jan 2007 14:08:43 +0100 Subject: [AccessD] Array as source for query Message-ID: Hi Chester Not in a query. In VB(A) you may read the array into a recordset but that's another story. /gustav >>> Chester_Kaup at kindermorgan.com 18-01-2007 16:55 >>> I think I know the answer but in VBA can an array be used as the source data for a query instead of a table? If so how? Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 From carbonnb at gmail.com Fri Jan 19 07:15:32 2007 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Fri, 19 Jan 2007 08:15:32 -0500 Subject: [AccessD] OT: Shamil In-Reply-To: <018c01c73a66$62420ec0$0701a8c0@HAL9005> References: <018c01c73a66$62420ec0$0701a8c0@HAL9005> Message-ID: Sent this the other day, but it hasn't shown up in the archives. On 1/17/07, Beach Access Software wrote: > I'm trying to respond to your email this morning, but my reply to > shamil at users.mns.ru is getting bounced. > ----- The following addresses had permanent fatal errors ----- > > > (reason: 550 Mail not accepted from listed spam relay - see > http://sorbs.net ) > Is your mail down or do you have another address? Rocky, Im not Shamil, but this bounce indicates that YOUR e-mail host (rr.com) is in the SORBS database as an open relay. Try to sent to Shamil again. It may just be the server that your e-mail was sent from. In larger ISPs there usually are several outbound servers that you can connect to and it looks like one of them is an open relay and being blocked by Shamil's ISP -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From DWUTKA at marlow.com Fri Jan 19 09:12:22 2007 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 19 Jan 2007 09:12:22 -0600 Subject: [AccessD] Array as source for query Message-ID: <17724746D360394AA3BFE5B8D40A9C1B018639B0@marlow_main2.marlow.ii-vi.net> Not by itself, but you can feed it into a query using a custom function, but you still need an actual table as the recordsource. Drew -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, January 18, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: [AccessD] Array as source for query I think I know the answer but in VBA can an array be used as the source data for a query instead of a table? If so how? Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 FAX (432) 688-3799 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Fri Jan 19 10:22:08 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 19 Jan 2007 11:22:08 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: <001b01c73b83$80f430f0$6502a8c0@ScuzzPaq> References: <001b01c73b83$80f430f0$6502a8c0@ScuzzPaq> Message-ID: I assume, then, that when you did that work for me (the Ashland Equipment Project) that you had to do this? Cause I'm pretty sure I didn't have that checked, for the work that I did on that. :) Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Thursday, January 18, 2007 11:37 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement Keith, Unless you are a glutton for punishment, this is a "must do" practice. When I work on anything where it hasn't been used the first thing I do is add it to all modules. Just one time you have a typo (and I have plenty of them) which causes a problem and you'll know why :o) John PS: There are some tools out there that will do this for you. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson Sent: Thursday, January 18, 2007 9:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Option Explicit Statement My database performance analyzer is recommending I use Option Explicit Statements in my two main forms. I understand the benefits of doing so, from a programming error recognition standpoint. Is there any benefit from a performance standpoint? I pretty much always declare my variables anyway...so I don't really see a benefit there (no variants in my programming.) Any ideas? Regards, Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kwilliamson at RTKL.com Fri Jan 19 10:22:24 2007 From: Kwilliamson at RTKL.com (Keith Williamson) Date: Fri, 19 Jan 2007 11:22:24 -0500 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: Message-ID: Thanks, Gustav!! Keith E. Williamson | Assist. Controller| kwilliamson at rtkl.com RTKL Associates Inc. | 901 South Bond Street | Baltimore, Maryland 21231-3305 410-537-6098 direct | 410-276-2136 fax | www.rtkl.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, January 19, 2007 5:24 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Option Explicit Statement Hi Keith Also mark the checkbox at menu: Tools, Options, Tab: Editor Require Variable Declaration /gustav >>> john at winhaven.net 19-01-2007 05:37 >>> Keith, Unless you are a glutton for punishment, this is a "must do" practice. When I work on anything where it hasn't been used the first thing I do is add it to all modules. Just one time you have a typo (and I have plenty of them) which causes a problem and you'll know why :o) John -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Jan 19 12:06:43 2007 From: john at winhaven.net (John Bartow) Date: Fri, 19 Jan 2007 12:06:43 -0600 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: Message-ID: <003601c73bf4$94c4e860$6502a8c0@ScuzzPaq> BTW Why isn't the "Require Variable Declaration" option set "on" by default? I have yet to find a good reason to not have it turned on - can anyone tell me one? From john at winhaven.net Fri Jan 19 12:06:43 2007 From: john at winhaven.net (John Bartow) Date: Fri, 19 Jan 2007 12:06:43 -0600 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: <001b01c73b83$80f430f0$6502a8c0@ScuzzPaq> Message-ID: <003b01c73bf4$96a42fb0$6502a8c0@ScuzzPaq> Yes, I did. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Keith Williamson I assume, then, that when you did that work for me (the Ashland Equipment Project) that you had to do this? Cause I'm pretty sure I didn't have that checked, for the work that I did on that. From Lambert.Heenan at AIG.com Fri Jan 19 12:30:08 2007 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 19 Jan 2007 12:30:08 -0600 Subject: [AccessD] Option Explicit Statement Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C201200EFA@xlivmbx35.aig.com> Because M$ makes some bad decisions "occasionally". :-\ IMHO there is no good reason not to have this option in force. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, January 19, 2007 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement BTW Why isn't the "Require Variable Declaration" option set "on" by default? I have yet to find a good reason to not have it turned on - can anyone tell me one? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jan 19 12:35:19 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Jan 2007 19:35:19 +0100 Subject: [AccessD] Option Explicit Statement Message-ID: Hi Lambert You can write VBScript "compatible" code(!) /gustav >>> Lambert.Heenan at AIG.com 19-01-2007 19:30:08 >>> Because M$ makes some bad decisions "occasionally". :-\ IMHO there is no good reason not to have this option in force. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, January 19, 2007 1:07 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Option Explicit Statement BTW Why isn't the "Require Variable Declaration" option set "on" by default? I have yet to find a good reason to not have it turned on - can anyone tell me one? From martyconnelly at shaw.ca Fri Jan 19 12:35:35 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 Jan 2007 10:35:35 -0800 Subject: [AccessD] Option Explicit Statement In-Reply-To: <003601c73bf4$94c4e860$6502a8c0@ScuzzPaq> References: <003601c73bf4$94c4e860$6502a8c0@ScuzzPaq> Message-ID: <45B10F77.1060402@shaw.ca> Undeclared variables when encountered by the compiler interpreter and missing this option are all declared as variants. It happens this way with VBA or VBScript. It helps the power user who doesn't know whether to declare a variable as long or an object or even why. For simple subs or functions this presents fewer problems. At least that is the reason I have heard. Go and look at how many VBScripts on web pages skip this option John Bartow wrote: >BTW >Why isn't the "Require Variable Declaration" option set "on" by default? > >I have yet to find a good reason to not have it turned on - can anyone tell >me one? > > > > -- Marty Connelly Victoria, B.C. Canada From Gustav at cactus.dk Fri Jan 19 12:39:55 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Jan 2007 19:39:55 +0100 Subject: [AccessD] Array as source for query Message-ID: Hi Drew That might be doable, but wouldn't it be faster/simpler to write the array to a temp table and then use that as the source in the query? /gustav >>> DWUTKA at marlow.com 19-01-2007 16:12:22 >>> Not by itself, but you can feed it into a query using a custom function, but you still need an actual table as the recordsource. Drew -----Original Message----- From: Kaup, Chester [mailto:Chester_Kaup at kindermorgan.com] Sent: Thursday, January 18, 2007 9:56 AM To: Access Developers discussion and problem solving Subject: [AccessD] Array as source for query I think I know the answer but in VBA can an array be used as the source data for a query instead of a table? If so how? Thanks. Chester Kaup From Gustav at cactus.dk Fri Jan 19 12:44:12 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Jan 2007 19:44:12 +0100 Subject: [AccessD] Option Explicit Statement Message-ID: Hi Marty But isn't that because you can only declare the variables as Variant in VBScript? /gustav >>> martyconnelly at shaw.ca 19-01-2007 19:35:35 >>> .. Go and look at how many VBScripts on web pages skip this option From john at winhaven.net Fri Jan 19 12:48:16 2007 From: john at winhaven.net (John Bartow) Date: Fri, 19 Jan 2007 12:48:16 -0600 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: Message-ID: <008301c73bfa$69ab8660$6502a8c0@ScuzzPaq> Hi Gustav, Please explain. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Hi Lambert You can write VBScript "compatible" code(!) /gustav From shamil at users.mns.ru Fri Jan 19 12:52:36 2007 From: shamil at users.mns.ru (Shamil Salakhetdinov) Date: Fri, 19 Jan 2007 21:52:36 +0300 Subject: [AccessD] OT: Shamil In-Reply-To: Message-ID: <001401c73bfa$fc9aba90$6501a8c0@nant> Hello Bryan, Thank you for your note. I have contacted Rocky privately that day using my Gmail e-mail address and that worked well both ways. <<< In larger ISPs there usually are several outbound servers that you can connect to and it looks like one of them is an open relay and being blocked by Shamil's ISP >>> Yes, it happened that my ISP blocked Rocky's e-mail relaying because his ISP was listed on SORBS that day (that happens sometimes without any real reasons - SPAM preventing worldwide robots make mistakes sometimes...) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Friday, January 19, 2007 4:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Shamil Sent this the other day, but it hasn't shown up in the archives. On 1/17/07, Beach Access Software wrote: > I'm trying to respond to your email this morning, but my reply to > shamil at users.mns.ru is getting bounced. > ----- The following addresses had permanent fatal errors ----- > > > (reason: 550 Mail not accepted from listed spam relay - see > http://sorbs.net ) > Is your mail down or do you have another address? Rocky, Im not Shamil, but this bounce indicates that YOUR e-mail host (rr.com) is in the SORBS database as an open relay. Try to sent to Shamil again. It may just be the server that your e-mail was sent from. In larger ISPs there usually are several outbound servers that you can connect to and it looks like one of them is an open relay and being blocked by Shamil's ISP -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Jan 19 13:03:44 2007 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 19 Jan 2007 20:03:44 +0100 Subject: [AccessD] Option Explicit Statement Message-ID: Hi John It was a bad joke. If you don't dim variables or don't dim them strongly: Dim s Dim a they become variants and you can copy/paste simple code between VBA and VBScript. I have only used it a few times to write VBScript in the VBA editor in Access where you have intellisense and it is much easier to debug the code, then copy/paste to VBScript and modify it slightly. /gustav >>> john at winhaven.net 19-01-2007 19:48:16 >>> Hi Gustav, Please explain. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Hi Lambert You can write VBScript "compatible" code(!) /gustav From martyconnelly at shaw.ca Fri Jan 19 13:17:18 2007 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 19 Jan 2007 11:17:18 -0800 Subject: [AccessD] Option Explicit Statement In-Reply-To: References: Message-ID: <45B1193E.10400@shaw.ca> Yup. You must explicitly declare all variables using the Dim, Private, Public, or ReDim statements but with no AS type extension. Doing the statement below speeds up vbscript