From Darryl.Collins at coles.com.au Sun Nov 1 02:52:11 2009 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Sun, 1 Nov 2009 19:52:11 +1100 Subject: [AccessD] MS Accounting discontinued In-Reply-To: <4AED102C.28345.1467E96F@stuart.lexacorp.com.pg> Message-ID: <57E6E6CA42105A48B977303A2CDC27200B59763350@WPEXCH22.retail.ad.cmltd.net.au> MYOB is probably the package of choice for SME in Australia as well. Quicken is used more widely for personal finance from what I understand - which is does a pretty good job at. Big grunty places use SAP or JD Edwards or something else suitablely enterprise in scope and power. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Sunday, 1 November 2009 3:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Accounting discontinued MYOB? It's by far the most popular small business accounting system in this part of the world - much more widely used than Quickbooks. -- Stuart On 31 Oct 2009 at 18:29, jwcolby wrote: > And now there is no alternative to Quickbooks. > > Sigh. > > John W. Colby > www.ColbyConsulting.com > > > John Bartow wrote: > > Thanks for posting this. I'm so fed up with the latest QuickBooks Pro > > "upgrade" that I had installed Office Accounting Pro and was going to try it > > out as a replacement. > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Saturday, October 31, 2009 9:14 AM > > To: Access Developers discussion and problem solving > > Subject: [AccessD] MS Accounting discontinued > > > > http://blog.seattlepi.com/microsoft/archives/183698.asp > > > > That is a rather large application. I LOVE this: > > > > After evaluating the product over the past few years Microsoft determined > > that other Microsoft > > offerings such as free templates in the Office system used with Excel and > > the Dynamics product are > > able to meet our customers' needs. The Office Small Business web site has > > links to free templates > > for small businesses, such as invoices, expenses, time sheets, budgets and > > more and Microsoft's > > Small Business Center is also a great resource for small businesses. > > > > What a JOKE. Templates in Excel are the equivalent of an accounting > > program? It gives me GREAT > > CONFIDENCE in Microsoft when I see a statement like 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 ______________________________________________________________________ This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. ______________________________________________________________________ From stuart at lexacorp.com.pg Sun Nov 1 03:16:26 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 01 Nov 2009 19:16:26 +1000 Subject: [AccessD] MS Accounting discontinued In-Reply-To: <57E6E6CA42105A48B977303A2CDC27200B59763350@WPEXCH22.retail.ad.cmltd.net.au> References: <4AED102C.28345.1467E96F@stuart.lexacorp.com.pg>, <57E6E6CA42105A48B977303A2CDC27200B59763350@WPEXCH22.retail.ad.cmltd.net.au> Message-ID: <4AED51EA.15763.1568B615@stuart.lexacorp.com.pg> That's what I meant by "this part of the world" - Australia, NZ, PNG, Pacific Islands. In between MYOB and SAP/JDE is Attache/Accpac/Peachtree and the accounting system from hell known as Greentree. I've got one client that switched from Dataflex/CBA to Greentree. I was pulling a lot of data out of the previous system and manipulating it in Access. Greentree uses an Object Oriented database called Jade and has the worst OBDC connectivity I've ever seen. Very primitive and it exposed thousands of virtual tables with weird names and relationships. I've told the client that I refuse to use it. If they want the data manipulated, they have to create text files from the built in query generator and I will pick that up and massage it. -- Stuart On 1 Nov 2009 at 19:52, Darryl Collins wrote: > MYOB is probably the package of choice for SME in Australia as well. > Quicken is used more widely for personal finance from what I > understand - which is does a pretty good job at. > > Big grunty places use SAP or JD Edwards or something else suitablely enterprise in scope and power. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Sunday, 1 November 2009 3:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MS Accounting discontinued > > > MYOB? It's by far the most popular small business accounting system in this part of the > world - much more widely used than Quickbooks. > > -- From edzedz at comcast.net Sun Nov 1 11:19:58 2009 From: edzedz at comcast.net (Edward Zuris) Date: Sun, 1 Nov 2009 10:19:58 -0700 Subject: [AccessD] Cyrillic to English character translation Message-ID: <000001ca5b17$8a0e0330$5bdea8c0@edz1> Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? References: <000001ca5b17$8a0e0330$5bdea8c0@edz1> Message-ID: <4dd71a0c0911010858y7c0295a4ra631b932fa7ca87a@mail.gmail.com> The first few words read: ED JUST FOR FUN I DECIDED TO SEE.... It's kind of a crude phonetic substitution - for example, the J in 'JUST' is made up of two letters: a D sound and a sort of SH that I can't spell out in English. You could use the table here as a start: http://5ko.free.fr/en/cyr.html and just do a letter by letter substitution. That would make it readable, I think. Doug 2009/11/1 Edward Zuris > > Does anyone have a Cyrillic to English > character translation VBA snippet I could > please study ? > > I did some ASCII and EBCDIC translation > some 25 years ago. > > However, Unicode is something I am new > to and wonder how that would work. > > Here is what I am hopeing to convert to > English. > > I am told this is not Russian, but American > English displayed in Cyrillic. > > It should be a C# program, plus some snide > comments. > > Any suggestions ? > > Thanks. > > =================================================== > Start > =================================================== > > ?? > ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? > ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. > > ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? > ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. > > ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: > > ?C??? C?CT??; > ?C??? C?CT??.??????T???C.????P??; > ?C??? C?CT??.T?XT; > ?C??? C?CT??.??; > ?C??? C?CT??.??????CT??C; > > ????C???? TP??C??T?P > { > ???CC ?P??P?? > { > CT?T?? ???? ????(CTP???[] ?P?C) > { > ??T?P???T?P X?T = ???? > ??T?P???T?P(); > CTP??? T; > ?C??? (CTP???P????P CP = ???? > CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); > ?C???(CTP?????P?T?P C?? = ???? > CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? C??.??P?T?(X?T.X??T?(T.C??CTP???(?,1).T?????P())); > } > } > ???CC ??T?P???T?P:C?PT????CT > { > ?????? ??T?P???T?P() > { > CTP???[] ???H????T; > ?C???(CTP???P????P CP = ???? > CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = > CP.P???T????().C???T(???? ?H??P[] {'\?'}); > ??P(??T ?=0;? 1;?++) ??C?.???(???H????T[?].C???T(???? ?H??P[] { '\t' > })[1].C??CTP???(0,1),???H????T[?].C???T(???? ?H??P[] { '\t' })[0]); > } > ?????? CTP??? X??T?(CTP??? C) {?? > (??C?.???T???C???(C)) P?T?P? ??C?[C]; ??C? P?T?P? C;} > } > } > > ???T ?C, ?? ???'P? ????? ?P?T??? TH??T ??? ????? ???P?TH????, ??? ???H?T > ??T ????H?T. TH?? ??CT TH???? T? ?? > ?T TH??T ????T, ?C ????T TH?? TP?TH?, ??T ??T ???, ?? C?P. > > ??? CT??? P???C? T? ????T TH??T ??? P????? ???'T ????? TH?? ??P????? > ???H????T. > > ?? ?P?CTP?T??? ???TH? ??? ?C TH??T TH??C ??C? ??????C T? ???? ?TH??P > TH????C ??? ???CT??T?? ?CC?PT. C??H? ?C ??? > P?????????C ?P? P???CT, ????, H????C?X???C ??H?? "??? ???CT ???'T ????? > ??H??T TH??? ????T ??P TH??C ????TP?" ??C????T??? > ?? T?? ?? ??C??T TH??T TH??? ?P? ??C? ?? ???P????. ??? ????P CT?? T? > TH???? TH??T TH??C ????? ?? ???P?????? ??C??T??? > T? ?TH??PC, ?XTP????? P???CT, ??? ????T??. > > TH??? ??? ???? T?????? ?? TH?? C??? ???C, ???P ??? ???P, ??C??T? ???T > ????? ?? T?? ?? ???T, ?????C? TH??C? > ????P?? "TP?TH?C" ?P? T? ?? ???????? ?? TH?? ???? ?? ??? ???????? T? > TH?? ???TP?P?. > > C?, ? ?? ??????? ??? T? ???P ???P?. ??? ?P?T????? T? ????? ?P?P?????, > TH??P???P? ??? ??, ??H??TH??P ?T ?C TP?? ?P ??T, > ??? ? P???C? T? ??????? ???TH???? ??C?. ?? ????T C?X ???PC (????T ?C > ???? ?C ?'?? H??? T? ????P? TH?? "???? ??") > TH??? ? ???H?T ?H????? ???? T? ?????CH?, ?? ? ???? ???? ?T, ??T ??H?? > CH????? ?? > > ??? ????'T ?H????? ???P ???? ?? ??? ?? TH?? ????P?? ???T?C??C. > > ?? ??TT?P ??H??T H??????C. > > C? ? ??? ?? ???CT ?C CT????P? ?C ???, ??T ? ???'T TH???? ? ??? ???P ?? > ?C P???CT ??? ???? ?C ??? ?P?. ??T ?? ? ???? CH??T. > > > =================================================== > End > =================================================== > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Sun Nov 1 11:22:38 2009 From: dbdoug at gmail.com (Doug Steele) Date: Sun, 1 Nov 2009 10:22:38 -0700 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <4dd71a0c0911010858y7c0295a4ra631b932fa7ca87a@mail.gmail.com> References: <000001ca5b17$8a0e0330$5bdea8c0@edz1> <4dd71a0c0911010858y7c0295a4ra631b932fa7ca87a@mail.gmail.com> Message-ID: <4dd71a0c0911010922g2f7c5d01o5bce569199b89cd8@mail.gmail.com> further to my previous reply, the following site may help with converting multibyte code: http://www.motobit.com/tips/detpg_binarytostring/ Doug 2009/11/1 Doug Steele > The first few words read: > > ED > JUST FOR FUN I DECIDED TO SEE.... > > It's kind of a crude phonetic substitution - for example, the J in 'JUST' > is made up of two letters: a D sound and a sort of SH that I can't spell out > in English. > > You could use the table here as a start: http://5ko.free.fr/en/cyr.htmland just do a letter by letter substitution. That would make it readable, I > think. > > Doug > > 2009/11/1 Edward Zuris > > >> Does anyone have a Cyrillic to English >> character translation VBA snippet I could >> please study ? >> >> I did some ASCII and EBCDIC translation >> some 25 years ago. >> >> However, Unicode is something I am new >> to and wonder how that would work. >> >> Here is what I am hopeing to convert to >> English. >> >> I am told this is not Russian, but American >> English displayed in Cyrillic. >> >> It should be a C# program, plus some snide >> comments. >> >> Any suggestions ? >> >> Thanks. >> >> =================================================== >> Start >> =================================================== >> >> ?? >> ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? >> ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. >> >> ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? >> ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. >> >> ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: >> >> ?C??? C?CT??; >> ?C??? C?CT??.??????T???C.????P??; >> ?C??? C?CT??.T?XT; >> ?C??? C?CT??.??; >> ?C??? C?CT??.??????CT??C; >> >> ????C???? TP??C??T?P >> { >> ???CC ?P??P?? >> { >> CT?T?? ???? ????(CTP???[] ?P?C) >> { >> ??T?P???T?P X?T = ???? >> ??T?P???T?P(); >> CTP??? T; >> ?C??? (CTP???P????P CP = ???? >> CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); >> ?C???(CTP?????P?T?P C?? = ???? >> CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ?> C??.??P?T?(X?T.X??T?(T.C??CTP???(?,1).T?????P())); >> } >> } >> ???CC ??T?P???T?P:C?PT????CT >> { >> ?????? ??T?P???T?P() >> { >> CTP???[] ???H????T; >> ?C???(CTP???P????P CP = ???? >> CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = >> CP.P???T????().C???T(???? ?H??P[] {'\?'}); >> ??P(??T ?=0;?> 1;?++) ??C?.???(???H????T[?].C???T(???? ?H??P[] { '\t' >> })[1].C??CTP???(0,1),???H????T[?].C???T(???? ?H??P[] { '\t' })[0]); >> } >> ?????? CTP??? X??T?(CTP??? C) {?? >> (??C?.???T???C???(C)) P?T?P? ??C?[C]; ??C? P?T?P? C;} >> } >> } >> >> ???T ?C, ?? ???'P? ????? ?P?T??? TH??T ??? ????? ???P?TH????, ??? ???H?T >> ??T ????H?T. TH?? ??CT TH???? T? ?? >> ?T TH??T ????T, ?C ????T TH?? TP?TH?, ??T ??T ???, ?? C?P. >> >> ??? CT??? P???C? T? ????T TH??T ??? P????? ???'T ????? TH?? ??P????? >> ???H????T. >> >> ?? ?P?CTP?T??? ???TH? ??? ?C TH??T TH??C ??C? ??????C T? ???? ?TH??P >> TH????C ??? ???CT??T?? ?CC?PT. C??H? ?C ??? >> P?????????C ?P? P???CT, ????, H????C?X???C ??H?? "??? ???CT ???'T ????? >> ??H??T TH??? ????T ??P TH??C ????TP?" ??C????T??? >> ?? T?? ?? ??C??T TH??T TH??? ?P? ??C? ?? ???P????. ??? ????P CT?? T? >> TH???? TH??T TH??C ????? ?? ???P?????? ??C??T??? >> T? ?TH??PC, ?XTP????? P???CT, ??? ????T??. >> >> TH??? ??? ???? T?????? ?? TH?? C??? ???C, ???P ??? ???P, ??C??T? ???T >> ????? ?? T?? ?? ???T, ?????C? TH??C? >> ????P?? "TP?TH?C" ?P? T? ?? ???????? ?? TH?? ???? ?? ??? ???????? T? >> TH?? ???TP?P?. >> >> C?, ? ?? ??????? ??? T? ???P ???P?. ??? ?P?T????? T? ????? ?P?P?????, >> TH??P???P? ??? ??, ??H??TH??P ?T ?C TP?? ?P ??T, >> ??? ? P???C? T? ??????? ???TH???? ??C?. ?? ????T C?X ???PC (????T ?C >> ???? ?C ?'?? H??? T? ????P? TH?? "???? ??") >> TH??? ? ???H?T ?H????? ???? T? ?????CH?, ?? ? ???? ???? ?T, ??T ??H?? >> CH????? ?? >> >> ??? ????'T ?H????? ???P ???? ?? ??? ?? TH?? ????P?? ???T?C??C. >> >> ?? ??TT?P ??H??T H??????C. >> >> C? ? ??? ?? ???CT ?C CT????P? ?C ???, ??T ? ???'T TH???? ? ??? ???P ?? >> ?C P???CT ??? ???? ?C ??? ?P?. ??T ?? ? ???? CH??T. >> >> >> =================================================== >> End >> =================================================== >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From jojoaaus at yahoo.com Sun Nov 1 13:58:30 2009 From: jojoaaus at yahoo.com (FRANCIS ALWARD) Date: Sun, 1 Nov 2009 11:58:30 -0800 (PST) Subject: [AccessD] Migrating an existing linked FE-BE Access DB to SQL Server-best method? Message-ID: <158825.44379.qm@web84005.mail.mud.yahoo.com> Hello All, I want to upgrade an existing Access DB to SQL Server with an Access user interface.? Just bought "SQL:Access to SQL Server" by Harkins and Reid.? They recommend creating an ADP, to "achieve the full benefits" of SQL Server. My question: for an existing Access FE-BE DB, should I (must I?) re-work it as a stand-alone DB, and try to re-write all the DAO code in ADO, before proceeding with the Upsizing Wizard? I'm an amateur programmer, but have been supporting a multi-user commercial DB that needs to be upsized. Thanks, JA From stuart at lexacorp.com.pg Sun Nov 1 15:51:29 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Nov 2009 07:51:29 +1000 Subject: [AccessD] Migrating an existing linked FE-BE Access DB to SQL Server-best method? In-Reply-To: <158825.44379.qm@web84005.mail.mud.yahoo.com> References: <158825.44379.qm@web84005.mail.mud.yahoo.com> Message-ID: <4AEE02E1.24873.181BFAC1@stuart.lexacorp.com.pg> No doubt the authors will chip in here, since they are regulars on this list. :-) My answer: You certainly don't HAVE to. In many situations, there is no need to. I have a large number of Access FEs that use ODBC to link to SQL Server BEs. All using DAO. The Upsiziing Wiizard will basically do that for you. You can then assess the the performance and where necessary convert existing queries to SQL Views to improve performance. FWIW, I avoid ADPs like the plague. -- Stuart On 1 Nov 2009 at 11:58, FRANCIS ALWARD wrote: > Hello All, > > I want to upgrade an existing Access DB to SQL Server with an Access > user interface.? Just bought "SQL:Access to SQL Server" by Harkins and > Reid.? They recommend creating an ADP, to "achieve the full benefits" > of SQL Server. > > My question: for an existing Access FE-BE DB, should I (must I?) > re-work it as a stand-alone DB, and try to re-write all the DAO code > in ADO, before proceeding with the Upsizing Wizard? > > I'm an amateur programmer, but have been supporting a multi-user > commercial DB that needs to be upsized. > > Thanks, > JA > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From edzedz at comcast.net Sun Nov 1 17:11:04 2009 From: edzedz at comcast.net (Edward Zuris) Date: Sun, 1 Nov 2009 16:11:04 -0700 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <4dd71a0c0911010922g2f7c5d01o5bce569199b89cd8@mail.gmail.com> Message-ID: <000801ca5b48$96444570$5bdea8c0@edz1> Thanks Doug. . . I'll look at your sites. I guess I'll need the unicode for Cyrillic and English -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Sunday, November 01, 2009 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Cyrillic to English character translation further to my previous reply, the following site may help with converting multibyte code: http://www.motobit.com/tips/detpg_binarytostring/ Doug 2009/11/1 Doug Steele > The first few words read: > > ED > JUST FOR FUN I DECIDED TO SEE.... > > It's kind of a crude phonetic substitution - for example, the J in > 'JUST' is made up of two letters: a D sound and a sort of SH that I > can't spell out in English. > > You could use the table here as a start: > http://5ko.free.fr/en/cyr.htmland just do a letter by letter > substitution. That would make it readable, I think. > > Doug > > 2009/11/1 Edward Zuris > > >> Does anyone have a Cyrillic to English >> character translation VBA snippet I could >> please study ? >> >> I did some ASCII and EBCDIC translation >> some 25 years ago. >> >> However, Unicode is something I am new >> to and wonder how that would work. >> >> Here is what I am hopeing to convert to >> English. >> >> I am told this is not Russian, but American >> English displayed in Cyrillic. >> >> It should be a C# program, plus some snide >> comments. >> >> Any suggestions ? >> >> Thanks. >> >> =================================================== >> Start >> =================================================== >> >> ?? >> ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? >> ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. >> >> ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? >> ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? >> ???. >> >> ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: >> >> ?C??? C?CT??; >> ?C??? C?CT??.??????T???C.????P??; >> ?C??? C?CT??.T?XT; >> ?C??? C?CT??.??; >> ?C??? C?CT??.??????CT??C; >> >> ????C???? TP??C??T?P >> { >> ???CC ?P??P?? >> { >> CT?T?? ???? ????(CTP???[] ?P?C) >> { >> ??T?P???T?P X?T = ???? >> ??T?P???T?P(); >> CTP??? T; >> ?C??? (CTP???P????P CP = ???? >> CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); >> ?C???(CTP?????P?T?P C?? = ???? >> CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ?> C??.??P?T?(X?T.X??T?(T.C??CTP???(?,1).T?????P())); >> } >> } >> ???CC ??T?P???T?P:C?PT????CT >> { >> ?????? ??T?P???T?P() >> { >> CTP???[] ???H????T; >> ?C???(CTP???P????P CP = ???? >> CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = >> CP.P???T????().C???T(???? ?H??P[] {'\?'}); >> ??P(??T ?=0;?> 1;?++) ??C?.???(???H????T[?].C???T(???? ?H??P[] { '\t' >> })[1].C??CTP???(0,1),???H????T[?].C???T(???? ?H??P[] { '\t' })[0]); >> } >> ?????? CTP??? X??T?(CTP??? C) {?? >> (??C?.???T???C???(C)) P?T?P? ??C?[C]; ??C? P?T?P? C;} >> } >> } >> >> ???T ?C, ?? ???'P? ????? ?P?T??? TH??T ??? ????? ???P?TH????, ??? >> ???H?T ??T ????H?T. TH?? ??CT TH???? T? ?? ?T TH??T ????T, ?C ????T >> TH?? TP?TH?, ??T ??T ???, ?? C?P. >> >> ??? CT??? P???C? T? ????T TH??T ??? P????? ???'T ????? TH?? ??P????? >> ???H????T. >> >> ?? ?P?CTP?T??? ???TH? ??? ?C TH??T TH??C ??C? ??????C T? ???? ?TH??P >> TH????C ??? ???CT??T?? ?CC?PT. C??H? ?C ??? P?????????C ?P? P???CT, >> ????, H????C?X???C ??H?? "??? ???CT ???'T ????? ??H??T TH??? ????T >> ??P TH??C ????TP?" ??C????T??? ?? T?? ?? ??C??T TH??T TH??? ?P? ??C? >> ?? ???P????. ??? ????P CT?? T? TH???? TH??T TH??C ????? ?? >> ???P?????? ??C??T??? T? ?TH??PC, ?XTP????? P???CT, ??? ????T??. >> >> TH??? ??? ???? T?????? ?? TH?? C??? ???C, ???P ??? ???P, ??C??T? ???T >> ????? ?? T?? ?? ???T, ?????C? TH??C? ????P?? "TP?TH?C" ?P? T? ?? >> ???????? ?? TH?? ???? ?? ??? ???????? T? TH?? ???TP?P?. >> >> C?, ? ?? ??????? ??? T? ???P ???P?. ??? ?P?T????? T? ????? >> ?P?P?????, TH??P???P? ??? ??, ??H??TH??P ?T ?C TP?? ?P ??T, ??? ? >> P???C? T? ??????? ???TH???? ??C?. ?? ????T C?X ???PC (????T ?C ???? >> ?C ?'?? H??? T? ????P? TH?? "???? ??") TH??? ? ???H?T ?H????? ???? T? >> ?????CH?, ?? ? ???? ???? ?T, ??T ??H?? CH????? ?? >> >> ??? ????'T ?H????? ???P ???? ?? ??? ?? TH?? ????P?? ???T?C??C. >> >> ?? ??TT?P ??H??T H??????C. >> >> C? ? ??? ?? ???CT ?C CT????P? ?C ???, ??T ? ???'T TH???? ? ??? ???P >> ?? ?C P???CT ??? ???? ?C ??? ?P?. ??T ?? ? ???? CH??T. >> >> >> =================================================== >> End >> =================================================== >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Sun Nov 1 16:12:07 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 1 Nov 2009 16:12:07 -0600 Subject: [AccessD] Migrating an existing linked FE-BE Access DB to SQL Server-best method? In-Reply-To: <4AEE02E1.24873.181BFAC1@stuart.lexacorp.com.pg> References: <158825.44379.qm@web84005.mail.mud.yahoo.com> <4AEE02E1.24873.181BFAC1@stuart.lexacorp.com.pg> Message-ID: <67DED2FBC2FF402F92777B170426AF1B@danwaters> Hi Stuart, You didn't mention if your system runs on a LAN or a WAN. If you're on a LAN, then ODBC table links and DAO will work just fine, and that is a very simple change. However, if this system is on a WAN, then using ODBC table links, and therefore DAO, will be extremely slow for remote users. In this case you might want to upsize to an ADP. But again, you don't have to - you can use continue to use an MDB. Here you should probably do a search on 'Access MDB vs. ADP'. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, November 01, 2009 3:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Migrating an existing linked FE-BE Access DB to SQL Server-best method? No doubt the authors will chip in here, since they are regulars on this list. :-) My answer: You certainly don't HAVE to. In many situations, there is no need to. I have a large number of Access FEs that use ODBC to link to SQL Server BEs. All using DAO. The Upsiziing Wiizard will basically do that for you. You can then assess the the performance and where necessary convert existing queries to SQL Views to improve performance. FWIW, I avoid ADPs like the plague. -- Stuart On 1 Nov 2009 at 11:58, FRANCIS ALWARD wrote: > Hello All, > > I want to upgrade an existing Access DB to SQL Server with an Access > user interface.? Just bought "SQL:Access to SQL Server" by Harkins and > Reid.? They recommend creating an ADP, to "achieve the full benefits" > of SQL Server. > > My question: for an existing Access FE-BE DB, should I (must I?) > re-work it as a stand-alone DB, and try to re-write all the DAO code > in ADO, before proceeding with the Upsizing Wizard? > > I'm an amateur programmer, but have been supporting a multi-user > commercial DB that needs to be upsized. > > Thanks, > JA > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sun Nov 1 16:19:38 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Nov 2009 17:19:38 -0500 Subject: [AccessD] MS Accounting discontinued In-Reply-To: <017701ca5a48$ffa18100$fee48300$@net> References: <4AEC4612.7020500@colbyconsulting.com> <017701ca5a48$ffa18100$fee48300$@net> Message-ID: ...you and me as well ...QB "PRO" is such a joke as a multi-user system I get steamed every time I'm compelled to save some client's ass who's accountant insists he use it ...it's a market just begging to be filled by someone ...but I tried MS Accounting and took a pass on it ...how they could be that wide of the mark beats the hell out of me ...take the single user version of QB PRO, dupe it in a clean lab, then make it work over a multi-user network using SQL Server Express as the be ...seems simple, eh ...but if you actually jumped through the hoops to try and set MS Accounting up for a small business, its supposedly target audience, you'd have to wonder if the people on the Dynamics team didn't do their level best to sabotage MS Accounting from the start ...I can't think of any other reason for such a lousy product out of MS ...other than maybe they just moved the whole Vista team over to develop MS Accounting :( William -------------------------------------------------- From: "John Bartow" Sent: Saturday, October 31, 2009 11:41 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] MS Accounting discontinued > Thanks for posting this. I'm so fed up with the latest QuickBooks Pro > "upgrade" that I had installed Office Accounting Pro and was going to try > it > out as a replacement. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, October 31, 2009 9:14 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] MS Accounting discontinued > > http://blog.seattlepi.com/microsoft/archives/183698.asp > > That is a rather large application. I LOVE this: > > After evaluating the product over the past few years Microsoft determined > that other Microsoft > offerings such as free templates in the Office system used with Excel and > the Dynamics product are > able to meet our customers' needs. The Office Small Business web site has > links to free templates > for small businesses, such as invoices, expenses, time sheets, budgets and > more and Microsoft's > Small Business Center is also a great resource for small businesses. > > What a JOKE. Templates in Excel are the equivalent of an accounting > program? It gives me GREAT > CONFIDENCE in Microsoft when I see a statement like that. > > -- > John W. Colby > 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 wdhindman at dejpolsystems.com Sun Nov 1 16:24:03 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Nov 2009 17:24:03 -0500 Subject: [AccessD] MS Accounting discontinued In-Reply-To: <4AECBAEF.9000500@colbyconsulting.com> References: <4AEC4612.7020500@colbyconsulting.com> <017701ca5a48$ffa18100$fee48300$@net> <4aec9d77.0702d00a.22fb.fffff43c@mx.google.com> <007601ca5a69$7c4df470$74e9dd50$@net> <4aeca1cf.1818d00a.5f45.4cf8@mx.google.com><009701ca5a77$110579a0$0501a8c0@MSIMMSWS> <4AECBAEF.9000500@colbyconsulting.com> Message-ID: ...I took one look at the code behind that and barfed :( ...the only real problems I have with QBP is the difficulty of getting to the meat of its data and its absolutely ridiculous network multi-user implementation ...talk about a security nightmare! William -------------------------------------------------- From: "jwcolby" Sent: Saturday, October 31, 2009 5:32 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] MS Accounting discontinued > There is "I! can! manage! my! business! (with this piece of junk access > database)". > > I looked at and didn't know whether to laugh or cry. Now you can pay > $1000 for the entry level > version of that. Sigh. > > John W. Colby > www.ColbyConsulting.com > > > Mark Simms wrote: >> Did anyone attempt to build a generalized accounting system based on >> Access >> ? >> I am sure there were several niche-specific ones created. >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sun Nov 1 16:38:36 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Nov 2009 17:38:36 -0500 Subject: [AccessD] MS Accounting discontinued In-Reply-To: References: Message-ID: <49D848A9581242DC8EDF52349D403140@jislaptopdev> http://www.comtechsolutions.com/products.htm ...I've been using their Image product as an integrated solution for two long term clients since before 2000 ...you get the source and can use an mdb or SQL Server be ...their updates are annotated so that it is reasonable to integrate them into my client's custom solutions without reinventing the wheel and the support is better than average ...my only con with them is that they don't offer an integrated payroll module ...the other con is that you really have to know their accountants in order to get them behind moving from something they currently support and trust to something like Image. ...if you're not into the accounting side of things, you have to understand that at least in the US, Intuit's professional accounting and tax software practically owns the accountants who deal with small businesses, which is one reason it has been so hard for anyone to break the hold Intuit's QB Pro has on small businesses themselves. William -------------------------------------------------- From: "Gustav Brock" Sent: Saturday, October 31, 2009 5:48 PM To: Subject: Re: [AccessD] MS Accounting discontinued > Hi Mark > > We did. A time billing and financial system highly specialized and > targeted at advertising agencies, consultancy, and TV/movie production. > But for the last five/seven years or so we have only done maintenance - > the new version will be in .Net. > It's not a boxed product. We only supply it as part of a turnkey > solution - where we can establish full accounting for such clients in two > days if needed. > > /gustav > >>>> marksimms at verizon.net 31-10-2009 23:11 >>> > Did anyone attempt to build a generalized accounting system based on > Access > ? > I am sure there were several niche-specific ones created. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Sun Nov 1 16:41:49 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Nov 2009 17:41:49 -0500 Subject: [AccessD] MS Accounting discontinued In-Reply-To: <009001ca5a7f$853dd990$8fb98cb0$@net> References: <4AEC4612.7020500@colbyconsulting.com> <017701ca5a48$ffa18100$fee48300$@net><4AECBA30.8000203@colbyconsulting.com> <009001ca5a7f$853dd990$8fb98cb0$@net> Message-ID: <966EB8737E4B429CACD75D17E4B3EAD0@jislaptopdev> yes ...but the last time I looked at them they had more problems than QB Pro and few accountants recommend them to clients ...which ime is the real driver behind how most small business accounting software is marketed. William -------------------------------------------------- From: "John Bartow" Sent: Saturday, October 31, 2009 6:11 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] MS Accounting discontinued > Peachtree Accounting is still around aren't they? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, October 31, 2009 5:29 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MS Accounting discontinued > > And now there is no alternative to Quickbooks. > > Sigh. > > John W. Colby > www.ColbyConsulting.com > > > John Bartow wrote: >> Thanks for posting this. I'm so fed up with the latest QuickBooks Pro >> "upgrade" that I had installed Office Accounting Pro and was going to try > it >> out as a replacement. >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, October 31, 2009 9:14 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] MS Accounting discontinued >> >> http://blog.seattlepi.com/microsoft/archives/183698.asp >> >> That is a rather large application. I LOVE this: >> >> After evaluating the product over the past few years Microsoft determined >> that other Microsoft >> offerings such as free templates in the Office system used with Excel and >> the Dynamics product are >> able to meet our customers' needs. The Office Small Business web site has >> links to free templates >> for small businesses, such as invoices, expenses, time sheets, budgets >> and >> more and Microsoft's >> Small Business Center is also a great resource for small businesses. >> >> What a JOKE. Templates in Excel are the equivalent of an accounting >> program? It gives me GREAT >> CONFIDENCE in Microsoft when I see a statement like 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 wdhindman at dejpolsystems.com Sun Nov 1 16:47:33 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 1 Nov 2009 17:47:33 -0500 Subject: [AccessD] MS Accounting discontinued In-Reply-To: References: Message-ID: <3F3E5439CD924457ABC7852A07ADBB93@jislaptopdev> ...I expect there is a lot of internal politics driving this ...MS Dynamics is a much higher markup product and primarily sold and supported through MS partners ...MS Accounting essentially cut the bottom out from under them ...and since it hasn't been a profit center for MS, they're killing two birds with one stone. William -------------------------------------------------- From: "Gustav Brock" Sent: Saturday, October 31, 2009 11:04 AM To: Subject: Re: [AccessD] MS Accounting discontinued > Hi John > > Or you could turn it around: If MS regards the features of Office > Accounting to not surpass those of templates for Word and Excel, I would > certainly cease the product at the soonest. > > But you are right. Who are those people writing such nonsense, and what do > they think about the customers that have used the application for years? > > /gustav > > >>>> jwcolby at colbyconsulting.com 31-10-2009 15:13 >>> > http://blog.seattlepi.com/microsoft/archives/183698.asp > > That is a rather large application. I LOVE this: > > After evaluating the product over the past few years Microsoft determined > that other Microsoft > offerings such as free templates in the Office system used with Excel and > the Dynamics product are > able to meet our customers' needs. The Office Small Business web site has > links to free templates > for small businesses, such as invoices, expenses, time sheets, budgets and > more and Microsoft's > Small Business Center is also a great resource for small businesses. > > What a JOKE. Templates in Excel are the equivalent of an accounting > program? It gives me GREAT > CONFIDENCE in Microsoft when I see a statement like that. > > -- > John W. Colby > www.ColbyConsulting.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Darryl.Collins at anz.com Sun Nov 1 17:01:26 2009 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 2 Nov 2009 10:01:26 +1100 Subject: [AccessD] Migrating an existing linked FE-BE Access DB to SQLServer-best method? In-Reply-To: <158825.44379.qm@web84005.mail.mud.yahoo.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E8101688BA9@EXUAU020HWT110.oceania.corp.anz.com> I usually use an .mde front end to SQL Server backend. I use a combination of ADO and DAO depending on the task. Generally though I use ADO as much as possible. I have not had any issues, and this has been in an enterprise grade corporate with 100's of users over an extensive WAN. That says more about SQL Server and ADO than it does Access, but even so, impressed. These days I would be more tempted to use an ASP.NET browser front end. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of FRANCIS ALWARD Sent: Monday, 2 November 2009 6:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Migrating an existing linked FE-BE Access DB to SQLServer-best method? Hello All, I want to upgrade an existing Access DB to SQL Server with an Access user interface.? Just bought "SQL:Access to SQL Server" by Harkins and Reid.? They recommend creating an ADP, to "achieve the full benefits" of SQL Server. My question: for an existing Access FE-BE DB, should I (must I?) re-work it as a stand-alone DB, and try to re-write all the DAO code in ADO, before proceeding with the Upsizing Wizard? I'm an amateur programmer, but have been supporting a multi-user commercial DB that needs to be upsized. Thanks, JA -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From cjlabs at worldnet.att.net Sun Nov 1 17:14:14 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Sun, 1 Nov 2009 17:14:14 -0600 Subject: [AccessD] White report background appears as gray References: <3F3E5439CD924457ABC7852A07ADBB93@jislaptopdev> Message-ID: I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. Anyone know why this might be happening? Thanks Carolyn Johnson St Louis, MO From Darryl.Collins at anz.com Sun Nov 1 17:31:17 2009 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 2 Nov 2009 10:31:17 +1100 Subject: [AccessD] White report background appears as gray In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E8101688BAD@EXUAU020HWT110.oceania.corp.anz.com> A couple of things to check. 1: Reset the colour index grid to XL's default: "Activeworkbook.ResetColors" in code will reset it. If you are using ColorGridIndex it is important that both indexs match and they often don't. 2: Check she has not changed the style of the 'normal' template, or she is using another style that is causing the background to be grey. If necessary use code to reset the normal style to normal. 3: Can you check if it is specific to her PC (it probably is) or is the problem more widespread? Good luck Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, 2 November 2009 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] White report background appears as gray I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. Anyone know why this might be happening? Thanks Carolyn Johnson St Louis, MO -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From cjlabs at worldnet.att.net Sun Nov 1 17:36:32 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Sun, 1 Nov 2009 17:36:32 -0600 Subject: [AccessD] White report background appears as gray References: <6DC4725FDCDD72428D6114F1B6CC6E8101688BAD@EXUAU020HWT110.oceania.corp.anz.com> Message-ID: I'm confused -- this is Access, not Excel. She's the only one I know of with this problem. She says she's not having this issue with any other printing -- it's specific to the database. Thanks Carolyn ----- Original Message ----- From: Collins, Darryl To: Access Developers discussion and problem solving Sent: Sunday, November 01, 2009 5:31 PM Subject: Re: [AccessD] White report background appears as gray A couple of things to check. 1: Reset the colour index grid to XL's default: "Activeworkbook.ResetColors" in code will reset it. If you are using ColorGridIndex it is important that both indexs match and they often don't. 2: Check she has not changed the style of the 'normal' template, or she is using another style that is causing the background to be grey. If necessary use code to reset the normal style to normal. 3: Can you check if it is specific to her PC (it probably is) or is the problem more widespread? Good luck Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, 2 November 2009 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] White report background appears as gray I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. Anyone know why this might be happening? Thanks Carolyn Johnson St Louis, MO -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at anz.com Sun Nov 1 17:54:02 2009 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Mon, 2 Nov 2009 10:54:02 +1100 Subject: [AccessD] White report background appears as gray In-Reply-To: Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E8101688BAF@EXUAU020HWT110.oceania.corp.anz.com> Hahaha, you? Confused? Nope, It turns out I am the one that needs to cut back on the medication. Sorry, I thought this came in on the Excel List, but clearly it didn't. Man! Today is a working Monday between Sunday and a Public Holiday Tuesday here. Maybe I should have had the day off like 35% of the rest of the population has.... I will put on my Access hat and see if I can think of something more useful for you. Sorry once again :-/ Regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, 2 November 2009 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] White report background appears as gray I'm confused -- this is Access, not Excel. She's the only one I know of with this problem. She says she's not having this issue with any other printing -- it's specific to the database. Thanks Carolyn ----- Original Message ----- From: Collins, Darryl To: Access Developers discussion and problem solving Sent: Sunday, November 01, 2009 5:31 PM Subject: Re: [AccessD] White report background appears as gray A couple of things to check. 1: Reset the colour index grid to XL's default: "Activeworkbook.ResetColors" in code will reset it. If you are using ColorGridIndex it is important that both indexs match and they often don't. 2: Check she has not changed the style of the 'normal' template, or she is using another style that is causing the background to be grey. If necessary use code to reset the normal style to normal. 3: Can you check if it is specific to her PC (it probably is) or is the problem more widespread? Good luck Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Monday, 2 November 2009 10:14 AM To: Access Developers discussion and problem solving Subject: [AccessD] White report background appears as gray I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. Anyone know why this might be happening? Thanks Carolyn Johnson St Louis, MO -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From stuart at lexacorp.com.pg Sun Nov 1 18:18:42 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Nov 2009 10:18:42 +1000 Subject: [AccessD] White report background appears as gray In-Reply-To: References: , Message-ID: <4AEE2562.18138.18A2C320@stuart.lexacorp.com.pg> Are the report background colors shown as positive or negative numbers. If negative, the actual colors shown will depend on the Windows color scheme selected on the workstation. -- Stuart On 1 Nov 2009 at 17:14, Carolyn Johnson wrote: > I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. > > The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. > > Anyone know why this might be happening? > > > Thanks > Carolyn Johnson > St Louis, MO > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cjlabs at worldnet.att.net Sun Nov 1 18:36:23 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Sun, 1 Nov 2009 18:36:23 -0600 Subject: [AccessD] White report background appears as gray References: , <4AEE2562.18138.18A2C320@stuart.lexacorp.com.pg> Message-ID: <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> The report background is a positive number 16777215 Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Sunday, November 01, 2009 6:18 PM Subject: Re: [AccessD] White report background appears as gray Are the report background colors shown as positive or negative numbers. If negative, the actual colors shown will depend on the Windows color scheme selected on the workstation. -- Stuart On 1 Nov 2009 at 17:14, Carolyn Johnson wrote: > I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. > > The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. > > Anyone know why this might be happening? > > > Thanks > Carolyn Johnson > St Louis, MO > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sun Nov 1 20:09:52 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Nov 2009 12:09:52 +1000 Subject: [AccessD] White report background appears as gray In-Reply-To: <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> Message-ID: <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> That's White all right. I'd guess it's a graphics problem with the machine in question. -- Stuart On 1 Nov 2009 at 18:36, Carolyn Johnson wrote: > The report background is a positive number 16777215 > > Carolyn > > > > > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Sunday, November 01, 2009 6:18 PM > Subject: Re: [AccessD] White report background appears as gray > > > Are the report background colors shown as positive or negative numbers. > > If negative, the actual colors shown will depend on the Windows color scheme selected on > the workstation. > > -- > Stuart > > On 1 Nov 2009 at 17:14, Carolyn Johnson wrote: > > > I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. > > > > The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. > > > > Anyone know why this might be happening? > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cjlabs at worldnet.att.net Sun Nov 1 20:11:50 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Sun, 1 Nov 2009 20:11:50 -0600 Subject: [AccessD] White report background appears as gray References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> Message-ID: <0F482CE549554353ADAEEBCBF86C1BB7@Dell> She says everything else is OK. I suggested she re-install Access . . . Thanks Carolyn ----- Original Message ----- From: Stuart McLachlan To: Access Developers discussion and problem solving Sent: Sunday, November 01, 2009 8:09 PM Subject: Re: [AccessD] White report background appears as gray That's White all right. I'd guess it's a graphics problem with the machine in question. -- Stuart On 1 Nov 2009 at 18:36, Carolyn Johnson wrote: > The report background is a positive number 16777215 > > Carolyn > > > > > ----- Original Message ----- > From: Stuart McLachlan > To: Access Developers discussion and problem solving > Sent: Sunday, November 01, 2009 6:18 PM > Subject: Re: [AccessD] White report background appears as gray > > > Are the report background colors shown as positive or negative numbers. > > If negative, the actual colors shown will depend on the Windows color scheme selected on > the workstation. > > -- > Stuart > > On 1 Nov 2009 at 17:14, Carolyn Johnson wrote: > > > I have a user (350 miiles away) who is saying all her reports have a gray background -- on her monitor and printed. > > > > The reports are all set with white backgrounds, and that's how they appear on my computer and that's how they print. > > > > Anyone know why this might be happening? > > > > > > Thanks > > Carolyn Johnson > > St Louis, MO > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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.Clark at niagaracounty.com Mon Nov 2 13:14:08 2009 From: John.Clark at niagaracounty.com (John Clark) Date: Mon, 02 Nov 2009 14:14:08 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> Message-ID: <4AEEE92F.167F.006B.0@niagaracounty.com> Hello...been a long time since I've asked a question, but I am now trying to do something, that I've tried before, and I never could get it to work. I always find a work-around, but I want to actually do it right this time. What I am trying to do is this... I am creating a small program that creates witness vouchers for our District Attorney's dept. When a witness testifies in court, there is a flat fee of $15, and then mileage is added to that. The mileage rate can change, every 3 months, so I want the program to find the correct mileage rate, as per the date entered (the court date). Not only will this keep me from having to change the rate, every 3 months, but it would also allow the program to reprint any voucher, at any time, and keep its original rate. So, what I figured on doing...and please correct me, if I am going about this the wrong way...is to have a separate table for mileage rate. It would have 3 fields, a record ID (probably unneeded), effective date, and the rate for that date. I then want the program to look at the date of an entry, and match it up w/the proper date from this table. I know this doesn't work...already tried it...but here is basically what it would be: Max( < [Enter Date]) The entered date does indeed bring up the last date & rate entered, but it brings up ALL previous entries. So, if I could get the max date, it should be the last one...correct? But, this is not proper code. This is a really small DB, but this one item is killing me. I'd like to use it for the flat fee table as well...it hasn't changed in a long time, but you never know. From garykjos at gmail.com Mon Nov 2 13:42:21 2009 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 2 Nov 2009 13:42:21 -0600 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AEEE92F.167F.006B.0@niagaracounty.com> References: <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> <4AEEE92F.167F.006B.0@niagaracounty.com> Message-ID: Can you put a beginning and ending date in your rate table? For the most recent one put a future date in it maybe? Then you could do a query on the rate table where your desired date is between the starting date and the ending date. I have a application where I do an update query on a transaction table to set "price point groups" and I do a cartesian join - putting two tables in the query without a join between fields on the two tables, and on the unit price of my transaction table I have a criteria of "between [PricePointLowPrice] and [PricePointHighPrice]" Those fields being in a price point ranges table. I thn update a "PricePointGroup" field in my transaction table with the record ID of that price point range table. It works fabulously. GK On Mon, Nov 2, 2009 at 1:14 PM, John Clark wrote: > Hello...been a long time since I've asked a question, but I am now trying to do something, that I've tried before, and I never could get it to work. I always find a work-around, but I want to actually do it right this time. > > What I am trying to do is this... > > I am creating a small program that creates witness vouchers for our District Attorney's dept. When a witness testifies in court, there is a flat fee of $15, and then mileage is added to that. The mileage rate can change, every 3 months, so I want the program to find the correct mileage rate, as per the date entered (the court date). Not only will this keep me from having to change the rate, every 3 months, but it would also allow the program to reprint any voucher, at any time, and keep its original rate. > > So, what I figured on doing...and please correct me, if I am going about this the wrong way...is to have a separate table for mileage rate. It would have 3 fields, a record ID (probably unneeded), effective date, and the rate for that date. I then want the program to look at the date of an entry, and match it up w/the proper date from this table. > > I know this doesn't work...already tried it...but here is basically what it would be: > > Max( < [Enter Date]) > > The entered date does indeed bring up the last date & rate entered, but it brings up ALL previous entries. So, if I could get the max date, it should be the last one...correct? But, this is not proper code. > > This is a really small DB, but this one item is killing me. I'd like to use it for the flat fee table as well...it hasn't changed in a long time, but you never know. > -- > 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 jwcolby at colbyconsulting.com Mon Nov 2 13:44:45 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 02 Nov 2009 14:44:45 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AEEE92F.167F.006B.0@niagaracounty.com> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> <4AEEE92F.167F.006B.0@niagaracounty.com> Message-ID: <4AEF36AD.6000200@colbyconsulting.com> John, The problem is that a date is BETWEEN two dates. So the rate table needs a "DteFrom" and a "DteTo". When you create a new rate record, you need to lookup the last existing rate record and put yesterday's date in the DteTo field. In the current rate record you need to put Today() plus 180 (days into the future). Now your query that looks up the rate has to lookup between two dates. Or something like that. John W. Colby www.ColbyConsulting.com John Clark wrote: > Hello...been a long time since I've asked a question, but I am now trying to do something, that I've tried before, and I never could get it to work. I always find a work-around, but I want to actually do it right this time. > > What I am trying to do is this... > > I am creating a small program that creates witness vouchers for our District Attorney's dept. When a witness testifies in court, there is a flat fee of $15, and then mileage is added to that. The mileage rate can change, every 3 months, so I want the program to find the correct mileage rate, as per the date entered (the court date). Not only will this keep me from having to change the rate, every 3 months, but it would also allow the program to reprint any voucher, at any time, and keep its original rate. > > So, what I figured on doing...and please correct me, if I am going about this the wrong way...is to have a separate table for mileage rate. It would have 3 fields, a record ID (probably unneeded), effective date, and the rate for that date. I then want the program to look at the date of an entry, and match it up w/the proper date from this table. > > I know this doesn't work...already tried it...but here is basically what it would be: > > Max( < [Enter Date]) > > The entered date does indeed bring up the last date & rate entered, but it brings up ALL previous entries. So, if I could get the max date, it should be the last one...correct? But, this is not proper code. > > This is a really small DB, but this one item is killing me. I'd like to use it for the flat fee table as well...it hasn't changed in a long time, but you never know. From stuart at lexacorp.com.pg Mon Nov 2 14:09:52 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 03 Nov 2009 06:09:52 +1000 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AEEE92F.167F.006B.0@niagaracounty.com> References: , <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg>, <4AEEE92F.167F.006B.0@niagaracounty.com> Message-ID: <4AEF3C90.26677.1CE55316@stuart.lexacorp.com.pg> Use TOP 1 for this. Something like SELECT TOP 1 Rate FROM tblMilageRates WHERE EffectiveDate < [Enter Date] ; ORDER BY EffectiveDate DESC -- Stuart On 2 Nov 2009 at 14:14, John Clark wrote: > So, what I figured on doing...and please correct me, if I am going about > this the wrong way...is to have a separate table for mileage rate. It > would have 3 fields, a record ID (probably unneeded), effective date, and > the rate for that date. I then want the program to look at the date of an > entry, and match it up w/the proper date from this table. > > I know this doesn't work...already tried it...but here is basically what > it would be: > > Max( < [Enter Date]) > > The entered date does indeed bring up the last date & rate entered, but it > brings up ALL previous entries. So, if I could get the max date, it should > be the last one...correct? But, this is not proper code. From james at fcidms.com Mon Nov 2 14:14:45 2009 From: james at fcidms.com (James Barash) Date: Mon, 2 Nov 2009 15:14:45 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: Message-ID: <12D2F894654B53498DEF840AE12B7BB3699D596D@fciexchange.fcidms.com> I just had a similar situation except my table has only the End Dates for billing periods and I had to find orders based on their billing period. Assuming a table called rates, create a query like: SELECT rates.Rate, rates.EffectiveDate, DateAdd("d",-1,nz(DMin("EffectiveDate","rates","[EffectiveDate]>#" & [EffectiveDate] & "#"),Int(Now()))) AS EndDate FROM rates; This does assume you do not enter any dates into the future since the last Effective Date range will be through today. If you name that query ratesByPeriod and you have a table called vouchers, you can create a query: Select vouchers.VoucherNumber, vouchers.Mileage * nz(ratesByPeriod.Rate,0) FROM vouchers, ratesByPeriod WHERE vouchers.VoucherDate Between ratesByPeriod.EffectiveDate And ratesByPeriod.EndDate; As long as you don't have too many rate changes, this should work fine. The ratesByPeriod query will get slow if there are too many records in the underlying table. Hope this helps. James Barash On Mon, Nov 2, 2009 at 1:14 PM, John Clark wrote: > Hello...been a long time since I've asked a question, but I am now trying to do something, that I've tried before, and I never could get it to work. I always find a work-around, but I want to actually do it right this time. > > What I am trying to do is this... > > I am creating a small program that creates witness vouchers for our District Attorney's dept. When a witness testifies in court, there is a flat fee of $15, and then mileage is added to that. The mileage rate can change, every 3 months, so I want the program to find the correct mileage rate, as per the date entered (the court date). Not only will this keep me from having to change the rate, every 3 months, but it would also allow the program to reprint any voucher, at any time, and keep its original rate. > > So, what I figured on doing...and please correct me, if I am going about this the wrong way...is to have a separate table for mileage rate. It would have 3 fields, a record ID (probably unneeded), effective date, and the rate for that date. I then want the program to look at the date of an entry, and match it up w/the proper date from this table. > > I know this doesn't work...already tried it...but here is basically what it would be: > > Max( < [Enter Date]) > > The entered date does indeed bring up the last date & rate entered, but it brings up ALL previous entries. So, if I could get the max date, it should be the last one...correct? But, this is not proper code. > > This is a really small DB, but this one item is killing me. I'd like to use it for the flat fee table as well...it hasn't changed in a long time, but you never know. > -- > 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.Clark at niagaracounty.com Mon Nov 2 13:33:23 2009 From: John.Clark at niagaracounty.com (John Clark) Date: Mon, 02 Nov 2009 14:33:23 -0500 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEEE92F.167F.006B.0@niagaracounty.com> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> <4AEEE92F.167F.006B.0@niagaracounty.com> Message-ID: <4AEEEDB2.167F.006B.0@niagaracounty.com> OK, please understand, this is my 1st outting w/Access '07. I've messed around in it a bit, to help other users, but I've not created anything w/it yet. How the heck do you create modules? I got an idea, concerning my recent post, and I wanted to write some code, and I can't even find it. From Chester_Kaup at kindermorgan.com Mon Nov 2 15:09:53 2009 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Mon, 2 Nov 2009 15:09:53 -0600 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEEEDB2.167F.006B.0@niagaracounty.com> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEEEDB2.167F.006B.0@niagaracounty.com> Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C190D83DDED@houex1.kindermorgan.com> Alt F11 or from the menu select database tools and on the far left there is an icon for visual basic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Monday, November 02, 2009 1:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Dumb A2k7 question OK, please understand, this is my 1st outting w/Access '07. I've messed around in it a bit, to help other users, but I've not created anything w/it yet. How the heck do you create modules? I got an idea, concerning my recent post, and I wanted to write some code, and I can't even find it. -- 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 Nov 2 15:10:51 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 03 Nov 2009 07:10:51 +1000 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEEEDB2.167F.006B.0@niagaracounty.com> References: , <4AEEE92F.167F.006B.0@niagaracounty.com>, <4AEEEDB2.167F.006B.0@niagaracounty.com> Message-ID: <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> It's obvious! If you want to create a Module, you go to Create and select Macro :-) -- Stuart On 2 Nov 2009 at 14:33, John Clark wrote: > OK, please understand, this is my 1st outting w/Access '07. I've > messed around in it a bit, to help other users, but I've not created > anything w/it yet. How the heck do you create modules? I got an idea, > concerning my recent post, and I wanted to write some code, and I > can't even find it. From wdhindman at dejpolsystems.com Mon Nov 2 17:10:08 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 2 Nov 2009 18:10:08 -0500 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> References: , <4AEEE92F.167F.006B.0@niagaracounty.com>, <4AEEEDB2.167F.006B.0@niagaracounty.com> <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> Message-ID: <952EDFDA2317427B8B2AAFBFBBE23BE6@jislaptopdev> ...#$%@$%$%^^&&*^%#$#%^^&&**!!!!!!!!!!!!!!!!!! :( William -------------------------------------------------- From: "Stuart McLachlan" Sent: Monday, November 02, 2009 4:10 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Dumb A2k7 question > It's obvious! If you want to create a Module, you go to Create and > select Macro :-) > > -- > Stuart > > On 2 Nov 2009 at 14:33, John Clark wrote: > >> OK, please understand, this is my 1st outting w/Access '07. I've >> messed around in it a bit, to help other users, but I've not created >> anything w/it yet. How the heck do you create modules? I got an idea, >> concerning my recent post, and I wanted to write some code, and I >> can't even find it. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Mon Nov 2 21:24:15 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 02 Nov 2009 22:24:15 -0500 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <952EDFDA2317427B8B2AAFBFBBE23BE6@jislaptopdev> References: , <4AEEE92F.167F.006B.0@niagaracounty.com>, <4AEEEDB2.167F.006B.0@niagaracounty.com> <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> <952EDFDA2317427B8B2AAFBFBBE23BE6@jislaptopdev> Message-ID: <4AEFA25F.1000305@colbyconsulting.com> ;) At my class the other day I was trying to get some help with C# doing a database thing. The tutor wasn't much help but I showed him how easy it was to do in Access what I was trying to do in C#. I was using Access 2007, never having used it. But I set up three related tables, three forms, combos to display two of the tables, all working in about 20 minutes, even AFTER fumbling around trying to find out how to do stuff in A2k7. It sure is sad that they won't take the huge head start Access has and make it BETTER instead of just prettier. Imagine a .Net kind of framework in the background of Access. John W. Colby www.ColbyConsulting.com William Hindman wrote: > ...#$%@$%$%^^&&*^%#$#%^^&&**!!!!!!!!!!!!!!!!!! :( > > William > > -------------------------------------------------- > From: "Stuart McLachlan" > Sent: Monday, November 02, 2009 4:10 PM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Dumb A2k7 question > >> It's obvious! If you want to create a Module, you go to Create and >> select Macro :-) >> >> -- >> Stuart >> >> On 2 Nov 2009 at 14:33, John Clark wrote: >> >>> OK, please understand, this is my 1st outting w/Access '07. I've >>> messed around in it a bit, to help other users, but I've not created >>> anything w/it yet. How the heck do you create modules? I got an idea, >>> concerning my recent post, and I wanted to write some code, and I >>> can't even find it. >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From marksimms at verizon.net Mon Nov 2 22:01:17 2009 From: marksimms at verizon.net (Mark Simms) Date: Mon, 02 Nov 2009 23:01:17 -0500 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEFA25F.1000305@colbyconsulting.com> References: , <4AEEE92F.167F.006B.0@niagaracounty.com>, <4AEEEDB2.167F.006B.0@niagaracounty.com> <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> <952EDFDA2317427B8B2AAFBFBBE23BE6@jislaptopdev> <4AEFA25F.1000305@colbyconsulting.com> Message-ID: <00b301ca5c3a$4bb656e0$0501a8c0@MSIMMSWS> > Imagine a .Net kind of framework in the background of Access. John - I've said as much before... Imagine: designing and testing in Access, Then push a button and deploy as an ASP.NET solution. .NET was designed to be a C++ replacement. As such, it was architected to potentially build operating systems... NOT BUSINESS SOLUTIONS. That is it's achilles heel so-to-speak. From davidmcafee at gmail.com Mon Nov 2 22:33:38 2009 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 2 Nov 2009 20:33:38 -0800 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEFA25F.1000305@colbyconsulting.com> References: <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEEEDB2.167F.006B.0@niagaracounty.com> <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> <952EDFDA2317427B8B2AAFBFBBE23BE6@jislaptopdev> <4AEFA25F.1000305@colbyconsulting.com> Message-ID: <8786a4c00911022033o4add3fa2h983756beaab20adb@mail.gmail.com> It's not prettier. On Mon, Nov 2, 2009 at 7:24 PM, jwcolby wrote: > ;) > > At my class the other day I was trying to get some help with C# doing a database thing. ?The tutor > wasn't much help but I showed him how easy it was to do in Access what I was trying to do in C#. ?I > was using Access 2007, never having used it. ?But I set up three related tables, three forms, combos > to display two of the tables, all working in about 20 minutes, even AFTER fumbling around trying to > find out how to do stuff in A2k7. > > It sure is sad that they won't take the huge head start Access has and make it BETTER instead of > just prettier. ?Imagine a .Net kind of framework in the background of Access. > > > John W. Colby > www.ColbyConsulting.com > > > William Hindman wrote: >> ...#$%@$%$%^^&&*^%#$#%^^&&**!!!!!!!!!!!!!!!!!! :( >> >> William >> >> -------------------------------------------------- >> From: "Stuart McLachlan" >> Sent: Monday, November 02, 2009 4:10 PM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] Dumb A2k7 question >> >>> It's obvious! ? If you want to create a Module, you go to Create and >>> select Macro :-) >>> >>> -- >>> Stuart >>> >>> On 2 Nov 2009 at 14:33, John Clark wrote: >>> >>>> OK, please understand, this is my 1st outting w/Access '07. I've >>>> messed around in it a bit, to help other users, but I've not created >>>> anything w/it yet. How the heck do you create modules? I got an idea, >>>> concerning my recent post, and I wanted to write some code, and I >>>> can't even find it. >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From miscellany at mvps.org Mon Nov 2 23:04:11 2009 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 03 Nov 2009 18:04:11 +1300 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> References: <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEEEDB2.167F.006B.0@niagaracounty.com> <4AEF4ADB.8189.1D1D25C1@stuart.lexacorp.com.pg> Message-ID: <3A72A9AD287A445397A26342B9FBE954@stevePC> FWIW, this is better in Access 2010. Regards Steve -------------------------------------------------- From: "Stuart McLachlan" Sent: Tuesday, November 03, 2009 10:10 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Dumb A2k7 question > It's obvious! If you want to create a Module, you go to Create and > select Macro :-) > > -- > Stuart > > On 2 Nov 2009 at 14:33, John Clark wrote: > >> OK, please understand, this is my 1st outting w/Access '07. I've >> messed around in it a bit, to help other users, but I've not created >> anything w/it yet. How the heck do you create modules? I got an idea, >> concerning my recent post, and I wanted to write some code, and I >> can't even find it. > From cfoust at infostatsystems.com Tue Nov 3 10:46:21 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 3 Nov 2009 08:46:21 -0800 Subject: [AccessD] MS Accounting discontinued In-Reply-To: <966EB8737E4B429CACD75D17E4B3EAD0@jislaptopdev> References: <4AEC4612.7020500@colbyconsulting.com> <017701ca5a48$ffa18100$fee48300$@net><4AECBA30.8000203@colbyconsulting.com><009001ca5a7f$853dd990$8fb98cb0$@net> <966EB8737E4B429CACD75D17E4B3EAD0@jislaptopdev> Message-ID: PeachTree was a fairly serious accounting program at one time (when I last looked at it), which meant it wasn't designed for someone who didn't understand accounting. I don't know where it's gone, but programs like QuickBooks are intended to work for non-accountants, so the accountants are stuck with it. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Sunday, November 01, 2009 2:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] MS Accounting discontinued yes ...but the last time I looked at them they had more problems than QB Pro and few accountants recommend them to clients ...which ime is the real driver behind how most small business accounting software is marketed. William -------------------------------------------------- From: "John Bartow" Sent: Saturday, October 31, 2009 6:11 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] MS Accounting discontinued > Peachtree Accounting is still around aren't they? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, October 31, 2009 5:29 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] MS Accounting discontinued > > And now there is no alternative to Quickbooks. > > Sigh. > > John W. Colby > www.ColbyConsulting.com > > > John Bartow wrote: >> Thanks for posting this. I'm so fed up with the latest QuickBooks Pro >> "upgrade" that I had installed Office Accounting Pro and was going to >> try > it >> out as a replacement. >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, October 31, 2009 9:14 AM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] MS Accounting discontinued >> >> http://blog.seattlepi.com/microsoft/archives/183698.asp >> >> That is a rather large application. I LOVE this: >> >> After evaluating the product over the past few years Microsoft >> determined that other Microsoft offerings such as free templates in >> the Office system used with Excel and the Dynamics product are able >> to meet our customers' needs. The Office Small Business web site has >> links to free templates for small businesses, such as invoices, >> expenses, time sheets, budgets and more and Microsoft's Small >> Business Center is also a great resource for small businesses. >> >> What a JOKE. Templates in Excel are the equivalent of an accounting >> program? It gives me GREAT CONFIDENCE in Microsoft when I see a >> statement like 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Tue Nov 3 10:59:59 2009 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 3 Nov 2009 08:59:59 -0800 Subject: [AccessD] MS Accounting discontinued In-Reply-To: References: <4AEC4612.7020500@colbyconsulting.com> <017701ca5a48$ffa18100$fee48300$@net> <4AECBA30.8000203@colbyconsulting.com> <009001ca5a7f$853dd990$8fb98cb0$@net> <966EB8737E4B429CACD75D17E4B3EAD0@jislaptopdev> Message-ID: <4dd71a0c0911030859g470ba490j250c701a2ff73cd0@mail.gmail.com> Peachtree is still going strong. It's been prettied up - lots of nice graphs on the main screen. One of my clients has it. It appears to have a reasonable import/export facility, but I haven't needed to use it yet. Doug On Tue, Nov 3, 2009 at 8:46 AM, Charlotte Foust wrote: > PeachTree was a fairly serious accounting program at one time (when I > last looked at it), which meant it wasn't designed for someone who > didn't understand accounting. I don't know where it's gone, but > programs like QuickBooks are intended to work for non-accountants, so > the accountants are stuck with it. > > From robert at webedb.com Tue Nov 3 14:23:09 2009 From: robert at webedb.com (Robert Stewart) Date: Tue, 03 Nov 2009 14:23:09 -0600 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: References: Message-ID: <200911032023.nA3KNQNk012597@databaseadvisors.com> Why don't you send me the English of what you want, and I can have my wife translate it into Russian? At 12:00 PM 11/2/2009, you wrote: >Date: Sun, 1 Nov 2009 16:11:04 -0700 >From: "Edward Zuris" >Subject: Re: [AccessD] Cyrillic to English character translation >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000801ca5b48$96444570$5bdea8c0 at edz1> >Content-Type: text/plain; charset="koi8-r" > > > Thanks Doug. . . I'll look at your sites. > > I guess I'll need the unicode for Cyrillic and English From edzedz at comcast.net Tue Nov 3 16:33:55 2009 From: edzedz at comcast.net (Edward Zuris) Date: Tue, 3 Nov 2009 15:33:55 -0700 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <200911032023.nA3KNQNk012597@databaseadvisors.com> Message-ID: <000601ca5cd5$c0c84420$5bdea8c0@edz1> Thanks Robert. We need to go in the Cyrillic to English. Unicode is something I am new to. I am hopeing someone can convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. ========================================================== Start ========================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;?Date: Sun, 1 Nov 2009 16:11:04 -0700 >From: "Edward Zuris" >Subject: Re: [AccessD] Cyrillic to English character translation >To: "'Access Developers discussion and problem solving'" > >Message-ID: <000801ca5b48$96444570$5bdea8c0 at edz1> >Content-Type: text/plain; charset="koi8-r" > > > Thanks Doug. . . I'll look at your sites. > > I guess I'll need the unicode for Cyrillic and English -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at worldnet.att.net Tue Nov 3 17:09:16 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Tue, 3 Nov 2009 17:09:16 -0600 Subject: [AccessD] Report background gray Message-ID: <9949F12A1F4644349EC865A5DB426223@Dell> Here's a follow-up on my email from Sunday. I had a user who said all the report backgrounds were displayed and printed as gray, despite being set as white. She also later mentioned that the colors on the forms were missing. It turns out she had her Display set on High Contrast because of a vision impairment, and it screwed up the appearance of the database. Thanks, Carolyn Johnson St Louis, MO From garykjos at gmail.com Tue Nov 3 18:21:29 2009 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 3 Nov 2009 18:21:29 -0600 Subject: [AccessD] Report background gray In-Reply-To: <9949F12A1F4644349EC865A5DB426223@Dell> References: <9949F12A1F4644349EC865A5DB426223@Dell> Message-ID: Thanks for the followup Caroline! Good job finding that. On Tue, Nov 3, 2009 at 5:09 PM, Carolyn Johnson wrote: > Here's a follow-up on my email from Sunday. ? I had a user who said all the report backgrounds were displayed and printed as gray, despite being set as white. > > She also later mentioned that the colors on the forms were missing. > > It turns out she had her Display set on High Contrast because of a vision impairment, and it screwed up the appearance of the database. > > > Thanks, > Carolyn Johnson > St Louis, MO > -- > 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 John.Clark at niagaracounty.com Wed Nov 4 07:11:41 2009 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 04 Nov 2009 08:11:41 -0500 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <0B2BF8524B73A248A2F1B81BA751ED3C190D83DDED@houex1.kindermorgan.com> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEEEDB2.167F.006B.0@niagaracounty.com> <0B2BF8524B73A248A2F1B81BA751ED3C190D83DDED@houex1.kindermorgan.com> Message-ID: <4AF1373D.167F.006B.0@niagaracounty.com> Yeah, thanks, I did end up finding it. I usually send a notice to disregard my question, if I find it...I'm always looking, after I ask...but my question didn't seem to come through. I don't remember what time I sent it, but it posted, for me, at 3:55 PM...I left here at 3:00 PM, so it got held up somewhere. I didn't want to send a "disregard" to a message that might not have gotten through and confuse people. Then I was off yesterday. Thanks again all that answered...except for that Macro remark! ;o) Seriously, I was beginning to think this is what MS was steering me toward...and I was getting real upset about it. John W Clark >>> "Kaup, Chester" 11/2/2009 4:09 PM >>> Alt F11 or from the menu select database tools and on the far left there is an icon for visual basic. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark Sent: Monday, November 02, 2009 1:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] Dumb A2k7 question OK, please understand, this is my 1st outting w/Access '07. I've messed around in it a bit, to help other users, but I've not created anything w/it yet. How the heck do you create modules? I got an idea, concerning my recent post, and I wanted to write some code, and I can't even find it. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Nov 4 07:24:05 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 04 Nov 2009 08:24:05 -0500 Subject: [AccessD] Dumb A2k7 question In-Reply-To: <4AF1373D.167F.006B.0@niagaracounty.com> References: , <67C44BBB507C4A71A85B2C6ECBD5D9F9@Dell> <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg> <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEEEDB2.167F.006B.0@niagaracounty.com> <0B2BF8524B73A248A2F1B81BA751ED3C190D83DDED@houex1.kindermorgan.com> <4AF1373D.167F.006B.0@niagaracounty.com> Message-ID: <4AF18075.60907@colbyconsulting.com> > Seriously, I was beginning to think this is what MS was steering me toward...and I was getting real upset about it. That is what Microsoft is steering you towards and you can go ahead and get real upset. Or start learning .Net as a backup. ;) John W. Colby www.ColbyConsulting.com John Clark wrote: > Yeah, thanks, I did end up finding it. I usually send a notice to disregard my question, if I find it...I'm always looking, after I ask...but my question didn't seem to come through. I don't remember what time I sent it, but it posted, for me, at 3:55 PM...I left here at 3:00 PM, so it got held up somewhere. I didn't want to send a "disregard" to a message that might not have gotten through and confuse people. Then I was off yesterday. > > Thanks again all that answered...except for that Macro remark! ;o) > > Seriously, I was beginning to think this is what MS was steering me toward...and I was getting real upset about it. > > John W Clark > >>>> "Kaup, Chester" 11/2/2009 4:09 PM >>> > Alt F11 or from the menu select database tools and on the far left there is an icon for visual basic. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark > Sent: Monday, November 02, 2009 1:33 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Dumb A2k7 question > > OK, please understand, this is my 1st outting w/Access '07. I've messed around in it a bit, to help other users, but I've not created anything w/it yet. How the heck do you create modules? I got an idea, concerning my recent post, and I wanted to write some code, and I can't even find it. From accessd at gfconsultants.com Wed Nov 4 10:44:55 2009 From: accessd at gfconsultants.com (Reuben Cummings) Date: Wed, 4 Nov 2009 11:44:55 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AEF3C90.26677.1CE55316@stuart.lexacorp.com.pg> Message-ID: I do something exactly like to find an employees current pay rate. I only store the effective date of the new pay. I then use a TOP 1 to find it. The only difference I would make in the query below is <= rather than just less than because you want the new rate to show on whatever day it takes effect. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Stuart McLachlan > Sent: Monday, November 02, 2009 3:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query question ... Finding the proper > rate/per date > > > Use TOP 1 for this. > > Something like > > SELECT TOP 1 Rate > FROM tblMilageRates > WHERE EffectiveDate < [Enter Date] ; > ORDER BY EffectiveDate DESC > > -- > Stuart > > On 2 Nov 2009 at 14:14, John Clark wrote: > > > So, what I figured on doing...and please correct me, if I > am going about > > this the wrong way...is to have a separate table for > mileage rate. It > > would have 3 fields, a record ID (probably unneeded), > effective date, and > > the rate for that date. I then want the program to look at > the date of an > > entry, and match it up w/the proper date from this table. > > > > I know this doesn't work...already tried it...but here is > basically what > > it would be: > > > > Max( < [Enter Date]) > > > > The entered date does indeed bring up the last date & rate > entered, but it > > brings up ALL previous entries. So, if I could get the max > date, it should > > be the last one...correct? But, this is not proper code. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From John.Clark at niagaracounty.com Wed Nov 4 10:52:31 2009 From: John.Clark at niagaracounty.com (John Clark) Date: Wed, 04 Nov 2009 11:52:31 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AEF3C90.26677.1CE55316@stuart.lexacorp.com.pg> References: , <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg>, <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEF3C90.26677.1CE55316@stuart.lexacorp.com.pg> Message-ID: <4AF16AFE.167F.006B.0@niagaracounty.com> Thanks Stuart, this looks to be exactly what I need. I had to finagle a bit, to fit my query, but it works pretty damn good. However, what I have done in the past, is take the code, from the query, and place it into my form's code, and this doesn't work for this case. I'm guessing that this "TOP" command, only works in queries? If so, I'll have to grab this info out of the query...I've done this in the past, but it has been quite a while, so I'll have to track down the process. Thanks again! >>> "Stuart McLachlan" 11/2/2009 3:09 PM >>> Use TOP 1 for this. Something like SELECT TOP 1 Rate FROM tblMilageRates WHERE EffectiveDate < [Enter Date] ; ORDER BY EffectiveDate DESC -- Stuart On 2 Nov 2009 at 14:14, John Clark wrote: > So, what I figured on doing...and please correct me, if I am going about > this the wrong way...is to have a separate table for mileage rate. It > would have 3 fields, a record ID (probably unneeded), effective date, and > the rate for that date. I then want the program to look at the date of an > entry, and match it up w/the proper date from this table. > > I know this doesn't work...already tried it...but here is basically what > it would be: > > Max( < [Enter Date]) > > The entered date does indeed bring up the last date & rate entered, but it > brings up ALL previous entries. So, if I could get the max date, it should > be the last one...correct? But, this is not proper code. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Nov 4 11:06:53 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 4 Nov 2009 20:06:53 +0300 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <000001ca5b17$8a0e0330$5bdea8c0@edz1> References: <000001ca5b17$8a0e0330$5bdea8c0@edz1> Message-ID: <00a401ca5d71$36e73490$a4b59db0$@spb.ru> Hi Edward, Sorry, I was out for several days, and I have found your Access-D message just now. This "code" is a way to transliterate English using Cyrillic - it could be decoded but AFAIS comments to this "code" seems to be a bit rude "moralistic reasoning" (authors of this "code" could be I guess young and "silly", or very conservative old people): Here is a translation table I have just found: A - ? B - ? C - ?, ?P D - ? E - ? F - ? G - ? H - H? I - ? J - ?? K - ? L - ? M - ? N - ? O - ? P - ? Q - Q R - P S - C T - T U - ? V - ? W - ?? X - X Y - ? Z - ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, November 01, 2009 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cyrillic to English character translation Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? References: , <4AEE3F70.14302.19088B9F@stuart.lexacorp.com.pg>, <4AEEE92F.167F.006B.0@niagaracounty.com> <4AEF3C90.26677.1CE55316@stuart.lexacorp.com.pg> <4AF16AFE.167F.006B.0@niagaracounty.com> Message-ID: <4AF1929D.167F.006B.0@niagaracounty.com> I'm sorry to ask this...but I haven't written anything, aside from one very miniscule little program, in about two years, and apparently the magic is gone...I am lost. This code that Stuart offered up is exactly what I was looking to do, however, I'd like to do it from a form and what I thought I needed to do is not working. I want to (A) have the rate come up, once a given date is entered, and be there already when an old record is accessed...I want to be able to say, "this was entered on and this was the rate at that time." And, (B) I want it to multiply the number of miles w/this rate and present a total. And (C) I want to do pick the going fee out of a similar table and add this to the equation. I think if I can do one of these, I can do them all. How can I grab this, when a new date is entered? Here is the code I am using, in the query, which works... SELECT TOP 1 tblMileageRate.datDate, tblMileageRate.curMRate 'FROM tblMileageRate 'WHERE (((tblMileageRate.datDate) < [Date Entered])) 'ORDER BY tblMileageRate.datDate DESC; From lmrazek at lcm-res.com Wed Nov 4 13:47:19 2009 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Wed, 4 Nov 2009 13:47:19 -0600 Subject: [AccessD] Access to Quickbooks In-Reply-To: <00a401ca5d71$36e73490$a4b59db0$@spb.ru> References: <000001ca5b17$8a0e0330$5bdea8c0@edz1> <00a401ca5d71$36e73490$a4b59db0$@spb.ru> Message-ID: <013401ca5d87$9e97d840$dbc788c0$@com> Hi Folks: Has anyone had any experience with integrating Access (2003) with Quickbooks? I'm looking at a possible project that will require these two apps to talk to one another ... perhaps with QB importing data from Access, and/or Access linking to QB data. Any advice regarding problems, best practices, would be appreciated. Larry Mrazek ph. 314-432-5886 lmrazek at lcm-res.com http://www.lcm-res.com From sturner at mseco.com Wed Nov 4 16:50:51 2009 From: sturner at mseco.com (Steve Turner) Date: Wed, 4 Nov 2009 16:50:51 -0600 Subject: [AccessD] Update a field in a table Message-ID: <31B7F3CC8CC4454F87FCBEFF82B618920340588A@PE2850-03.mseco.com> Hello list, I need some help on updating a field in a SQL Express table linked to Access 2k. I have written a query that pulls the employee cost per hour out of our accounting system and made a table in Access to store the data of approximately 45 records with 7 fields. I have an SQL Express table with approximately 146 records and 20 fields. In that table there is one field I would like to update with the cost per hour from the first table for each of the 45 records in that table. This should either be an update query or a simple read the first file and update the second for each record. Not being a code expert I can't find a good example of how to do this. In both tables I have a text field with the EmpNo. And the BW001(cost per hour)number field. The SQL Express table has ex employees and contractors which won't change. Which way to go because I'm not sure the update query would work as I would like it to. Help Please. Steve A. Turner Controller Mid-South Engineering Co. Inc P.O. Box 1399 Hot Springs, AR 71902 E-Mail: sturner at mseco.com and saturner at mseco.com Phone: (501)321-2276 Fax: (501)321-4750 Cell: (501)282-7751 From paul.hartland at googlemail.com Thu Nov 5 01:43:18 2009 From: paul.hartland at googlemail.com (Paul Hartland) Date: Thu, 5 Nov 2009 07:43:18 +0000 Subject: [AccessD] Update a field in a table In-Reply-To: <31B7F3CC8CC4454F87FCBEFF82B618920340588A@PE2850-03.mseco.com> References: <31B7F3CC8CC4454F87FCBEFF82B618920340588A@PE2850-03.mseco.com> Message-ID: <38c884770911042343q1769087dx294dd3aa84f8d126@mail.gmail.com> Steve, Hope I haven't mis-understood you, but if the SQL Express table is linked into the A2K database, isnt it just a simple query: UPDATE [YourSQLExpressTable] INNER JOIN [YourA2kTable] ON [YourSQLExpressTable].EmpNo = [YourA2kTable].EmpNo SET [YourSQLExpressTable]![BW001]= [YourA2kTable]![BW001] Paul Hartland paul.hartland at fsmail.net 2009/11/4 Steve Turner > Hello list, > > I need some help on updating a field in a SQL Express table linked to > Access 2k. I have written a query that pulls the employee cost per hour > out of our accounting system and made a table in Access to store the > data of approximately 45 records with 7 fields. I have an SQL Express > table with approximately 146 records and 20 fields. In that table there > is one field I would like to update with the cost per hour from the > first table for each of the 45 records in that table. This should either > be an update query or a simple read the first file and update the second > for each record. Not being a code expert I can't find a good example of > how to do this. In both tables I have a text field with the EmpNo. And > the BW001(cost per hour)number field. The SQL Express table has ex > employees and contractors which won't change. Which way to go because > I'm not sure the update query would work as I would like it to. Help > Please. > > > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > P.O. Box 1399 > Hot Springs, AR 71902 > E-Mail: sturner at mseco.com and saturner at mseco.com > Phone: (501)321-2276 > Fax: (501)321-4750 > Cell: (501)282-7751 > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Paul Hartland paul.hartland at googlemail.com From accessd at gfconsultants.com Thu Nov 5 07:58:02 2009 From: accessd at gfconsultants.com (Reuben Cummings) Date: Thu, 5 Nov 2009 08:58:02 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AF1929D.167F.006B.0@niagaracounty.com> Message-ID: <4A4A4F135AFB43528508AFA476A2FB35@reubennx9500> John, did you get the following request answered? Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark > Sent: Wednesday, November 04, 2009 2:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query question ... Finding the proper > rate/per date > > > I'm sorry to ask this...but I haven't written anything, aside > from one very miniscule little program, in about two years, > and apparently the magic is gone...I am lost. This code that > Stuart offered up is exactly what I was looking to do, > however, I'd like to do it from a form and what I thought I > needed to do is not working. > > I want to (A) have the rate come up, once a given date is > entered, and be there already when an old record is > accessed...I want to be able to say, "this was entered on > and this was the rate at that time." And, (B) I want > it to multiply the number of miles w/this rate and present a > total. And (C) I want to do pick the going fee out of a > similar table and add this to the equation. I think if I can > do one of these, I can do them all. > > How can I grab this, when a new date is entered? > > Here is the code I am using, in the query, which works... > > SELECT TOP 1 tblMileageRate.datDate, tblMileageRate.curMRate > 'FROM tblMileageRate > 'WHERE (((tblMileageRate.datDate) < [Date Entered])) > 'ORDER BY tblMileageRate.datDate DESC; > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From hollisvj at pgdp.usec.com Thu Nov 5 08:13:03 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 5 Nov 2009 08:13:03 -0600 Subject: [AccessD] Increment Numbers Message-ID: <703BDA18A87DFA4CB265A86F42E4178D091A8C80@c2k3exchange.pgdp.corp.usec.com> I want to increment locker numbers. I have LockerNumber which is a number field with a default value of 0 & format of 000. On the form I want new records to automatically increment the locker number. Using this code, I only get 000 for new records. I don't want to use the autonumber because there may be a case when they need to manually enter a number. Which will lead to another issue of duplicating numbers (I will ask about that in my next post). On form: Private Sub Form_BeforeInsert(Cancel As Integer) 'increment next locker number If Me!LockerNumber = 0 Then Me!LockerNumber = Nz(DMax("LockerNumber", "qry_MaxLocker")) + 1 End If End Sub qry_MaxLocker: SELECT Max(tbl_Locker.LockerNumber) AS MaxLocker FROM tbl_Locker; From hollisvj at pgdp.usec.com Thu Nov 5 08:15:34 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 5 Nov 2009 08:15:34 -0600 Subject: [AccessD] Check for Duplicates Message-ID: <703BDA18A87DFA4CB265A86F42E4178D091A8C84@c2k3exchange.pgdp.corp.usec.com> This should be easy, but I get confused on this all the time. I know why this doesn't work - it is because LockerNumber is a number field & not a text field. How do I make it work with a number field instead of a text field? Private Sub LockerNumber_BeforeUpdate(Cancel As Integer) Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.LockerNumber) Then OXK = Me.LockerNumber.Value stLinkCriteria = "[LockerNumber]=" & "'" & OXK & "'" 'Check for duplicate If DCount("LockerNumber", "tbl_Locker", _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Locker " _ & OXK & " has already been assigned." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing End Sub From sturner at mseco.com Thu Nov 5 08:17:09 2009 From: sturner at mseco.com (Steve Turner) Date: Thu, 5 Nov 2009 08:17:09 -0600 Subject: [AccessD] Update a field in a table In-Reply-To: <38c884770911042343q1769087dx294dd3aa84f8d126@mail.gmail.com> References: <31B7F3CC8CC4454F87FCBEFF82B618920340588A@PE2850-03.mseco.com> <38c884770911042343q1769087dx294dd3aa84f8d126@mail.gmail.com> Message-ID: <31B7F3CC8CC4454F87FCBEFF82B61892034058D2@PE2850-03.mseco.com> Thanks Paul we'll give her a try. I just wasn't sure how the update query would work or if I needed to use some VBA code to make it work. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Paul Hartland Sent: Thursday, November 05, 2009 1:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Update a field in a table Steve, Hope I haven't mis-understood you, but if the SQL Express table is linked into the A2K database, isnt it just a simple query: UPDATE [YourSQLExpressTable] INNER JOIN [YourA2kTable] ON [YourSQLExpressTable].EmpNo = [YourA2kTable].EmpNo SET [YourSQLExpressTable]![BW001]= [YourA2kTable]![BW001] Paul Hartland paul.hartland at fsmail.net 2009/11/4 Steve Turner > Hello list, > > I need some help on updating a field in a SQL Express table linked to > Access 2k. I have written a query that pulls the employee cost per hour > out of our accounting system and made a table in Access to store the > data of approximately 45 records with 7 fields. I have an SQL Express > table with approximately 146 records and 20 fields. In that table there > is one field I would like to update with the cost per hour from the > first table for each of the 45 records in that table. This should either > be an update query or a simple read the first file and update the second > for each record. Not being a code expert I can't find a good example of > how to do this. In both tables I have a text field with the EmpNo. And > the BW001(cost per hour)number field. The SQL Express table has ex > employees and contractors which won't change. Which way to go because > I'm not sure the update query would work as I would like it to. Help > Please. > > > > Steve A. Turner > Controller > Mid-South Engineering Co. Inc > P.O. Box 1399 > Hot Springs, AR 71902 > E-Mail: sturner at mseco.com and saturner at mseco.com > Phone: (501)321-2276 > Fax: (501)321-4750 > Cell: (501)282-7751 > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- Paul Hartland paul.hartland at googlemail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Nov 5 10:09:47 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 5 Nov 2009 11:09:47 -0500 Subject: [AccessD] Increment Numbers In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A8C80@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A8C80@c2k3exchange.pgdp.corp.usec.com> Message-ID: Virginia, The reason you always get a zero returned is that DMax("LockerNumber", "qry_MaxLocker") is looking for the field named "LockerNumber", but your query has given the field the alias "MaxLocker". So change the code to... Me!LockerNumber = Nz(DlookUp("MaxLocker", "qry_MaxLocker"),0) + 1 You don't need to use Dmax as the query only returns one record anyway. (though Dmax will still work) Note also that I have changed the Nz() function call slightly. Nz(Null) returns an empty string, whereas Nz(Null,0) returns the value zero. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Thursday, November 05, 2009 9:13 AM To: accessD at databaseadvisors.com Subject: [AccessD] Increment Numbers I want to increment locker numbers. I have LockerNumber which is a number field with a default value of 0 & format of 000. On the form I want new records to automatically increment the locker number. Using this code, I only get 000 for new records. I don't want to use the autonumber because there may be a case when they need to manually enter a number. Which will lead to another issue of duplicating numbers (I will ask about that in my next post). On form: Private Sub Form_BeforeInsert(Cancel As Integer) 'increment next locker number If Me!LockerNumber = 0 Then Me!LockerNumber = Nz(DMax("LockerNumber", "qry_MaxLocker")) + 1 End If End Sub qry_MaxLocker: SELECT Max(tbl_Locker.LockerNumber) AS MaxLocker FROM tbl_Locker; -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Nov 5 10:12:13 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 5 Nov 2009 11:12:13 -0500 Subject: [AccessD] Check for Duplicates In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A8C84@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A8C84@c2k3exchange.pgdp.corp.usec.com> Message-ID: Change... OXK = Me.LockerNumber.Value stLinkCriteria = "[LockerNumber]=" & "'" & OXK & "'" To... stLinkCriteria = "[LockerNumber]=" & Val(Me.LockerNumber) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Thursday, November 05, 2009 9:16 AM To: accessD at databaseadvisors.com Subject: [AccessD] Check for Duplicates This should be easy, but I get confused on this all the time. I know why this doesn't work - it is because LockerNumber is a number field & not a text field. How do I make it work with a number field instead of a text field? Private Sub LockerNumber_BeforeUpdate(Cancel As Integer) Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.LockerNumber) Then OXK = Me.LockerNumber.Value stLinkCriteria = "[LockerNumber]=" & "'" & OXK & "'" 'Check for duplicate If DCount("LockerNumber", "tbl_Locker", _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Locker " _ & OXK & " has already been assigned." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing End Sub -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Thu Nov 5 10:20:30 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 5 Nov 2009 10:20:30 -0600 Subject: [AccessD] Check for Duplicates Message-ID: <703BDA18A87DFA4CB265A86F42E4178D091A8D3F@c2k3exchange.pgdp.corp.usec.com> Boy, you are on a roll today! Thanks for the duplicates & increments. They both worked. From Lambert.Heenan at chartisinsurance.com Thu Nov 5 10:27:38 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 5 Nov 2009 11:27:38 -0500 Subject: [AccessD] Check for Duplicates In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A8D3F@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A8D3F@c2k3exchange.pgdp.corp.usec.com> Message-ID: You're welcome. :-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Thursday, November 05, 2009 11:21 AM To: accessd at databaseadvisors.com Subject: [AccessD] Check for Duplicates Boy, you are on a roll today! Thanks for the duplicates & increments. They both worked. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From John.Clark at niagaracounty.com Thu Nov 5 11:05:16 2009 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 05 Nov 2009 12:05:16 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4A4A4F135AFB43528508AFA476A2FB35@reubennx9500> References: <4AF1929D.167F.006B.0@niagaracounty.com> <4A4A4F135AFB43528508AFA476A2FB35@reubennx9500> Message-ID: <4AF2BF7C.167F.006B.0@niagaracounty.com> No sir, I did not. Man I am struggling w/this thing. I haven't been using access, for quite a while now, and I'm trying to remember stuff that I've done and it just isn't coming to me. The query, as Stuart gave, is working great...I will be adding the "<=" adjustment too...but I want to grab that result and put it into my form, and the record as well. I thought I knew exactly how to do this, but the VBA doesn't seem to like that "TOP" command at all. I started down the path of creating a SQL string and running docmd.runSQL, but that door closed too...I might go back to this, because I think I was making mistakes w/it. >>> "Reuben Cummings" 11/5/2009 8:58 AM >>> John, did you get the following request answered? Reuben Cummings GFC, LLC 812.523.1017 > > I'm sorry to ask this...but I haven't written anything, aside > from one very miniscule little program, in about two years, > and apparently the magic is gone...I am lost. This code that > Stuart offered up is exactly what I was looking to do, > however, I'd like to do it from a form and what I thought I > needed to do is not working. > > I want to (A) have the rate come up, once a given date is > entered, and be there already when an old record is > accessed...I want to be able to say, "this was entered on > and this was the rate at that time." And, (B) I want > it to multiply the number of miles w/this rate and present a > total. And (C) I want to do pick the going fee out of a > similar table and add this to the equation. I think if I can > do one of these, I can do them all. > > How can I grab this, when a new date is entered? > > Here is the code I am using, in the query, which works... > > SELECT TOP 1 tblMileageRate.datDate, tblMileageRate.curMRate > 'FROM tblMileageRate > 'WHERE (((tblMileageRate.datDate) < [Date Entered])) > 'ORDER BY tblMileageRate.datDate DESC; > From accessd at gfconsultants.com Thu Nov 5 12:55:16 2009 From: accessd at gfconsultants.com (Reuben Cummings) Date: Thu, 5 Nov 2009 13:55:16 -0500 Subject: [AccessD] Query question ... Finding the proper rate/per date In-Reply-To: <4AF2BF7C.167F.006B.0@niagaracounty.com> Message-ID: <68CD7CBD86F14AAEB8DB8A52D18BF43F@reubennx9500> I think I would do this... 1. I would write a function that figures your final amount you are after. In that function it makes sure that the miles are entered and a date has been entered (which means the proper rate has been found). If these two conditions are not true then exit the function. If true run the calculation and place the value in the proper text box on the form. The function will be called by steps in 2 and 3 below. You can either pass the rate and miles to the new function or have the new function get those numbers from the form if you write the function within that form. 2. On the after_update event of the date entry box I would open a recordset using that SQL to get the rate. For simplicity for now, I would place that number into a text box on the form. Call function above and if conditions are true you get your amount - if not, you get nothing 3. On the after_update event of the mileage entry box do call the function in #1. TOP should work fine in a recordset. Reuben Cummings GFC, LLC 812.523.1017 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Clark > Sent: Thursday, November 05, 2009 12:05 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Query question ... Finding the proper > rate/per date > > > No sir, I did not. Man I am struggling w/this thing. I > haven't been using access, for quite a while now, and I'm > trying to remember stuff that I've done and it just isn't > coming to me. The query, as Stuart gave, is working great...I > will be adding the "<=" adjustment too...but I want to grab > that result and put it into my form, and the record as well. > > I thought I knew exactly how to do this, but the VBA doesn't > seem to like that "TOP" command at all. I started down the > path of creating a SQL string and running docmd.runSQL, but > that door closed too...I might go back to this, because I > think I was making mistakes w/it. > > >>> "Reuben Cummings" 11/5/2009 > 8:58 AM >>> > John, did you get the following request answered? > > Reuben Cummings > GFC, LLC > 812.523.1017 > > > > > I'm sorry to ask this...but I haven't written anything, aside > > from one very miniscule little program, in about two years, > > and apparently the magic is gone...I am lost. This code that > > Stuart offered up is exactly what I was looking to do, > > however, I'd like to do it from a form and what I thought I > > needed to do is not working. > > > > I want to (A) have the rate come up, once a given date is > > entered, and be there already when an old record is > > accessed...I want to be able to say, "this was entered on > > and this was the rate at that time." And, (B) I want > > it to multiply the number of miles w/this rate and present a > > total. And (C) I want to do pick the going fee out of a > > similar table and add this to the equation. I think if I can > > do one of these, I can do them all. > > > > How can I grab this, when a new date is entered? > > > > Here is the code I am using, in the query, which works... > > > > SELECT TOP 1 tblMileageRate.datDate, tblMileageRate.curMRate > > 'FROM tblMileageRate > > 'WHERE (((tblMileageRate.datDate) < [Date Entered])) > > 'ORDER BY tblMileageRate.datDate DESC; > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Thu Nov 5 13:52:10 2009 From: adtp at airtelmail.in (A.D.Tejpal) Date: Fri, 6 Nov 2009 01:22:10 +0530 Subject: [AccessD] Query question ... Finding the proper rate/per date References: <4AF1929D.167F.006B.0@niagaracounty.com><4A4A4F135AFB43528508AFA476A2FB35@reubennx9500> <4AF2BF7C.167F.006B.0@niagaracounty.com> Message-ID: <01fc01ca5e51$c4b09830$a65fa27a@personald6374f> John, My sample db named Report_PseudoGraphs might be of interest to you. It is in Access 2000 file format and is available at Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 On the main switchboard, command button captioned "Monthly Salary As Per Scales Notified Periodically" takes you to form F_Salary that displays monthly salary for the given employee, as per scales notified from time to time. For a given month and year, the most recent scale notification for the employee in question upto that month year becomes applicable. The notified salary scales are shown in the first subform while the actual applicable salary is shown in the adjacent subform. A report covering above details gets generated by clicking the appropriate command button. The report includes graphical representation of month-wise salary for the given employee. Whenever there is a change in salary level, it is accompanied by a change in back color of value column (in graphical version) so as to facilitate visual appreciation. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: John Clark To: 'Access Developers discussion and problem solving' Sent: Thursday, November 05, 2009 22:35 Subject: Re: [AccessD] Query question ... Finding the proper rate/per date No sir, I did not. Man I am struggling w/this thing. I haven't been using access, for quite a while now, and I'm trying to remember stuff that I've done and it just isn't coming to me. The query, as Stuart gave, is working great...I will be adding the "<=" adjustment too...but I want to grab that result and put it into my form, and the record as well. I thought I knew exactly how to do this, but the VBA doesn't seem to like that "TOP" command at all. I started down the path of creating a SQL string and running docmd.runSQL, but that door closed too...I might go back to this, because I think I was making mistakes w/it. >>> "Reuben Cummings" 11/5/2009 8:58 AM >>> John, did you get the following request answered? Reuben Cummings GFC, LLC 812.523.1017 > > I'm sorry to ask this...but I haven't written anything, aside > from one very miniscule little program, in about two years, > and apparently the magic is gone...I am lost. This code that > Stuart offered up is exactly what I was looking to do, > however, I'd like to do it from a form and what I thought I > needed to do is not working. > > I want to (A) have the rate come up, once a given date is > entered, and be there already when an old record is > accessed...I want to be able to say, "this was entered on > and this was the rate at that time." And, (B) I want > it to multiply the number of miles w/this rate and present a > total. And (C) I want to do pick the going fee out of a > similar table and add this to the equation. I think if I can > do one of these, I can do them all. > > How can I grab this, when a new date is entered? > > Here is the code I am using, in the query, which works... > > SELECT TOP 1 tblMileageRate.datDate, tblMileageRate.curMRate > 'FROM tblMileageRate > 'WHERE (((tblMileageRate.datDate) < [Date Entered])) > 'ORDER BY tblMileageRate.datDate DESC; From edzedz at comcast.net Thu Nov 5 14:22:23 2009 From: edzedz at comcast.net (Edward Zuris) Date: Thu, 5 Nov 2009 13:22:23 -0700 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <00a401ca5d71$36e73490$a4b59db0$@spb.ru> Message-ID: <000701ca5e55$af84d670$5bdea8c0@edz1> Yes the author is trying to be cute. But he is a good programmer. I hope there is a C# in the message. The little table you included will help me to get started. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, November 04, 2009 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Edward, Sorry, I was out for several days, and I have found your Access-D message just now. This "code" is a way to transliterate English using Cyrillic - it could be decoded but AFAIS comments to this "code" seems to be a bit rude "moralistic reasoning" (authors of this "code" could be I guess young and "silly", or very conservative old people): Here is a translation table I have just found: A - ? B - ? C - ?, ?P D - ? E - ? F - ? G - ? H - H? I - ? J - ?? K - ? L - ? M - ? N - ? O - ? P - ? Q - Q R - P S - C T - T U - ? V - ? W - ?? X - X Y - ? Z - ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, November 01, 2009 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cyrillic to English character translation Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? References: <00a401ca5d71$36e73490$a4b59db0$@spb.ru> <000701ca5e55$af84d670$5bdea8c0@edz1> Message-ID: <011b01ca5e5b$38864940$a992dbc0$@spb.ru> Yes, and he is probably a self-taught C# programmer who learned C# quite some time ago but who is very busy nowadays working on customers' projects and/or participating in "hot" political discussions... :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Thursday, November 05, 2009 11:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Yes the author is trying to be cute. But he is a good programmer. I hope there is a C# in the message. The little table you included will help me to get started. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, November 04, 2009 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Edward, Sorry, I was out for several days, and I have found your Access-D message just now. This "code" is a way to transliterate English using Cyrillic - it could be decoded but AFAIS comments to this "code" seems to be a bit rude "moralistic reasoning" (authors of this "code" could be I guess young and "silly", or very conservative old people): Here is a translation table I have just found: A - ? B - ? C - ?, ?P D - ? E - ? F - ? G - ? H - H? I - ? J - ?? K - ? L - ? M - ? N - ? O - ? P - ? Q - Q R - P S - C T - T U - ? V - ? W - ?? X - X Y - ? Z - ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, November 01, 2009 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cyrillic to English character translation Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? Message-ID: <000001ca5e76$24effd20$5bdea8c0@edz1> Yes, he is a self taught C# programmer. I am self taught myself, but not in C#. We are both are from New Mexico, the southeast coiner. Where there isn't a lot of opportunity unless you teach yourself a skill and leave. We started our careers together back in 1973. He went from development to management a few years ago. He is now managing several groups of programmers. Some in the Ukraine, a smaller group in Russia, and there is some other group, I forget where. Even though we are from similar backgrounds we have different politics. I try to ignore his comments and study his code. So is there any C# programming code in the message, or is he pulling my leg ? Anyway thanks for your help. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, November 05, 2009 2:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Yes, and he is probably a self-taught C# programmer who learned C# quite some time ago but who is very busy nowadays working on customers' projects and/or participating in "hot" political discussions... :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Thursday, November 05, 2009 11:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Yes the author is trying to be cute. But he is a good programmer. I hope there is a C# in the message. The little table you included will help me to get started. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, November 04, 2009 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Edward, Sorry, I was out for several days, and I have found your Access-D message just now. This "code" is a way to transliterate English using Cyrillic - it could be decoded but AFAIS comments to this "code" seems to be a bit rude "moralistic reasoning" (authors of this "code" could be I guess young and "silly", or very conservative old people): Here is a translation table I have just found: A - ? B - ? C - ?, ?P D - ? E - ? F - ? G - ? H - H? I - ? J - ?? K - ? L - ? M - ? N - ? O - ? P - ? Q - Q R - P S - C T - T U - ? V - ? W - ?? X - X Y - ? Z - ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, November 01, 2009 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cyrillic to English character translation Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? For ages I have been using a SHA1 hash of my name / address fields to create what I call hashfields. I feed Addr + zip5 + zip4 into SHA1 and store the result into HashAddr - varbool(200). Add last name to that string and feed to SHA1 to create HashFamily. And finally add first name to that string and feed to Sha1 to create HashPerson. I have been pulling my hair out trying to discover why a simple join on those fields would yield a different number of records than a join on my hash fields. IOW join Addr, Zip5, Zip4 and you pull X records but join HashAddr and you get Y records. It turns out that a join on the fields themselves ignore text case. SHA1 does not. Thus to a multifield join Twin Pines Drive and twin pines drive are identical but SHA1 returns a different hash string. Sigh! At least the mystery is solved. -- John W. Colby www.ColbyConsulting.com From robert at webedb.com Thu Nov 5 21:58:15 2009 From: robert at webedb.com (Robert Stewart) Date: Thu, 05 Nov 2009 21:58:15 -0600 Subject: [AccessD] Increment Numbers In-Reply-To: References: Message-ID: <200911060358.nA63wRZ9015619@databaseadvisors.com> Add a table of locker numbers with records in them. LockerNumber number, integer IsUsed Yes/no Get the first one not used. SELECT TOP 1 * FROM tlkpLockerNumbers WHERE IsUsed = 0 When you use it, change the bit column to true. This will allow for reuse of them also. At 12:00 PM 11/5/2009, you wrote: >Date: Thu, 5 Nov 2009 08:13:03 -0600 >From: "Hollis, Virginia" >Subject: [AccessD] Increment Numbers >To: >Message-ID: > ><703BDA18A87DFA4CB265A86F42E4178D091A8C80 at c2k3exchange.pgdp.corp.usec.com> > >Content-Type: text/plain; charset="us-ascii" > >I want to increment locker numbers. I have LockerNumber which is a >number field with a default value of 0 & format of 000. On the form I >want new records to automatically increment the locker number. Using >this code, I only get 000 for new records. I don't want to use the >autonumber because there may be a case when they need to manually enter >a number. Which will lead to another issue of duplicating numbers (I >will ask about that in my next post). > > > >On form: > >Private Sub Form_BeforeInsert(Cancel As Integer) > >'increment next locker number > > If Me!LockerNumber = 0 Then > > Me!LockerNumber = Nz(DMax("LockerNumber", "qry_MaxLocker")) + 1 > > End If > >End Sub > > > >qry_MaxLocker: > >SELECT Max(tbl_Locker.LockerNumber) AS MaxLocker > >FROM tbl_Locker; > From shamil at smsconsulting.spb.ru Fri Nov 6 06:48:49 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 6 Nov 2009 15:48:49 +0300 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <000001ca5e76$24effd20$5bdea8c0@edz1> References: <011b01ca5e5b$38864940$a992dbc0$@spb.ru> <000001ca5e76$24effd20$5bdea8c0@edz1> Message-ID: <012601ca5edf$7e0b05d0$7a211170$@spb.ru> Hi Ed, Yes, there is some C# code there - the code used to encode original code AFAIS - I have sent it already to you privately, below in P.S. this code is also enclosed. There should also be an encoding text file. Yes, he is a self-taught C# programmer with Assembler and C/C++ previous experience I guess. The C# code can be made even shorter, and not so "tricky". (He is busy with his teams - no time to learn new C# features probably.) "Making code tricky" is considered "not so good taste" nowadays according mainly to Martin Fawler works and findings. Well, maybe that was his intention to make the code so "tricky" and therefore even more complicated for you to decipher... Learning C# programming from this coding style could be not easy for beginners. And again it's more C/C++ than C# because some high level .NET Framework's Basic Class Library classes and methods weren't used. Thank you. -- Shamil P.S. using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Diagnostics; namespace Translator { class Program { static void Main(string[] args) { Interociter xlt = new Interociter(); string t; using (StreamReader sr = new StreamReader("c:\test.txt")) t = sr.ReadToEnd(); using (StreamWriter sw = new StreamWriter("c:\\outputfile.txt")) for (int i = 0; i < t.Length; i++) sw.Write(xlt.Xlate(t.Substring(i, 1).ToUpper())); } } class Interociter : SortedList { public Interociter() { string[] alphabet; using (StreamReader sr = new StreamReader("c:\\translatetable.txt")) alphabet = sr.ReadToEnd().Split(new char[] { '\n' }); for (int i = 0; i < alphabet.Length - 1; i++) base.Add(alphabet[i].Split(new char[] { '\t'})[1].Substring(0, 1), alphabet[i].Split(new char[] { '\t' })[0]); } public string Xlate(string s) { if (base.ContainsKey(s)) return base[s]; else return s; } } } -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 06, 2009 3:13 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Yes, he is a self taught C# programmer. I am self taught myself, but not in C#. We are both are from New Mexico, the southeast coiner. Where there isn't a lot of opportunity unless you teach yourself a skill and leave. We started our careers together back in 1973. He went from development to management a few years ago. He is now managing several groups of programmers. Some in the Ukraine, a smaller group in Russia, and there is some other group, I forget where. Even though we are from similar backgrounds we have different politics. I try to ignore his comments and study his code. So is there any C# programming code in the message, or is he pulling my leg ? Anyway thanks for your help. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, November 05, 2009 2:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Yes, and he is probably a self-taught C# programmer who learned C# quite some time ago but who is very busy nowadays working on customers' projects and/or participating in "hot" political discussions... :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Thursday, November 05, 2009 11:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Yes the author is trying to be cute. But he is a good programmer. I hope there is a C# in the message. The little table you included will help me to get started. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, November 04, 2009 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Edward, Sorry, I was out for several days, and I have found your Access-D message just now. This "code" is a way to transliterate English using Cyrillic - it could be decoded but AFAIS comments to this "code" seems to be a bit rude "moralistic reasoning" (authors of this "code" could be I guess young and "silly", or very conservative old people): Here is a translation table I have just found: A - ? B - ? C - ?, ?P D - ? E - ? F - ? G - ? H - H? I - ? J - ?? K - ? L - ? M - ? N - ? O - ? P - ? Q - Q R - P S - C T - T U - ? V - ? W - ?? X - X Y - ? Z - ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, November 01, 2009 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cyrillic to English character translation Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? References: <518B90FC1A12496AB21976C08EFF65D7@reubennx9500>, <4ad35bdf.1701d00a.47e3.ffffc82d@mx.google.com>, <013501ca4bf3$b87d5c80$05000100@denzilnote> <4AD467A0.3937.A1BBC41@stuart.lexacorp.com.pg><013601ca4c04$260b5ee0$05000100@denzilnote> <4AD47E78.4080109@colbyconsulting.com> Message-ID: <781809D0CBCA4D4C8599423EC952DF75AE6EBC@ntovmail02.ad.otto.de> Hallo all, I have a small DB (A2K) on our Network. In the DB several forms have context menus (right mouse click) We copied the DB for someone to use on their notebook, which has Access 2007 on it. Problem: when he uses the right mouse he gets the standard Access context menu (ie RS A-Z, Z-A etc) Any ideas about changing the settings on his notebook anyone? TIA Alun From Alun.Garraway at otto.de Fri Nov 6 08:21:08 2009 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Fri, 6 Nov 2009 15:21:08 +0100 Subject: [AccessD] Context Menus in A2K7? In-Reply-To: <4AD47E78.4080109@colbyconsulting.com> References: <518B90FC1A12496AB21976C08EFF65D7@reubennx9500>, <4ad35bdf.1701d00a.47e3.ffffc82d@mx.google.com>, <013501ca4bf3$b87d5c80$05000100@denzilnote> <4AD467A0.3937.A1BBC41@stuart.lexacorp.com.pg><013601ca4c04$260b5ee0$05000100@denzilnote> <4AD47E78.4080109@colbyconsulting.com> Message-ID: <781809D0CBCA4D4C8599423EC952DF75AE6EC2@ntovmail02.ad.otto.de> Sorry have to resend this, as the list was still disabled from holidays, sorry :-( Hallo all, I have a small DB (A2K) on our Network. In the DB several forms have context menus (right mouse click) We copied the DB for someone to use on their notebook, which has Access 2007 on it. Problem: when he uses the right mouse he gets the standard Access context menu (ie RS A-Z, Z-A etc) Any ideas about changing the settings on his notebook anyone? TIA Alun From kismert at gmail.com Fri Nov 6 09:17:06 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Fri, 6 Nov 2009 09:17:06 -0600 Subject: [AccessD] Lebans Retired Message-ID: <7c7841600911060717l72cff93qdc80cb9cf3811e66@mail.gmail.com> Maybe someone else mentioned it, but Stephan Lebans has officially retired from Access. See: http://www.lebans.com/ It's probably a mistake to read too much into this, but I think it is another indication that there are greener development pastures out there. Access may not be on the outs as a professional development platform, but you may have to accept that it peaked some time ago. -Ken From Gustav at cactus.dk Fri Nov 6 09:29:49 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 06 Nov 2009 16:29:49 +0100 Subject: [AccessD] Lebans Retired Message-ID: Hi Ken So what "greener development pasture" did he turn to? /gustav >>> kismert at gmail.com 06-11-2009 16:17 >>> Maybe someone else mentioned it, but Stephan Lebans has officially retired from Access. See: http://www.lebans.com/ It's probably a mistake to read too much into this, but I think it is another indication that there are greener development pastures out there. Access may not be on the outs as a professional development platform, but you may have to accept that it peaked some time ago. -Ken From edzedz at comcast.net Fri Nov 6 09:54:31 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 6 Nov 2009 08:54:31 -0700 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <012601ca5edf$7e0b05d0$7a211170$@spb.ru> Message-ID: <001a01ca5ef9$6e5b8640$5bdea8c0@edz1> Thanks Shamil for the program code. My friend likes to be tricky. But is most likely due too how his mind works, as opposed to ill intent. And I can usually untangle the code. He has done some Java, some "C", and we both were assembler programmers for awhile. I don't think he was into C++, but I don't know for sure. There was a python phase in there as well. Most of his C# work was using the 2003 version. And I have the enterprise C# 2003 compiler. Yet C# still escapes me. People say my C code looks like assembler. Thanks for letting me know about Martin Fowler. I agree with making code tricky is considered bad taste. I have looked at Martin Fowler web site already. This book of his looks interesting. Refactoring: Improving the Design of Existing Code ISBN-10: 0201485672 I am always fixing other people's code. Any good C# books you can tell me about will be helpful. By the way. . . It seems my private message didn't make it to you. And your private message to me hasn't arrived. Once again Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, November 06, 2009 5:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Ed, Yes, there is some C# code there - the code used to encode original code AFAIS - I have sent it already to you privately, below in P.S. this code is also enclosed. There should also be an encoding text file. Yes, he is a self-taught C# programmer with Assembler and C/C++ previous experience I guess. The C# code can be made even shorter, and not so "tricky". (He is busy with his teams - no time to learn new C# features probably.) "Making code tricky" is considered "not so good taste" nowadays according mainly to Martin Fawler works and findings. Well, maybe that was his intention to make the code so "tricky" and therefore even more complicated for you to decipher... Learning C# programming from this coding style could be not easy for beginners. And again it's more C/C++ than C# because some high level .NET Framework's Basic Class Library classes and methods weren't used. Thank you. -- Shamil P.S. using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Diagnostics; namespace Translator { class Program { static void Main(string[] args) { Interociter xlt = new Interociter(); string t; using (StreamReader sr = new StreamReader("c:\test.txt")) t = sr.ReadToEnd(); using (StreamWriter sw = new StreamWriter("c:\\outputfile.txt")) for (int i = 0; i < t.Length; i++) sw.Write(xlt.Xlate(t.Substring(i, 1).ToUpper())); } } class Interociter : SortedList { public Interociter() { string[] alphabet; using (StreamReader sr = new StreamReader("c:\\translatetable.txt")) alphabet = sr.ReadToEnd().Split(new char[] { '\n' }); for (int i = 0; i < alphabet.Length - 1; i++) base.Add(alphabet[i].Split(new char[] { '\t'})[1].Substring(0, 1), alphabet[i].Split(new char[] { '\t' })[0]); } public string Xlate(string s) { if (base.ContainsKey(s)) return base[s]; else return s; } } } -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 06, 2009 3:13 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Yes, he is a self taught C# programmer. I am self taught myself, but not in C#. We are both are from New Mexico, the southeast coiner. Where there isn't a lot of opportunity unless you teach yourself a skill and leave. We started our careers together back in 1973. He went from development to management a few years ago. He is now managing several groups of programmers. Some in the Ukraine, a smaller group in Russia, and there is some other group, I forget where. Even though we are from similar backgrounds we have different politics. I try to ignore his comments and study his code. So is there any C# programming code in the message, or is he pulling my leg ? Anyway thanks for your help. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, November 05, 2009 2:02 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Yes, and he is probably a self-taught C# programmer who learned C# quite some time ago but who is very busy nowadays working on customers' projects and/or participating in "hot" political discussions... :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Thursday, November 05, 2009 11:22 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Yes the author is trying to be cute. But he is a good programmer. I hope there is a C# in the message. The little table you included will help me to get started. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, November 04, 2009 10:07 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Edward, Sorry, I was out for several days, and I have found your Access-D message just now. This "code" is a way to transliterate English using Cyrillic - it could be decoded but AFAIS comments to this "code" seems to be a bit rude "moralistic reasoning" (authors of this "code" could be I guess young and "silly", or very conservative old people): Here is a translation table I have just found: A - ? B - ? C - ?, ?P D - ? E - ? F - ? G - ? H - H? I - ? J - ?? K - ? L - ? M - ? N - ? O - ? P - ? Q - Q R - P S - C T - T U - ? V - ? W - ?? X - X Y - ? Z - ? -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Sunday, November 01, 2009 8:20 PM To: accessd at databaseadvisors.com Subject: [AccessD] Cyrillic to English character translation Does anyone have a Cyrillic to English character translation VBA snippet I could please study ? I did some ASCII and EBCDIC translation some 25 years ago. However, Unicode is something I am new to and wonder how that would work. Here is what I am hopeing to convert to English. I am told this is not Russian, but American English displayed in Cyrillic. It should be a C# program, plus some snide comments. Any suggestions ? Thanks. =================================================== Start =================================================== ?? ???CT ??P ??? ? ??????? T? C?? H???? ???? ????C ?? ???? ?'? H???? T? ??P?T? T? ?????PT ?P?P????? T? ?????CH? ??? ????-??PC?. ?'? P????? Q??T? CT????? TH??T ? ??????? ?P??P????P C??H? ?C ???PC??? ???????'T H???? ??????? TH??C C???T??? T? TH?? ?P????? ? ???? T??? ???. ??????? ? ???C ???? T? ?? ?T ?? ???? ????C: ?C??? C?CT??; ?C??? C?CT??.??????T???C.????P??; ?C??? C?CT??.T?XT; ?C??? C?CT??.??; ?C??? C?CT??.??????CT??C; ????C???? TP??C??T?P { ???CC ?P??P?? { CT?T?? ???? ????(CTP???[] ?P?C) { ??T?P???T?P X?T = ???? ??T?P???T?P(); CTP??? T; ?C??? (CTP???P????P CP = ???? CTP???P????P("?:\T?CT.TXT")) T = CP.P???T????(); ?C???(CTP?????P?T?P C?? = ???? CTP?????P?T?P("?:\\??T??T????.TXT")) ??P(??T ?=0; ? { ?????? ??T?P???T?P() { CTP???[] ???H????T; ?C???(CTP???P????P CP = ???? CTP???P????P("?:\\TP??C??T?T????.TXT")) ???H????T = CP.P???T????().C???T(???? ?H??P[] {'\?'}); ??P(??T ?=0;? References: Message-ID: <4af45953.0506d00a.7c4b.2622@mx.google.com> > > A man in Scotland calls his son in London the day before Christmas Eve and > says, "I hate to ruin your day but I have to tell you that your mother and > I are divorcing; forty-five years of misery is enough." > > 'Dad, what are you talking about?' the son screams. > "We can't stand the sight of each other any longer" the father says. > "We're sick of each other and I'm sick of talking about this, so you call > your sister in Leeds and tell her." > Franticly, the son calls his sister, who explodes on the phone. "Like hell > they're getting divorced!" she shouts, "I'll take care of this!" > She calls Scotland immediately, and screams at her father "You are NOT > getting divorced. Don't do a single thing until I get there. I'm calling my > brother back, and we'll both be there tomorrow. Until then, don't do a thing, > DO YOU HEAR ME?" and hangs up. > The old man hangs up his phone and turns to his wife. 'Sorted! They're > coming for Christmas - and they're paying their own way.' From shamil at smsconsulting.spb.ru Fri Nov 6 11:32:38 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 6 Nov 2009 20:32:38 +0300 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <001a01ca5ef9$6e5b8640$5bdea8c0@edz1> References: <012601ca5edf$7e0b05d0$7a211170$@spb.ru> <001a01ca5ef9$6e5b8640$5bdea8c0@edz1> Message-ID: <014a01ca5f07$2408d990$6c1a8cb0$@spb.ru> Hi Edward, I have sent you a private test message. Yes, "Refactoring: Improving the Design of Existing Code" by Martin Fawler is a "must read" classic. I have only two C# books, which I'm trying to read from time to time (no time to read). 1) Effective C#: 50 Specific Ways to Improve Your C# By Bill Wagner 2) C# 3.0 in a Nutshell, 3rd Edition by Joseph Albahari and Ben Albahari There should be C# 4.0 editions to appear soon - better use them. You can get (at least) C# 2008 Express (and soon C#2010 Express) - they are free. <<< My friend likes to be tricky. But is most likely due too how his mind works, as opposed to ill intent. >>> Yes, I see - been there, done that, still doing it that way sometimes (not easy to escape "tricky coding habit") but the fact is that writing simple clean code is more complex business than writing "tricky code", and clean simple code is better from many points of view... <<< It seems my private message didn't make it to you. And your private message to me hasn't arrived. >>> Edward, I have got your private message, and I answered within one hour. Have a look at your e-mail box - it could have been moved to spam(?). Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 06, 2009 6:55 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Thanks Shamil for the program code. My friend likes to be tricky. But is most likely due too how his mind works, as opposed to ill intent. And I can usually untangle the code. He has done some Java, some "C", and we both were assembler programmers for awhile. I don't think he was into C++, but I don't know for sure. There was a python phase in there as well. Most of his C# work was using the 2003 version. And I have the enterprise C# 2003 compiler. Yet C# still escapes me. People say my C code looks like assembler. Thanks for letting me know about Martin Fowler. I agree with making code tricky is considered bad taste. I have looked at Martin Fowler web site already. This book of his looks interesting. Refactoring: Improving the Design of Existing Code ISBN-10: 0201485672 I am always fixing other people's code. Any good C# books you can tell me about will be helpful. By the way. . . It seems my private message didn't make it to you. And your private message to me hasn't arrived. Once again Thanks. <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4579 (20091106) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From kismert at gmail.com Fri Nov 6 12:19:10 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Fri, 6 Nov 2009 12:19:10 -0600 Subject: [AccessD] Lebans Retired Message-ID: <7c7841600911061019y4398926o50c17b0ded481d1d@mail.gmail.com> Gustav Brock: >So what "greener development pasture" did he turn to? Don't know. He didn't say on his site. I doubt he's renounced all things technological, and he still has to feed his family. -Ken From edzedz at comcast.net Fri Nov 6 12:18:24 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 6 Nov 2009 11:18:24 -0700 Subject: [AccessD] Cyrillic to English character translation In-Reply-To: <014a01ca5f07$2408d990$6c1a8cb0$@spb.ru> Message-ID: <000001ca5f0d$8ac154e0$5bdea8c0@edz1> I let all spam in and delete such, one at a time. Sometimes there is something there that is interesting. I got a free printer that way. None of your private messages made it in. Maybe it is my ISP. I'll check if they are doing something. In the mean time, I have a second email address -> z505ed at yahoo.com Lets see if the Yahoo account works. I have tricky coder habit as well, but since some of my work is maintained by junior programmers, I now try to create straight forward clean code. Easier said than done. When in a hurry, the old habits come back. I'll check out the Bill Wagner book. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, November 06, 2009 10:33 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Cyrillic to English character translation Hi Edward, I have sent you a private test message. Yes, "Refactoring: Improving the Design of Existing Code" by Martin Fawler is a "must read" classic. I have only two C# books, which I'm trying to read from time to time (no time to read). 1) Effective C#: 50 Specific Ways to Improve Your C# By Bill Wagner 2) C# 3.0 in a Nutshell, 3rd Edition by Joseph Albahari and Ben Albahari There should be C# 4.0 editions to appear soon - better use them. You can get (at least) C# 2008 Express (and soon C#2010 Express) - they are free. <<< My friend likes to be tricky. But is most likely due too how his mind works, as opposed to ill intent. >>> Yes, I see - been there, done that, still doing it that way sometimes (not easy to escape "tricky coding habit") but the fact is that writing simple clean code is more complex business than writing "tricky code", and clean simple code is better from many points of view... <<< It seems my private message didn't make it to you. And your private message to me hasn't arrived. >>> Edward, I have got your private message, and I answered within one hour. Have a look at your e-mail box - it could have been moved to spam(?). Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 06, 2009 6:55 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Cyrillic to English character translation Thanks Shamil for the program code. My friend likes to be tricky. But is most likely due too how his mind works, as opposed to ill intent. And I can usually untangle the code. He has done some Java, some "C", and we both were assembler programmers for awhile. I don't think he was into C++, but I don't know for sure. There was a python phase in there as well. Most of his C# work was using the 2003 version. And I have the enterprise C# 2003 compiler. Yet C# still escapes me. People say my C code looks like assembler. Thanks for letting me know about Martin Fowler. I agree with making code tricky is considered bad taste. I have looked at Martin Fowler web site already. This book of his looks interesting. Refactoring: Improving the Design of Existing Code ISBN-10: 0201485672 I am always fixing other people's code. Any good C# books you can tell me about will be helpful. By the way. . . It seems my private message didn't make it to you. And your private message to me hasn't arrived. Once again Thanks. <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4579 (20091106) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Fri Nov 6 12:38:43 2009 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 07 Nov 2009 07:38:43 +1300 Subject: [AccessD] Lebans Retired In-Reply-To: References: Message-ID: It is definitely a mistake to read anything into this. Stephen's interest in Access has always been a sideline hobby, and he has not primarily been a developer, so the idea of "greener development pasture" is not applicable. You will notice that he has not been actively involved in adding to that site for a long time now. I am not in a position to say what direction his life has turned now, but I believe this will emerge on his website in due course. Regards Steve -------------------------------------------------- From: "Gustav Brock" Sent: Saturday, November 07, 2009 4:29 AM To: Subject: Re: [AccessD] Lebans Retired > Hi Ken > > So what "greener development pasture" did he turn to? > > /gustav > >>>> kismert at gmail.com 06-11-2009 16:17 >>> > Maybe someone else mentioned it, but Stephan Lebans has officially retired > from Access. See: http://www.lebans.com/ > > It's probably a mistake to read too much into this, but I think it is > another indication that there are greener development pastures out there. > > Access may not be on the outs as a professional development platform, but > you may have to accept that it peaked some time ago. > From adtp at airtelmail.in Fri Nov 6 13:29:33 2009 From: adtp at airtelmail.in (A.D.Tejpal) Date: Sat, 7 Nov 2009 00:59:33 +0530 Subject: [AccessD] Lebans Retired References: Message-ID: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> Gustav, Ken, It is learnt that he intends to concentrate on writing science fiction. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, November 06, 2009 20:59 Subject: Re: [AccessD] Lebans Retired Hi Ken So what "greener development pasture" did he turn to? /gustav >>> kismert at gmail.com 06-11-2009 16:17 >>> Maybe someone else mentioned it, but Stephan Lebans has officially retired from Access. See: http://www.lebans.com/ It's probably a mistake to read too much into this, but I think it is another indication that there are greener development pastures out there. Access may not be on the outs as a professional development platform, but you may have to accept that it peaked some time ago. -Ken From accessd at shaw.ca Fri Nov 6 13:34:04 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 Nov 2009 11:34:04 -0800 Subject: [AccessD] OT: Friday Joke - Canny eh? In-Reply-To: <4af45953.0506d00a.7c4b.2622@mx.google.com> References: <4af45953.0506d00a.7c4b.2622@mx.google.com> Message-ID: Hi MaX: Perfect. :-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Friday, November 06, 2009 9:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT: Friday Joke - Canny eh? > > A man in Scotland calls his son in London the day before Christmas Eve and > says, "I hate to ruin your day but I have to tell you that your mother and > I are divorcing; forty-five years of misery is enough." > > 'Dad, what are you talking about?' the son screams. > "We can't stand the sight of each other any longer" the father says. > "We're sick of each other and I'm sick of talking about this, so you call > your sister in Leeds and tell her." > Franticly, the son calls his sister, who explodes on the phone. "Like hell > they're getting divorced!" she shouts, "I'll take care of this!" > She calls Scotland immediately, and screams at her father "You are NOT > getting divorced. Don't do a single thing until I get there. I'm calling my > brother back, and we'll both be there tomorrow. Until then, don't do a thing, > DO YOU HEAR ME?" and hangs up. > The old man hangs up his phone and turns to his wife. 'Sorted! They're > coming for Christmas - and they're paying their own way.' -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Nov 6 13:38:13 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 Nov 2009 11:38:13 -0800 Subject: [AccessD] Lebans Retired In-Reply-To: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> Message-ID: <031FCEE71EC34DB2A5EA59DFA7DE8F13@creativesystemdesigns.com> Hi A.D. Tejpal: Probably something like "Microsoft converts Access 2011 to .Net". ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Friday, November 06, 2009 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans Retired Gustav, Ken, It is learnt that he intends to concentrate on writing science fiction. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, November 06, 2009 20:59 Subject: Re: [AccessD] Lebans Retired Hi Ken So what "greener development pasture" did he turn to? /gustav >>> kismert at gmail.com 06-11-2009 16:17 >>> Maybe someone else mentioned it, but Stephan Lebans has officially retired from Access. See: http://www.lebans.com/ It's probably a mistake to read too much into this, but I think it is another indication that there are greener development pastures out there. Access may not be on the outs as a professional development platform, but you may have to accept that it peaked some time ago. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Fri Nov 6 14:29:06 2009 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 07 Nov 2009 09:29:06 +1300 Subject: [AccessD] Lebans Retired In-Reply-To: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> Message-ID: <1C7E77671F5E4A7CBF2CD571F41A6130@stevePC> I thought this would be confidential, which is why I didn't mention it. But yes, being a science fiction author has been a dream of Stephen's for many years, and now he is pursuing it full on. Regards Steve -------------------------------------------------- From: "A.D.Tejpal" Sent: Saturday, November 07, 2009 8:29 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Lebans Retired > Gustav, Ken, > > It is learnt that he intends to concentrate on writing science fiction. > From Gustav at cactus.dk Fri Nov 6 15:29:19 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 06 Nov 2009 22:29:19 +0100 Subject: [AccessD] Lebans Retired Message-ID: Hi A.D. OK, thanks. May the Force be with him. /gustav >>> accessd at shaw.ca 06-11-2009 20:38 >>> Hi A.D. Tejpal: Probably something like "Microsoft converts Access 2011 to .Net". ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: Friday, November 06, 2009 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans Retired Gustav, Ken, It is learnt that he intends to concentrate on writing science fiction. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, November 06, 2009 20:59 Subject: Re: [AccessD] Lebans Retired Hi Ken So what "greener development pasture" did he turn to? /gustav >>> kismert at gmail.com 06-11-2009 16:17 >>> Maybe someone else mentioned it, but Stephan Lebans has officially retired from Access. See: http://www.lebans.com/ It's probably a mistake to read too much into this, but I think it is another indication that there are greener development pastures out there. Access may not be on the outs as a professional development platform, but you may have to accept that it peaked some time ago. -Ken From max.wanadoo at gmail.com Fri Nov 6 15:57:40 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 6 Nov 2009 21:57:40 -0000 Subject: [AccessD] Lebans Retired In-Reply-To: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> Message-ID: <4af49c66.0707d00a.41a3.ffffd5be@mx.google.com> Thought he was doing that with VBA... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal Sent: 06 November 2009 19:30 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans Retired Gustav, Ken, It is learnt that he intends to concentrate on writing science fiction. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Friday, November 06, 2009 20:59 Subject: Re: [AccessD] Lebans Retired Hi Ken So what "greener development pasture" did he turn to? /gustav >>> kismert at gmail.com 06-11-2009 16:17 >>> Maybe someone else mentioned it, but Stephan Lebans has officially retired from Access. See: http://www.lebans.com/ It's probably a mistake to read too much into this, but I think it is another indication that there are greener development pastures out there. Access may not be on the outs as a professional development platform, but you may have to accept that it peaked some time ago. -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Fri Nov 6 18:11:02 2009 From: miscellany at mvps.org (Steve Schapel) Date: Sat, 07 Nov 2009 13:11:02 +1300 Subject: [AccessD] Lebans Retired In-Reply-To: <4af49c66.0707d00a.41a3.ffffd5be@mx.google.com> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> <4af49c66.0707d00a.41a3.ffffd5be@mx.google.com> Message-ID: <9CBB5843467949D48218FD75E1A57C96@stevePC> No, Max. Science fiction and magic are quite distinct genres. :-) Regards Steve -------------------------------------------------- From: "Max Wanadoo" Sent: Saturday, November 07, 2009 10:57 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Lebans Retired > Thought he was doing that with VBA... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal > Sent: 06 November 2009 19:30 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Lebans Retired > > Gustav, Ken, > > It is learnt that he intends to concentrate on writing science fiction. > From jwcolby at colbyconsulting.com Fri Nov 6 19:46:40 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 06 Nov 2009 20:46:40 -0500 Subject: [AccessD] Lebans Retired In-Reply-To: <031FCEE71EC34DB2A5EA59DFA7DE8F13@creativesystemdesigns.com> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> <031FCEE71EC34DB2A5EA59DFA7DE8F13@creativesystemdesigns.com> Message-ID: <4AF4D180.1010909@colbyconsulting.com> Yea! Or "Microsoft fixes a bug in Access that's been there since '97" John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > Hi A.D. Tejpal: > > Probably something like "Microsoft converts Access 2011 to .Net". ;-) > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal > Sent: Friday, November 06, 2009 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Lebans Retired > > Gustav, Ken, > > It is learnt that he intends to concentrate on writing science fiction. > > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: Gustav Brock > To: accessd at databaseadvisors.com > Sent: Friday, November 06, 2009 20:59 > Subject: Re: [AccessD] Lebans Retired > > > Hi Ken > > So what "greener development pasture" did he turn to? > > /gustav > > >>> kismert at gmail.com 06-11-2009 16:17 >>> > Maybe someone else mentioned it, but Stephan Lebans has officially retired > from Access. See: http://www.lebans.com/ > > It's probably a mistake to read too much into this, but I think it is > another indication that there are greener development pastures out there. > > Access may not be on the outs as a professional development platform, but > you may have to accept that it peaked some time ago. > > -Ken From accessd at shaw.ca Fri Nov 6 21:52:51 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Fri, 6 Nov 2009 19:52:51 -0800 Subject: [AccessD] Lebans Retired In-Reply-To: <4AF4D180.1010909@colbyconsulting.com> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> <031FCEE71EC34DB2A5EA59DFA7DE8F13@creativesystemdesigns.com> <4AF4D180.1010909@colbyconsulting.com> Message-ID: Hi John: I thought Stephan was writing Science Fiction not Fantasy or Horror. ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, November 06, 2009 5:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans Retired Yea! Or "Microsoft fixes a bug in Access that's been there since '97" John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > Hi A.D. Tejpal: > > Probably something like "Microsoft converts Access 2011 to .Net". ;-) > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal > Sent: Friday, November 06, 2009 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Lebans Retired > > Gustav, Ken, > > It is learnt that he intends to concentrate on writing science fiction. > > > Best wishes, > A.D. Tejpal > ------------ > > ----- Original Message ----- > From: Gustav Brock > To: accessd at databaseadvisors.com > Sent: Friday, November 06, 2009 20:59 > Subject: Re: [AccessD] Lebans Retired > > > Hi Ken > > So what "greener development pasture" did he turn to? > > /gustav > > >>> kismert at gmail.com 06-11-2009 16:17 >>> > Maybe someone else mentioned it, but Stephan Lebans has officially retired > from Access. See: http://www.lebans.com/ > > It's probably a mistake to read too much into this, but I think it is > another indication that there are greener development pastures out there. > > Access may not be on the outs as a professional development platform, but > you may have to accept that it peaked some time ago. > > -Ken -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Sat Nov 7 02:34:32 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 7 Nov 2009 08:34:32 -0000 Subject: [AccessD] Lebans Retired In-Reply-To: <9CBB5843467949D48218FD75E1A57C96@stevePC> References: <00d801ca5f17$8dddf2a0$b15ea27a@personald6374f> <4af49c66.0707d00a.41a3.ffffd5be@mx.google.com> <9CBB5843467949D48218FD75E1A57C96@stevePC> Message-ID: <4af531e7.0506d00a.5532.ffffc3a3@mx.google.com> Yes, it was sorta magic to me. Good luck to his writings. I will look forward to reading his stuff. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Schapel Sent: 07 November 2009 00:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans Retired No, Max. Science fiction and magic are quite distinct genres. :-) Regards Steve -------------------------------------------------- From: "Max Wanadoo" Sent: Saturday, November 07, 2009 10:57 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Lebans Retired > Thought he was doing that with VBA... > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of A.D.Tejpal > Sent: 06 November 2009 19:30 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Lebans Retired > > Gustav, Ken, > > It is learnt that he intends to concentrate on writing science fiction. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Sat Nov 7 16:34:30 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Sat, 7 Nov 2009 16:34:30 -0600 Subject: [AccessD] Lebans Retired Message-ID: <7c7841600911071434y3b50ef43p991770a0e1233d3c@mail.gmail.com> Kenneth Ismert: > ...I doubt [Lebans has] renounced all things technological... > A.D.Tejpal: > It is learnt that he intends to concentrate on writing science fiction. > Ha! So he has, at least metaphorically, renounced this world's technology to imagine the technologies of other civilizations! I wish him luck. -Ken From robert at webedb.com Sun Nov 8 20:36:38 2009 From: robert at webedb.com (Robert Stewart) Date: Sun, 08 Nov 2009 20:36:38 -0600 Subject: [AccessD] Access on the outs - Was Lebans Retired In-Reply-To: References: Message-ID: <200911090236.nA92aoUw013080@databaseadvisors.com> Ken, I think you will see a come back of MS Access programming with the 2010 version. The things they are adding for it to be a development platform for Sharepoint should bring it back to life in the corporate environment. At 12:00 PM 11/7/2009, you wrote: > To: accessd at databaseadvisors.com > Sent: Friday, November 06, 2009 20:59 > Subject: Re: [AccessD] Lebans Retired > > > Hi Ken > > So what "greener development pasture" did he turn to? > > /gustav > > >>> kismert at gmail.com 06-11-2009 16:17 >>> > Maybe someone else mentioned it, but Stephan Lebans has officially retired > from Access. See: http://www.lebans.com/ > > It's probably a mistake to read too much into this, but I think it is > another indication that there are greener development pastures out there. > > Access may not be on the outs as a professional development platform, but > you may have to accept that it peaked some time ago. > > -Ken From Gustav at cactus.dk Mon Nov 9 13:11:38 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 09 Nov 2009 20:11:38 +0100 Subject: [AccessD] OT: One more oldie Message-ID: Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav From max.wanadoo at gmail.com Mon Nov 9 13:15:39 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 9 Nov 2009 19:15:39 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <4af86a78.1ade660a.4aa4.ffff8fb3@mx.google.com> Gustav, Remember, you are only as old as the woman you feel... Ha! Is it Friday yet? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 09 November 2009 19:12 To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Nov 9 13:25:00 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 9 Nov 2009 19:25:00 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <4af86cab.07a5660a.55b6.ffffef12@mx.google.com> Oops, did I say "Happy Birthday, Gustav". Have a lovely day. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 09 November 2009 19:12 To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Nov 9 13:30:52 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 9 Nov 2009 11:30:52 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: Gustav: You'll never be as young as you are today. Start acting like it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Nov 9 13:33:45 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 9 Nov 2009 19:33:45 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <4af86eb8.0aaa660a.09db.fffffcb2@mx.google.com> Perxactly !!! Well said. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 09 November 2009 19:31 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie Gustav: You'll never be as young as you are today. Start acting like it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Nov 9 13:49:44 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 9 Nov 2009 14:49:44 EST Subject: [AccessD] OT: One more oldie Message-ID: Hi Gustav Old? What's all this loose talk of being Old. Bones may creak, muscles may protest and the operating system may have read problems with the filing system. BUT we are not old. Old is when you stop looking at a pretty pair of legs or some other part of the opposite genders anatomy. Old is when you can't remember when you were 20 something. Old is when you can't find your way home from the pub. Now that is Old Best wishes Gustav have good day this old bugger's off for a pint or two of copper dragon john cliviger From cfoust at infostatsystems.com Mon Nov 9 13:46:26 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Nov 2009 11:46:26 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: Welcome to the club, Gustav! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Nov 9 13:54:35 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 9 Nov 2009 19:54:35 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <4af8739c.0af6660a.2f23.0680@mx.google.com> But remember, Charlotte...he has a way to go before he can join OUR EXCLUSIVE CLUB. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 09 November 2009 19:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: One more oldie Welcome to the club, Gustav! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Nov 9 14:31:35 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 9 Nov 2009 12:31:35 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <9C34DFD668CE4275A52D0BF50858B311@HAL9005> I still look at pretty girls. I just can't remember why. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Johncliviger at aol.com Sent: Monday, November 09, 2009 11:50 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: One more oldie Hi Gustav Old? What's all this loose talk of being Old. Bones may creak, muscles may protest and the operating system may have read problems with the filing system. BUT we are not old. Old is when you stop looking at a pretty pair of legs or some other part of the opposite genders anatomy. Old is when you can't remember when you were 20 something. Old is when you can't find your way home from the pub. Now that is Old Best wishes Gustav have good day this old bugger's off for a pint or two of copper dragon john cliviger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Nov 9 14:31:59 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 9 Nov 2009 12:31:59 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: <4af8739c.0af6660a.2f23.0680@mx.google.com> References: <4af8739c.0af6660a.2f23.0680@mx.google.com> Message-ID: <892747F1AC4441829C3D7A1550AF4543@HAL9005> What? Mile high? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 09, 2009 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie But remember, Charlotte...he has a way to go before he can join OUR EXCLUSIVE CLUB. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 09 November 2009 19:46 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: One more oldie Welcome to the club, Gustav! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Nov 9 14:36:40 2009 From: Johncliviger at aol.com (Johncliviger at aol.com) Date: Mon, 9 Nov 2009 15:36:40 EST Subject: [AccessD] OT: One more oldie Message-ID: Hi Rocky It's in the genes or its jeans. jc From jwcolby at colbyconsulting.com Mon Nov 9 15:07:17 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 Nov 2009 16:07:17 -0500 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <4AF88485.5070509@colbyconsulting.com> LOL. I was 55 on the 5th. Nipping at your heels! Happy birthday Gustav! John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi all > > Well, today the club of 60+ gained one new member: me. > It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! > > /gustav > > From anitatiedemann at gmail.com Mon Nov 9 15:11:03 2009 From: anitatiedemann at gmail.com (anitatiedemann at gmail.com) Date: Mon, 09 Nov 2009 21:11:03 +0000 Subject: [AccessD] OT: One more oldie In-Reply-To: Message-ID: <00504502f54193a7c00477f6a108@google.com> Tillykke Gustav. Jeg bliver 50 n?ste gang - ouch. Anita From andy at minstersystems.co.uk Mon Nov 9 15:24:29 2009 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 9 Nov 2009 21:24:29 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: <00504502f54193a7c00477f6a108@google.com> Message-ID: <7A4C9B9F60E74A57A647C56A901CFBA6@MINSTER> And Happy Birthday from me too. Hope you're having a good one, too good to be reading this tonight hopefully. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of anitatiedemann at gmail.com Sent: 09 November 2009 21:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: One more oldie Tillykke Gustav. Jeg bliver 50 n?ste gang - ouch. Anita -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From darren at activebilling.com.au Mon Nov 9 15:43:52 2009 From: darren at activebilling.com.au (Darren - Active Billing) Date: Tue, 10 Nov 2009 08:43:52 +1100 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <000c01ca6185$bc491050$2b1b910a@denzilnote> Gustav is a legend Happy birthday ole matey Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, 10 November 2009 6:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at gmail.com Mon Nov 9 15:59:45 2009 From: garykjos at gmail.com (Gary Kjos) Date: Mon, 9 Nov 2009 15:59:45 -0600 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: Happy Birthday Gustav! /gary On Mon, Nov 9, 2009 at 1:11 PM, Gustav Brock wrote: > Hi all > > Well, today the club of 60+ gained one new member: me. > It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! > > /gustav > -- Gary Kjos garykjos at gmail.com From hkotsch at arcor.de Mon Nov 9 16:07:54 2009 From: hkotsch at arcor.de (Helmut Kotsch) Date: Mon, 9 Nov 2009 23:07:54 +0100 Subject: [AccessD] OT: One more oldie In-Reply-To: Message-ID: Hi Gustav, congratulations and best wishes to your birthday. You are not a member of the club of 60+ but a UHU. (Under HUndred club) I wish I could restore to being 60 again. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gustav Brock Gesendet: Montag, 9. November 2009 20:12 An: accessd at databaseadvisors.com Betreff: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Mon Nov 9 16:17:49 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 10 Nov 2009 01:17:49 +0300 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <000301ca618a$7acdf6e0$7069e4a0$@spb.ru> Hi Gustav -- Happy Birthday to you! -- Shamil P.S. Used a good shot (Russian style you know:)) of "Absolute" vodka for your Birthday anniversary, Cin-Cin! Greetings to Rita! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 10:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav __________ Information from ESET NOD32 Antivirus, version of virus signature database 4589 (20091109) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From cfoust at infostatsystems.com Mon Nov 9 16:21:11 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Nov 2009 14:21:11 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: And just who are you calling an "oldie", hmmm? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Mon Nov 9 16:38:39 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 10 Nov 2009 01:38:39 +0300 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <000401ca618d$635183d0$29f48b70$@spb.ru> One more time Happy Birthday to you, Gustav! :) Just wanted to note that today is also a 20th anniversary of the Fall of the Berlin Wall (http://www.remote.org/frederik/culture/berlin/ ) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 10:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav __________ Information from ESET NOD32 Antivirus, version of virus signature database 4589 (20091109) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From ab-mi at post3.tele.dk Mon Nov 9 16:41:07 2009 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 9 Nov 2009 23:41:07 +0100 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <100 OR >60 that's the exact range for congratulators including 61+ Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch Sendt: 9. november 2009 23:08 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] OT: One more oldie Hi Gustav, congratulations and best wishes to your birthday. You are not a member of the club of 60+ but a UHU. (Under HUndred club) I wish I could restore to being 60 again. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gustav Brock Gesendet: Montag, 9. November 2009 20:12 An: accessd at databaseadvisors.com Betreff: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Nov 9 16:41:23 2009 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 9 Nov 2009 14:41:23 -0800 Subject: [AccessD] Lebans Retired In-Reply-To: <7c7841600911071434y3b50ef43p991770a0e1233d3c@mail.gmail.com> References: <7c7841600911071434y3b50ef43p991770a0e1233d3c@mail.gmail.com> Message-ID: <8786a4c00911091441y7b5589ffs8fd8a6c7e480926f@mail.gmail.com> I just hope his site stays up. :/ From davidmcafee at gmail.com Mon Nov 9 16:45:42 2009 From: davidmcafee at gmail.com (David McAfee) Date: Mon, 9 Nov 2009 14:45:42 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <8786a4c00911091445n32aeba20qe169cb42e7771794@mail.gmail.com> Happy Birthday Gustav! Don't feel that old, you're only 3C (in Hex) ;) From wdhindman at dejpolsystems.com Mon Nov 9 17:57:59 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 9 Nov 2009 18:57:59 -0500 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <8A601B71FEDD4145B43BD3FBCA7CBCC5@jislaptopdev> ...congratulations on reaching middle age :) William -------------------------------------------------- From: "Gustav Brock" Sent: Monday, November 09, 2009 2:11 PM To: Subject: [AccessD] OT: One more oldie > Hi all > > Well, today the club of 60+ gained one new member: me. > It's hard to grasp, but the fact that several of our fellow listers have > passed this hard limit and continuously prove there is a life beyond > brings some relief! > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From adtp at airtelmail.in Mon Nov 9 22:48:48 2009 From: adtp at airtelmail.in (A.D.Tejpal) Date: Tue, 10 Nov 2009 10:18:48 +0530 Subject: [AccessD] OT: One more oldie References: Message-ID: <006201ca61c1$352ca0a0$7e84a37a@personald6374f> Gustav, Congratulations and a very happy birthday to you. You can manage to feel suitably young - from the fact that I shall be 72 next month. Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Tuesday, November 10, 2009 00:41 Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav From accessd at shaw.ca Mon Nov 9 23:58:45 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 9 Nov 2009 21:58:45 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: I will be in the same straits later this month... ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Nov 10 00:29:08 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 9 Nov 2009 22:29:08 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: Shall we all chip in for a bag of Cialis for the old guy? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, November 09, 2009 9:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie I will be in the same straits later this month... ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Nov 10 02:10:01 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 08:10:01 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <4af91ffc.0aaa660a.68dd.5745@mx.google.com> Don't get cocky rocky.... Max# -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: 10 November 2009 06:29 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie Shall we all chip in for a bag of Cialis for the old guy? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, November 09, 2009 9:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie I will be in the same straits later this month... ;-) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Nov 10 02:14:03 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 08:14:03 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: <000401ca618d$635183d0$29f48b70$@spb.ru> References: <000401ca618d$635183d0$29f48b70$@spb.ru> Message-ID: <4af920ef.0a04d00a.70f0.78ec@mx.google.com> Yes, our news items on TV are full of it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: 09 November 2009 22:39 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie One more time Happy Birthday to you, Gustav! :) Just wanted to note that today is also a 20th anniversary of the Fall of the Berlin Wall (http://www.remote.org/frederik/culture/berlin/ ) Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 10:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav __________ Information from ESET NOD32 Antivirus, version of virus signature database 4589 (20091109) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Nov 10 02:15:45 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 08:15:45 -0000 Subject: [AccessD] OT: One more oldie In-Reply-To: <000c01ca6185$bc491050$2b1b910a@denzilnote> References: <000c01ca6185$bc491050$2b1b910a@denzilnote> Message-ID: <4af92154.0aa5660a.49ed.5d41@mx.google.com> Why are you calling him a Leg End ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren - Active Billing Sent: 09 November 2009 21:44 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: One more oldie Gustav is a legend Happy birthday ole matey Darren -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, 10 November 2009 6:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hkotsch at arcor.de Tue Nov 10 02:52:05 2009 From: hkotsch at arcor.de (Helmut Kotsch) Date: Tue, 10 Nov 2009 09:52:05 +0100 Subject: [AccessD] OT: One more oldie In-Reply-To: Message-ID: Hi Gustav, congratulations and best wishes to your birthday. You are not a member of the club of 60+ but a UHU. (Under HUndred club) I wish I could restore to being 60 again. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gustav Brock Gesendet: Montag, 9. November 2009 20:12 An: accessd at databaseadvisors.com Betreff: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- 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 Nov 10 03:22:06 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 10 Nov 2009 19:22:06 +1000 Subject: [AccessD] OT: One more oldie In-Reply-To: <4af92154.0aa5660a.49ed.5d41@mx.google.com> References: , <000c01ca6185$bc491050$2b1b910a@denzilnote>, <4af92154.0aa5660a.49ed.5d41@mx.google.com> Message-ID: <4AF930BE.6927.6B25727@stuart.lexacorp.com.pg> 'cos he's a foot long (so much for needing Rocky's Cialis!). -- Stuart On 10 Nov 2009 at 8:15, Max Wanadoo wrote: > Why are you calling him a Leg End ? > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren - Active > Billing > Sent: 09 November 2009 21:44 > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: One more oldie > > Gustav is a legend > > Happy birthday ole matey > > Darren > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Tuesday, 10 November 2009 6:12 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: One more oldie > > Hi all > > Well, today the club of 60+ gained one new member: me. > It's hard to grasp, but the fact that several of our fellow listers have > passed > this hard limit and continuously prove there is a life beyond brings some > relief! > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Nov 10 00:00:06 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 9 Nov 2009 22:00:06 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: Hi Gustav: Pull a pint for me. Congratulation. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 11:12 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- 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 Nov 10 06:18:43 2009 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Tue, 10 Nov 2009 13:18:43 +0100 Subject: [AccessD] OT: One more oldie References: Message-ID: <3955A436D4934834A21E1B4D5359357C@s1800> Happy Bier's day, Gustav! :) 50 years ago you were just half as old as I. Now you are 85% of my age. Trying to catch up? Have a nice celebration. Lembit ----- Original Message ----- From: "Gustav Brock" To: Sent: Monday, November 09, 2009 8:11 PM Subject: [AccessD] OT: One more oldie > Hi all > > Well, today the club of 60+ gained one new member: me. > It's hard to grasp, but the fact that several of our fellow listers have > passed this hard limit and continuously prove there is a life beyond > brings some relief! > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From drawbridgej at sympatico.ca Tue Nov 10 06:48:11 2009 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Tue, 10 Nov 2009 07:48:11 -0500 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: Happy Birthday Gustav and welcome to the club. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 2:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- 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 - www.avg.com Version: 9.0.698 / Virus Database: 270.14.57/2492 - Release Date: 11/09/09 07:11:00 From max.wanadoo at gmail.com Tue Nov 10 08:23:04 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 14:23:04 +0000 Subject: [AccessD] OT:Domains Message-ID: Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max From fuller.artful at gmail.com Tue Nov 10 08:28:15 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Tue, 10 Nov 2009 09:28:15 -0500 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <29f585dd0911100628l32797c25jf72161bd174dcb81@mail.gmail.com> Happy Birthday, Gustav. My 62nd is in 5 days. On Mon, Nov 9, 2009 at 2:11 PM, Gustav Brock wrote: > Hi all > > Well, today the club of 60+ gained one new member: me. > It's hard to grasp, but the fact that several of our fellow listers have > passed this hard limit and continuously prove there is a life beyond brings > some relief! > > /gustav > From john at winhaven.net Tue Nov 10 08:32:03 2009 From: john at winhaven.net (John Bartow) Date: Tue, 10 Nov 2009 08:32:03 -0600 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <06a501ca6212$925a5f50$b70f1df0$@net> Happy Birthday Gustav! Wishing you 60 more :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 1:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Tue Nov 10 08:37:05 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 10 Nov 2009 08:37:05 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D091A9612@c2k3exchange.pgdp.corp.usec.com> I want to show if an item is below the reorder level. The field is ReorderLevel. They enter the amount they need to keep in stock. The problem is what if they are over stocked. For Example: Reorder Level: 14. On Hand: 496 & On Order: 500. txtReorderLevel shows "Item is -982 units below minimum level. I created a text box DaysPastDue that shows if they are below the reorder level. The control source of DaysPastDue ="Item is " & [txtReorderAmt] & " units " & "below minimum level". The control source of txtReorderAmt: =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If From rockysmolin at bchacc.com Tue Nov 10 09:26:40 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 10 Nov 2009 07:26:40 -0800 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A9612@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A9612@c2k3exchange.pgdp.corp.usec.com> Message-ID: <1FB14978317540FEA83AB34781E1482B@HAL9005> I think you want (On Hand + On Order) - (Reorder Level) . Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 6:37 AM To: accessD at databaseadvisors.com Subject: [AccessD] Reorder Level I want to show if an item is below the reorder level. The field is ReorderLevel. They enter the amount they need to keep in stock. The problem is what if they are over stocked. For Example: Reorder Level: 14. On Hand: 496 & On Order: 500. txtReorderLevel shows "Item is -982 units below minimum level. I created a text box DaysPastDue that shows if they are below the reorder level. The control source of DaysPastDue ="Item is " & [txtReorderAmt] & " units " & "below minimum level". The control source of txtReorderAmt: =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Nov 10 09:34:33 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 10 Nov 2009 10:34:33 -0500 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A9612@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A9612@c2k3exchange.pgdp.corp.usec.com> Message-ID: Change the control source of txtReorderAmt from =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) To =Iif(([txtOnOrder]-[txtOnHand])+[ReorderLevel]>0,[txtOnOrder]-[txtOnHand])+[ReorderLevel],0) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 9:37 AM To: accessD at databaseadvisors.com Subject: [AccessD] Reorder Level I want to show if an item is below the reorder level. The field is ReorderLevel. They enter the amount they need to keep in stock. The problem is what if they are over stocked. For Example: Reorder Level: 14. On Hand: 496 & On Order: 500. txtReorderLevel shows "Item is -982 units below minimum level. I created a text box DaysPastDue that shows if they are below the reorder level. The control source of DaysPastDue ="Item is " & [txtReorderAmt] & " units " & "below minimum level". The control source of txtReorderAmt: =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Nov 10 09:40:05 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 10 Nov 2009 10:40:05 -0500 Subject: [AccessD] Reorder Level In-Reply-To: <1FB14978317540FEA83AB34781E1482B@HAL9005> References: <703BDA18A87DFA4CB265A86F42E4178D091A9612@c2k3exchange.pgdp.corp.usec.com> <1FB14978317540FEA83AB34781E1482B@HAL9005> Message-ID: I quick check in Excel shows that your calculation results in... On Hand 496 On Order 500 Reorder Amt 982 But (On Order - On Hand) + (Reorder Level) gives On Hand 496 On Order 500 Reorder Amt 18 And wrapping that in an Iif statement [ Iif((On Order - On Hand) + (Reorder Level)>0,(On Order - On Hand) + (Reorder Level),0) ] prevents negative reorder amounts. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, November 10, 2009 10:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Reorder Level I think you want (On Hand + On Order) - (Reorder Level) . Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 6:37 AM To: accessD at databaseadvisors.com Subject: [AccessD] Reorder Level I want to show if an item is below the reorder level. The field is ReorderLevel. They enter the amount they need to keep in stock. The problem is what if they are over stocked. For Example: Reorder Level: 14. On Hand: 496 & On Order: 500. txtReorderLevel shows "Item is -982 units below minimum level. I created a text box DaysPastDue that shows if they are below the reorder level. The control source of DaysPastDue ="Item is " & [txtReorderAmt] & " units " & "below minimum level". The control source of txtReorderAmt: =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 chartisinsurance.com Tue Nov 10 10:11:51 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 10 Nov 2009 11:11:51 -0500 Subject: [AccessD] OT:Domains In-Reply-To: References: Message-ID: Well one reason might be that there are just so much fewer two character domains. You have only 26 letters and 10 numerals to play with. If my math is right that means there are only 936 allowed combinations (a domain name cannot start with a number). Also it may be that some domain registrants don't want to have to deal with the variation of legal names depending on the top level domain (.com, .biz etc) and so they just decided, minimum three. See here for some information on what's supposed to be allowed. https://www.pairnic.com/faq.html?t=domain&q=30 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 9:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT:Domains Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Tue Nov 10 10:17:06 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 10 Nov 2009 10:17:06 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D091A96E2@c2k3exchange.pgdp.corp.usec.com> Ok, that doesn't seem to work either. It doesn't show the negatives (which is good). But it shows the minimum level is low when it isn't - they have too much of this item. I get: Reorder Level: 14 On Hand: 496 On Order: 500 txtReorderLevel: 18 Message - "Item is 18 units below minimum level". When actually they have 996 items when the minimum is 14. They are overstocked. ***************** Change the control source of txtReorderAmt from =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) To =Iif(([txtOnOrder]-[txtOnHand])+[ReorderLevel]>0,[txtOnOrder]-[txtOnHand ])+[ReorderLevel],0) Lambert -----Original Message----- I want to show if an item is below the reorder level. The field is ReorderLevel. They enter the amount they need to keep in stock. The problem is what if they are over stocked. For Example: Reorder Level: 14. On Hand: 496 & On Order: 500. txtReorderLevel shows "Item is -982 units below minimum level. I created a text box DaysPastDue that shows if they are below the reorder level. The control source of DaysPastDue ="Item is " & [txtReorderAmt] & " units " & "below minimum level". The control source of txtReorderAmt: =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If From max.wanadoo at gmail.com Tue Nov 10 10:21:50 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 16:21:50 -0000 Subject: [AccessD] OT:Domains In-Reply-To: References: Message-ID: <4af99322.0508d00a.0f44.ffffca71@mx.google.com> Thanks Lambert, There are however, many around. My point (question) is why don't the "providers" of domain registration allow them. They are permitted by ICANN as per your quoted site. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: 10 November 2009 16:12 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains Well one reason might be that there are just so much fewer two character domains. You have only 26 letters and 10 numerals to play with. If my math is right that means there are only 936 allowed combinations (a domain name cannot start with a number). Also it may be that some domain registrants don't want to have to deal with the variation of legal names depending on the top level domain (.com, .biz etc) and so they just decided, minimum three. See here for some information on what's supposed to be allowed. https://www.pairnic.com/faq.html?t=domain&q=30 Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 9:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT:Domains Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Nov 10 10:27:22 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Nov 2009 17:27:22 +0100 Subject: [AccessD] OT: One more oldie Message-ID: Hi all Thanks everyone! What a response - from club members as well as those youngsters trying to catch up. Retirement still feels far away somewhere past the horizon ... /gustav >>> john at winhaven.net 10-11-2009 15:32 >>> Happy Birthday Gustav! Wishing you 60 more :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 1:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav From jimdettman at verizon.net Tue Nov 10 10:30:46 2009 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 10 Nov 2009 11:30:46 -0500 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A96E2@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A96E2@c2k3exchange.pgdp.corp.usec.com> Message-ID: <43CF83571C4C49449D56F32C20FD593E@XPS> What you want is to change the check: If OnHand + OnOrder < ReorderLevel then ' Need to re-order = ReorderLevel - (OnHand + OnOrder) Else = 0 End If Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 11:17 AM To: accessd at databaseadvisors.com Subject: [AccessD] Reorder Level Ok, that doesn't seem to work either. It doesn't show the negatives (which is good). But it shows the minimum level is low when it isn't - they have too much of this item. I get: Reorder Level: 14 On Hand: 496 On Order: 500 txtReorderLevel: 18 Message - "Item is 18 units below minimum level". When actually they have 996 items when the minimum is 14. They are overstocked. ***************** Change the control source of txtReorderAmt from =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) To =Iif(([txtOnOrder]-[txtOnHand])+[ReorderLevel]>0,[txtOnOrder]-[txtOnHand ])+[ReorderLevel],0) Lambert -----Original Message----- I want to show if an item is below the reorder level. The field is ReorderLevel. They enter the amount they need to keep in stock. The problem is what if they are over stocked. For Example: Reorder Level: 14. On Hand: 496 & On Order: 500. txtReorderLevel shows "Item is -982 units below minimum level. I created a text box DaysPastDue that shows if they are below the reorder level. The control source of DaysPastDue ="Item is " & [txtReorderAmt] & " units " & "below minimum level". The control source of txtReorderAmt: =[ReorderLevel]-([txtOnHand]+[txtOnOrder]) OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Nov 10 11:26:41 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Nov 2009 09:26:41 -0800 Subject: [AccessD] OT: One more oldie In-Reply-To: References: Message-ID: <0C5E5FAADE0E46819B9987EBFAF85F6F@creativesystemdesigns.com> Freedom 85 is still a long way off. Gustav. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 10, 2009 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: One more oldie Hi all Thanks everyone! What a response - from club members as well as those youngsters trying to catch up. Retirement still feels far away somewhere past the horizon ... /gustav >>> john at winhaven.net 10-11-2009 15:32 >>> Happy Birthday Gustav! Wishing you 60 more :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 1:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 10 11:28:35 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 12:28:35 -0500 Subject: [AccessD] Bug in access Message-ID: <4AF9A2C3.9050403@colbyconsulting.com> I am working on a project where I use a table to fynamically build a query. The table has field names in it, and I can just append those field names into a select string and voila, it works. place the field names you want in the table and a select statement is created of those fields. This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. OK, so I can also use entire functions such as format(Field1,"000.00") and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. To test this bug, create an aliased field in a query something like Select cDbl("123.45") as SomeField, etc etc The QBE will immediately complain about cDbl needing another parameter. Try the same thing with cSgl("123.45") and it works just fine. The bugs we have to work around. Sigh. But hey, we have a shiny new tool bar. ;) -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Nov 10 11:30:04 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 12:30:04 -0500 Subject: [AccessD] Bug in access Message-ID: <4AF9A31C.8030004@colbyconsulting.com> I am working on a project where I use a table to dynamically build a query. The table has field names in it, and I can just append those field names into a select string and voila, it works. place the field names you want in the table and a select statement is created of those fields. This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. OK, so I can also use entire functions such as format(Field1,"000.00") and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. To test this bug, create an aliased field in a query something like Select cDbl("123.45") as SomeField, etc etc The QBE will immediately complain about cDbl needing another parameter. Try the same thing with cSgl("123.45") and it works just fine. NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. The bugs we have to work around. Sigh. But hey, we have a shiny new tool bar. ;) -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Tue Nov 10 11:37:00 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Nov 2009 18:37:00 +0100 Subject: [AccessD] OT: One more oldie Message-ID: Hi Jim Right. And at that time I can hopefully just mumble to the computer asking it to bring forward stuff from memory lane! /gustav >>> accessd at shaw.ca 10-11-2009 18:26 >>> Freedom 85 is still a long way off. Gustav. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 10, 2009 8:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: One more oldie Hi all Thanks everyone! What a response - from club members as well as those youngsters trying to catch up. Retirement still feels far away somewhere past the horizon ... /gustav >>> john at winhaven.net 10-11-2009 15:32 >>> Happy Birthday Gustav! Wishing you 60 more :o) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, November 09, 2009 1:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: One more oldie Hi all Well, today the club of 60+ gained one new member: me. It's hard to grasp, but the fact that several of our fellow listers have passed this hard limit and continuously prove there is a life beyond brings some relief! /gustav From dbdoug at gmail.com Tue Nov 10 12:01:36 2009 From: dbdoug at gmail.com (Doug Steele) Date: Tue, 10 Nov 2009 10:01:36 -0800 Subject: [AccessD] Bug in access In-Reply-To: <4AF9A31C.8030004@colbyconsulting.com> References: <4AF9A31C.8030004@colbyconsulting.com> Message-ID: <4dd71a0c0911101001q39a8eefbja2ade9ca086037e3@mail.gmail.com> Bug in Access? Surely that's an oxymoron. Doug On Tue, Nov 10, 2009 at 9:30 AM, jwcolby wrote: > I am working on a project where I use a table to dynamically build a query. > The table has field > names in it, and I can just append those field names into a select string > and voila, it works. > place the field names you want in the table and a select statement is > created of those fields. This > system is shuffling fields around from scanned documents (CSV files) to get > them into a standard order. > > > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd at shaw.ca Tue Nov 10 11:24:40 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Nov 2009 09:24:40 -0800 Subject: [AccessD] OT:Domains In-Reply-To: References: Message-ID: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> I think someone has already got http://www.mw.com but I see no reason why only two letters would be restricted unless somewhere some programmer decided that two characters or less was an error. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 6:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT:Domains Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Tue Nov 10 12:09:53 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 10 Nov 2009 13:09:53 -0500 Subject: [AccessD] Bug in access In-Reply-To: <4AF9A31C.8030004@colbyconsulting.com> References: <4AF9A31C.8030004@colbyconsulting.com> Message-ID: There has to be more to this than meets the eye. The following SQL runs just fine for me, I Access 2003. SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM BankNames_tbl; Decompile your front end? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, November 10, 2009 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Bug in access I am working on a project where I use a table to dynamically build a query. The table has field names in it, and I can just append those field names into a select string and voila, it works. place the field names you want in the table and a select statement is created of those fields. This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. OK, so I can also use entire functions such as format(Field1,"000.00") and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. To test this bug, create an aliased field in a query something like Select cDbl("123.45") as SomeField, etc etc The QBE will immediately complain about cDbl needing another parameter. Try the same thing with cSgl("123.45") and it works just fine. NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. The bugs we have to work around. Sigh. But hey, we have a shiny new tool bar. ;) -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Tue Nov 10 12:22:28 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Tue, 10 Nov 2009 12:22:28 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D091A977E@c2k3exchange.pgdp.corp.usec.com> Evidently I am missing something all together. I changed the OnCurrent to what you mentioned & I still have the same results. It shows the Item is 18 units below minimum level. ReorderLevel: 14 txtOnHand: 496 txtOnOrder: 500 txtReorderLevel: 18 =IIf(([txtOnOrder]-[txtOnHand])+[ReorderLevel]>0,([txtOnOrder]-[txtOnHan d])+[ReorderLevel],0) ________________________________ What you want is to change the check: If OnHand + OnOrder < ReorderLevel then ' Need to re-order = ReorderLevel - (OnHand + OnOrder) Else = 0 End If Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com ] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 11:17 AM To: accessd at databaseadvisors.com Subject: [AccessD] Reorder Level Ok, that doesn't seem to work either. It doesn't show the negatives (which is good). But it shows the minimum level is low when it isn't - they have too much of this item. I get: Reorder Level: 14 On Hand: 496 On Order: 500 txtReorderLevel: 18 Message - "Item is 18 units below minimum level". When actually they have 996 items when the minimum is 14. They are overstocked. From max.wanadoo at gmail.com Tue Nov 10 12:26:39 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 18:26:39 -0000 Subject: [AccessD] OT:Domains In-Reply-To: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> References: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> Message-ID: <4af9b065.0506d00a.772e.2bb7@mx.google.com> Jim, You are missing the point of my question - this is my fault for not explaining it correctly, sorry. My problem is that I cannot find any service provider to sell me a two character domain, they are all saying that the minimum length domain they will handle is 3 characters. They are not saying that I cannot have one for legal or other reasons, but only that they wont be bothered to sell/handle one. Go to 1and1.co.uk and try to buy a domain with two characters and the software falls over - it is only programmed to handle 3+ characters. Go to 123reg.co.uk and ask them why and they will say they only handle 3 charters upwards. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 November 2009 17:25 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains I think someone has already got http://www.mw.com but I see no reason why only two letters would be restricted unless somewhere some programmer decided that two characters or less was an error. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 6:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT:Domains Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Nov 10 12:34:09 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Nov 2009 10:34:09 -0800 Subject: [AccessD] OT:Domains In-Reply-To: <4af9b065.0506d00a.772e.2bb7@mx.google.com> References: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> <4af9b065.0506d00a.772e.2bb7@mx.google.com> Message-ID: Seems like most 2 letter domains are governments. Have you started your own nation? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 10:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains Jim, You are missing the point of my question - this is my fault for not explaining it correctly, sorry. My problem is that I cannot find any service provider to sell me a two character domain, they are all saying that the minimum length domain they will handle is 3 characters. They are not saying that I cannot have one for legal or other reasons, but only that they wont be bothered to sell/handle one. Go to 1and1.co.uk and try to buy a domain with two characters and the software falls over - it is only programmed to handle 3+ characters. Go to 123reg.co.uk and ask them why and they will say they only handle 3 charters upwards. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 November 2009 17:25 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains I think someone has already got http://www.mw.com but I see no reason why only two letters would be restricted unless somewhere some programmer decided that two characters or less was an error. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 6:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT:Domains Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Nov 10 12:45:34 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 18:45:34 -0000 Subject: [AccessD] OT:Domains In-Reply-To: References: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> <4af9b065.0506d00a.772e.2bb7@mx.google.com> Message-ID: <4af9b4d4.0a1ad00a.2b5e.3a23@mx.google.com> Ha. No, not quite. I am not referring to the domain TLD but the actual domain name within the TLD. Have a look at, for example: www.mg.com www.mg.net some provider must have sold these 2-character domain names, but who? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 10 November 2009 18:34 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Domains Seems like most 2 letter domains are governments. Have you started your own nation? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 10:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains Jim, You are missing the point of my question - this is my fault for not explaining it correctly, sorry. My problem is that I cannot find any service provider to sell me a two character domain, they are all saying that the minimum length domain they will handle is 3 characters. They are not saying that I cannot have one for legal or other reasons, but only that they wont be bothered to sell/handle one. Go to 1and1.co.uk and try to buy a domain with two characters and the software falls over - it is only programmed to handle 3+ characters. Go to 123reg.co.uk and ask them why and they will say they only handle 3 charters upwards. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: 10 November 2009 17:25 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains I think someone has already got http://www.mw.com but I see no reason why only two letters would be restricted unless somewhere some programmer decided that two characters or less was an error. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 6:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT:Domains Can anybody say why is that I cannot seem to register a two digit domain. I know they exist (eg, www.mg.ru) but for some reason I cannot find a service to allocate a two character domain. thanks Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Nov 10 12:00:46 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Nov 2009 10:00:46 -0800 Subject: [AccessD] Bug in access In-Reply-To: <4AF9A2C3.9050403@colbyconsulting.com> References: <4AF9A2C3.9050403@colbyconsulting.com> Message-ID: <1E7DCA4D4732458186D4BF9804142B3B@creativesystemdesigns.com> Hi John: That is truly ugly. Have you officially reported that bug? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, November 10, 2009 9:29 AM To: Access Developers discussion and problem solving Subject: [AccessD] Bug in access I am working on a project where I use a table to fynamically build a query. The table has field names in it, and I can just append those field names into a select string and voila, it works. place the field names you want in the table and a select statement is created of those fields. This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. OK, so I can also use entire functions such as format(Field1,"000.00") and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. To test this bug, create an aliased field in a query something like Select cDbl("123.45") as SomeField, etc etc The QBE will immediately complain about cDbl needing another parameter. Try the same thing with cSgl("123.45") and it works just fine. The bugs we have to work around. Sigh. But hey, we have a shiny new tool bar. ;) -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Nov 10 12:48:29 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Nov 2009 10:48:29 -0800 Subject: [AccessD] What's Happening Here? Message-ID: When I reply to some posts, I then get an automated response email from mg at mga-charity.org: Thank you for your email. If your enquiry is urgent, please telephone our Support Office on 01332 290219 during normal office hours. If your email is regarding Press/Media items, please resend your email to media at mga-charity.org where it will be redirected to one of our Trustees or the CEO. Am I the only one getting these? Charlotte Foust From rockysmolin at bchacc.com Tue Nov 10 12:56:37 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Tue, 10 Nov 2009 10:56:37 -0800 Subject: [AccessD] What's Happening Here? In-Reply-To: References: Message-ID: <06F647487111434C8B00B6626265EA72@HAL9005> No, I'm getting them. Probably we all are. Like an out of office message I guess. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, November 10, 2009 10:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] What's Happening Here? When I reply to some posts, I then get an automated response email from mg at mga-charity.org: Thank you for your email. If your enquiry is urgent, please telephone our Support Office on 01332 290219 during normal office hours. If your email is regarding Press/Media items, please resend your email to media at mga-charity.org where it will be redirected to one of our Trustees or the CEO. Am I the only one getting these? Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Tue Nov 10 12:58:54 2009 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 11 Nov 2009 07:58:54 +1300 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> Message-ID: <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> -------------------------------------------------- From: "Heenan, Lambert" Sent: Wednesday, November 11, 2009 7:09 AM > The following SQL runs just fine for me, I Access 2003. > > SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID > FROM BankNames_tbl; Same for me in Access 2007. No problem. I have used CDbl in queries plenty of times, with no problem. And I have never heard mention of the type of behaviour you are experiencing, John. So it's an oddity. -- Regards Steve From davidmcafee at gmail.com Tue Nov 10 13:02:07 2009 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 10 Nov 2009 11:02:07 -0800 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> Message-ID: <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> John, creating a query such as: SELECT CDbl("123.45") AS Expr1, tblMyTable.Name FROM tblMyTable; Expr1 Name 123.45 David McAfee 123.45 Bill Gates 123.45 Larry Ellison 123.45 Megan Fox As well as performing this in the immediate window, both work for me: ?cDbl("123.45") 123.45 On Tue, Nov 10, 2009 at 10:09 AM, Heenan, Lambert wrote: > There has to be more to this than meets the eye. > > The following SQL runs just fine for me, I Access 2003. > > SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID > FROM BankNames_tbl; > > Decompile your front end? > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, November 10, 2009 12:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Bug in access > > I am working on a project where I use a table to dynamically build a query. ?The table has field names in it, and I can just append those field names into a select string and voila, it works. > place the field names you want in the table and a select statement is created of those fields. ?This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. > > OK, so I can also use entire functions such as format(Field1,"000.00") and that works. ?cSng(Field1) works. ?cDbl(Field1) does NOT WORK. ?It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. > > To test this bug, create an aliased field in a query something like > > Select cDbl("123.45") as SomeField, etc etc > > The QBE will immediately complain about cDbl needing another parameter. ?Try the same thing with > cSgl("123.45") and it works just fine. ?NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. > > The bugs we have to work around. ?Sigh. > > But hey, we have a shiny new tool bar. ?;) > > -- > John W. Colby > 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 davidmcafee at gmail.com Tue Nov 10 13:02:52 2009 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 10 Nov 2009 11:02:52 -0800 Subject: [AccessD] What's Happening Here? In-Reply-To: <06F647487111434C8B00B6626265EA72@HAL9005> References: <06F647487111434C8B00B6626265EA72@HAL9005> Message-ID: <8786a4c00911101102w767c61f0g5891d5f57251bad@mail.gmail.com> Yeah, I received those too. On Tue, Nov 10, 2009 at 10:56 AM, Rocky Smolin wrote: > No, I'm getting them. ?Probably we all are. ?Like an out of office message I > guess. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, November 10, 2009 10:48 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] What's Happening Here? > > When I reply to some posts, I then get an automated response email from > mg at mga-charity.org: > > Thank you for your email. If your enquiry is urgent, please telephone our > Support Office on 01332 290219 during normal office hours. > If your email is regarding Press/Media items, please resend your email to > media at mga-charity.org where it ?will be ?redirected to one of our Trustees > or the CEO. > > Am I the only one getting these? > > Charlotte Foust > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Nov 10 13:02:38 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Nov 2009 11:02:38 -0800 Subject: [AccessD] What's Happening Here? In-Reply-To: <06F647487111434C8B00B6626265EA72@HAL9005> References: <06F647487111434C8B00B6626265EA72@HAL9005> Message-ID: But who belongs to that office? I don't see that address anywhere. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, November 10, 2009 10:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What's Happening Here? No, I'm getting them. Probably we all are. Like an out of office message I guess. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, November 10, 2009 10:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] What's Happening Here? When I reply to some posts, I then get an automated response email from mg at mga-charity.org: Thank you for your email. If your enquiry is urgent, please telephone our Support Office on 01332 290219 during normal office hours. If your email is regarding Press/Media items, please resend your email to media at mga-charity.org where it will be redirected to one of our Trustees or the CEO. Am I the only one getting these? Charlotte Foust -- From max.wanadoo at gmail.com Tue Nov 10 13:08:31 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Nov 2009 19:08:31 -0000 Subject: [AccessD] What's Happening Here? In-Reply-To: References: <06F647487111434C8B00B6626265EA72@HAL9005> Message-ID: <4af9ba37.0702d00a.2e42.4274@mx.google.com> Forget it, my error - now sorted. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 10 November 2009 19:03 To: Access Developers discussion and problem solving Subject: Re: [AccessD] What's Happening Here? But who belongs to that office? I don't see that address anywhere. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, November 10, 2009 10:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What's Happening Here? No, I'm getting them. Probably we all are. Like an out of office message I guess. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, November 10, 2009 10:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] What's Happening Here? When I reply to some posts, I then get an automated response email from mg at mga-charity.org: Thank you for your email. If your enquiry is urgent, please telephone our Support Office on 01332 290219 during normal office hours. If your email is regarding Press/Media items, please resend your email to media at mga-charity.org where it will be redirected to one of our Trustees or the CEO. Am I the only one getting these? Charlotte Foust -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Nov 10 13:06:22 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Nov 2009 11:06:22 -0800 Subject: [AccessD] Bug in access In-Reply-To: <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> Message-ID: Did I miss something or did you guys? I understood that John was specifically trying to use CDbl against a field name, not an explicit string. Is that correct, JC? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Tuesday, November 10, 2009 11:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bug in access John, creating a query such as: SELECT CDbl("123.45") AS Expr1, tblMyTable.Name FROM tblMyTable; Expr1 Name 123.45 David McAfee 123.45 Bill Gates 123.45 Larry Ellison 123.45 Megan Fox As well as performing this in the immediate window, both work for me: ?cDbl("123.45") 123.45 On Tue, Nov 10, 2009 at 10:09 AM, Heenan, Lambert wrote: > There has to be more to this than meets the eye. > > The following SQL runs just fine for me, I Access 2003. > > SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM > BankNames_tbl; > > Decompile your front end? > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, November 10, 2009 12:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Bug in access > > I am working on a project where I use a table to dynamically build a query. ?The table has field names in it, and I can just append those field names into a select string and voila, it works. > place the field names you want in the table and a select statement is created of those fields. ?This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. > > OK, so I can also use entire functions such as format(Field1,"000.00") and that works. ?cSng(Field1) works. ?cDbl(Field1) does NOT WORK. ?It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. > > To test this bug, create an aliased field in a query something like > > Select cDbl("123.45") as SomeField, etc etc > > The QBE will immediately complain about cDbl needing another > parameter. ?Try the same thing with > cSgl("123.45") and it works just fine. ?NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. > > The bugs we have to work around. ?Sigh. > > But hey, we have a shiny new tool bar. ?;) > > -- > John W. Colby > www.ColbyConsulting.com > -- From miscellany at mvps.org Tue Nov 10 13:26:31 2009 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 11 Nov 2009 08:26:31 +1300 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> Message-ID: <3E12B773A43446E2940E6063E7A4CA43@stevePC> Charlotte, Well, John did say: Regards Steve -------------------------------------------------- From: "Charlotte Foust" Sent: Wednesday, November 11, 2009 8:06 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Bug in access > Did I miss something or did you guys? I understood that John was > specifically trying to use CDbl against a field name, not an explicit > string. Is that correct, JC? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Tuesday, November 10, 2009 11:02 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Bug in access > > John, creating a query such as: > > SELECT CDbl("123.45") AS Expr1, tblMyTable.Name FROM tblMyTable; > > Expr1 Name > 123.45 David McAfee > 123.45 Bill Gates > 123.45 Larry Ellison > 123.45 Megan Fox > > As well as performing this in the immediate window, both work for me: > ?cDbl("123.45") > 123.45 > > > > > On Tue, Nov 10, 2009 at 10:09 AM, Heenan, Lambert > wrote: >> There has to be more to this than meets the eye. >> >> The following SQL runs just fine for me, I Access 2003. >> >> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM >> BankNames_tbl; >> >> Decompile your front end? >> >> Lambert >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, November 10, 2009 12:30 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Bug in access >> >> I am working on a project where I use a table to dynamically build a >> query. The table has field names in it, and I can just append those >> field names into a select string and voila, it works. >> place the field names you want in the table and a select statement is >> created of those fields. This system is shuffling fields around from >> scanned documents (CSV files) to get them into a standard order. >> >> OK, so I can also use entire functions such as format(Field1,"000.00") >> and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It >> complains that the function cDbl needs two parameters, but if I supply >> anything in the second parameter, then cDbl works (no longer complains) >> but returns a zero. >> >> To test this bug, create an aliased field in a query something like >> >> Select cDbl("123.45") as SomeField, etc etc >> >> The QBE will immediately complain about cDbl needing another >> parameter. Try the same thing with >> cSgl("123.45") and it works just fine. NOTICE that cDbl() in the debug >> window does NOT require another parameter and if you try to provide one, >> it will fail to execute. >> >> The bugs we have to work around. Sigh. >> >> But hey, we have a shiny new tool bar. ;) >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Nov 10 13:36:14 2009 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 10 Nov 2009 11:36:14 -0800 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> Message-ID: <8786a4c00911101136i5d41b198j314a5560236e0272@mail.gmail.com> Oops, you are correct. It still works for me SELECT CDbl("123.45") AS Expr1, tblMyTable.CPName, CDbl([CPName]) AS Expr2 FROM tblMyTable; Expr1 CPName Expr2 123.45 David McAfee #Error 123.45 Bill Gates #Error 123.45 Larry Ellison #Error 123.45 Megan Fox #Error 123.45 123.45 123.45 123.45 678.90 678.9 On Tue, Nov 10, 2009 at 11:06 AM, Charlotte Foust wrote: > Did I miss something or did you guys? ?I understood that John was specifically trying to use CDbl against a field name, not an explicit string. ?Is that correct, JC? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Tuesday, November 10, 2009 11:02 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Bug in access > > John, creating a query such as: > > SELECT CDbl("123.45") AS Expr1, tblMyTable.Name FROM tblMyTable; > > Expr1 ? Name > 123.45 ?David McAfee > 123.45 ?Bill Gates > 123.45 ?Larry Ellison > 123.45 ?Megan Fox > > As well as performing this in the immediate window, both work for me: > ?cDbl("123.45") > ?123.45 > > > > > On Tue, Nov 10, 2009 at 10:09 AM, Heenan, Lambert wrote: >> There has to be more to this than meets the eye. >> >> The following SQL runs just fine for me, I Access 2003. >> >> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM >> BankNames_tbl; >> >> Decompile your front end? >> >> Lambert >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, November 10, 2009 12:30 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] Bug in access >> >> I am working on a project where I use a table to dynamically build a query. ?The table has field names in it, and I can just append those field names into a select string and voila, it works. >> place the field names you want in the table and a select statement is created of those fields. ?This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. >> >> OK, so I can also use entire functions such as format(Field1,"000.00") and that works. ?cSng(Field1) works. ?cDbl(Field1) does NOT WORK. ?It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. >> >> To test this bug, create an aliased field in a query something like >> >> Select cDbl("123.45") as SomeField, etc etc >> >> The QBE will immediately complain about cDbl needing another >> parameter. ?Try the same thing with >> cSgl("123.45") and it works just fine. ?NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. >> >> The bugs we have to work around. ?Sigh. >> >> But hey, we have a shiny new tool bar. ?;) >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> -- > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From miscellany at mvps.org Tue Nov 10 13:45:11 2009 From: miscellany at mvps.org (Steve Schapel) Date: Wed, 11 Nov 2009 08:45:11 +1300 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> Message-ID: <58315B645EEF40C192D3B53E7D5AFBE6@stevePC> Charlotte, Well, John did say: "To test this bug, create an aliased field in a query something like Select cDbl("123.45") as SomeField, etc etc" But anyway, it's working correctly for me using a field name too. And also in combination with another function such as: CDbl(Right(TextFieldEndingWithDigits],2)) Regards Steve -------------------------------------------------- From: "Charlotte Foust" Sent: Wednesday, November 11, 2009 8:06 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Bug in access > Did I miss something or did you guys? I understood that John was > specifically trying to use CDbl against a field name, not an explicit > string. Is that correct, JC? > From Lambert.Heenan at chartisinsurance.com Tue Nov 10 13:50:14 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Tue, 10 Nov 2009 14:50:14 -0500 Subject: [AccessD] Bug in access In-Reply-To: <8786a4c00911101136i5d41b198j314a5560236e0272@mail.gmail.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> <8786a4c00911101136i5d41b198j314a5560236e0272@mail.gmail.com> Message-ID: SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID, CDbl([BankID]) AS dbl_BankID FROM BankNames_tbl; Gives SomeDouble BankID dbl_BankID 123.45 1 1 123.45 2 2 Where BankID is an autonumber. There's something wrong with JCs installation IMHO. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Tuesday, November 10, 2009 2:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bug in access Oops, you are correct. It still works for me SELECT CDbl("123.45") AS Expr1, tblMyTable.CPName, CDbl([CPName]) AS Expr2 FROM tblMyTable; Expr1 CPName Expr2 123.45 David McAfee #Error 123.45 Bill Gates #Error 123.45 Larry Ellison #Error 123.45 Megan Fox #Error 123.45 123.45 123.45 123.45 678.90 678.9 On Tue, Nov 10, 2009 at 11:06 AM, Charlotte Foust wrote: > Did I miss something or did you guys? ?I understood that John was specifically trying to use CDbl against a field name, not an explicit string. ?Is that correct, JC? > > Charlotte Foust From davidmcafee at gmail.com Tue Nov 10 13:56:55 2009 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 10 Nov 2009 11:56:55 -0800 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> <8786a4c00911101136i5d41b198j314a5560236e0272@mail.gmail.com> Message-ID: <8786a4c00911101156r95d63c5r55919a7680565f10@mail.gmail.com> I think there's something wrong with John, himself ;) (PEBKAC) :P touch? On Tue, Nov 10, 2009 at 11:50 AM, Heenan, Lambert wrote: > > There's something wrong with JCs installation IMHO. > > Lambert From jwcolby at colbyconsulting.com Tue Nov 10 14:43:09 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 15:43:09 -0500 Subject: [AccessD] Bug in access In-Reply-To: References: <4AF9A31C.8030004@colbyconsulting.com> Message-ID: <4AF9D05D.2090605@colbyconsulting.com> Lambert, cdbl() is a different function. Did you try cDec()? John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > There has to be more to this than meets the eye. > > The following SQL runs just fine for me, I Access 2003. > > SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID > FROM BankNames_tbl; > > Decompile your front end? > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, November 10, 2009 12:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Bug in access > > I am working on a project where I use a table to dynamically build a query. The table has field names in it, and I can just append those field names into a select string and voila, it works. > place the field names you want in the table and a select statement is created of those fields. This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. > > OK, so I can also use entire functions such as format(Field1,"000.00") and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. > > To test this bug, create an aliased field in a query something like > > Select cDbl("123.45") as SomeField, etc etc > > The QBE will immediately complain about cDbl needing another parameter. Try the same thing with > cSgl("123.45") and it works just fine. NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. > > The bugs we have to work around. Sigh. > > But hey, we have a shiny new tool bar. ;) > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Tue Nov 10 14:43:29 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Nov 2009 12:43:29 -0800 Subject: [AccessD] What's Happening Here? In-Reply-To: <4af9ba37.0702d00a.2e42.4274@mx.google.com> References: <06F647487111434C8B00B6626265EA72@HAL9005> <4af9ba37.0702d00a.2e42.4274@mx.google.com> Message-ID: Thanks, Max. I thought we had spooks! Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, November 10, 2009 11:09 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What's Happening Here? Forget it, my error - now sorted. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: 10 November 2009 19:03 To: Access Developers discussion and problem solving Subject: Re: [AccessD] What's Happening Here? But who belongs to that office? I don't see that address anywhere. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Tuesday, November 10, 2009 10:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] What's Happening Here? No, I'm getting them. Probably we all are. Like an out of office message I guess. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, November 10, 2009 10:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] What's Happening Here? When I reply to some posts, I then get an automated response email from mg at mga-charity.org: Thank you for your email. If your enquiry is urgent, please telephone our Support Office on 01332 290219 during normal office hours. If your email is regarding Press/Media items, please resend your email to media at mga-charity.org where it will be redirected to one of our Trustees or the CEO. Am I the only one getting these? Charlotte Foust -- From jwcolby at colbyconsulting.com Tue Nov 10 14:48:18 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 15:48:18 -0500 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> References: <4AF9A31C.8030004@colbyconsulting.com> <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> Message-ID: <4AF9D192.10104@colbyconsulting.com> Sorry, I miswrote the email. the failing function is cDec - convert to decimal. cDec("123.45") in the debug window returns 123.45 as a NUMBER. m: cDec("123.45") - an aliased field - in the query window immediately causes an error. Sorry for the confusion. John W. Colby www.ColbyConsulting.com Steve Schapel wrote: > -------------------------------------------------- > From: "Heenan, Lambert" > Sent: Wednesday, November 11, 2009 7:09 AM > >> The following SQL runs just fine for me, I Access 2003. >> >> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID >> FROM BankNames_tbl; > > Same for me in Access 2007. No problem. > > I have used CDbl in queries plenty of times, with no problem. And I have > never heard mention of the type of behaviour you are experiencing, John. So > it's an oddity. > From cfoust at infostatsystems.com Tue Nov 10 14:46:28 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Nov 2009 12:46:28 -0800 Subject: [AccessD] Bug in access In-Reply-To: <4AF9D05D.2090605@colbyconsulting.com> References: <4AF9A31C.8030004@colbyconsulting.com> <4AF9D05D.2090605@colbyconsulting.com> Message-ID: Your original question specified CDbl. Was that incorrect? Is it possible the value is too big for Cdec or that you need to change the precision to handle it? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, November 10, 2009 12:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Bug in access Lambert, cdbl() is a different function. Did you try cDec()? John W. Colby www.ColbyConsulting.com Heenan, Lambert wrote: > There has to be more to this than meets the eye. > > The following SQL runs just fine for me, I Access 2003. > > SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM > BankNames_tbl; > > Decompile your front end? > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, November 10, 2009 12:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Bug in access > > I am working on a project where I use a table to dynamically build a query. The table has field names in it, and I can just append those field names into a select string and voila, it works. > place the field names you want in the table and a select statement is created of those fields. This system is shuffling fields around from scanned documents (CSV files) to get them into a standard order. > > OK, so I can also use entire functions such as format(Field1,"000.00") and that works. cSng(Field1) works. cDbl(Field1) does NOT WORK. It complains that the function cDbl needs two parameters, but if I supply anything in the second parameter, then cDbl works (no longer complains) but returns a zero. > > To test this bug, create an aliased field in a query something like > > Select cDbl("123.45") as SomeField, etc etc > > The QBE will immediately complain about cDbl needing another > parameter. Try the same thing with > cSgl("123.45") and it works just fine. NOTICE that cDbl() in the debug window does NOT require another parameter and if you try to provide one, it will fail to execute. > > The bugs we have to work around. Sigh. > > But hey, we have a shiny new tool bar. ;) From jwcolby at colbyconsulting.com Tue Nov 10 14:59:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 15:59:50 -0500 Subject: [AccessD] Bug in access In-Reply-To: <58315B645EEF40C192D3B53E7D5AFBE6@stevePC> References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> <58315B645EEF40C192D3B53E7D5AFBE6@stevePC> Message-ID: <4AF9D446.6090606@colbyconsulting.com> Yep, it is cDec() not cDbl(). And I just retested cDec("123.45") and it is in fact failing in a query. It gives the message: "The expression you entered as a function has the wrong number of arguments". The truly odd part is that if you simply do something like cDec("123.45",1) it stops complaining but it returns a zero. Furthermore if in the debug window you do: ?cDec("123.45",1) it throws an error: Compile error: Wrong number of arguments or invalid property assignment. If you use ?format(cdec("123"), "000.00") in the debug window, this works, but in a query it gives the same error as mentioned above. I'm calling this one a bug folks. And no, I haven't reported it. I just ran into it today. John W. Colby www.ColbyConsulting.com Steve Schapel wrote: > Charlotte, > > Well, John did say: > "To test this bug, create an aliased field in a query something like > Select cDbl("123.45") as SomeField, etc etc" > > But anyway, it's working correctly for me using a field name too. And also > in combination with another function such as: > CDbl(Right(TextFieldEndingWithDigits],2)) > > Regards > Steve > > > -------------------------------------------------- > From: "Charlotte Foust" > Sent: Wednesday, November 11, 2009 8:06 AM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Bug in access > >> Did I miss something or did you guys? I understood that John was >> specifically trying to use CDbl against a field name, not an explicit >> string. Is that correct, JC? >> > > From drawbridgej at sympatico.ca Tue Nov 10 15:00:20 2009 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Tue, 10 Nov 2009 16:00:20 -0500 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <4AF9D192.10104@colbyconsulting.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> <4AF9D192.10104@colbyconsulting.com> Message-ID: <24324E54C18D4BCF865A77EF23099A79@AMDXP> Found this via Google -- related to ACC2000 http://support.microsoft.com/kb/225931 "The CDec() function is supported in Visual Basic for Applications code, but not in Access queries." "Create a custom function that uses the CDec() function. Call this custom function from your Access query. For example: 1. Create a new module and type the following code: Function NewCDec(MyVal) NewCDec = CDec(MyVal) End Function 2. Save and close the module. 3. Type MyID: NewCDec([CategoryID]) in the Field row of a query. Note that when you run this function, it returns a valid value for the MyID field." jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, November 10, 2009 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Bug in access Sorry, I miswrote the email. the failing function is cDec - convert to decimal. cDec("123.45") in the debug window returns 123.45 as a NUMBER. m: cDec("123.45") - an aliased field - in the query window immediately causes an error. Sorry for the confusion. John W. Colby www.ColbyConsulting.com Steve Schapel wrote: > -------------------------------------------------- > From: "Heenan, Lambert" > Sent: Wednesday, November 11, 2009 7:09 AM > >> The following SQL runs just fine for me, I Access 2003. >> >> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID >> FROM BankNames_tbl; > > Same for me in Access 2007. No problem. > > I have used CDbl in queries plenty of times, with no problem. And I have > never heard mention of the type of behaviour you are experiencing, John. So > it's an oddity. > -- 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 - www.avg.com Version: 9.0.704 / Virus Database: 270.14.59/2494 - Release Date: 11/10/09 02:38:00 From jwcolby at colbyconsulting.com Tue Nov 10 15:00:52 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 16:00:52 -0500 Subject: [AccessD] Bug in access In-Reply-To: <8786a4c00911101156r95d63c5r55919a7680565f10@mail.gmail.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8786a4c00911101102q6f721389l21c8ae42c4515858@mail.gmail.com> <8786a4c00911101136i5d41b198j314a5560236e0272@mail.gmail.com> <8786a4c00911101156r95d63c5r55919a7680565f10@mail.gmail.com> Message-ID: <4AF9D484.50608@colbyconsulting.com> PEBKAC is absolutely right. ;) But there is in fact a bug as well. John W. Colby www.ColbyConsulting.com David McAfee wrote: > I think there's something wrong with John, himself ;) > > (PEBKAC) :P > > touch? > > > On Tue, Nov 10, 2009 at 11:50 AM, Heenan, Lambert > wrote: >> There's something wrong with JCs installation IMHO. >> >> Lambert > From davidmcafee at gmail.com Tue Nov 10 15:04:17 2009 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 10 Nov 2009 13:04:17 -0800 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <4AF9D192.10104@colbyconsulting.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> <4AF9D192.10104@colbyconsulting.com> Message-ID: <8786a4c00911101304k6bae3f9eue72fd036eb9dd43a@mail.gmail.com> What is weird, when I try to create a Cdec() in the QBE I am getting an error: "the expression you entered has a function containing the wrong number of arguments" it wont accept SELECT CDec("123.45") AS Expr1, tblMyTable.CPName, CDec([CPName]) AS Expr2 FROM tblMyTable; but will accept: SELECT CLng("123.45",0) AS Expr1, tblMyTable.CPName, CDec([CPName],0) AS Expr2 FROM tblMyTable; which returns Expr1 CPName Expr2 0 David McAfee 0 Bill Gates 0 Larry Ellison 0 Megan Fox 0 123.45 0 0 678.90 0 >From help: Note that at this time the Decimal data type can only be used within a Variant. You cannot declare a variable to be of type Decimal. You can, however, create a Variant whose subtype is Decimal using the CDec function. On Tue, Nov 10, 2009 at 12:48 PM, jwcolby wrote: > Sorry, > > I miswrote the email. ?the failing function is cDec - convert to decimal. ?cDec("123.45") in the > debug window returns 123.45 as a NUMBER. > > m: cDec("123.45") - an aliased field - in the query window immediately causes an error. > > Sorry for the confusion. > > John W. Colby > www.ColbyConsulting.com > > > Steve Schapel wrote: >> -------------------------------------------------- >> From: "Heenan, Lambert" >> Sent: Wednesday, November 11, 2009 7:09 AM >> >>> The following SQL runs just fine for me, I Access 2003. >>> >>> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID >>> FROM BankNames_tbl; >> >> Same for me in Access 2007. ?No problem. >> >> I have used CDbl in queries plenty of times, with no problem. ?And I have >> never heard mention of the type of behaviour you are experiencing, John. ?So >> it's an oddity. >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From james at fcidms.com Tue Nov 10 15:04:32 2009 From: james at fcidms.com (James Barash) Date: Tue, 10 Nov 2009 16:04:32 -0500 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <4AF9D192.10104@colbyconsulting.com> Message-ID: <12D2F894654B53498DEF840AE12B7BB3699D59BF@fciexchange.fcidms.com> John: At least for Access 2000, this is a known bug. I guess it still hasn't been fixed. http://support.microsoft.com/kb/225931 James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, November 10, 2009 3:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Bug in access Sorry, I miswrote the email. the failing function is cDec - convert to decimal. cDec("123.45") in the debug window returns 123.45 as a NUMBER. m: cDec("123.45") - an aliased field - in the query window immediately causes an error. Sorry for the confusion. John W. Colby www.ColbyConsulting.com Steve Schapel wrote: > -------------------------------------------------- > From: "Heenan, Lambert" > Sent: Wednesday, November 11, 2009 7:09 AM > >> The following SQL runs just fine for me, I Access 2003. >> >> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM >> BankNames_tbl; > > Same for me in Access 2007. No problem. > > I have used CDbl in queries plenty of times, with no problem. And I > have never heard mention of the type of behaviour you are > experiencing, John. So it's an oddity. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Tue Nov 10 15:06:14 2009 From: davidmcafee at gmail.com (David McAfee) Date: Tue, 10 Nov 2009 13:06:14 -0800 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <24324E54C18D4BCF865A77EF23099A79@AMDXP> References: <4AF9A31C.8030004@colbyconsulting.com> <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> <4AF9D192.10104@colbyconsulting.com> <24324E54C18D4BCF865A77EF23099A79@AMDXP> Message-ID: <8786a4c00911101306w20b977br193338591219b9f2@mail.gmail.com> Good find. I guess I use it in VBA, which is what was bugging me. I never saw this error before. Oh well, as JC said, Shiny new Ribbon for A2007, but bugs still exist. I like the MS fix "Create a custom function". Hey MS! Fix it! On Tue, Nov 10, 2009 at 1:00 PM, Jack and Pat wrote: > Found this via Google -- related to ACC2000 > > http://support.microsoft.com/kb/225931 > > "The CDec() function is supported in Visual Basic for Applications code, but > not in Access queries." > "Create a custom function that uses the CDec() function. Call this custom > function from your Access query. For example: > > ? 1. Create a new module and type the following code: > > ? ? ?Function NewCDec(MyVal) > ? ? ? ? NewCDec = CDec(MyVal) > ? ? ?End Function > > > ? 2. Save and close the module. > ? 3. Type MyID: NewCDec([CategoryID]) in the Field row of a query. Note > that when you run this function, it returns a valid value for the MyID > field." > > jack > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, November 10, 2009 3:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Bug in access > > Sorry, > > I miswrote the email. ?the failing function is cDec - convert to decimal. > cDec("123.45") in the > debug window returns 123.45 as a NUMBER. > > m: cDec("123.45") - an aliased field - in the query window immediately > causes an error. > > Sorry for the confusion. > > John W. Colby > www.ColbyConsulting.com > > > Steve Schapel wrote: >> -------------------------------------------------- >> From: "Heenan, Lambert" >> Sent: Wednesday, November 11, 2009 7:09 AM >> >>> The following SQL runs just fine for me, I Access 2003. >>> >>> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID >>> FROM BankNames_tbl; >> >> Same for me in Access 2007. ?No problem. >> >> I have used CDbl in queries plenty of times, with no problem. ?And I have >> never heard mention of the type of behaviour you are experiencing, John. > So >> it's an oddity. >> > -- > 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 - www.avg.com > Version: 9.0.704 / Virus Database: 270.14.59/2494 - Release Date: 11/10/09 > 02:38:00 > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Tue Nov 10 15:11:06 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 16:11:06 -0500 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <12D2F894654B53498DEF840AE12B7BB3699D59BF@fciexchange.fcidms.com> References: <12D2F894654B53498DEF840AE12B7BB3699D59BF@fciexchange.fcidms.com> Message-ID: <4AF9D6EA.40101@colbyconsulting.com> >> At least for Access 2000, this is a known bug. I guess it still hasn't been fixed. ROTFLMAO. But... we have a pretty new toolbar. John W. Colby www.ColbyConsulting.com James Barash wrote: > John: > > At least for Access 2000, this is a known bug. I guess it still hasn't been fixed. > > http://support.microsoft.com/kb/225931 > > James Barash > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, November 10, 2009 3:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Bug in access > > Sorry, > > I miswrote the email. the failing function is cDec - convert to decimal. cDec("123.45") in the debug window returns 123.45 as a NUMBER. > > m: cDec("123.45") - an aliased field - in the query window immediately causes an error. > > Sorry for the confusion. > > John W. Colby > www.ColbyConsulting.com > > > Steve Schapel wrote: >> -------------------------------------------------- >> From: "Heenan, Lambert" >> Sent: Wednesday, November 11, 2009 7:09 AM >> >>> The following SQL runs just fine for me, I Access 2003. >>> >>> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID FROM >>> BankNames_tbl; >> Same for me in Access 2007. No problem. >> >> I have used CDbl in queries plenty of times, with no problem. And I >> have never heard mention of the type of behaviour you are >> experiencing, John. So it's an oddity. >> > -- > 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 Nov 10 15:15:27 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 11 Nov 2009 07:15:27 +1000 Subject: [AccessD] OT:Domains In-Reply-To: References: Message-ID: <4AF9D7EF.10060.93F6F94@stuart.lexacorp.com.pg> Two character top level domains (TLDs) are generally country specific ie .uk, .nz. .pg etc. Each national TLD has it's own registrar and it's won set of rules.You have to find the appropriate one or a third party who acts as an agent for them. If you want a .pg domain, you have to register it through the PNG University of Technology. I can do it for you through out new company PNGconnect (http:/www.pngconnect.com). In many countries the registrar has strict rules. In PNG for example the scond level domain must be one of the standards ( .com, .net. .org, .gov, .edu) and you must provide proof of being a registered entity in PNG before they will assign a domain name. (ie business registration for .com.pg, certificate of incorporation for .org.pg. Russia is not so strict - a quick google turned up this: http://www.europeregistry.com/domains/domains-ru.htm ( and mw.ru is taken) -- Stuart On 10 Nov 2009 at 14:23, Max Wanadoo wrote: > Can anybody say why is that I cannot seem to register a two digit > domain. I know they exist (eg, www.mg.ru) but for some reason I > cannot find a service to allocate a two character domain. > thanks > Max > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Nov 10 15:21:46 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 16:21:46 -0500 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <8786a4c00911101306w20b977br193338591219b9f2@mail.gmail.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> <4AF9D192.10104@colbyconsulting.com> <24324E54C18D4BCF865A77EF23099A79@AMDXP> <8786a4c00911101306w20b977br193338591219b9f2@mail.gmail.com> Message-ID: <4AF9D96A.5010901@colbyconsulting.com> What is truly odd is that even wrapping it in another function (such as format() ) still triggers the error. I have written an application to shuffle fields around, and allow my client to create a custom sql statement dynamically. The function takes the contents of fields and interprets them, then "renames" them. field1 returns the value of Field1, but in a specific field name of the query. So Field1 - Field2 works (returns the subtraction), format(field1,"000.000") works etc. The client tried to do a Field1 + Field2 and got a null value. It turns out that the source values are strings, and the + operator CONCATS two strings, but other operators cause an implicit conversion to a numeric value and work correctly. I was trying to wrap the two field names in a function to force a numeric conversion when I ran into this. I ended up just using Format(cSng(Field1) + cSng(Field2), "000.00") to get around it. John W. Colby www.ColbyConsulting.com David McAfee wrote: > Good find. I guess I use it in VBA, which is what was bugging me. I > never saw this error before. > > Oh well, as JC said, Shiny new Ribbon for A2007, but bugs still exist. > > I like the MS fix "Create a custom function". Hey MS! Fix it! > > > > On Tue, Nov 10, 2009 at 1:00 PM, Jack and Pat wrote: >> Found this via Google -- related to ACC2000 >> >> http://support.microsoft.com/kb/225931 >> >> "The CDec() function is supported in Visual Basic for Applications code, but >> not in Access queries." >> "Create a custom function that uses the CDec() function. Call this custom >> function from your Access query. For example: >> >> 1. Create a new module and type the following code: >> >> Function NewCDec(MyVal) >> NewCDec = CDec(MyVal) >> End Function >> >> >> 2. Save and close the module. >> 3. Type MyID: NewCDec([CategoryID]) in the Field row of a query. Note >> that when you run this function, it returns a valid value for the MyID >> field." >> >> jack >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, November 10, 2009 3:48 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Re: Bug in access >> >> Sorry, >> >> I miswrote the email. the failing function is cDec - convert to decimal. >> cDec("123.45") in the >> debug window returns 123.45 as a NUMBER. >> >> m: cDec("123.45") - an aliased field - in the query window immediately >> causes an error. >> >> Sorry for the confusion. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Steve Schapel wrote: >>> -------------------------------------------------- >>> From: "Heenan, Lambert" >>> Sent: Wednesday, November 11, 2009 7:09 AM >>> >>>> The following SQL runs just fine for me, I Access 2003. >>>> >>>> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID >>>> FROM BankNames_tbl; >>> Same for me in Access 2007. No problem. >>> >>> I have used CDbl in queries plenty of times, with no problem. And I have >>> never heard mention of the type of behaviour you are experiencing, John. >> So >>> it's an oddity. >>> >> -- >> 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 - www.avg.com >> Version: 9.0.704 / Virus Database: 270.14.59/2494 - Release Date: 11/10/09 >> 02:38:00 >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From jwcolby at colbyconsulting.com Tue Nov 10 15:23:10 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Nov 2009 16:23:10 -0500 Subject: [AccessD] SPAM-LOW: Re: Bug in access In-Reply-To: <8786a4c00911101306w20b977br193338591219b9f2@mail.gmail.com> References: <4AF9A31C.8030004@colbyconsulting.com> <8AFAC6E5F5AC4FE4893DB6FBF8C18DE2@stevePC> <4AF9D192.10104@colbyconsulting.com> <24324E54C18D4BCF865A77EF23099A79@AMDXP> <8786a4c00911101306w20b977br193338591219b9f2@mail.gmail.com> Message-ID: <4AF9D9BE.6030500@colbyconsulting.com> > I like the MS fix "Create a custom function". Hey MS! Fix it! May I recommend - "Don't hold your breath". John W. Colby www.ColbyConsulting.com David McAfee wrote: > Good find. I guess I use it in VBA, which is what was bugging me. I > never saw this error before. > > Oh well, as JC said, Shiny new Ribbon for A2007, but bugs still exist. > > I like the MS fix "Create a custom function". Hey MS! Fix it! > > > > On Tue, Nov 10, 2009 at 1:00 PM, Jack and Pat wrote: >> Found this via Google -- related to ACC2000 >> >> http://support.microsoft.com/kb/225931 >> >> "The CDec() function is supported in Visual Basic for Applications code, but >> not in Access queries." >> "Create a custom function that uses the CDec() function. Call this custom >> function from your Access query. For example: >> >> 1. Create a new module and type the following code: >> >> Function NewCDec(MyVal) >> NewCDec = CDec(MyVal) >> End Function >> >> >> 2. Save and close the module. >> 3. Type MyID: NewCDec([CategoryID]) in the Field row of a query. Note >> that when you run this function, it returns a valid value for the MyID >> field." >> >> jack >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, November 10, 2009 3:48 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] SPAM-LOW: Re: Bug in access >> >> Sorry, >> >> I miswrote the email. the failing function is cDec - convert to decimal. >> cDec("123.45") in the >> debug window returns 123.45 as a NUMBER. >> >> m: cDec("123.45") - an aliased field - in the query window immediately >> causes an error. >> >> Sorry for the confusion. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Steve Schapel wrote: >>> -------------------------------------------------- >>> From: "Heenan, Lambert" >>> Sent: Wednesday, November 11, 2009 7:09 AM >>> >>>> The following SQL runs just fine for me, I Access 2003. >>>> >>>> SELECT CDbl("123.45") AS SomeDouble, BankNames_tbl.BankID >>>> FROM BankNames_tbl; >>> Same for me in Access 2007. No problem. >>> >>> I have used CDbl in queries plenty of times, with no problem. And I have >>> never heard mention of the type of behaviour you are experiencing, John. >> So >>> it's an oddity. >>> >> -- >> 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 - www.avg.com >> Version: 9.0.704 / Virus Database: 270.14.59/2494 - Release Date: 11/10/09 >> 02:38:00 >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > From jimdettman at verizon.net Tue Nov 10 15:45:20 2009 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 10 Nov 2009 16:45:20 -0500 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D091A977E@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D091A977E@c2k3exchange.pgdp.corp.usec.com> Message-ID: Maybe I'm missing the point, but I believe it should be this: =IIf([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan d])+[txtOnOrder],0) = (496 + 500) < 18 , 18 - (496 + 500) , 0 so you'd get 0 in this case. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 1:22 PM To: accessd at databaseadvisors.com Subject: [AccessD] Reorder Level Evidently I am missing something all together. I changed the OnCurrent to what you mentioned & I still have the same results. It shows the Item is 18 units below minimum level. ReorderLevel: 14 txtOnHand: 496 txtOnOrder: 500 txtReorderLevel: 18 =IIf(([txtOnOrder]-[txtOnHand])+[ReorderLevel]>0,([txtOnOrder]-[txtOnHan d])+[ReorderLevel],0) ________________________________ What you want is to change the check: If OnHand + OnOrder < ReorderLevel then ' Need to re-order = ReorderLevel - (OnHand + OnOrder) Else = 0 End If Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com ] On Behalf Of Hollis, Virginia Sent: Tuesday, November 10, 2009 11:17 AM To: accessd at databaseadvisors.com Subject: [AccessD] Reorder Level Ok, that doesn't seem to work either. It doesn't show the negatives (which is good). But it shows the minimum level is low when it isn't - they have too much of this item. I get: Reorder Level: 14 On Hand: 496 On Order: 500 txtReorderLevel: 18 Message - "Item is 18 units below minimum level". When actually they have 996 items when the minimum is 14. They are overstocked. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Tue Nov 10 16:24:39 2009 From: kathryn at bassett.net (Kathryn Bassett) Date: Tue, 10 Nov 2009 14:24:39 -0800 Subject: [AccessD] OT:Domains In-Reply-To: <4af9b4d4.0a1ad00a.2b5e.3a23@mx.google.com> References: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> <4af9b065.0506d00a.772e.2bb7@mx.google.com> <4af9b4d4.0a1ad00a.2b5e.3a23@mx.google.com> Message-ID: <006001ca6254$980bde50$c8239af0$@net> http://www.moniker.com is the registrar for mg.com so why don't you try them? Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Tuesday, November 10, 2009 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT:Domains > > Ha. No, not quite. > > I am not referring to the domain TLD but the actual domain name within > the > TLD. > > Have a look at, for example: > > www.mg.com > www.mg.net > > some provider must have sold these 2-character domain names, but who? > > Max From max.wanadoo at gmail.com Wed Nov 11 01:37:40 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 11 Nov 2009 07:37:40 -0000 Subject: [AccessD] OT:Domains In-Reply-To: <4AF9D7EF.10060.93F6F94@stuart.lexacorp.com.pg> References: <4AF9D7EF.10060.93F6F94@stuart.lexacorp.com.pg> Message-ID: <4afa69c9.0baa660a.52b7.090c@mx.google.com> No, I said I did NOT want a TLD, just a bog standard domain name eg, www.XX.com or www.XX.net etc where XX is any 2 character domain name. Thanks anyway. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 10 November 2009 21:15 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Domains Two character top level domains (TLDs) are generally country specific ie .uk, .nz. .pg etc. Each national TLD has it's own registrar and it's won set of rules.You have to find the appropriate one or a third party who acts as an agent for them. If you want a .pg domain, you have to register it through the PNG University of Technology. I can do it for you through out new company PNGconnect (http:/www.pngconnect.com). In many countries the registrar has strict rules. In PNG for example the scond level domain must be one of the standards ( .com, .net. .org, .gov, .edu) and you must provide proof of being a registered entity in PNG before they will assign a domain name. (ie business registration for .com.pg, certificate of incorporation for .org.pg. Russia is not so strict - a quick google turned up this: http://www.europeregistry.com/domains/domains-ru.htm ( and mw.ru is taken) -- Stuart On 10 Nov 2009 at 14:23, Max Wanadoo wrote: > Can anybody say why is that I cannot seem to register a two digit > domain. I know they exist (eg, www.mg.ru) but for some reason I > cannot find a service to allocate a two character domain. > thanks > Max > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Nov 11 01:44:48 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 11 Nov 2009 07:44:48 -0000 Subject: [AccessD] OT:Domains In-Reply-To: <006001ca6254$980bde50$c8239af0$@net> References: <82B2FF621C794E09BB29C84A639FBD6E@creativesystemdesigns.com> <4af9b065.0506d00a.772e.2bb7@mx.google.com> <4af9b4d4.0a1ad00a.2b5e.3a23@mx.google.com> <006001ca6254$980bde50$c8239af0$@net> Message-ID: <4afa6b77.0710660a.3278.ffff9d32@mx.google.com> Thank you, why didn't I think of that...duh!! Old age I guess. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Kathryn Bassett Sent: 10 November 2009 22:25 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT:Domains http://www.moniker.com is the registrar for mg.com so why don't you try them? Kathryn > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd- > bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Tuesday, November 10, 2009 10:46 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT:Domains > > Ha. No, not quite. > > I am not referring to the domain TLD but the actual domain name within > the > TLD. > > Have a look at, for example: > > www.mg.com > www.mg.net > > some provider must have sold these 2-character domain names, but who? > > Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Wed Nov 11 02:37:13 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Nov 2009 09:37:13 +0100 Subject: [AccessD] Migrate from Access to MySQL Message-ID: Hi all A Guide for Migrating From Microsoft Access to MySQL: http://www.mysql.com/why-mysql/white-papers/mysql_wp_migrate-from-access.php If you can filter the marketing blurb (wonder what kind of cost-savings they have in mind?) it may contain useful stuff if you consider to move a backend. /gustav From max.wanadoo at gmail.com Wed Nov 11 02:50:10 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 11 Nov 2009 08:50:10 +0000 Subject: [AccessD] Migrate from Access to MySQL In-Reply-To: References: Message-ID: Thanks Gustav max On 11/11/2009, Gustav Brock wrote: > Hi all > > A Guide for Migrating From Microsoft Access to MySQL: > http://www.mysql.com/why-mysql/white-papers/mysql_wp_migrate-from-access.php > > If you can filter the marketing blurb (wonder what kind of cost-savings they > have in mind?) it may contain useful stuff if you consider to move a > backend. > > /gustav > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at smsconsulting.spb.ru Wed Nov 11 03:50:29 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 Nov 2009 12:50:29 +0300 Subject: [AccessD] OT:Domains In-Reply-To: <4AF9D7EF.10060.93F6F94@stuart.lexacorp.com.pg> References: <4AF9D7EF.10060.93F6F94@stuart.lexacorp.com.pg> Message-ID: <004601ca62b4$6870f8f0$3952ead0$@spb.ru> Hi Stuart, <<< Russia is not so strict - a quick google turned up this: http://www.europeregistry.com/domains/domains-ru.htm ( and mw.ru is taken) >>> That could have been taken in 90ies(?) - nowadays to register for a .RU domain you have to have a legal Russian passport, be resident of Russia etc. etc. (Although I do not exclude there are companies here who can bypass all that rules and regulations). BTW, this company http://www.europeregistry.com/about/about.htm is not accredited in Russia. Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Wednesday, November 11, 2009 12:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT:Domains Two character top level domains (TLDs) are generally country specific ie .uk, .nz. .pg etc. Each national TLD has it's own registrar and it's won set of rules.You have to find the appropriate one or a third party who acts as an agent for them. If you want a .pg domain, you have to register it through the PNG University of Technology. I can do it for you through out new company PNGconnect (http:/www.pngconnect.com). In many countries the registrar has strict rules. In PNG for example the scond level domain must be one of the standards ( .com, .net. .org, .gov, .edu) and you must provide proof of being a registered entity in PNG before they will assign a domain name. (ie business registration for .com.pg, certificate of incorporation for .org.pg. Russia is not so strict - a quick google turned up this: http://www.europeregistry.com/domains/domains-ru.htm ( and mw.ru is taken) -- Stuart On 10 Nov 2009 at 14:23, Max Wanadoo wrote: > Can anybody say why is that I cannot seem to register a two digit > domain. I know they exist (eg, www.mg.ru) but for some reason I > cannot find a service to allocate a two character domain. > thanks > Max > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4594 (20091111) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Gustav at cactus.dk Wed Nov 11 12:52:48 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 11 Nov 2009 19:52:48 +0100 Subject: [AccessD] Microsoft WebsiteSpark Program Message-ID: Hi all Have you heard of Microsoft? WebsiteSpark*? http://www.microsoft.com/web/websitespark/Support.aspx?tab=ProgramDetails It is designed to ignite the success of professional Web developers and designers. The program enables you to get software, support and business opportunities from Microsoft at no upfront costs for 3 years or exit from the program. WebSiteSpark provides access to a technology offering for development and production hosting of websites. Once enrolled, you can download the following software from Microsoft: For design, development, testing and demonstration of new websites * for a total of up to three users per Web design and development company: *Visual Studio Professional *Expression Studio 3 (1 user) and Expression Web 3 (up to 2 users) *Windows Web Server 2008 R2 *SQL Server 2008 Web Edition For production use * that is, to deploy and host new websites developed using Program software * using a total of up to four processors per Web design and development company, of the following (physical or virtual) dedicated servers: *Windows Web Server 2008 R2 *SQL Server 2008 Web Edition So if you consider "something else" than Access, this might help you. /gustav From hollisvj at pgdp.usec.com Wed Nov 11 13:45:37 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 11 Nov 2009 13:45:37 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926AD92@c2k3exchange.pgdp.corp.usec.com> I placed this in the Control Source of the text box - txtReorderAmt. I get an error - "the expression in the function contains the wrong number of arguments." ************* Maybe I'm missing the point, but I believe it should be this: =IIf([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand ])+[txtOnOrder],0) =(496 + 500) < 18 , 18 - (496 + 500) , 0 so you'd get 0 in this case. From hollisvj at pgdp.usec.com Wed Nov 11 13:54:02 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 11 Nov 2009 13:54:02 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926ADAD@c2k3exchange.pgdp.corp.usec.com> Oh! Never mind. I got it - added a parenthesis. Thanks! From: Hollis, Virginia Sent: Wednesday, November 11, 2009 1:46 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Reorder Level I placed this in the Control Source of the text box - txtReorderAmt. I get an error - "the expression in the function contains the wrong number of arguments." ************* Maybe I'm missing the point, but I believe it should be this: =IIf([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand ])+[txtOnOrder],0) =(496 + 500) < 18 , 18 - (496 + 500) , 0 so you'd get 0 in this case. From hollisvj at pgdp.usec.com Wed Nov 11 14:13:00 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 11 Nov 2009 14:13:00 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> I take that back. Something isn't right yet. Control Source of txtReorderAmt: =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan d])+[txtOnOrder],0) I get "Item is 150 units below reorder level" when I come to a record that has: Reorder level = 100 OnHand = 0 OnOrder = 50. txtReorderAmt = 150 I get "Item is 150 units below reorder level. Also, how do I have it not show if the value is 0 in txtReorderAmt? This gives me, "Item is 0 units below minimum level." Reorder Level = 1000 OnHand = 535 OnOrder = 600 txtReorderAmt = 0 On Current I have: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If From: Hollis, Virginia Sent: Wednesday, November 11, 2009 1:54 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Reorder Level Oh! Never mind. I got it - added a parenthesis. Thanks! From: Hollis, Virginia Sent: Wednesday, November 11, 2009 1:46 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Reorder Level I placed this in the Control Source of the text box - txtReorderAmt. I get an error - "the expression in the function contains the wrong number of arguments." ************* Maybe I'm missing the point, but I believe it should be this: =IIf([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand ])+[txtOnOrder],0) =(496 + 500) < 18 , 18 - (496 + 500) , 0 so you'd get 0 in this case. From davidmcafee at gmail.com Wed Nov 11 14:24:19 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 11 Nov 2009 12:24:19 -0800 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> Message-ID: <8786a4c00911111224jbd61accr538c09ba5bc4a771@mail.gmail.com> I think it should be: =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand]+[txtOnOrder]),0) Move the close parenthis from the right side of ([txtOnHand]) to the end [txtOnOrder]) to get 50, instead of 150 On Wed, Nov 11, 2009 at 12:13 PM, Hollis, Virginia wrote: > I take that back. Something isn't right yet. > > Control Source of txtReorderAmt: > > =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan > d])+[txtOnOrder],0) > > > > I get "Item is 150 units below reorder level" when I come to a record > that has: > > Reorder level = 100 > > OnHand = 0 > > OnOrder = 50. > > txtReorderAmt = 150 > > I get "Item is 150 units below reorder level. > > > > Also, how do I have it not show if the value is 0 in txtReorderAmt? This > gives me, "Item is 0 units below minimum level." > > Reorder Level = 1000 > > OnHand = 535 > > OnOrder = 600 > > txtReorderAmt = 0 > > > > On Current I have: > > If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level > entered > > ? ? ? ReorderLevel = Me!ReorderLevel.Value 'Show the value of the > reorder level entered > > > > ? If txtReorderAmt > 0 Then 'Reorder level is below. > > Me!ReorderLevel.ForeColor = lngRed 'reorder level is red > > ? ? ? ? ? ? ?Me.DaysPastDue.Visible = True 'Show past due label > > ? ?Else > > ? ? ? ? ? ?Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not > low, reorder level is black > > ? ? ? ? ? ?Me.DaysPastDue.Visible = False 'No order label. > > ? ? ? ?End If > > ? ?End If > > > > > > From: Hollis, Virginia > Sent: Wednesday, November 11, 2009 1:54 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Reorder Level > > > > Oh! Never mind. I got it - added a parenthesis. Thanks! > > > > From: Hollis, Virginia > Sent: Wednesday, November 11, 2009 1:46 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Reorder Level > > > > I placed this in the Control Source of the text box - txtReorderAmt. I > get an error - "the expression in the function contains the wrong number > of arguments." > > > > > > ************* > > Maybe I'm missing the point, but I believe it should be this: > > > > =IIf([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand > ])+[txtOnOrder],0) > > > > =(496 + 500) < 18 , ?18 - (496 + 500) , 0 > > > > ?so you'd get 0 in this case. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Wed Nov 11 14:30:55 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 11 Nov 2009 12:30:55 -0800 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> Message-ID: <8786a4c00911111230k3f114910i348ce3819951da82@mail.gmail.com> I'm not sure what you mean by "not show" You can use conditional formatting to hide it, or you can put an double quote instead of a zero (but that would require a change in your OnCurrentEvent code). =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand]+[txtOnOrder]),"") You can also make it not visible in the OnCurrent event. Also, I spelled parenthesis incorrectly :) D On Wed, Nov 11, 2009 at 12:13 PM, Hollis, Virginia wrote: > Also, how do I have it not show if the value is 0 in txtReorderAmt? This > gives me, "Item is 0 units below minimum level." > > Reorder Level = 1000 > > OnHand = 535 > > OnOrder = 600 > > txtReorderAmt = 0 > > > > On Current I have: > > If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level > entered > > ? ? ? ReorderLevel = Me!ReorderLevel.Value 'Show the value of the > reorder level entered > > > > ? If txtReorderAmt > 0 Then 'Reorder level is below. > > Me!ReorderLevel.ForeColor = lngRed 'reorder level is red > > ? ? ? ? ? ? ?Me.DaysPastDue.Visible = True 'Show past due label > > ? ?Else > > ? ? ? ? ? ?Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not > low, reorder level is black > > ? ? ? ? ? ?Me.DaysPastDue.Visible = False 'No order label. > > ? ? ? ?End If > > ? ?End If From pharold at proftesting.com Wed Nov 11 14:34:51 2009 From: pharold at proftesting.com (Perry L Harold) Date: Wed, 11 Nov 2009 15:34:51 -0500 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926ADE3@c2k3exchange.pgdp.corp.usec.com> Message-ID: Move the ")" to include the OnOrder for subtracting. =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan d]+[txtOnOrder]),0) Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 11, 2009 3:13 PM To: accessd at databaseadvisors.com Subject: [AccessD] Reorder Level I take that back. Something isn't right yet. Control Source of txtReorderAmt: =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan d])+[txtOnOrder],0) I get "Item is 150 units below reorder level" when I come to a record that has: Reorder level = 100 OnHand = 0 OnOrder = 50. txtReorderAmt = 150 I get "Item is 150 units below reorder level. Also, how do I have it not show if the value is 0 in txtReorderAmt? This gives me, "Item is 0 units below minimum level." Reorder Level = 1000 OnHand = 535 OnOrder = 600 txtReorderAmt = 0 On Current I have: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.DaysPastDue.Visible = True 'Show past due label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.DaysPastDue.Visible = False 'No order label. End If End If From: Hollis, Virginia Sent: Wednesday, November 11, 2009 1:54 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Reorder Level Oh! Never mind. I got it - added a parenthesis. Thanks! From: Hollis, Virginia Sent: Wednesday, November 11, 2009 1:46 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Reorder Level I placed this in the Control Source of the text box - txtReorderAmt. I get an error - "the expression in the function contains the wrong number of arguments." ************* Maybe I'm missing the point, but I believe it should be this: =IIf([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHand ])+[txtOnOrder],0) =(496 + 500) < 18 , 18 - (496 + 500) , 0 so you'd get 0 in this case. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Wed Nov 11 19:51:42 2009 From: bheygood at abestsystems.com (Bob Heygood) Date: Wed, 11 Nov 2009 17:51:42 -0800 Subject: [AccessD] Reassigning form control socrces In-Reply-To: <004601c88ddc$1aac4c40$0201a8c0@M90> References: <000a01c88b23$57377e70$8119fea9@LTVM> <004601c88ddc$1aac4c40$0201a8c0@M90> Message-ID: Hello to the list, My current project is to create a database to record answers for a series of questionnaires. Early on I noted a repeating of questions in the 1 week, 1 month, 3 month.....set of questions. They were the exact same questions. So I purposely named my field names with a three digit number prefix. I can easily copy the first table of a set and just change the field prefixes for other sets of questions. OK, so now I do the same with the forms, just copy and rename the form. Ahh, but what about the control sources for each of the hundreds of controls on many forms. I was always a Speed Ferret guy, but gave up on them for not updating. I am waiting for my unlock code from Rick Fisher and suspect that Search and Replace will allow me to bulk rename the control sources for each form. But if not, is there another path???? First thought: export form to text and do my s + r and then save as a form. TIA Bob Heygood From Alun.Garraway at otto.de Thu Nov 12 03:43:58 2009 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Thu, 12 Nov 2009 10:43:58 +0100 Subject: [AccessD] Joke of the day? OT In-Reply-To: References: <000a01c88b23$57377e70$8119fea9@LTVM><004601c88ddc$1aac4c40$0201a8c0@M90> Message-ID: <781809D0CBCA4D4C8599423EC952DF75AE6EF9@ntovmail02.ad.otto.de> M$ & sudo :-( http://www.groklaw.net/article.php?story=20091111094923390 From hollisvj at pgdp.usec.com Thu Nov 12 07:03:19 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 12 Nov 2009 07:03:19 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926AEC5@c2k3exchange.pgdp.corp.usec.com> Sorry - by "not show" - in the OnCurrent I have a text box (txtReorder) that shows only if the item is below reorder level. It shows the amount it is below level from the txtReorderAmt. ="Item is " & [txtReorderAmt] & " units below minimum level" If the txtReorderAmt is 0. Then the message in txtReorder "Item is 0 units below minimum level. I don't want the txtReorder message to show at all if it is 0. OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.txtReorder.Visible = True 'Show reorder label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.txtReorder.Visible = False 'No order label. End If End If ********** I'm not sure what you mean by "not show" You can use conditional formatting to hide it, or you can put an double quote instead of a zero (but that would require a change in your OnCurrentEvent code). =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan d]+[txtOnOrder]),"") You can also make it not visible in the OnCurrent event. Also, I spelled parenthesis incorrectly :) D From max.wanadoo at gmail.com Thu Nov 12 08:08:30 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 12 Nov 2009 14:08:30 +0000 Subject: [AccessD] Word Doc populated from Access but not opening with normal options Message-ID: Hi List, I have a word document which has properties populated from an Access record. The document opens ok, but there are no menu options shown, no file options, no print options, etc. Just blank borders. The code I suspect is the problem is this bit, but I have put the full code below in case anybody can see any other problem. It may be the wdWindowStateNormal which is wrong. With appWord .ActiveDocument.SaveAs strSaveNamePath .ActiveWindow.WindowState = wdWindowStateNormal .Visible = True .Activate End With Can anybody throw any light on this? Thanks Max 'Get template path from Word Options dialog Set appWord = GetObject(, "Word.Application") 'Create a new document from template and set doc property values Set doc = appWord.Documents.Add(strPathTemplatesServer) With appWord.ActiveDocument.Bookmarks .Item("TID").Range.Text = "TID/" & CStr(lngOrgID) .Item("Date").Range.Text = CStr(Format(Date, "d mmmm yyyy")) .Item("Addr").Range.Text = Trim(strAddr) .Item("Salutation").Range.Text = Trim(strSalutation) End With 'Save document and make it visible Dim intCount As Integer, bSaveNameFail As Boolean intCount = 1 bSaveNameFail = True strDocsPath = "\\server\Z\OrgLetters\" strSearchName = "" Do While bSaveNameFail strSaveName = modGetSaveName(intCount, strSearchName, lngOrgID) strSaveNamePath = strDocsPath & strSaveName strTestFile = Nz(Dir(strSaveNamePath)) If strTestFile = strSaveName Then ' already have this name on disk, create a new name bSaveNameFail = True: intCount = intCount + 1 Else bSaveNameFail = False End If Loop ' record the letter being sent Call modLettersSent(strSaveNamePath, "frmTrustsShortLetters", , lngOrgID) With appWord .ActiveDocument.SaveAs strSaveNamePath .ActiveWindow.WindowState = wdWindowStateNormal .Visible = True .Activate End With From fuller.artful at gmail.com Thu Nov 12 08:15:28 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 12 Nov 2009 09:15:28 -0500 Subject: [AccessD] Several Questions regarding versions Message-ID: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur From rockysmolin at bchacc.com Thu Nov 12 08:30:54 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 12 Nov 2009 06:30:54 -0800 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Message-ID: <468588E6D56C4B9492291941DD802425@HAL9005> Arthur: For the ribbon I'm using DoCmd.ShowToolbar "Ribbon", acToolbarNo Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, November 12, 2009 6:15 AM To: Access Developers discussion and problem solving Subject: [AccessD] Several Questions regarding versions Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Nov 12 08:40:43 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 12 Nov 2009 09:40:43 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <468588E6D56C4B9492291941DD802425@HAL9005> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> <468588E6D56C4B9492291941DD802425@HAL9005> Message-ID: <29f585dd0911120640yc234426l8f02f8a9ec0f8c31@mail.gmail.com> Thanks Rocky. On Thu, Nov 12, 2009 at 9:30 AM, Rocky Smolin wrote: > Arthur: > > For the ribbon I'm using DoCmd.ShowToolbar "Ribbon", acToolbarNo > > Rocky > From hollisvj at pgdp.usec.com Thu Nov 12 09:24:57 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 12 Nov 2009 09:24:57 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926AF92@c2k3exchange.pgdp.corp.usec.com> This only happens when the item is overstocked. If the OnHand + OnOrder total exceeds the Reorder Level. **** Sorry - by "not show" - in the OnCurrent I have a text box (txtReorder) that shows only if the item is below reorder level. It shows the amount it is below level from the txtReorderAmt. ="Item is " & [txtReorderAmt] & " units below minimum level" If the txtReorderAmt is 0. Then the message in txtReorder "Item is 0 units below minimum level. I don't want the txtReorder message to show at all if it is 0. OnCurrent: If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level entered ReorderLevel = Me!ReorderLevel.Value 'Show the value of the reorder level entered If txtReorderAmt > 0 Then 'Reorder level is below. Me!ReorderLevel.ForeColor = lngRed 'reorder level is red Me.txtReorder.Visible = True 'Show reorder label Else Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not low, reorder level is black Me.txtReorder.Visible = False 'No order label. End If End If ********** I'm not sure what you mean by "not show" You can use conditional formatting to hide it, or you can put an double quote instead of a zero (but that would require a change in your OnCurrentEvent code). =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan d]+[txtOnOrder]),"") You can also make it not visible in the OnCurrent event. Also, I spelled parenthesis incorrectly :) D From davidmcafee at gmail.com Thu Nov 12 09:25:21 2009 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 12 Nov 2009 07:25:21 -0800 Subject: [AccessD] Reorder Level In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926AEC5@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926AEC5@c2k3exchange.pgdp.corp.usec.com> Message-ID: <8786a4c00911120725ub06c417lc03d01adc25a34e2@mail.gmail.com> warning, air code, OTTOMH (and no coffee yet) :) try this =IIF([txtReorderAmt]>0,"Item is " & [txtReorderAmt] & " units below minimum level","" On Thu, Nov 12, 2009 at 5:03 AM, Hollis, Virginia wrote: > Sorry - by "not show" - in the OnCurrent I have a text box (txtReorder) > that shows only if the item is below reorder level. It shows the amount > it is below level from the txtReorderAmt. > > ="Item ?is " & [txtReorderAmt] & " units below minimum level" > > If the txtReorderAmt is 0. Then the message in txtReorder "Item is 0 > units below minimum level. I don't want the txtReorder message to show > at all if it is 0. > > > > > > OnCurrent: > > If Not IsNull(Me!ReorderLevel.Value) Then 'There is a reorder level > entered > > ? ? ? ReorderLevel = Me!ReorderLevel.Value 'Show the value of the > reorder level entered > > > > If txtReorderAmt > 0 Then 'Reorder level is below. > Me!ReorderLevel.ForeColor = lngRed 'reorder level is red > > ? ? ? Me.txtReorder.Visible = True 'Show reorder label > > ? ?Else > > ? ? ? ? ? ?Me!ReorderLevel.ForeColor = lngBlack 'Reorder level is not > low, reorder level is black > > ? ? ? ? ? ?Me.txtReorder.Visible = False 'No order label. > > ? ?End If > > ?End If > > > > ********** > > I'm not sure what you mean by "not show" > > > > You can use conditional formatting to hide it, or you can put an > > double quote instead of a zero (but that would require a change in > > your OnCurrentEvent code). > > =IIf(([txtOnHand]+[txtOnOrder])<[ReorderLevel],[ReorderLevel]-([txtOnHan > d]+[txtOnOrder]),"") > > > > You can also make it not visible in the OnCurrent event. > > > > Also, I spelled parenthesis incorrectly :) > > > > D > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From hollisvj at pgdp.usec.com Thu Nov 12 09:39:21 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 12 Nov 2009 09:39:21 -0600 Subject: [AccessD] Reorder Level Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926AFA3@c2k3exchange.pgdp.corp.usec.com> Tadaa!! You did good without coffee... Thanks. **** warning, air code, OTTOMH (and no coffee yet) :) try this =IIF([txtReorderAmt]>0,"Item is " & [txtReorderAmt] & " units below minimum level","" From jwcolby at colbyconsulting.com Thu Nov 12 10:01:28 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 Nov 2009 11:01:28 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Message-ID: <4AFC3158.60607@colbyconsulting.com> Arthur, > I've never seen a line of code that begins with an exclamation point before. The ! is used because you are referencing a CONTROL on a form, not a PROPERTY of an object. > With Forms(m_sFormName) referencing a FORM m_sFormName > !sfcWizPanel.SourceObject = ... referencing a CONTROL (scfWizPanel then a property of that CONTROL .SourceObject The correct syntax for Access is to reference controls with a ! and a property with a . The compiler will try to fix any mistakes you make in doing this but you really should use the correct syntax. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > Questions for AccessD > > 1. What changed from version 2002 to 2003? I've been using 2003 for so long > that I can't remember 2002. As I recall it was buggy so they hurried out a > fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is > not in 2002? (The reason for this question is that I'm up for an interview > for a contract and the client specified 2002 experience. I can't think of a > single person that uses 2002.) > 2. Are there any tutorials available for how to customize the 2007 ribbon? I > think it's been asked and answered but I forget the answer. Has anyone found > a way to programmatically turn off the ribbon? > 3. Perusing some interesting Access 2007 code for a wizard builder, I came > across the following syntax: > With Forms(m_sFormName) > !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm > 'and more similar statements > I've never seen a line of code that begins with an exclamation point before. > It appears to be no different than a dot. Is it used because of the > subsequent dot notation on the remainder of the line? > 4. All the 2007 samples are written with macros not code. But when in Design > mode on a form, on the Database Tools ribbon tab there is a command to turn > all the macros on a form into VBA code. It works like a charm, so I've > converted all the samples to VBA code. My question: was this ability always > there (i.e. in 2003) and I simply didn't ever notice it, or is it new to > 2007? > > Thanks in advance. > Arthur From cjlabs at worldnet.att.net Thu Nov 12 10:04:11 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Thu, 12 Nov 2009 10:04:11 -0600 Subject: [AccessD] Several Questions regarding versions References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Message-ID: <3397F4CED69C42BD9B36681193E2E703@Dell> Ribbon -- I've used IDBE Ribbon Creator from Gunter Avenius. He also has another app that converts custom toolbars from earlier versions of Access to ribbons. That's what I've actually used, rather than creating new ones for 2007 from scratch. However, now I am setting the "startup" properties of the database programmatically in a splash form. I' delete the property "CustomRibbonID" and set the StartUpMenuBar property to my menu bar and I have no ribbons, just my old toolbars. But I would not bet on that being the best approach. Carolyn Johnson St Louis, MO ----- Original Message ----- From: Arthur Fuller To: Access Developers discussion and problem solving Sent: Thursday, November 12, 2009 8:15 AM Subject: [AccessD] Several Questions regarding versions Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Nov 12 10:13:09 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 12 Nov 2009 11:13:09 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <4AFC3158.60607@colbyconsulting.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> <4AFC3158.60607@colbyconsulting.com> Message-ID: <29f585dd0911120813p6e2884dcnc5e4f6d77fafb44@mail.gmail.com> Thanks. That explains it. Incidentally, this code is from a wizard-builder that I found on the net. It looks pretty nice. Years back there was a wizard builder for Access 2000 but it allowed only one wizard per app, which was a pretty serious limitation. This one gets around that problem nicely. Its heart is a class called clsWizard and an associated form you use to plant your subforms on each page. Then to execute a given wizard within your app, you call RunWizard wisName. The only thing is, you need to create all the subforms before building the wizard, which only makes sense. I forget where I got this wizard builder but I found it with Google, so it must be readily available. The guy who built it is on the Access development team. Anyway, thanks for clearing up the bang thing. On Thu, Nov 12, 2009 at 11:01 AM, jwcolby wrote: > Arthur, > > > I've never seen a line of code that begins with an exclamation point > before. > > The ! is used because you are referencing a CONTROL on a form, not a > PROPERTY of an object. > > > With Forms(m_sFormName) > > referencing a FORM m_sFormName > > > !sfcWizPanel.SourceObject = ... > > referencing a CONTROL (scfWizPanel > > then a property of that CONTROL .SourceObject > > The correct syntax for Access is to reference controls with a ! and a > property with a . > > The compiler will try to fix any mistakes you make in doing this but you > really should use the > correct syntax. > > From cfoust at infostatsystems.com Thu Nov 12 10:19:19 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Nov 2009 08:19:19 -0800 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Message-ID: Note the "With Forms(m_sFormName)" that opens that block of code, Arthur. You can use a bang in that case, just like a dot. The bang just tells Access you're referring specifically to a control. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, November 12, 2009 6:15 AM To: Access Developers discussion and problem solving Subject: [AccessD] Several Questions regarding versions Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Thu Nov 12 10:32:37 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Thu, 12 Nov 2009 11:32:37 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Message-ID: Arthur, Regarding the exclamation point. The code reads... With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements ' and with conclude with ... End With The With/End With construct allows you to work with the members of structured data, be they typdefs or recordsets or whatever without constantly typing the name of the container object. For example, given Type MyType nNumber as Long strString as Long End Type You can then declare a variable Dim SomeData As MyType And then in code ou can write, SomeData.nNumber = 1234 SomeDat.strString = "Hello World" Or you can write With SomeData .nNumber = 1234 .strString = "Hello World" End With This is not just a case of saving typing. When using recordset objects, if the recordset name is used in each code statement I think I read that the recordset will be refreshed, which can be time consuming. Here's a typical example of how I often use With/End With: a search routine. In the after update code of a combo I would write With Me.RecordSetClone .FindFirst "SomeField=" & SomeComboBox If Not .NoMatch Then Me.BookMark = .BookMark End If End With The .FindFirst, .NoMatch and .BookMark references are all methods of the RecordsetClone recordset object. In the case of your example of come code behind a form the form is being accessed With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm And so "sfcWizPanel" is some control on the form which has a SourceObject property, and it is being modified. In this case I think either a period (.) or exclamation point (or "bang") (!) would be syntactically correct. Usually the bang is used if data elements (properties) of an object are referenced, and you use the dot for object methods. HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, November 12, 2009 9:15 AM To: Access Developers discussion and problem solving Subject: [AccessD] Several Questions regarding versions Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Thu Nov 12 10:35:11 2009 From: jimdettman at verizon.net (Jim Dettman) Date: Thu, 12 Nov 2009 11:35:11 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <4AFC3158.60607@colbyconsulting.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> <4AFC3158.60607@colbyconsulting.com> Message-ID: <> That's old style syntax (which I still use as well). A . (dot) works fine and in fact is faster then the ! (bang) syntax. This changed starting with Access 2000 (might be wrong on that) when the controls collection was made the default collection for forms and reports. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, November 12, 2009 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Several Questions regarding versions Arthur, > I've never seen a line of code that begins with an exclamation point before. The ! is used because you are referencing a CONTROL on a form, not a PROPERTY of an object. > With Forms(m_sFormName) referencing a FORM m_sFormName > !sfcWizPanel.SourceObject = ... referencing a CONTROL (scfWizPanel then a property of that CONTROL .SourceObject The correct syntax for Access is to reference controls with a ! and a property with a . The compiler will try to fix any mistakes you make in doing this but you really should use the correct syntax. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > Questions for AccessD > > 1. What changed from version 2002 to 2003? I've been using 2003 for so long > that I can't remember 2002. As I recall it was buggy so they hurried out a > fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is > not in 2002? (The reason for this question is that I'm up for an interview > for a contract and the client specified 2002 experience. I can't think of a > single person that uses 2002.) > 2. Are there any tutorials available for how to customize the 2007 ribbon? I > think it's been asked and answered but I forget the answer. Has anyone found > a way to programmatically turn off the ribbon? > 3. Perusing some interesting Access 2007 code for a wizard builder, I came > across the following syntax: > With Forms(m_sFormName) > !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm > 'and more similar statements > I've never seen a line of code that begins with an exclamation point before. > It appears to be no different than a dot. Is it used because of the > subsequent dot notation on the remainder of the line? > 4. All the 2007 samples are written with macros not code. But when in Design > mode on a form, on the Database Tools ribbon tab there is a command to turn > all the macros on a form into VBA code. It works like a charm, so I've > converted all the samples to VBA code. My question: was this ability always > there (i.e. in 2003) and I simply didn't ever notice it, or is it new to > 2007? > > Thanks in advance. > Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Thu Nov 12 10:41:22 2009 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Fri, 13 Nov 2009 05:41:22 +1300 Subject: [AccessD] Several Questions regarding versions Message-ID: <569E08FC48047F4F848850B118195FBE038817@server.BondSoftware.local> Arthur I use A2002 on my desktop, A2003 on my laptop, port backwards and forwards between the 2 ... and apart from the odd Reference correction that needs making I've never come across an issue. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, 13 November 2009 3:30 a.m. To: Stephen Subject: [AccessD] Several Questions regarding versions Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 12 10:49:28 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 Nov 2009 11:49:28 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> <4AFC3158.60607@colbyconsulting.com> Message-ID: <4AFC3C98.40305@colbyconsulting.com> You know I read that somewhere, long ago. Thanks for reminding us. John W. Colby www.ColbyConsulting.com Jim Dettman wrote: > < property with a .>> > > That's old style syntax (which I still use as well). A . (dot) works > fine and in fact is faster then the ! (bang) syntax. > > This changed starting with Access 2000 (might be wrong on that) when the > controls collection was made the default collection for forms and reports. > > Jim. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, November 12, 2009 11:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Several Questions regarding versions > > Arthur, > > > I've never seen a line of code that begins with an exclamation point > before. > > The ! is used because you are referencing a CONTROL on a form, not a > PROPERTY of an object. > > > With Forms(m_sFormName) > > referencing a FORM m_sFormName > > > !sfcWizPanel.SourceObject = ... > > referencing a CONTROL (scfWizPanel > > then a property of that CONTROL .SourceObject > > The correct syntax for Access is to reference controls with a ! and a > property with a . > > The compiler will try to fix any mistakes you make in doing this but you > really should use the > correct syntax. > > John W. Colby > www.ColbyConsulting.com > > > Arthur Fuller wrote: >> Questions for AccessD >> >> 1. What changed from version 2002 to 2003? I've been using 2003 for so > long >> that I can't remember 2002. As I recall it was buggy so they hurried out a >> fix that was called 2003. Can anyone confirm or deny? What's in 2003 that > is >> not in 2002? (The reason for this question is that I'm up for an interview >> for a contract and the client specified 2002 experience. I can't think of > a >> single person that uses 2002.) >> 2. Are there any tutorials available for how to customize the 2007 ribbon? > I >> think it's been asked and answered but I forget the answer. Has anyone > found >> a way to programmatically turn off the ribbon? >> 3. Perusing some interesting Access 2007 code for a wizard builder, I came >> across the following syntax: >> With Forms(m_sFormName) >> !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - > 1).sSubForm >> 'and more similar statements >> I've never seen a line of code that begins with an exclamation point > before. >> It appears to be no different than a dot. Is it used because of the >> subsequent dot notation on the remainder of the line? >> 4. All the 2007 samples are written with macros not code. But when in > Design >> mode on a form, on the Database Tools ribbon tab there is a command to > turn >> all the macros on a form into VBA code. It works like a charm, so I've >> converted all the samples to VBA code. My question: was this ability > always >> there (i.e. in 2003) and I simply didn't ever notice it, or is it new to >> 2007? >> >> Thanks in advance. >> Arthur From jwcolby at colbyconsulting.com Thu Nov 12 10:50:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 12 Nov 2009 11:50:50 -0500 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <29f585dd0911120813p6e2884dcnc5e4f6d77fafb44@mail.gmail.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> <4AFC3158.60607@colbyconsulting.com> <29f585dd0911120813p6e2884dcnc5e4f6d77fafb44@mail.gmail.com> Message-ID: <4AFC3CEA.7090406@colbyconsulting.com> Boy do I need to get good with that wizard builder. I tried to wrote my own but it was too much work. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > Thanks. That explains it. Incidentally, this code is from a wizard-builder > that I found on the net. It looks pretty nice. Years back there was a wizard > builder for Access 2000 but it allowed only one wizard per app, which was a > pretty serious limitation. This one gets around that problem nicely. Its > heart is a class called clsWizard and an associated form you use to plant > your subforms on each page. Then to execute a given wizard within your app, > you call RunWizard wisName. The only thing is, you need to create all the > subforms before building the wizard, which only makes sense. > > I forget where I got this wizard builder but I found it with Google, so it > must be readily available. The guy who built it is on the Access development > team. > > Anyway, thanks for clearing up the bang thing. > > On Thu, Nov 12, 2009 at 11:01 AM, jwcolby wrote: > >> Arthur, >> >> > I've never seen a line of code that begins with an exclamation point >> before. >> >> The ! is used because you are referencing a CONTROL on a form, not a >> PROPERTY of an object. >> >> > With Forms(m_sFormName) >> >> referencing a FORM m_sFormName >> >> > !sfcWizPanel.SourceObject = ... >> >> referencing a CONTROL (scfWizPanel >> >> then a property of that CONTROL .SourceObject >> >> The correct syntax for Access is to reference controls with a ! and a >> property with a . >> >> The compiler will try to fix any mistakes you make in doing this but you >> really should use the >> correct syntax. >> >> From dw-murphy at cox.net Thu Nov 12 12:11:11 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 10:11:11 -0800 Subject: [AccessD] Query error In-Reply-To: References: Message-ID: Folks, Hopefully someone here can provide some insite in why a client gets an error on a query I created and I don't. The client wanted a way to search a large table of event times and find those events that occure within a plus or minus time of times in another table. I don't have the source tables so created an example database and a set of sample tables. The query is as follows. SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; This runs fine for me in Access 2003 and 2007 on my systems. The client runs the sample on her computer with Access 2007 and gets an error message saying "Between operator without And in query expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" I have tried playing with trust levels in my copy of Access 2007 and this doesn't make any difference. Any suggestions on what might be going on? Thanks in advance. Doug From dw-murphy at cox.net Thu Nov 12 12:21:45 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 10:21:45 -0800 Subject: [AccessD] Several Questions regarding versions In-Reply-To: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> References: <29f585dd0911120615x74672f48l3b618b4e532cc6e8@mail.gmail.com> Message-ID: <71FFB05B264247729472AECCBE82BDD2@murphy3234aaf1> Arthur, There are some subtle differences between 2002 and 2003, but I can't speak to the specifics. I use 2003 and love it. As to the Ribbon bar. Take a look at http://msdn.microsoft.com/en-us/library/bb187398.aspx and http://www.pcreview.co.uk/forums/thread-3139956.php. The last link discuses how to get the IDs of the various Ribbon groups and items. I have built a few custom ribbons and once you get idea of what is going on it isn't much different than working with the old menu and tool bars. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, November 12, 2009 6:15 AM To: Access Developers discussion and problem solving Subject: [AccessD] Several Questions regarding versions Questions for AccessD 1. What changed from version 2002 to 2003? I've been using 2003 for so long that I can't remember 2002. As I recall it was buggy so they hurried out a fix that was called 2003. Can anyone confirm or deny? What's in 2003 that is not in 2002? (The reason for this question is that I'm up for an interview for a contract and the client specified 2002 experience. I can't think of a single person that uses 2002.) 2. Are there any tutorials available for how to customize the 2007 ribbon? I think it's been asked and answered but I forget the answer. Has anyone found a way to programmatically turn off the ribbon? 3. Perusing some interesting Access 2007 code for a wizard builder, I came across the following syntax: With Forms(m_sFormName) !sfcWizPanel.SourceObject = arrPanels(m_nCurrentPanel - 1).sSubForm 'and more similar statements I've never seen a line of code that begins with an exclamation point before. It appears to be no different than a dot. Is it used because of the subsequent dot notation on the remainder of the line? 4. All the 2007 samples are written with macros not code. But when in Design mode on a form, on the Database Tools ribbon tab there is a command to turn all the macros on a form into VBA code. It works like a charm, so I've converted all the samples to VBA code. My question: was this ability always there (i.e. in 2003) and I simply didn't ever notice it, or is it new to 2007? Thanks in advance. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Nov 12 12:23:50 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Nov 2009 10:23:50 -0800 Subject: [AccessD] Query error In-Reply-To: References: Message-ID: The message seems to be saying that the AND portion of the SQL statement is missing. Is there any way that qryTimeSpan.high could be returning a null or does it always return at least midnight? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Thursday, November 12, 2009 10:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query error Folks, Hopefully someone here can provide some insite in why a client gets an error on a query I created and I don't. The client wanted a way to search a large table of event times and find those events that occure within a plus or minus time of times in another table. I don't have the source tables so created an example database and a set of sample tables. The query is as follows. SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; This runs fine for me in Access 2003 and 2007 on my systems. The client runs the sample on her computer with Access 2007 and gets an error message saying "Between operator without And in query expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" I have tried playing with trust levels in my copy of Access 2007 and this doesn't make any difference. Any suggestions on what might be going on? Thanks in advance. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Nov 12 12:47:16 2009 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 12 Nov 2009 10:47:16 -0800 Subject: [AccessD] Query error In-Reply-To: References: Message-ID: <8786a4c00911121047t7f3a594u7d3fcab300f9b9a6@mail.gmail.com> Does this work? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; On Thu, Nov 12, 2009 at 10:11 AM, Doug Murphy wrote: > > Folks, > > Hopefully someone here can provide some insite in why a client gets an error > on a query I created and I don't. The client wanted a way to search a large > table of event times and find those events that occure within a plus or > minus time of times in another table. I don't have the source tables so > created an example database and a set of sample tables. > > The query is as follows. > > SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, > qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high > FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN > qryTimeSpan.low AND qryTimeSpan.high; > > This runs fine for me in Access 2003 and 2007 on my systems. The client runs > the sample on her computer with Access 2007 and gets an error message saying > "Between operator without And in query expression 'tblEventTime.EventTime > BETWEEN qryTimeSpan.low" > > I have tried playing with trust levels in my copy of Access 2007 and this > doesn't make any difference. Any suggestions on what might be going on? > > Thanks in advance. > > Doug > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From kismert at gmail.com Thu Nov 12 13:01:57 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Thu, 12 Nov 2009 13:01:57 -0600 Subject: [AccessD] Microsoft WebsiteSpark Program Message-ID: <7c7841600911121101k36a17362q6fe77d6d1759790e@mail.gmail.com> Gustav Brock: > Have you heard of Microsoft? WebsiteSpark*? > ... > http://www.microsoft.com/web/websitespark/Support.aspx?tab=ProgramDetails > > So if you consider "something else" than Access, this might help you. > > That is very interesting. I must say, I am impressed with IIS7/Windows Web Server. It is stable, modular, and fairly easy to configure, once you understand 'the big unspoken critical element' in their configuration utility. Further, Microsoft has gone a long way in integrating PHP with IIS7. They have fixed a multitude of compatibility issues that used to exist in IIS6 versions of PHP. Visual Studio even includes a PHP plugin with syntax highlighting. This has to be a more-promising development path than Access' still tenuous development story. -Ken From dw-murphy at cox.net Thu Nov 12 13:34:30 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 11:34:30 -0800 Subject: [AccessD] Query error In-Reply-To: <8786a4c00911121047t7f3a594u7d3fcab300f9b9a6@mail.gmail.com> References: <8786a4c00911121047t7f3a594u7d3fcab300f9b9a6@mail.gmail.com> Message-ID: <27158D0BE83745D286E2A2A20CBC483F@murphy3234aaf1> Hi David, I get a "Join not supported" message with this query. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, November 12, 2009 10:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error Does this work? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; On Thu, Nov 12, 2009 at 10:11 AM, Doug Murphy wrote: > > Folks, > > Hopefully someone here can provide some insite in why a client gets an > error on a query I created and I don't. The client wanted a way to > search a large table of event times and find those events that occure > within a plus or minus time of times in another table. I don't have > the source tables so created an example database and a set of sample tables. > > The query is as follows. > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > This runs fine for me in Access 2003 and 2007 on my systems. The > client runs the sample on her computer with Access 2007 and gets an > error message saying "Between operator without And in query expression > 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > I have tried playing with trust levels in my copy of Access 2007 and > this doesn't make any difference. Any suggestions on what might be going on? > > Thanks in advance. > > Doug > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Thu Nov 12 13:38:42 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 11:38:42 -0800 Subject: [AccessD] Query error In-Reply-To: References: Message-ID: There are no nulls in the data. The strange thing is that it runs on all my machines, but not the clients. She is using my test mdb so we are using the same data. The other strange thing is that the result table from the query shows on her machine, but closes as soon as she closes the error window. When I look this error message up on my Access help, GOGGLE, it seems that most of the instances where it is reported have to do with date/time fields. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, November 12, 2009 10:24 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error The message seems to be saying that the AND portion of the SQL statement is missing. Is there any way that qryTimeSpan.high could be returning a null or does it always return at least midnight? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Thursday, November 12, 2009 10:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query error Folks, Hopefully someone here can provide some insite in why a client gets an error on a query I created and I don't. The client wanted a way to search a large table of event times and find those events that occure within a plus or minus time of times in another table. I don't have the source tables so created an example database and a set of sample tables. The query is as follows. SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; This runs fine for me in Access 2003 and 2007 on my systems. The client runs the sample on her computer with Access 2007 and gets an error message saying "Between operator without And in query expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" I have tried playing with trust levels in my copy of Access 2007 and this doesn't make any difference. Any suggestions on what might be going on? Thanks in advance. Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Nov 12 14:05:33 2009 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 12 Nov 2009 12:05:33 -0800 Subject: [AccessD] Query error In-Reply-To: References: Message-ID: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com> WOW, I didn't have my coffee yet. Is there anything in qryTimeSpan that can join to tblEventTime other that the timeSpan high & low range? Can you change your BETWEEN to >= and <= for testing purposes? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high); On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > There are no nulls in the data. The strange thing is that it runs on all my > machines, but not the clients. She is using my test mdb so we are using the > same data. The other strange thing is that the result table from the query > shows on her machine, but closes as soon as she closes the error window. > When I look this error message up on my Access help, GOGGLE, it seems that > most of the instances where it is reported have to do with date/time fields. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Thursday, November 12, 2009 10:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > The message seems to be saying that the AND portion of the SQL statement is > missing. ?Is there any way that qryTimeSpan.high could be returning a null > or does it always return at least midnight? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy > Sent: Thursday, November 12, 2009 10:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Query error > > > Folks, > > Hopefully someone here can provide some insite in why a client gets an error > on a query I created and I don't. The client wanted a way to search a large > table of event times and find those events that occure within a plus or > minus time of times in another table. I don't have the source tables so > created an example database and a set of sample tables. > > The query is as follows. > > SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, > qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime > INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN qryTimeSpan.low AND > qryTimeSpan.high; > > This runs fine for me in Access 2003 and 2007 on my systems. The client runs > the sample on her computer with Access 2007 and gets an error message saying > "Between operator without And in query expression 'tblEventTime.EventTime > BETWEEN qryTimeSpan.low" > > I have tried playing with trust levels in my copy of Access 2007 and this > doesn't make any difference. Any suggestions on what might be going on? > > Thanks in advance. > > Doug > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Thu Nov 12 15:30:11 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 13:30:11 -0800 Subject: [AccessD] Query error In-Reply-To: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com> References: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com> Message-ID: <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> Hi David, Not really. That is the point of the non-equi join, i.e., give the events that occur within the time spans defined in qryTimeSpan. There is not a specific field to join. I can't really test variants because the query works on all my machines. I was hoping someone on this list might have run into this and have a solution. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, November 12, 2009 12:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error WOW, I didn't have my coffee yet. Is there anything in qryTimeSpan that can join to tblEventTime other that the timeSpan high & low range? Can you change your BETWEEN to >= and <= for testing purposes? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high); On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > There are no nulls in the data. The strange thing is that it runs on > all my machines, but not the clients. She is using my test mdb so we > are using the same data. The other strange thing is that the result > table from the query shows on her machine, but closes as soon as she closes the error window. > When I look this error message up on my Access help, GOGGLE, it seems > that most of the instances where it is reported have to do with date/time fields. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Thursday, November 12, 2009 10:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > The message seems to be saying that the AND portion of the SQL > statement is missing. ?Is there any way that qryTimeSpan.high could be > returning a null or does it always return at least midnight? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy > Sent: Thursday, November 12, 2009 10:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Query error > > > Folks, > > Hopefully someone here can provide some insite in why a client gets an > error on a query I created and I don't. The client wanted a way to > search a large table of event times and find those events that occure > within a plus or minus time of times in another table. I don't have > the source tables so created an example database and a set of sample tables. > > The query is as follows. > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > This runs fine for me in Access 2003 and 2007 on my systems. The > client runs the sample on her computer with Access 2007 and gets an > error message saying "Between operator without And in query expression > 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > I have tried playing with trust levels in my copy of Access 2007 and > this doesn't make any difference. Any suggestions on what might be going on? > > Thanks in advance. > > Doug > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Thu Nov 12 15:36:19 2009 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 12 Nov 2009 13:36:19 -0800 Subject: [AccessD] Query error In-Reply-To: <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> References: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com> <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> Message-ID: <8786a4c00911121336q201f4f30va70232b793c3a996@mail.gmail.com> That original SQL statement should work. Did you try putting the between conditions in between parenthesis or switching to >= and <= for testing purposes? On Thu, Nov 12, 2009 at 1:30 PM, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the events > that occur within the time spans defined in qryTimeSpan. There is not a > specific field to join. I can't really test variants because the query works > on all my machines. I was hoping someone on this list might have run into > this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other that > the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, > qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime > INNER JOIN qryTimeSpan ON (tblEventTime.EventTime >= qryTimeSpan.low AND > tblEventTime.EventTime <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: >> There are no nulls in the data. The strange thing is that it runs on >> all my machines, but not the clients. She is using my test mdb so we >> are using the same data. The other strange thing is that the result >> table from the query shows on her machine, but closes as soon as she > closes the error window. >> When I look this error message up on my Access help, GOGGLE, it seems >> that most of the instances where it is reported have to do with date/time > fields. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> Foust >> Sent: Thursday, November 12, 2009 10:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Query error >> >> The message seems to be saying that the AND portion of the SQL >> statement is missing. ?Is there any way that qryTimeSpan.high could be >> returning a null or does it always return at least midnight? >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy >> Sent: Thursday, November 12, 2009 10:11 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Query error >> >> >> Folks, >> >> Hopefully someone here can provide some insite in why a client gets an >> error on a query I created and I don't. The client wanted a way to >> search a large table of event times and find those events that occure >> within a plus or minus time of times in another table. I don't have >> the source tables so created an example database and a set of sample > tables. >> >> The query is as follows. >> >> SELECT tblEventTime.ID, tblEventTime.EventTime, >> qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, >> qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON >> tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; >> >> This runs fine for me in Access 2003 and 2007 on my systems. The >> client runs the sample on her computer with Access 2007 and gets an >> error message saying "Between operator without And in query expression >> 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" >> >> I have tried playing with trust levels in my copy of Access 2007 and >> this doesn't make any difference. Any suggestions on what might be going > on? >> >> Thanks in advance. >> >> Doug >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Thu Nov 12 15:52:46 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 13:52:46 -0800 Subject: [AccessD] Query error In-Reply-To: <8786a4c00911121336q201f4f30va70232b793c3a996@mail.gmail.com> References: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com><54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> <8786a4c00911121336q201f4f30va70232b793c3a996@mail.gmail.com> Message-ID: The query works on the 4 different machines I tried it on here. The client is going to try some different machines at her facility. I'll wait until she gets back on her test results. It would be a real b---- if this is machine specific. Thank you for your time David. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, November 12, 2009 1:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error That original SQL statement should work. Did you try putting the between conditions in between parenthesis or switching to >= and <= for testing purposes? On Thu, Nov 12, 2009 at 1:30 PM, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the > events that occur within the time spans defined in qryTimeSpan. There > is not a specific field to join. I can't really test variants because > the query works on all my machines. I was hoping someone on this list > might have run into this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other > that the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime > <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: >> There are no nulls in the data. The strange thing is that it runs on >> all my machines, but not the clients. She is using my test mdb so we >> are using the same data. The other strange thing is that the result >> table from the query shows on her machine, but closes as soon as she > closes the error window. >> When I look this error message up on my Access help, GOGGLE, it seems >> that most of the instances where it is reported have to do with >> date/time > fields. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> Foust >> Sent: Thursday, November 12, 2009 10:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Query error >> >> The message seems to be saying that the AND portion of the SQL >> statement is missing. ?Is there any way that qryTimeSpan.high could >> be returning a null or does it always return at least midnight? >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug >> Murphy >> Sent: Thursday, November 12, 2009 10:11 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Query error >> >> >> Folks, >> >> Hopefully someone here can provide some insite in why a client gets >> an error on a query I created and I don't. The client wanted a way to >> search a large table of event times and find those events that occure >> within a plus or minus time of times in another table. I don't have >> the source tables so created an example database and a set of sample > tables. >> >> The query is as follows. >> >> SELECT tblEventTime.ID, tblEventTime.EventTime, >> qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, >> qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON >> tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; >> >> This runs fine for me in Access 2003 and 2007 on my systems. The >> client runs the sample on her computer with Access 2007 and gets an >> error message saying "Between operator without And in query >> expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" >> >> I have tried playing with trust levels in my copy of Access 2007 and >> this doesn't make any difference. Any suggestions on what might be >> going > on? >> >> Thanks in advance. >> >> Doug >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Nov 12 15:53:38 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 12 Nov 2009 13:53:38 -0800 Subject: [AccessD] Query error In-Reply-To: <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> References: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com> <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> Message-ID: Between is merely another way of saying >= and <=. You can always substitute one for the other. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Thursday, November 12, 2009 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query error Hi David, Not really. That is the point of the non-equi join, i.e., give the events that occur within the time spans defined in qryTimeSpan. There is not a specific field to join. I can't really test variants because the query works on all my machines. I was hoping someone on this list might have run into this and have a solution. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Thursday, November 12, 2009 12:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error WOW, I didn't have my coffee yet. Is there anything in qryTimeSpan that can join to tblEventTime other that the timeSpan high & low range? Can you change your BETWEEN to >= and <= for testing purposes? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high); On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > There are no nulls in the data. The strange thing is that it runs on > all my machines, but not the clients. She is using my test mdb so we > are using the same data. The other strange thing is that the result > table from the query shows on her machine, but closes as soon as she closes the error window. > When I look this error message up on my Access help, GOGGLE, it seems > that most of the instances where it is reported have to do with > date/time fields. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > Foust > Sent: Thursday, November 12, 2009 10:24 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > The message seems to be saying that the AND portion of the SQL > statement is missing. ?Is there any way that qryTimeSpan.high could be > returning a null or does it always return at least midnight? > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy > Sent: Thursday, November 12, 2009 10:11 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Query error > > > Folks, > > Hopefully someone here can provide some insite in why a client gets an > error on a query I created and I don't. The client wanted a way to > search a large table of event times and find those events that occure > within a plus or minus time of times in another table. I don't have > the source tables so created an example database and a set of sample tables. > > The query is as follows. > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > This runs fine for me in Access 2003 and 2007 on my systems. The > client runs the sample on her computer with Access 2007 and gets an > error message saying "Between operator without And in query expression > 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > I have tried playing with trust levels in my copy of Access 2007 and > this doesn't make any difference. Any suggestions on what might be > going on? > > Thanks in advance. > > Doug > From davidmcafee at gmail.com Thu Nov 12 15:59:51 2009 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 12 Nov 2009 13:59:51 -0800 Subject: [AccessD] Query error In-Reply-To: References: <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com> <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> Message-ID: <8786a4c00911121359n53e13d6ew85a882fd9facce7c@mail.gmail.com> I know, I just want to see if anything different happens. Could it be a missing reference? Have you decompiled and/or compacted? David On Thu, Nov 12, 2009 at 1:53 PM, Charlotte Foust wrote: > Between is merely another way of saying >= and <=. ?You can always substitute one for the other. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy > Sent: Thursday, November 12, 2009 1:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Query error > > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the events that occur within the time spans defined in qryTimeSpan. There is not a specific field to join. I can't really test variants because the query works on all my machines. I was hoping someone on this list might have run into this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other that the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: >> There are no nulls in the data. The strange thing is that it runs on >> all my machines, but not the clients. She is using my test mdb so we >> are using the same data. The other strange thing is that the result >> table from the query shows on her machine, but closes as soon as she > closes the error window. >> When I look this error message up on my Access help, GOGGLE, it seems >> that most of the instances where it is reported have to do with >> date/time > fields. >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte >> Foust >> Sent: Thursday, November 12, 2009 10:24 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Query error >> >> The message seems to be saying that the AND portion of the SQL >> statement is missing. ?Is there any way that qryTimeSpan.high could be >> returning a null or does it always return at least midnight? >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy >> Sent: Thursday, November 12, 2009 10:11 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Query error >> >> >> Folks, >> >> Hopefully someone here can provide some insite in why a client gets an >> error on a query I created and I don't. The client wanted a way to >> search a large table of event times and find those events that occure >> within a plus or minus time of times in another table. I don't have >> the source tables so created an example database and a set of sample > tables. >> >> The query is as follows. >> >> SELECT tblEventTime.ID, tblEventTime.EventTime, >> qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, >> qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON >> tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; >> >> This runs fine for me in Access 2003 and 2007 on my systems. The >> client runs the sample on her computer with Access 2007 and gets an >> error message saying "Between operator without And in query expression >> 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" >> >> I have tried playing with trust levels in my copy of Access 2007 and >> this doesn't make any difference. Any suggestions on what might be >> going > on? >> >> Thanks in advance. >> >> Doug >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Nov 12 16:13:36 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Nov 2009 08:13:36 +1000 Subject: [AccessD] Query error In-Reply-To: <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> References: , <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com>, <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> Message-ID: <4AFC8890.18708.9837234@stuart.lexacorp.com.pg> How about getting rid of the jexplicit join? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; or avoid the BETWEEN as well SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high; On 12 Nov 2009 at 13:30, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the events > that occur within the time spans defined in qryTimeSpan. There is not a > specific field to join. I can't really test variants because the query works > on all my machines. I was hoping someone on this list might have run into > this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other that > the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, > qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime > INNER JOIN qryTimeSpan ON (tblEventTime.EventTime >= qryTimeSpan.low AND > tblEventTime.EventTime <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > > There are no nulls in the data. The strange thing is that it runs on > > all my machines, but not the clients. She is using my test mdb so we > > are using the same data. The other strange thing is that the result > > table from the query shows on her machine, but closes as soon as she > closes the error window. > > When I look this error message up on my Access help, GOGGLE, it seems > > that most of the instances where it is reported have to do with date/time > fields. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Thursday, November 12, 2009 10:24 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Query error > > > > The message seems to be saying that the AND portion of the SQL > > statement is missing. ?Is there any way that qryTimeSpan.high could be > > returning a null or does it always return at least midnight? > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy > > Sent: Thursday, November 12, 2009 10:11 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Query error > > > > > > Folks, > > > > Hopefully someone here can provide some insite in why a client gets an > > error on a query I created and I don't. The client wanted a way to > > search a large table of event times and find those events that occure > > within a plus or minus time of times in another table. I don't have > > the source tables so created an example database and a set of sample > tables. > > > > The query is as follows. > > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > > > This runs fine for me in Access 2003 and 2007 on my systems. The > > client runs the sample on her computer with Access 2007 and gets an > > error message saying "Between operator without And in query expression > > 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > > > I have tried playing with trust levels in my copy of Access 2007 and > > this doesn't make any difference. Any suggestions on what might be going > on? > > > > Thanks in advance. > > > > Doug > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dw-murphy at cox.net Thu Nov 12 16:45:13 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 12 Nov 2009 14:45:13 -0800 Subject: [AccessD] Query error In-Reply-To: <4AFC8890.18708.9837234@stuart.lexacorp.com.pg> References: , <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com>, <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> <4AFC8890.18708.9837234@stuart.lexacorp.com.pg> Message-ID: <6B3319C4AAA14865A2A95DF4579BEFB5@murphy3234aaf1> Hi Stuart, Both of those work on my machines. I'll send off to the client and see if they work for her. It turns out this error is unique to one machine in her office. The original query works on other machines she has access to. I don't have time right now to set up a virtual machine with the same service pack levels that she has. I am hoping it isn't a service level specific thing. Thanks for your input. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, November 12, 2009 2:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error How about getting rid of the jexplicit join? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; or avoid the BETWEEN as well SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high; On 12 Nov 2009 at 13:30, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the > events that occur within the time spans defined in qryTimeSpan. There > is not a specific field to join. I can't really test variants because > the query works on all my machines. I was hoping someone on this list > might have run into this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other > that the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime > <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > > There are no nulls in the data. The strange thing is that it runs on > > all my machines, but not the clients. She is using my test mdb so we > > are using the same data. The other strange thing is that the result > > table from the query shows on her machine, but closes as soon as she > closes the error window. > > When I look this error message up on my Access help, GOGGLE, it > > seems that most of the instances where it is reported have to do > > with date/time > fields. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Thursday, November 12, 2009 10:24 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Query error > > > > The message seems to be saying that the AND portion of the SQL > > statement is missing. ?Is there any way that qryTimeSpan.high could > > be returning a null or does it always return at least midnight? > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > Murphy > > Sent: Thursday, November 12, 2009 10:11 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Query error > > > > > > Folks, > > > > Hopefully someone here can provide some insite in why a client gets > > an error on a query I created and I don't. The client wanted a way > > to search a large table of event times and find those events that > > occure within a plus or minus time of times in another table. I > > don't have the source tables so created an example database and a > > set of sample > tables. > > > > The query is as follows. > > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > > > This runs fine for me in Access 2003 and 2007 on my systems. The > > client runs the sample on her computer with Access 2007 and gets an > > error message saying "Between operator without And in query > > expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > > > I have tried playing with trust levels in my copy of Access 2007 and > > this doesn't make any difference. Any suggestions on what might be > > going > on? > > > > Thanks in advance. > > > > Doug > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Fri Nov 13 01:34:26 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Nov 2009 08:34:26 +0100 Subject: [AccessD] Microsoft WebsiteSpark Program Message-ID: Hi Ken Yes, it is an interesting offer. Indeed as it includes production licenses for Windows and SQL Server. Could you shed some light please on how to understand and handle 'the big unspoken critical element' in their configuration utility? Is this a trap of some kind? /gustav >>> kismert at gmail.com 12-11-2009 20:01 >>> Gustav Brock: > Have you heard of Microsoft? WebsiteSpark*? > ... > http://www.microsoft.com/web/websitespark/Support.aspx?tab=ProgramDetails > > So if you consider "something else" than Access, this might help you. > > That is very interesting. I must say, I am impressed with IIS7/Windows Web Server. It is stable, modular, and fairly easy to configure, once you understand 'the big unspoken critical element' in their configuration utility. Further, Microsoft has gone a long way in integrating PHP with IIS7. They have fixed a multitude of compatibility issues that used to exist in IIS6 versions of PHP. Visual Studio even includes a PHP plugin with syntax highlighting. This has to be a more-promising development path than Access' still tenuous development story. -Ken From Gustav at cactus.dk Fri Nov 13 01:58:24 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Nov 2009 08:58:24 +0100 Subject: [AccessD] Query error Message-ID: Hi Charlotte Not quite. BETWEEN means literally "between" which means that you can switch the values of the parameters. Thus if: a = 1 b = 4 then x between a and b will return x of 1, 2, 3, and 4, and so it will if you switch the values: a = 4 b = 1 To simulate that exactly with >= and <= you will need an extended construction like this: (x >= a and x <= b) or (x >= b and x <= a) /gustav >>> cfoust at infostatsystems.com 12-11-2009 22:53 >>> Between is merely another way of saying >= and <=. You can always substitute one for the other. Charlotte Foust From stuart at lexacorp.com.pg Fri Nov 13 05:32:02 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 13 Nov 2009 21:32:02 +1000 Subject: [AccessD] Microsoft WebsiteSpark Program In-Reply-To: References: Message-ID: <4AFD43B2.10707.C5E72BF@stuart.lexacorp.com.pg> If you want to develop in PHP, I'd far rather work with Apache/PGP/MySQL than IIS. Check out WAMP - I develop with it on my laptop, and I then dump the results to a our BSD server (pngconnect.com) when it goes live. http://www.wampserver.com/en/ -- Stuart On 13 Nov 2009 at 8:34, Gustav Brock wrote: > Hi Ken > > Yes, it is an interesting offer. Indeed as it includes production > licenses for Windows and SQL Server. > > Could you shed some light please on how to understand and handle 'the > big unspoken critical element' in their configuration utility? Is this a > trap of some kind? > > /gustav > > > >>> kismert at gmail.com 12-11-2009 20:01 >>> > Gustav Brock: > > > Have you heard of Microsoft? WebsiteSpark*? > > ... > > > http://www.microsoft.com/web/websitespark/Support.aspx?tab=ProgramDetails > > > > > So if you consider "something else" than Access, this might help > you. > > > > > That is very interesting. > > I must say, I am impressed with IIS7/Windows Web Server. It is stable, > modular, and fairly easy to configure, once you understand 'the big > unspoken > critical element' in their configuration utility. > > Further, Microsoft has gone a long way in integrating PHP with IIS7. > They > have fixed a multitude of compatibility issues that used to exist in > IIS6 > versions of PHP. Visual Studio even includes a PHP plugin with syntax > highlighting. > > This has to be a more-promising development path than Access' still > tenuous > development story. > > -Ken > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From drawbridgej at sympatico.ca Fri Nov 13 06:47:04 2009 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Fri, 13 Nov 2009 07:47:04 -0500 Subject: [AccessD] Query error In-Reply-To: References: Message-ID: <09E1F2831B9548EAA82F5427D30372D6@AMDXP> Doug, I would have expected the syntax to include an "=" between matching fields in the 2 tables and a Where clause which would include the BETWEEN... AND.... - along the following (from my own example A2003) SELECT CaseAssign.[Case ID], CaseAssign.[Assigned To], CustList.[Date 1st Draft], CustList.[Date Closed] FROM CaseAssign INNER JOIN CustList ON CaseAssign.CustNo = CustList.CustNo WHERE (((CustList.[Date 1st Draft]) Between #9/23/2009# And #10/16/2009#)); Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Thursday, November 12, 2009 1:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query error Folks, Hopefully someone here can provide some insite in why a client gets an error on a query I created and I don't. The client wanted a way to search a large table of event times and find those events that occure within a plus or minus time of times in another table. I don't have the source tables so created an example database and a set of sample tables. The query is as follows. SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; This runs fine for me in Access 2003 and 2007 on my systems. The client runs the sample on her computer with Access 2007 and gets an error message saying "Between operator without And in query expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" I have tried playing with trust levels in my copy of Access 2007 and this doesn't make any difference. Any suggestions on what might be going on? Thanks in advance. Doug -- 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 - www.avg.com Version: 9.0.707 / Virus Database: 270.14.61/2498 - Release Date: 11/12/09 02:38:00 From dw-murphy at cox.net Fri Nov 13 08:47:51 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 13 Nov 2009 06:47:51 -0800 Subject: [AccessD] Query error In-Reply-To: <09E1F2831B9548EAA82F5427D30372D6@AMDXP> References: <09E1F2831B9548EAA82F5427D30372D6@AMDXP> Message-ID: <15764101A96A4EF8A7610F2370CFEEA0@murphy3234aaf1> This is a non-equi join, no "=". As I said it worked on all the computers I tried it on and another the client has. I guess the problem she ran into was specific to that one machine, which is bothersome. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jack and Pat Sent: Friday, November 13, 2009 4:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query error Doug, I would have expected the syntax to include an "=" between matching fields in the 2 tables and a Where clause which would include the BETWEEN... AND.... - along the following (from my own example A2003) SELECT CaseAssign.[Case ID], CaseAssign.[Assigned To], CustList.[Date 1st Draft], CustList.[Date Closed] FROM CaseAssign INNER JOIN CustList ON CaseAssign.CustNo = CustList.CustNo WHERE (((CustList.[Date 1st Draft]) Between #9/23/2009# And #10/16/2009#)); Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Thursday, November 12, 2009 1:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Query error Folks, Hopefully someone here can provide some insite in why a client gets an error on a query I created and I don't. The client wanted a way to search a large table of event times and find those events that occure within a plus or minus time of times in another table. I don't have the source tables so created an example database and a set of sample tables. The query is as follows. SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; This runs fine for me in Access 2003 and 2007 on my systems. The client runs the sample on her computer with Access 2007 and gets an error message saying "Between operator without And in query expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" I have tried playing with trust levels in my copy of Access 2007 and this doesn't make any difference. Any suggestions on what might be going on? Thanks in advance. Doug -- 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 - www.avg.com Version: 9.0.707 / Virus Database: 270.14.61/2498 - Release Date: 11/12/09 02:38:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Fri Nov 13 08:49:22 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 13 Nov 2009 06:49:22 -0800 Subject: [AccessD] Query error In-Reply-To: <4AFC8890.18708.9837234@stuart.lexacorp.com.pg> References: , <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com>, <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1> <4AFC8890.18708.9837234@stuart.lexacorp.com.pg> Message-ID: <69BA1D34A2994EEA8DF2F700B5C6DFD2@murphy3234aaf1> Hello Stuart, Your version worked for me and the client, even on the macine that was giving the error message. I guess that machine doesn't like the join. Thank you again for your help. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, November 12, 2009 2:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error How about getting rid of the jexplicit join? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; or avoid the BETWEEN as well SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high; On 12 Nov 2009 at 13:30, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the > events that occur within the time spans defined in qryTimeSpan. There > is not a specific field to join. I can't really test variants because > the query works on all my machines. I was hoping someone on this list > might have run into this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other > that the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime > <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > > There are no nulls in the data. The strange thing is that it runs on > > all my machines, but not the clients. She is using my test mdb so we > > are using the same data. The other strange thing is that the result > > table from the query shows on her machine, but closes as soon as she > closes the error window. > > When I look this error message up on my Access help, GOGGLE, it > > seems that most of the instances where it is reported have to do > > with date/time > fields. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Thursday, November 12, 2009 10:24 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Query error > > > > The message seems to be saying that the AND portion of the SQL > > statement is missing. ?Is there any way that qryTimeSpan.high could > > be returning a null or does it always return at least midnight? > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > Murphy > > Sent: Thursday, November 12, 2009 10:11 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Query error > > > > > > Folks, > > > > Hopefully someone here can provide some insite in why a client gets > > an error on a query I created and I don't. The client wanted a way > > to search a large table of event times and find those events that > > occure within a plus or minus time of times in another table. I > > don't have the source tables so created an example database and a > > set of sample > tables. > > > > The query is as follows. > > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > > > This runs fine for me in Access 2003 and 2007 on my systems. The > > client runs the sample on her computer with Access 2007 and gets an > > error message saying "Between operator without And in query > > expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > > > I have tried playing with trust levels in my copy of Access 2007 and > > this doesn't make any difference. Any suggestions on what might be > > going > on? > > > > Thanks in advance. > > > > Doug > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheygood at abestsystems.com Fri Nov 13 09:18:04 2009 From: bheygood at abestsystems.com (Bob Heygood) Date: Fri, 13 Nov 2009 07:18:04 -0800 Subject: [AccessD] Query error In-Reply-To: <69BA1D34A2994EEA8DF2F700B5C6DFD2@murphy3234aaf1> References: , <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com>, <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1><4AFC8890.18708.9837234@stuart.lexacorp.com.pg> <69BA1D34A2994EEA8DF2F700B5C6DFD2@murphy3234aaf1> Message-ID: <1173FC75CB074BCEB24043DED8DE47A4@Lenny> Hey Doug, I would look at something like how that one particular machine is set up in Windows in regards to Time/Date. If in fact your data types are truly time/dates. Hope this helps, Bob Heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Friday, November 13, 2009 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query error Hello Stuart, Your version worked for me and the client, even on the macine that was giving the error message. I guess that machine doesn't like the join. Thank you again for your help. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, November 12, 2009 2:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error How about getting rid of the jexplicit join? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; or avoid the BETWEEN as well SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high; On 12 Nov 2009 at 13:30, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the > events that occur within the time spans defined in qryTimeSpan. There > is not a specific field to join. I can't really test variants because > the query works on all my machines. I was hoping someone on this list > might have run into this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other > that the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime > <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > > There are no nulls in the data. The strange thing is that it runs on > > all my machines, but not the clients. She is using my test mdb so we > > are using the same data. The other strange thing is that the result > > table from the query shows on her machine, but closes as soon as she > closes the error window. > > When I look this error message up on my Access help, GOGGLE, it > > seems that most of the instances where it is reported have to do > > with date/time > fields. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Thursday, November 12, 2009 10:24 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Query error > > > > The message seems to be saying that the AND portion of the SQL > > statement is missing. ?Is there any way that qryTimeSpan.high could > > be returning a null or does it always return at least midnight? > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > Murphy > > Sent: Thursday, November 12, 2009 10:11 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Query error > > > > > > Folks, > > > > Hopefully someone here can provide some insite in why a client gets > > an error on a query I created and I don't. The client wanted a way > > to search a large table of event times and find those events that > > occure within a plus or minus time of times in another table. I > > don't have the source tables so created an example database and a > > set of sample > tables. > > > > The query is as follows. > > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > > > This runs fine for me in Access 2003 and 2007 on my systems. The > > client runs the sample on her computer with Access 2007 and gets an > > error message saying "Between operator without And in query > > expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > > > I have tried playing with trust levels in my copy of Access 2007 and > > this doesn't make any difference. Any suggestions on what might be > > going > on? > > > > Thanks in advance. > > > > Doug > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Fri Nov 13 09:39:04 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Fri, 13 Nov 2009 09:39:04 -0600 Subject: [AccessD] Microsoft WebsiteSpark Program In-Reply-To: <7c7841600911121101k36a17362q6fe77d6d1759790e@mail.gmail.com> References: <7c7841600911121101k36a17362q6fe77d6d1759790e@mail.gmail.com> Message-ID: <7c7841600911130739g65bdba1atb0c54025745a3e0@mail.gmail.com> Gustav: >Could you shed some light please on how to understand and >handle 'the big unspoken critical element' in their configuration >utility? Is this a trap of some kind? Yes, a 'stupid trap'. And it held me quite effectively for longer than I care to admit :P IIS7 has a hierarchical configuration scheme - the base configuration can be overridden at the application pool, site or even folder level. But of course, their configuration program gives no hint as to the hierarchical nature of the configurations. No tree views, no lineage lists, nada. You just click around, and see very slightly different configuration options at each level. You can imagine the potential for mayhem if a program gives no clue as to the impact of your changes. Also, all the critical commands are shaded in tan on the right side -- a 'less-important' positioning from a graphic design point of view. I kept searching the 'obviously important' stuff on the left, baffled that those commands didn't do anything. I was drooling out of the corner of my mouth before I figured that one out. I found enlightenment on the www.iis.net forums. The Apache method of making you dig through a beautifully-commented config file was really started to show its merits at the end of my first IIS7 configuration foray. -Ken From dw-murphy at cox.net Fri Nov 13 09:43:02 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Fri, 13 Nov 2009 07:43:02 -0800 Subject: [AccessD] Query error In-Reply-To: <1173FC75CB074BCEB24043DED8DE47A4@Lenny> References: , <8786a4c00911121205n477a9d53sb98c210b16176a5d@mail.gmail.com>, <54C1ADF7F8CF474FB5B62031E8F1732E@murphy3234aaf1><4AFC8890.18708.9837234@stuart.lexacorp.com.pg><69BA1D34A2994EEA8DF2F700B5C6DFD2@murphy3234aaf1> <1173FC75CB074BCEB24043DED8DE47A4@Lenny> Message-ID: <8AEEDD37B8654CA69DD5940F7555118D@murphy3234aaf1> Hi Bob, I am sure there is something there that causes the problem. Hope it isn't a service pack thing. This was supposed to be a quick response to how can I do this one time task to check a huge data file. Don't have the time to try and fix the problem with that machine. We got it working on another machine so forward to the next challenge. Thanks for your thoughts. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Heygood Sent: Friday, November 13, 2009 7:18 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query error Hey Doug, I would look at something like how that one particular machine is set up in Windows in regards to Time/Date. If in fact your data types are truly time/dates. Hope this helps, Bob Heygood -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Friday, November 13, 2009 6:49 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Query error Hello Stuart, Your version worked for me and the client, even on the macine that was giving the error message. I guess that machine doesn't like the join. Thank you again for your help. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, November 12, 2009 2:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query error How about getting rid of the jexplicit join? SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; or avoid the BETWEEN as well SELECT tblEventTime.ID, tblEventTime.EventTime, qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, qryTimeSpan.high FROM tblEventTime, qryTimeSpan WHERE tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime <=qryTimeSpan.high; On 12 Nov 2009 at 13:30, Doug Murphy wrote: > Hi David, > > Not really. That is the point of the non-equi join, i.e., give the > events that occur within the time spans defined in qryTimeSpan. There > is not a specific field to join. I can't really test variants because > the query works on all my machines. I was hoping someone on this list > might have run into this and have a solution. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David > McAfee > Sent: Thursday, November 12, 2009 12:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Query error > > WOW, I didn't have my coffee yet. > > Is there anything in qryTimeSpan that can join to tblEventTime other > that the timeSpan high & low range? > > Can you change your BETWEEN to >= and <= for testing purposes? > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > (tblEventTime.EventTime >= qryTimeSpan.low AND tblEventTime.EventTime > <=qryTimeSpan.high); > > > > On Thu, Nov 12, 2009 at 11:38 AM, Doug Murphy wrote: > > There are no nulls in the data. The strange thing is that it runs on > > all my machines, but not the clients. She is using my test mdb so we > > are using the same data. The other strange thing is that the result > > table from the query shows on her machine, but closes as soon as she > closes the error window. > > When I look this error message up on my Access help, GOGGLE, it > > seems that most of the instances where it is reported have to do > > with date/time > fields. > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte > > Foust > > Sent: Thursday, November 12, 2009 10:24 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Query error > > > > The message seems to be saying that the AND portion of the SQL > > statement is missing. ?Is there any way that qryTimeSpan.high could > > be returning a null or does it always return at least midnight? > > > > Charlotte Foust > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug > > Murphy > > Sent: Thursday, November 12, 2009 10:11 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Query error > > > > > > Folks, > > > > Hopefully someone here can provide some insite in why a client gets > > an error on a query I created and I don't. The client wanted a way > > to search a large table of event times and find those events that > > occure within a plus or minus time of times in another table. I > > don't have the source tables so created an example database and a > > set of sample > tables. > > > > The query is as follows. > > > > SELECT tblEventTime.ID, tblEventTime.EventTime, > > qryTimeSpan.compTimeID, qryTimeSpan.CompTime, qryTimeSpan.low, > > qryTimeSpan.high FROM tblEventTime INNER JOIN qryTimeSpan ON > > tblEventTime.EventTime BETWEEN qryTimeSpan.low AND qryTimeSpan.high; > > > > This runs fine for me in Access 2003 and 2007 on my systems. The > > client runs the sample on her computer with Access 2007 and gets an > > error message saying "Between operator without And in query > > expression 'tblEventTime.EventTime BETWEEN qryTimeSpan.low" > > > > I have tried playing with trust levels in my copy of Access 2007 and > > this doesn't make any difference. Any suggestions on what might be > > going > on? > > > > Thanks in advance. > > > > Doug > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Nov 13 09:53:06 2009 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 13 Nov 2009 07:53:06 -0800 Subject: [AccessD] Access/SQL Message-ID: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> An interesting post, although I'm not sure I agree with all the guy's points: http://blogs.msdn.com/access/archive/2009/11/12/why-access-works-for-blue-link.aspx Doug From jimdettman at verizon.net Fri Nov 13 10:02:22 2009 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 13 Nov 2009 11:02:22 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> Message-ID: <57C745436B0D443681D2063FB13C3393@LaptopII> Doug, What would you not agree with? Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:53 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access/SQL An interesting post, although I'm not sure I agree with all the guy's points: http://blogs.msdn.com/access/archive/2009/11/12/why-access-works-for-blue-li nk.aspx Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Nov 13 10:22:19 2009 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 13 Nov 2009 08:22:19 -0800 Subject: [AccessD] Access/SQL In-Reply-To: <57C745436B0D443681D2063FB13C3393@LaptopII> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> <57C745436B0D443681D2063FB13C3393@LaptopII> Message-ID: <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > From jwcolby at colbyconsulting.com Fri Nov 13 10:54:40 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 13 Nov 2009 11:54:40 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> <57C745436B0D443681D2063FB13C3393@LaptopII> <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> Message-ID: <4AFD8F50.6010704@colbyconsulting.com> I pretty much agree with the main points of the article however what is not mentioned is what .Net provides that VBA doesn't. For simple apps Access is da bomb, but for complex requirements that include file parsing, directory watching, FTP, and so forth Access hits a wall. And yea, yea, third party controls (see what the author says about them and apply to Access third party as well). I'm about as capable in Access / VBA as anyone I know (I don't get out much ;) and I am learning .Net because of the limitations of Access. I have working applications that are quite complex that I wish I could convert. I also think that what can happen in .Net is that the people doing the programming might not always be fluent in the database side. It is easy to hire .Net programmers, not so easy to hire database developers fluent in .Net. John W. Colby www.ColbyConsulting.com Doug Steele wrote: > It's a bit nit picky, but based on my somewhat limited ASP.NET development > experience (one web/SQL based app) > > 1. No multi column comboxes. True, but easy enough to work around. I've > been moving away from multi column comboboxes in Access development anyway > as I find them fiddly to debug (and this is me debugging my own code). > 2. No paging. Gridviews page very nicely. > 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. > 4. Labels that move with controls. Who cares? Half the time when I'm > working in Access I end up with unattached labels. > > Again, based on my limited experience so far, it takes me at least 4X the > time to develop a screen in C# that it would in Access; but I've got 10+ > years of Access experience and 100 or so hours of C#. My fingers are > already developing .net habits and I know that in a year or so I'll be way > faster. > > Doug > > On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > >> Doug, >> >> What would you not agree with? >> >> From dwaters at usinternet.com Fri Nov 13 11:15:51 2009 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Nov 2009 11:15:51 -0600 Subject: [AccessD] Access/SQL In-Reply-To: <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII> <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> Message-ID: <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Doug - how do you set up a continuous form in VB.net? I use these extensively, and I bet almost all Access developers do too. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Nov 13 11:40:11 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 13 Nov 2009 20:40:11 +0300 Subject: [AccessD] Access/SQL In-Reply-To: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> Message-ID: <005c01ca6488$5b87b270$12971750$@spb.ru> Doug -- .NET development made by experienced developers is as RAD as MS Access or even "RAD-der"... AFAIK experienced .NET developers are usually fluent with SQL - MS Access or MS SQL backends - and they have so many ways to communicate with backend to select from, which Access developers never had... One of the huge advantages for .NET apps is that starting from simple WinForm apps or console utilities you can scale your apps almost endlessly (horizontally, vertically, "diagonally"....) using the same code base: there will be no way/it will be very expensive to do that if you start with MS Access frontend. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 6:53 PM To: Access Developers discussion and problem solving Subject: [AccessD] Access/SQL An interesting post, although I'm not sure I agree with all the guy's points: http://blogs.msdn.com/access/archive/2009/11/12/why-access-works-for-blue-li nk.aspx Doug -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4604 (20091113) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From dbdoug at gmail.com Fri Nov 13 11:53:00 2009 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 13 Nov 2009 09:53:00 -0800 Subject: [AccessD] Access/SQL In-Reply-To: <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> <57C745436B0D443681D2063FB13C3393@LaptopII> <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: <4dd71a0c0911130953x2e41f78q37c8b98f77a634b2@mail.gmail.com> Maybe I'm missing something, but I would consider the gridview control to be equivalent to a continuous form. No? Doug On Fri, Nov 13, 2009 at 9:15 AM, Dan Waters wrote: > Doug - how do you set up a continuous form in VB.net? I use these > extensively, and I bet almost all Access developers do too. > > From jimdettman at verizon.net Fri Nov 13 12:01:27 2009 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 13 Nov 2009 13:01:27 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFD8F50.6010704@colbyconsulting.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> <57C745436B0D443681D2063FB13C3393@LaptopII> <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> <4AFD8F50.6010704@colbyconsulting.com> Message-ID: John, << For simple apps Access is da bomb, but for complex requirements that include file parsing, directory watching, FTP, and so forth Access hits a wall.>> Hum...I don't know about that...I haven't found anything to date I have not been able to accomplish fairly easily and I do quite a bit of that stuff. <> True and even worse with Access as most 3rd party controls are not even supported. This is probably the biggest downfall of Access outside of VBA references. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, November 13, 2009 11:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL I pretty much agree with the main points of the article however what is not mentioned is what .Net provides that VBA doesn't. For simple apps Access is da bomb, but for complex requirements that include file parsing, directory watching, FTP, and so forth Access hits a wall. And yea, yea, third party controls (see what the author says about them and apply to Access third party as well). I'm about as capable in Access / VBA as anyone I know (I don't get out much ;) and I am learning .Net because of the limitations of Access. I have working applications that are quite complex that I wish I could convert. I also think that what can happen in .Net is that the people doing the programming might not always be fluent in the database side. It is easy to hire .Net programmers, not so easy to hire database developers fluent in .Net. John W. Colby www.ColbyConsulting.com Doug Steele wrote: > It's a bit nit picky, but based on my somewhat limited ASP.NET development > experience (one web/SQL based app) > > 1. No multi column comboxes. True, but easy enough to work around. I've > been moving away from multi column comboboxes in Access development anyway > as I find them fiddly to debug (and this is me debugging my own code). > 2. No paging. Gridviews page very nicely. > 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. > 4. Labels that move with controls. Who cares? Half the time when I'm > working in Access I end up with unattached labels. > > Again, based on my limited experience so far, it takes me at least 4X the > time to develop a screen in C# that it would in Access; but I've got 10+ > years of Access experience and 100 or so hours of C#. My fingers are > already developing .net habits and I know that in a year or so I'll be way > faster. > > Doug > > On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > >> Doug, >> >> What would you not agree with? >> >> -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Nov 13 12:03:33 2009 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 13 Nov 2009 13:03:33 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII> <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: Dan, A continuous form is only needed because you don't have grids in Access and they don't have anywhere near the capabilities that a true grid control does because of the way bound/unbound fields are handled. Of course the plus side of that is that they don't consume resources like a grid does because of that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 12:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug - how do you set up a continuous form in VB.net? I use these extensively, and I bet almost all Access developers do too. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 13 12:19:35 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 13 Nov 2009 10:19:35 -0800 Subject: [AccessD] Access/SQL In-Reply-To: <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com> <6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: DataGridView. Way powerful and you can do stuff you can't do in a continuous form. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 9:16 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug - how do you set up a continuous form in VB.net? I use these extensively, and I bet almost all Access developers do too. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Nov 13 12:28:54 2009 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Nov 2009 12:28:54 -0600 Subject: [AccessD] Access/SQL In-Reply-To: References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com><6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: Doug & Jim & Charlotte, Can you place comboboxes, checkboxes, etc. in the Grid View? I believe that the grid views I've seen were simply presenting data - like a spreadsheet. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, November 13, 2009 12:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Dan, A continuous form is only needed because you don't have grids in Access and they don't have anywhere near the capabilities that a true grid control does because of the way bound/unbound fields are handled. Of course the plus side of that is that they don't consume resources like a grid does because of that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 12:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug - how do you set up a continuous form in VB.net? I use these extensively, and I bet almost all Access developers do too. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Nov 13 12:39:42 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 13 Nov 2009 13:39:42 -0500 Subject: [AccessD] SPAM-LOW: Re: Access/SQL In-Reply-To: References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com><6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: <4AFDA7EE.7000103@colbyconsulting.com> > Can you place comboboxes, checkboxes, etc. in the Grid View? Yes. It is not drag and drop. If you right click on the grid a menu pops up alloowing you to see the fields. One of the properties is the control type of each column. Set that to a combo and a new section is added to the properties of that column to allow you to select the data source, the field to "bind" and the field to show. It is only a single field so you would have to do like we often do in Access and build a query to combine LName / FName into a single field etc. All in all it is ... different but equivalent. John W. Colby www.ColbyConsulting.com Dan Waters wrote: > Doug & Jim & Charlotte, > > Can you place comboboxes, checkboxes, etc. in the Grid View? I believe that > the grid views I've seen were simply presenting data - like a spreadsheet. > > Dan From jwcolby at colbyconsulting.com Fri Nov 13 12:39:52 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 13 Nov 2009 13:39:52 -0500 Subject: [AccessD] SPAM-LOW: Re: Access/SQL In-Reply-To: References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com><6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: <4AFDA7F8.7000003@colbyconsulting.com> > Can you place comboboxes, checkboxes, etc. in the Grid View? Yes. It is not drag and drop. If you right click on the grid a menu pops up allowing you to see the fields. One of the properties is the control type of each column. Set that to a combo and a new section is added to the properties of that column to allow you to select the data source, the field to "bind" and the field to show. It is only a single field so you would have to do like we often do in Access and build a query to combine LName / FName into a single field etc. All in all it is ... different but equivalent. John W. Colby www.ColbyConsulting.com Dan Waters wrote: > Doug & Jim & Charlotte, > > Can you place comboboxes, checkboxes, etc. in the Grid View? I believe that > the grid views I've seen were simply presenting data - like a spreadsheet. > > Dan From dwaters at usinternet.com Fri Nov 13 13:06:41 2009 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Nov 2009 13:06:41 -0600 Subject: [AccessD] SPAM-LOW: Re: Access/SQL In-Reply-To: <4AFDA7F8.7000003@colbyconsulting.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com><6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> <4AFDA7F8.7000003@colbyconsulting.com> Message-ID: <13168F60C96749279F791125F2E67F9F@danwaters> Thanks John - you just taught me a whole lot! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, November 13, 2009 12:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Re: Access/SQL > Can you place comboboxes, checkboxes, etc. in the Grid View? Yes. It is not drag and drop. If you right click on the grid a menu pops up allowing you to see the fields. One of the properties is the control type of each column. Set that to a combo and a new section is added to the properties of that column to allow you to select the data source, the field to "bind" and the field to show. It is only a single field so you would have to do like we often do in Access and build a query to combine LName / FName into a single field etc. All in all it is ... different but equivalent. John W. Colby www.ColbyConsulting.com Dan Waters wrote: > Doug & Jim & Charlotte, > > Can you place comboboxes, checkboxes, etc. in the Grid View? I believe that > the grid views I've seen were simply presenting data - like a spreadsheet. > > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Nov 13 13:08:53 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 13 Nov 2009 11:08:53 -0800 Subject: [AccessD] Access/SQL In-Reply-To: References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com><6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: There are the properties that John mentions, but you can also specify a controleditor for a grid column and set that to another kind of control. We use customized versions of various controls to keep the UI appearance of them uniform. So we often set the editor to one of our custom comboboxes if we want more control than just a dropdown. This is really useful if we want to set a datetime coumn to one of our customized datetimebox controls or timebox controls, which handle the formatting and behavior automatically. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug & Jim & Charlotte, Can you place comboboxes, checkboxes, etc. in the Grid View? I believe that the grid views I've seen were simply presenting data - like a spreadsheet. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, November 13, 2009 12:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Dan, A continuous form is only needed because you don't have grids in Access and they don't have anywhere near the capabilities that a true grid control does because of the way bound/unbound fields are handled. Of course the plus side of that is that they don't consume resources like a grid does because of that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 12:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug - how do you set up a continuous form in VB.net? I use these extensively, and I bet almost all Access developers do too. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Fri Nov 13 13:58:10 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 13 Nov 2009 12:58:10 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan Message-ID: <000001ca649b$a0c983f0$5bdea8c0@edz1> Using the below code from an Access 2000 VBA application, once running these commands there is still an Excel job running in task manager. The Excel orphan makes it impossible to run the VBA application recessively. One clue is Excel will finally shut down if the Access 2000 VBA application / database is shutdown. Any way to tell Excel to just shut down ? Is there a work-a-round for this problem ? Thanks. Sincerely, Edward Zuris. - ======================================================= ====== .Quit code not closing Excel Application ====== Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook . . . Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= - Yet a simpler VBA applications doesn't have this issue using the following. This also fails using the complex VBA program. Any ideas ? ======================================================= = .Quit code Working closing simple Excel Application = ExcelwBook.Application.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelwBook.Application.DisplayAlerts = True ExcelwBook.Application.Quit ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= From dwaters at usinternet.com Fri Nov 13 14:08:30 2009 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Nov 2009 14:08:30 -0600 Subject: [AccessD] Access/SQL In-Reply-To: References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com><57C745436B0D443681D2063FB13C3393@LaptopII><4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com><6BB8C72379EB4A5E9CF38D3D140F1546@danwaters> Message-ID: <96392B1E78AE4A51A83C26E4AE2FB192@danwaters> Thanks Charlotte! I'll be getting there next year. :-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, November 13, 2009 1:09 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL There are the properties that John mentions, but you can also specify a controleditor for a grid column and set that to another kind of control. We use customized versions of various controls to keep the UI appearance of them uniform. So we often set the editor to one of our custom comboboxes if we want more control than just a dropdown. This is really useful if we want to set a datetime coumn to one of our customized datetimebox controls or timebox controls, which handle the formatting and behavior automatically. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 10:29 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug & Jim & Charlotte, Can you place comboboxes, checkboxes, etc. in the Grid View? I believe that the grid views I've seen were simply presenting data - like a spreadsheet. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Friday, November 13, 2009 12:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Dan, A continuous form is only needed because you don't have grids in Access and they don't have anywhere near the capabilities that a true grid control does because of the way bound/unbound fields are handled. Of course the plus side of that is that they don't consume resources like a grid does because of that. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, November 13, 2009 12:16 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Doug - how do you set up a continuous form in VB.net? I use these extensively, and I bet almost all Access developers do too. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Friday, November 13, 2009 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL It's a bit nit picky, but based on my somewhat limited ASP.NET development experience (one web/SQL based app) 1. No multi column comboxes. True, but easy enough to work around. I've been moving away from multi column comboboxes in Access development anyway as I find them fiddly to debug (and this is me debugging my own code). 2. No paging. Gridviews page very nicely. 3. Different form types: Huh? Gridviews, Formviews, detailsview in .net. 4. Labels that move with controls. Who cares? Half the time when I'm working in Access I end up with unattached labels. Again, based on my limited experience so far, it takes me at least 4X the time to develop a screen in C# that it would in Access; but I've got 10+ years of Access experience and 100 or so hours of C#. My fingers are already developing .net habits and I know that in a year or so I'll be way faster. Doug On Fri, Nov 13, 2009 at 8:02 AM, Jim Dettman wrote: > Doug, > > What would you not agree with? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Nov 13 14:58:24 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 13 Nov 2009 15:58:24 -0500 Subject: [AccessD] mdb size check In-Reply-To: References: Message-ID: <34AB5AB0023E4B37904AF660E98D038F@jislaptopdev> ...I want to check the be mdb size on startup and pop-up a dialogue box with a customizable message if the size exceeds a parameterized threshold ...anyone have code that does this ...preferably dao? William From mmattys at rochester.rr.com Fri Nov 13 15:09:23 2009 From: mmattys at rochester.rr.com (Mike Mattys) Date: Fri, 13 Nov 2009 16:09:23 -0500 Subject: [AccessD] mdb size check References: <34AB5AB0023E4B37904AF660E98D038F@jislaptopdev> Message-ID: According to Stuart McCall, it is Debug.Print FileLen(CurrentDb.Name) - Michael R Mattys MapPoint and Database Dev www.mattysconsulting.com - ----- Original Message ----- From: "William Hindman" To: "'Access Developers discussion and problem solving'" Sent: Friday, November 13, 2009 3:58 PM Subject: [AccessD] mdb size check > ...I want to check the be mdb size on startup and pop-up a dialogue box > with > a customizable message if the size exceeds a parameterized threshold > ...anyone have code that does this ...preferably dao? > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pharold at proftesting.com Fri Nov 13 15:10:44 2009 From: pharold at proftesting.com (Perry L Harold) Date: Fri, 13 Nov 2009 16:10:44 -0500 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <000001ca649b$a0c983f0$5bdea8c0@edz1> References: <000001ca649b$a0c983f0$5bdea8c0@edz1> Message-ID: I saw an example where the order made a difference. It suggested closing in this order. ExcelwBook.Save ExcelApp.Quit ExcelwBook.Close False Maybe it will make a difference. Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 13, 2009 2:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Problem with Access VBA makes Excel Orphan Using the below code from an Access 2000 VBA application, once running these commands there is still an Excel job running in task manager. The Excel orphan makes it impossible to run the VBA application recessively. One clue is Excel will finally shut down if the Access 2000 VBA application / database is shutdown. Any way to tell Excel to just shut down ? Is there a work-a-round for this problem ? Thanks. Sincerely, Edward Zuris. - ======================================================= ====== .Quit code not closing Excel Application ====== Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook . . . Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= - Yet a simpler VBA applications doesn't have this issue using the following. This also fails using the complex VBA program. Any ideas ? ======================================================= = .Quit code Working closing simple Excel Application = ExcelwBook.Application.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelwBook.Application.DisplayAlerts = True ExcelwBook.Application.Quit ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Fri Nov 13 15:13:59 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 13 Nov 2009 16:13:59 -0500 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <000001ca649b$a0c983f0$5bdea8c0@edz1> References: <000001ca649b$a0c983f0$5bdea8c0@edz1> Message-ID: Edward, I always open Excel files this way... Function Excel_OpenWorkBookHidden(Path As String, Optional UpdateLinks As Boolean = False, Optional Password As String = "") As Excel.Application Dim xlObj As Excel.Application On Error GoTo Excel_OpenWorkBookHidden_err Set xlObj = CreateObject("Excel.Application") xlObj.Workbooks.Open Path, UpdateLinks, , , Password Set Excel_OpenWorkBookHidden = xlObj Excel_OpenWorkBookHidden_exit: Exit Function Excel_OpenWorkBookHidden_err: 'Insert your error reporting routine here ' Set Excel_OpenWorkBookHidden = Nothing Resume Excel_OpenWorkBookHidden_exit End Function Example usage: Dim xLAp as Excel.Application Set xLAp = Excel_OpenWorkBookHidden("X:\SomePath\SomeFile.xls") And if you want the workbook visible... Function Excel_OpenWorkBook(Path As String, Optional UpdateLinks As Boolean = False, Optional Password As String = "") As Excel.Application Dim xlObj As Excel.Application On Error GoTo Excel_OpenWorkBook_err Set xlObj = Excel_OpenWorkBookHidden(Path, UpdateLinks, Password) If xlObj.Name > "" Then xlObj.Visible = True Set Excel_OpenWorkBook = xlObj Excel_OpenWorkBook_exit: Exit Function Excel_OpenWorkBook_err: 'Insert your error reporting routine here ' Set Excel_OpenWorkBook = Nothing Resume Excel_OpenWorkBook_exit End Function Then to close an Excel file opened with the above routines... Typically I work with worksheet objects, not workbooks, so somewhere in my code after opening an Excel file there will be one or more Dim xlWs as Excel.WorkSheet Set xlWs = xlQb.Sheets("Data") ... And then to close everything down I use Set xlWs = Nothing Excel_CloseWorkBook xlWs The code for Excel_CloseWorkBook is... Sub Excel_CloseWorkBook(xlApp As Excel.Application, Optional bSaveChanges As Boolean = False) Dim wb As Excel.Workbook On Error Resume Next If xlApp.Name > "" Then End If If Err.Number <> 0 Then Exit Sub On Error GoTo 0 For Each wb In xlApp.Workbooks 'Close all open workbooks wb.Close bSaveChanges Next wb xlApp.UserControl = False Set xlApp = Nothing End Sub The line "xlApp.UserControl = False" seems to be crucial to the process (though I don't remember where I read about it) the property is supposed to be False for programmatically opened files, but it seems that setting it explicitly before closing seems to help. I wonder if your code between the two lines Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False Is manipulating any worksheet objects that are not then set to Nothing? Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 13, 2009 2:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Problem with Access VBA makes Excel Orphan Using the below code from an Access 2000 VBA application, once running these commands there is still an Excel job running in task manager. The Excel orphan makes it impossible to run the VBA application recessively. One clue is Excel will finally shut down if the Access 2000 VBA application / database is shutdown. Any way to tell Excel to just shut down ? Is there a work-a-round for this problem ? Thanks. Sincerely, Edward Zuris. - ======================================================= ====== .Quit code not closing Excel Application ====== Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook . . . Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= - Yet a simpler VBA applications doesn't have this issue using the following. This also fails using the complex VBA program. Any ideas ? ======================================================= = .Quit code Working closing simple Excel Application = ExcelwBook.Application.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelwBook.Application.DisplayAlerts = True ExcelwBook.Application.Quit ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Fri Nov 13 15:22:43 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 13 Nov 2009 16:22:43 -0500 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: References: <000001ca649b$a0c983f0$5bdea8c0@edz1> Message-ID: Scratch the comment about needing to use xlApp.UserControl = False in the close routine. I just tested it and it does not seem to make any difference. -----Original Message----- From: Heenan, Lambert Sent: Friday, November 13, 2009 4:14 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Problem with Access VBA makes Excel Orphan Edward, I always open Excel files this way... Function Excel_OpenWorkBookHidden(Path As String, Optional UpdateLinks As Boolean = False, Optional Password As String = "") As Excel.Application Dim xlObj As Excel.Application Lambert From Lambert.Heenan at chartisinsurance.com Fri Nov 13 15:34:52 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 13 Nov 2009 16:34:52 -0500 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <000001ca649b$a0c983f0$5bdea8c0@edz1> References: <000001ca649b$a0c983f0$5bdea8c0@edz1> Message-ID: Edward, I just ran your example code in this form... Sub Excel_test(zPath As String, zName As String) Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing End Sub ... And it does NOT leave an Excel orphan around. I can only conclude from that that your problem lies with the code between the lines. Somewhere you are probably setting a reference to some Excel object that is not subsequently released. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 13, 2009 2:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Problem with Access VBA makes Excel Orphan Using the below code from an Access 2000 VBA application, once running these commands there is still an Excel job running in task manager. The Excel orphan makes it impossible to run the VBA application recessively. One clue is Excel will finally shut down if the Access 2000 VBA application / database is shutdown. Any way to tell Excel to just shut down ? Is there a work-a-round for this problem ? Thanks. Sincerely, Edward Zuris. - ======================================================= ====== .Quit code not closing Excel Application ====== Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook . . . Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= - Yet a simpler VBA applications doesn't have this issue using the following. This also fails using the complex VBA program. Any ideas ? ======================================================= = .Quit code Working closing simple Excel Application = ExcelwBook.Application.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelwBook.Application.DisplayAlerts = True ExcelwBook.Application.Quit ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kismert at gmail.com Fri Nov 13 15:37:45 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Fri, 13 Nov 2009 15:37:45 -0600 Subject: [AccessD] Microsoft WebsiteSpark Program Message-ID: <7c7841600911131337r46529e34kc12c07937ca8e517@mail.gmail.com> Stuart McLachlan: >If you want to develop in PHP, I'd far rather work with >Apache/PHP/MySQL than IIS. >Check out WAMP ... > http://www.wampserver.com/en/ WampServer is my Apache development stack of choice. Certainly, you can set up a development web server using WampServer just as easily as IIS. And, the open source components will be perpetually free. But, I'm sure a lot of you would want to offer web services that closely tie in with other Microsoft technologies, and for that WebsiteSpark looks like a great choice. -Ken From stuart at lexacorp.com.pg Fri Nov 13 16:10:07 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Nov 2009 08:10:07 +1000 Subject: [AccessD] Access/SQL In-Reply-To: <4AFD8F50.6010704@colbyconsulting.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com>, <4AFD8F50.6010704@colbyconsulting.com> Message-ID: <4AFDD93F.17131.EA69EDA@stuart.lexacorp.com.pg> I do file parsing, directory watching and FTP within Access all the time without third party controls - just a few API calls and the occassional Shell to built in WIndows capabilities (such as FTP). No wall that I've come across. -- Stuart On 13 Nov 2009 at 11:54, jwcolby wrote: > I pretty much agree with the main points of the article however what is not mentioned is what .Net > provides that VBA doesn't. For simple apps Access is da bomb, but for complex requirements that > include file parsing, directory watching, FTP, and so forth Access hits a wall. > From stuart at lexacorp.com.pg Fri Nov 13 16:29:20 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Nov 2009 08:29:20 +1000 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <000001ca649b$a0c983f0$5bdea8c0@edz1> References: <000001ca649b$a0c983f0$5bdea8c0@edz1> Message-ID: <4AFDDDC0.10435.EB838F7@stuart.lexacorp.com.pg> Third time I've answered this on the list this year. See: TrasnferSpreadsheet failing on 18 March 2009 and Access to Excel Automation works first time on 13 July 2009: in the archives. The old "unqualified reference" strikes again :-) See http://support.microsoft.com/kb/319832 When you write code to use an Excel object, method, or property, you should always precede the call with the appropriate object variable. If you do not, Visual Basic establishes its own reference to Excel. -- Stuart On 13 Nov 2009 at 12:58, Edward Zuris wrote: > > Using the below code from an Access 2000 VBA > application, once running these commands there > is still an Excel job running in task manager. > > The Excel orphan makes it impossible to run the > VBA application recessively. > > One clue is Excel will finally shut down if > the Access 2000 VBA application / database > is shutdown. > > Any way to tell Excel to just shut down ? > > Is there a work-a-round for this problem ? > > Thanks. > > Sincerely, > Edward Zuris. > > - > > ======================================================= > ====== .Quit code not closing Excel Application ====== > > Dim ExcelApp As Excel.Application > Dim ExcelwBook As Excel.Workbook > . . . > Set ExcelApp = New Excel.Application > Set ExcelwBook = ExcelApp.Workbooks.Add > . . . > ExcelApp.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelApp.DisplayAlerts = True > > ExcelwBook.Save > ExcelwBook.Close False > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > ======================================================= > ======================================================= > - > > Yet a simpler VBA applications doesn't have > this issue using the following. > > This also fails using the complex VBA program. > > Any ideas ? > > ======================================================= > = .Quit code Working closing simple Excel Application = > > ExcelwBook.Application.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelwBook.Application.DisplayAlerts = True > > ExcelwBook.Application.Quit > > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > > ======================================================= > ======================================================= > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Nov 13 16:36:17 2009 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 13 Nov 2009 14:36:17 -0800 Subject: [AccessD] mdb size check In-Reply-To: <34AB5AB0023E4B37904AF660E98D038F@jislaptopdev> References: <34AB5AB0023E4B37904AF660E98D038F@jislaptopdev> Message-ID: <4dd71a0c0911131436n2c35a83fi1e8b96a3d3579603@mail.gmail.com> Dim DataFileLength as long DataFileLength = 0 On Error Resume Next 'make path - just continue if it causes an error DataFileLength = FileLen(globMyDir & "WOData.mdb") On Error GoTo 0 If DataFileLength > 130000000 Then txSizeWarning = "Warning: WOData.mdb should be compacted soon!" & vbCrLf & "Size is now " & Format(DataFileLength / 1000000, "#,###") & " Megabytes" txSizeWarning.Visible = True Else txSizeWarning.Visible = False End If Doug On Fri, Nov 13, 2009 at 12:58 PM, William Hindman < wdhindman at dejpolsystems.com> wrote: > ...I want to check the be mdb size on startup and pop-up a dialogue box > with > a customizable message if the size exceeds a parameterized threshold > ...anyone have code that does this ...preferably dao? > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Fri Nov 13 16:37:14 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 13 Nov 2009 23:37:14 +0100 Subject: [AccessD] Microsoft WebsiteSpark Program Message-ID: Hi Ken Thank you. I'll keep an eye on this next time working with IIS. /gustav >>> kismert at gmail.com 13-11-2009 16:39 >>> Gustav: >Could you shed some light please on how to understand and >handle 'the big unspoken critical element' in their configuration >utility? Is this a trap of some kind? Yes, a 'stupid trap'. And it held me quite effectively for longer than I care to admit :P IIS7 has a hierarchical configuration scheme - the base configuration can be overridden at the application pool, site or even folder level. But of course, their configuration program gives no hint as to the hierarchical nature of the configurations. No tree views, no lineage lists, nada. You just click around, and see very slightly different configuration options at each level. You can imagine the potential for mayhem if a program gives no clue as to the impact of your changes. Also, all the critical commands are shaded in tan on the right side -- a 'less-important' positioning from a graphic design point of view. I kept searching the 'obviously important' stuff on the left, baffled that those commands didn't do anything. I was drooling out of the corner of my mouth before I figured that one out. I found enlightenment on the www.iis.net forums. The Apache method of making you dig through a beautifully-commented config file was really started to show its merits at the end of my first IIS7 configuration foray. -Ken From edzedz at comcast.net Fri Nov 13 16:38:45 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 13 Nov 2009 15:38:45 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: Message-ID: <000001ca64b2$0facf570$5bdea8c0@edz1> Thanks Heenan Lambert, I'll see if I can come up with something a smaller that demonstrates the problem. I was hopeing there was a command that forces Excel to finish-up whatever and exit cleanly regardless. Killing the Excel orphan isn't an option because the Access 2000 VBA still thinks it is out there causing other downstream Excel jobs to fail. The problem started when I started forcing Page Control Breaks whenever the Department column had a change. = = = = = = = = = = = = = = = = = = = = = = = If sNew <> sOld Then sTmp5 = "" sTmp5 = CStr(lRow + 1) & ":" & CStr(lRow + 1) ExcelwBook.sheets(sSheet).Rows(sTmp5).Insert Shift:=-4121 For lColumn = 1 To 6 ExcelwBook.sheets(sSheet).Cells(lRow + 1, lColumn).Interior.ColorIndex = 10 Next lColumn sOld = "" sOld = sNew If lRow > 1 Then ' * First Method * 'On Error Resume Next 'ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6).Select ' With ExcelwBook.Application.ActiveWindow ' .ScrollColumn = 2 ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell 'End With 'On Error GoTo 0 ' ***************************************************** ' Force Page Control Breaks ' With ExcelwBook.sheets(sSheet) .HPageBreaks.Add Before:=Cells(lRow + 1, 6) End With End If End If = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at chartisinsurance.com] Sent: Friday, November 13, 2009 2:35 PM To: 'Access Developers discussion and problem solving' Cc: 'Edward Zuris' Subject: RE: [AccessD] Problem with Access VBA makes Excel Orphan Edward, I just ran your example code in this form... Sub Excel_test(zPath As String, zName As String) Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing End Sub ... And it does NOT leave an Excel orphan around. I can only conclude from that that your problem lies with the code between the lines. Somewhere you are probably setting a reference to some Excel object that is not subsequently released. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 13, 2009 2:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Problem with Access VBA makes Excel Orphan Using the below code from an Access 2000 VBA application, once running these commands there is still an Excel job running in task manager. The Excel orphan makes it impossible to run the VBA application recessively. One clue is Excel will finally shut down if the Access 2000 VBA application / database is shutdown. Any way to tell Excel to just shut down ? Is there a work-a-round for this problem ? Thanks. Sincerely, Edward Zuris. - ======================================================= ====== .Quit code not closing Excel Application ====== Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook . . . Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= - Yet a simpler VBA applications doesn't have this issue using the following. This also fails using the complex VBA program. Any ideas ? ======================================================= = .Quit code Working closing simple Excel Application = ExcelwBook.Application.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelwBook.Application.DisplayAlerts = True ExcelwBook.Application.Quit ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Fri Nov 13 16:40:04 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 13 Nov 2009 15:40:04 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: Message-ID: <000101ca64b2$3e915a70$5bdea8c0@edz1> I'll give it a try. . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Friday, November 13, 2009 2:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan I saw an example where the order made a difference. It suggested closing in this order. ExcelwBook.Save ExcelApp.Quit ExcelwBook.Close False Maybe it will make a difference. Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Friday, November 13, 2009 2:58 PM To: accessd at databaseadvisors.com Subject: [AccessD] Problem with Access VBA makes Excel Orphan Using the below code from an Access 2000 VBA application, once running these commands there is still an Excel job running in task manager. The Excel orphan makes it impossible to run the VBA application recessively. One clue is Excel will finally shut down if the Access 2000 VBA application / database is shutdown. Any way to tell Excel to just shut down ? Is there a work-a-round for this problem ? Thanks. Sincerely, Edward Zuris. - ======================================================= ====== .Quit code not closing Excel Application ====== Dim ExcelApp As Excel.Application Dim ExcelwBook As Excel.Workbook . . . Set ExcelApp = New Excel.Application Set ExcelwBook = ExcelApp.Workbooks.Add . . . ExcelApp.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelApp.DisplayAlerts = True ExcelwBook.Save ExcelwBook.Close False ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= - Yet a simpler VBA applications doesn't have this issue using the following. This also fails using the complex VBA program. Any ideas ? ======================================================= = .Quit code Working closing simple Excel Application = ExcelwBook.Application.DisplayAlerts = False ExcelwBook.SaveAs zPath & zName ExcelwBook.Application.DisplayAlerts = True ExcelwBook.Application.Quit ExcelApp.Quit Set ExcelwBook = Nothing Set ExcelApp = Nothing ======================================================= ======================================================= -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Nov 13 17:22:51 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Nov 2009 09:22:51 +1000 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <000001ca64b2$0facf570$5bdea8c0@edz1> References: , <000001ca64b2$0facf570$5bdea8c0@edz1> Message-ID: <4AFDEA4B.24556.EE9389A@stuart.lexacorp.com.pg> .HPageBreaks.Add Before:=Cells(lRow + 1, 6) There's your unqualified reference. Change it to: .HPageBreaks.Add Before:=ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6). -- Stuart On 13 Nov 2009 at 15:38, Edward Zuris wrote: > > Thanks Heenan Lambert, > > I'll see if I can come up with something > a smaller that demonstrates the problem. > > I was hopeing there was a command that forces > Excel to finish-up whatever and exit cleanly > regardless. > > Killing the Excel orphan isn't an option because > the Access 2000 VBA still thinks it is out there > causing other downstream Excel jobs to fail. > > The problem started when I started forcing > Page Control Breaks whenever the Department > column had a change. > > = = = = = = = = = = = = = = = = = = = = = = = > > If sNew <> sOld Then > sTmp5 = "" > sTmp5 = CStr(lRow + 1) & ":" & CStr(lRow + 1) > ExcelwBook.sheets(sSheet).Rows(sTmp5).Insert Shift:=-4121 > For lColumn = 1 To 6 > ExcelwBook.sheets(sSheet).Cells(lRow + 1, > lColumn).Interior.ColorIndex = 10 > Next lColumn > > sOld = "" > sOld = sNew > > If lRow > 1 Then > ' * First Method * > 'On Error Resume Next > 'ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6).Select > ' With ExcelwBook.Application.ActiveWindow > ' .ScrollColumn = 2 > ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell > 'End With > 'On Error GoTo 0 > > ' ***************************************************** > ' Force Page Control Breaks > ' > With ExcelwBook.sheets(sSheet) > .HPageBreaks.Add Before:=Cells(lRow + 1, 6) > End With > > End If > > End If > > = = = = = = = = = = = = = = = = = = = = = = = > = = = = = = = = = = = = = = = = = = = = = = = > > > -----Original Message----- > From: Heenan, Lambert [mailto:Lambert.Heenan at chartisinsurance.com] > Sent: Friday, November 13, 2009 2:35 PM > To: 'Access Developers discussion and problem solving' > Cc: 'Edward Zuris' > Subject: RE: [AccessD] Problem with Access VBA makes Excel Orphan > > > Edward, > > I just ran your example code in this form... > > > Sub Excel_test(zPath As String, zName As String) > Dim ExcelApp As Excel.Application > Dim ExcelwBook As Excel.Workbook > > Set ExcelApp = New Excel.Application > Set ExcelwBook = ExcelApp.Workbooks.Add > ExcelApp.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelApp.DisplayAlerts = True > > ExcelwBook.Save > ExcelwBook.Close False > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > > End Sub > > ... And it does NOT leave an Excel orphan around. I can only conclude > from that that your problem lies with the code between the lines. > Somewhere you are probably setting a reference to some Excel object that > is not subsequently released. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris > Sent: Friday, November 13, 2009 2:58 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Problem with Access VBA makes Excel Orphan > > > Using the below code from an Access 2000 VBA application, once running > these commands there is still an Excel job running in task manager. > > The Excel orphan makes it impossible to run the VBA application > recessively. > > One clue is Excel will finally shut down if the Access 2000 VBA > application / database is shutdown. > > Any way to tell Excel to just shut down ? > > Is there a work-a-round for this problem ? > > Thanks. > > Sincerely, > Edward Zuris. > > - > > ======================================================= > ====== .Quit code not closing Excel Application ====== > > Dim ExcelApp As Excel.Application > Dim ExcelwBook As Excel.Workbook > . . . > Set ExcelApp = New Excel.Application > Set ExcelwBook = ExcelApp.Workbooks.Add > . . . > ExcelApp.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelApp.DisplayAlerts = True > > ExcelwBook.Save > ExcelwBook.Close False > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > ======================================================= > ======================================================= > - > > Yet a simpler VBA applications doesn't have this issue using the > following. > > This also fails using the complex VBA program. > > Any ideas ? > > ======================================================= > = .Quit code Working closing simple Excel Application = > > ExcelwBook.Application.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelwBook.Application.DisplayAlerts = True > > ExcelwBook.Application.Quit > > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > > ======================================================= > ======================================================= > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 smsconsulting.spb.ru Fri Nov 13 17:31:30 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 14 Nov 2009 02:31:30 +0300 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <000001ca64b2$0facf570$5bdea8c0@edz1> References: <000001ca64b2$0facf570$5bdea8c0@edz1> Message-ID: <006901ca64b9$70355070$509ff150$@spb.ru> Hi Edward -- <<< .HPageBreaks.Add Before:=Cells(lRow + 1, 6) >>> The above code line will create a ghost instance of MS Excel. The following currently commented code line <<< ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell >>> will also force a ghost Excel application to be created if you uncomment it... HTH. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Saturday, November 14, 2009 1:39 AM To: accessd at databaseadvisors.com Cc: Lambert.Heenan at chartisinsurance.com Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan Thanks Heenan Lambert, I'll see if I can come up with something a smaller that demonstrates the problem. I was hopeing there was a command that forces Excel to finish-up whatever and exit cleanly regardless. Killing the Excel orphan isn't an option because the Access 2000 VBA still thinks it is out there causing other downstream Excel jobs to fail. The problem started when I started forcing Page Control Breaks whenever the Department column had a change. = = = = = = = = = = = = = = = = = = = = = = = If sNew <> sOld Then sTmp5 = "" sTmp5 = CStr(lRow + 1) & ":" & CStr(lRow + 1) ExcelwBook.sheets(sSheet).Rows(sTmp5).Insert Shift:=-4121 For lColumn = 1 To 6 ExcelwBook.sheets(sSheet).Cells(lRow + 1, lColumn).Interior.ColorIndex = 10 Next lColumn sOld = "" sOld = sNew If lRow > 1 Then ' * First Method * 'On Error Resume Next 'ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6).Select ' With ExcelwBook.Application.ActiveWindow ' .ScrollColumn = 2 ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell 'End With 'On Error GoTo 0 ' ***************************************************** ' Force Page Control Breaks ' With ExcelwBook.sheets(sSheet) .HPageBreaks.Add Before:=Cells(lRow + 1, 6) End With End If End If = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4605 (20091113) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From edzedz at comcast.net Fri Nov 13 17:38:25 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 13 Nov 2009 16:38:25 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <4AFDDDC0.10435.EB838F7@stuart.lexacorp.com.pg> Message-ID: <000001ca64ba$65fcee50$5bdea8c0@edz1> Yesterday, I looked at -> http://support.microsoft.com/kb/319832 But it was unclear what they were talking about. I use "Option Explicit". I didn't understand the precede part. What is scary is when I was a brown badge at MSFT, I worked with some of the folks who wrote some of the KB stuff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, November 13, 2009 3:29 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan Third time I've answered this on the list this year. See: TrasnferSpreadsheet failing on 18 March 2009 and Access to Excel Automation works first time on 13 July 2009: in the archives. The old "unqualified reference" strikes again :-) See http://support.microsoft.com/kb/319832 When you write code to use an Excel object, method, or property, you should always precede the call with the appropriate object variable. If you do not, Visual Basic establishes its own reference to Excel. -- Stuart On 13 Nov 2009 at 12:58, Edward Zuris wrote: > > Using the below code from an Access 2000 VBA > application, once running these commands there > is still an Excel job running in task manager. > > The Excel orphan makes it impossible to run the > VBA application recessively. > > One clue is Excel will finally shut down if > the Access 2000 VBA application / database > is shutdown. > > Any way to tell Excel to just shut down ? > > Is there a work-a-round for this problem ? > > Thanks. > > Sincerely, > Edward Zuris. > > - > > ======================================================= > ====== .Quit code not closing Excel Application ====== > > Dim ExcelApp As Excel.Application > Dim ExcelwBook As Excel.Workbook > . . . > Set ExcelApp = New Excel.Application > Set ExcelwBook = ExcelApp.Workbooks.Add > . . . > ExcelApp.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelApp.DisplayAlerts = True > > ExcelwBook.Save > ExcelwBook.Close False > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > ======================================================= > ======================================================= > - > > Yet a simpler VBA applications doesn't have > this issue using the following. > > This also fails using the complex VBA program. > > Any ideas ? > > ======================================================= > = .Quit code Working closing simple Excel Application = > > ExcelwBook.Application.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelwBook.Application.DisplayAlerts = True > > ExcelwBook.Application.Quit > > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > > ======================================================= > ======================================================= > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Nov 13 17:38:43 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 13 Nov 2009 18:38:43 -0500 Subject: [AccessD] mdb size check In-Reply-To: <4dd71a0c0911131436n2c35a83fi1e8b96a3d3579603@mail.gmail.com> References: <34AB5AB0023E4B37904AF660E98D038F@jislaptopdev> <4dd71a0c0911131436n2c35a83fi1e8b96a3d3579603@mail.gmail.com> Message-ID: <473050FE2F494353A68FCE53D51DC1A5@jislaptopdev> Doug ...looks like what I need except for "globMyDir" ...that looks like python or php, not vba :) ...thanks, I think this will get me there with minor rework William -------------------------------------------------- From: "Doug Steele" Sent: Friday, November 13, 2009 5:36 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] mdb size check > Dim DataFileLength as long > DataFileLength = 0 > On Error Resume Next > 'make path - just continue if it causes an error > DataFileLength = FileLen(globMyDir & "WOData.mdb") > On Error GoTo 0 > If DataFileLength > 130000000 Then > txSizeWarning = "Warning: WOData.mdb should be compacted soon!" & > vbCrLf & "Size is now " & Format(DataFileLength / 1000000, "#,###") & " > Megabytes" > txSizeWarning.Visible = True > Else > txSizeWarning.Visible = False > End If > > Doug > > On Fri, Nov 13, 2009 at 12:58 PM, William Hindman < > wdhindman at dejpolsystems.com> wrote: > >> ...I want to check the be mdb size on startup and pop-up a dialogue box >> with >> a customizable message if the size exceeds a parameterized threshold >> ...anyone have code that does this ...preferably dao? >> >> William >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From edzedz at comcast.net Fri Nov 13 17:40:02 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 13 Nov 2009 16:40:02 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <4AFDEA4B.24556.EE9389A@stuart.lexacorp.com.pg> Message-ID: <000101ca64ba$9f780ca0$5bdea8c0@edz1> Success! This worked. . . . And MSFT we would call this a feature. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Friday, November 13, 2009 4:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan .HPageBreaks.Add Before:=Cells(lRow + 1, 6) There's your unqualified reference. Change it to: -> .HPageBreaks.Add Before:=ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6). -- Stuart On 13 Nov 2009 at 15:38, Edward Zuris wrote: > > Thanks Heenan Lambert, > > I'll see if I can come up with something > a smaller that demonstrates the problem. > > I was hopeing there was a command that forces > Excel to finish-up whatever and exit cleanly > regardless. > > Killing the Excel orphan isn't an option because > the Access 2000 VBA still thinks it is out there > causing other downstream Excel jobs to fail. > > The problem started when I started forcing > Page Control Breaks whenever the Department > column had a change. > > = = = = = = = = = = = = = = = = = = = = = = = > > If sNew <> sOld Then > sTmp5 = "" > sTmp5 = CStr(lRow + 1) & ":" & CStr(lRow + 1) > ExcelwBook.sheets(sSheet).Rows(sTmp5).Insert Shift:=-4121 > For lColumn = 1 To 6 > ExcelwBook.sheets(sSheet).Cells(lRow + 1, > lColumn).Interior.ColorIndex = 10 > Next lColumn > > sOld = "" > sOld = sNew > > If lRow > 1 Then > ' * First Method * > 'On Error Resume Next > 'ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6).Select > ' With ExcelwBook.Application.ActiveWindow > ' .ScrollColumn = 2 > ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell > 'End With > 'On Error GoTo 0 > > ' ***************************************************** > ' Force Page Control Breaks > ' > With ExcelwBook.sheets(sSheet) > .HPageBreaks.Add Before:=Cells(lRow + 1, 6) > End With > > End If > > End If > > = = = = = = = = = = = = = = = = = = = = = = = > = = = = = = = = = = = = = = = = = = = = = = = > > > -----Original Message----- > From: Heenan, Lambert [mailto:Lambert.Heenan at chartisinsurance.com] > Sent: Friday, November 13, 2009 2:35 PM > To: 'Access Developers discussion and problem solving' > Cc: 'Edward Zuris' > Subject: RE: [AccessD] Problem with Access VBA makes Excel Orphan > > > Edward, > > I just ran your example code in this form... > > > Sub Excel_test(zPath As String, zName As String) > Dim ExcelApp As Excel.Application > Dim ExcelwBook As Excel.Workbook > > Set ExcelApp = New Excel.Application > Set ExcelwBook = ExcelApp.Workbooks.Add > ExcelApp.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelApp.DisplayAlerts = True > > ExcelwBook.Save > ExcelwBook.Close False > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > > End Sub > > ... And it does NOT leave an Excel orphan around. I can only conclude > from that that your problem lies with the code between the lines. > Somewhere you are probably setting a reference to some Excel object > that is not subsequently released. > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward > Zuris > Sent: Friday, November 13, 2009 2:58 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Problem with Access VBA makes Excel Orphan > > > Using the below code from an Access 2000 VBA application, once > running these commands there is still an Excel job running in task > manager. > > The Excel orphan makes it impossible to run the VBA application > recessively. > > One clue is Excel will finally shut down if the Access 2000 VBA > application / database is shutdown. > > Any way to tell Excel to just shut down ? > > Is there a work-a-round for this problem ? > > Thanks. > > Sincerely, > Edward Zuris. > > - > > ======================================================= > ====== .Quit code not closing Excel Application ====== > > Dim ExcelApp As Excel.Application > Dim ExcelwBook As Excel.Workbook > . . . > Set ExcelApp = New Excel.Application > Set ExcelwBook = ExcelApp.Workbooks.Add > . . . > ExcelApp.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelApp.DisplayAlerts = True > > ExcelwBook.Save > ExcelwBook.Close False > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > ======================================================= > ======================================================= > - > > Yet a simpler VBA applications doesn't have this issue using the > following. > > This also fails using the complex VBA program. > > Any ideas ? > > ======================================================= > = .Quit code Working closing simple Excel Application = > > ExcelwBook.Application.DisplayAlerts = False > ExcelwBook.SaveAs zPath & zName > ExcelwBook.Application.DisplayAlerts = True > > ExcelwBook.Application.Quit > > ExcelApp.Quit > > Set ExcelwBook = Nothing > Set ExcelApp = Nothing > > > ======================================================= > ======================================================= > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Fri Nov 13 17:41:47 2009 From: edzedz at comcast.net (Edward Zuris) Date: Fri, 13 Nov 2009 16:41:47 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: <006901ca64b9$70355070$509ff150$@spb.ru> Message-ID: <000201ca64ba$ddf38860$5bdea8c0@edz1> Thanks. . . This worked. . . . .HPageBreaks.Add Before:=ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, November 13, 2009 4:32 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan Hi Edward -- <<< .HPageBreaks.Add Before:=Cells(lRow + 1, 6) >>> The above code line will create a ghost instance of MS Excel. The following currently commented code line <<< ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell >>> will also force a ghost Excel application to be created if you uncomment it... HTH. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward Zuris Sent: Saturday, November 14, 2009 1:39 AM To: accessd at databaseadvisors.com Cc: Lambert.Heenan at chartisinsurance.com Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan Thanks Heenan Lambert, I'll see if I can come up with something a smaller that demonstrates the problem. I was hopeing there was a command that forces Excel to finish-up whatever and exit cleanly regardless. Killing the Excel orphan isn't an option because the Access 2000 VBA still thinks it is out there causing other downstream Excel jobs to fail. The problem started when I started forcing Page Control Breaks whenever the Department column had a change. = = = = = = = = = = = = = = = = = = = = = = = If sNew <> sOld Then sTmp5 = "" sTmp5 = CStr(lRow + 1) & ":" & CStr(lRow + 1) ExcelwBook.sheets(sSheet).Rows(sTmp5).Insert Shift:=-4121 For lColumn = 1 To 6 ExcelwBook.sheets(sSheet).Cells(lRow + 1, lColumn).Interior.ColorIndex = 10 Next lColumn sOld = "" sOld = sNew If lRow > 1 Then ' * First Method * 'On Error Resume Next 'ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6).Select ' With ExcelwBook.Application.ActiveWindow ' .ScrollColumn = 2 ' .SelectedSheets.HPageBreaks.Add Before:=ActiveCell 'End With 'On Error GoTo 0 ' ***************************************************** ' Force Page Control Breaks ' With ExcelwBook.sheets(sSheet) .HPageBreaks.Add Before:=Cells(lRow + 1, 6) End With End If End If = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4605 (20091113) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Nov 13 17:47:18 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Nov 2009 09:47:18 +1000 Subject: [AccessD] mdb size check In-Reply-To: <473050FE2F494353A68FCE53D51DC1A5@jislaptopdev> References: , <4dd71a0c0911131436n2c35a83fi1e8b96a3d3579603@mail.gmail.com>, <473050FE2F494353A68FCE53D51DC1A5@jislaptopdev> Message-ID: <4AFDF006.6806.EFF97CA@stuart.lexacorp.com.pg> I'd assume that globMyDir is a Global string variable which stores the location of the mdb file. globMyDir = currentproject.path On 13 Nov 2009 at 18:38, William Hindman wrote: > Doug > > ...looks like what I need except for "globMyDir" ...that looks like python > or php, not vba :) > ...thanks, I think this will get me there with minor rework > > William > > -------------------------------------------------- > From: "Doug Steele" > Sent: Friday, November 13, 2009 5:36 PM > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] mdb size check > > > Dim DataFileLength as long > > DataFileLength = 0 > > On Error Resume Next > > 'make path - just continue if it causes an error > > DataFileLength = FileLen(globMyDir & "WOData.mdb") > > On Error GoTo 0 > > If DataFileLength > 130000000 Then > > txSizeWarning = "Warning: WOData.mdb should be compacted soon!" & > > vbCrLf & "Size is now " & Format(DataFileLength / 1000000, "#,###") & " > > Megabytes" > > txSizeWarning.Visible = True > > Else > > txSizeWarning.Visible = False > > End If > > > > Doug > > > > On Fri, Nov 13, 2009 at 12:58 PM, William Hindman < > > wdhindman at dejpolsystems.com> wrote: > > > >> ...I want to check the be mdb size on startup and pop-up a dialogue box > >> with > >> a customizable message if the size exceeds a parameterized threshold > >> ...anyone have code that does this ...preferably dao? > >> > >> William > >> > >> > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dbdoug at gmail.com Fri Nov 13 18:03:23 2009 From: dbdoug at gmail.com (Doug Steele) Date: Fri, 13 Nov 2009 16:03:23 -0800 Subject: [AccessD] mdb size check In-Reply-To: <4AFDF006.6806.EFF97CA@stuart.lexacorp.com.pg> References: <4dd71a0c0911131436n2c35a83fi1e8b96a3d3579603@mail.gmail.com> <473050FE2F494353A68FCE53D51DC1A5@jislaptopdev> <4AFDF006.6806.EFF97CA@stuart.lexacorp.com.pg> Message-ID: <4dd71a0c0911131603o59af95f1o6dd7a180d9a36c92@mail.gmail.com> Yes, sorry, I just copied and pasted from a db. I set globMyDir when the db opens and the back end tables are linked. Doug On Fri, Nov 13, 2009 at 3:47 PM, Stuart McLachlan wrote: > I'd assume that globMyDir is a Global string variable which stores the > location of the mdb > file. > > globMyDir = currentproject.path > > > From marksimms at verizon.net Fri Nov 13 18:10:22 2009 From: marksimms at verizon.net (Mark Simms) Date: Fri, 13 Nov 2009 19:10:22 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <005c01ca6488$5b87b270$12971750$@spb.ru> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> <005c01ca6488$5b87b270$12971750$@spb.ru> Message-ID: <013101ca64be$dc4a2150$0601a8c0@MSIMMSWS> Funny, I've never seen a dot-net application delivered "on time". > Doug -- > > .NET development made by experienced developers is as RAD as > MS Access or even "RAD-der"... > AFAIK experienced .NET developers are usually fluent with SQL > - MS Access or MS SQL backends - and they have so many ways > to communicate with backend to select from, which Access > developers never had... > > One of the huge advantages for .NET apps is that starting > from simple WinForm apps or console utilities you can scale > your apps almost endlessly (horizontally, vertically, > "diagonally"....) using the same code base: there will be no > way/it will be very expensive to do that if you start with MS > Access frontend. > > -- > Shamil From wdhindman at dejpolsystems.com Fri Nov 13 18:17:34 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 13 Nov 2009 19:17:34 -0500 Subject: [AccessD] mdb size check In-Reply-To: <4AFDF006.6806.EFF97CA@stuart.lexacorp.com.pg> References: , <4dd71a0c0911131436n2c35a83fi1e8b96a3d3579603@mail.gmail.com>, <473050FE2F494353A68FCE53D51DC1A5@jislaptopdev> <4AFDF006.6806.EFF97CA@stuart.lexacorp.com.pg> Message-ID: ...yeah, I know :) ...it's just that I see it in so many python scripts that it jumped out at me. William -------------------------------------------------- From: "Stuart McLachlan" Sent: Friday, November 13, 2009 6:47 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] mdb size check > I'd assume that globMyDir is a Global string variable which stores the > location of the mdb > file. > > globMyDir = currentproject.path > > > On 13 Nov 2009 at 18:38, William Hindman wrote: > >> Doug >> >> ...looks like what I need except for "globMyDir" ...that looks like >> python >> or php, not vba :) >> ...thanks, I think this will get me there with minor rework >> >> William >> >> -------------------------------------------------- >> From: "Doug Steele" >> Sent: Friday, November 13, 2009 5:36 PM >> To: "Access Developers discussion and problem solving" >> >> Subject: Re: [AccessD] mdb size check >> >> > Dim DataFileLength as long >> > DataFileLength = 0 >> > On Error Resume Next >> > 'make path - just continue if it causes an error >> > DataFileLength = FileLen(globMyDir & "WOData.mdb") >> > On Error GoTo 0 >> > If DataFileLength > 130000000 Then >> > txSizeWarning = "Warning: WOData.mdb should be compacted soon!" & >> > vbCrLf & "Size is now " & Format(DataFileLength / 1000000, "#,###") & " >> > Megabytes" >> > txSizeWarning.Visible = True >> > Else >> > txSizeWarning.Visible = False >> > End If >> > >> > Doug >> > >> > On Fri, Nov 13, 2009 at 12:58 PM, William Hindman < >> > wdhindman at dejpolsystems.com> wrote: >> > >> >> ...I want to check the be mdb size on startup and pop-up a dialogue >> >> box >> >> with >> >> a customizable message if the size exceeds a parameterized threshold >> >> ...anyone have code that does this ...preferably dao? >> >> >> >> William >> >> >> >> >> >> -- >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> > -- >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> > >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 smsconsulting.spb.ru Fri Nov 13 18:33:09 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 14 Nov 2009 03:33:09 +0300 Subject: [AccessD] Access/SQL In-Reply-To: <013101ca64be$dc4a2150$0601a8c0@MSIMMSWS> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com> <005c01ca6488$5b87b270$12971750$@spb.ru> <013101ca64be$dc4a2150$0601a8c0@MSIMMSWS> Message-ID: <006b01ca64c2$0b8614d0$22923e70$@spb.ru> Hi Mark -- Have a look - http://northwind.codeplex.com Delivered before planned schedule: http://northwind.codeplex.com/Thread/View.aspx?ThreadId=54924 I personally have made quite some others in time or ahead planned schedule, I guess Gustav and Charlotte also have such positive experience with developing .NET applications... Thank you. -- Shamil ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 3:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Funny, I've never seen a dot-net application delivered "on time". > Doug -- > > .NET development made by experienced developers is as RAD as > MS Access or even "RAD-der"... > AFAIK experienced .NET developers are usually fluent with SQL > - MS Access or MS SQL backends - and they have so many ways > to communicate with backend to select from, which Access > developers never had... > > One of the huge advantages for .NET apps is that starting > from simple WinForm apps or console utilities you can scale > your apps almost endlessly (horizontally, vertically, > "diagonally"....) using the same code base: there will be no > way/it will be very expensive to do that if you start with MS > Access frontend. > > -- > Shamil __________ Information from ESET NOD32 Antivirus, version of virus signature database 4605 (20091113) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From jwcolby at colbyconsulting.com Fri Nov 13 19:30:12 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 13 Nov 2009 20:30:12 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFDD93F.17131.EA69EDA@stuart.lexacorp.com.pg> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4dd71a0c0911130822n1af23de7p14137ca71f870fdb@mail.gmail.com>, <4AFD8F50.6010704@colbyconsulting.com> <4AFDD93F.17131.EA69EDA@stuart.lexacorp.com.pg> Message-ID: <4AFE0824.4010609@colbyconsulting.com> LOL. Is it single threaded? That is a wall. A HUGE wall. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > I do file parsing, directory watching and FTP within Access all the time without third party > controls - just a few API calls and the occassional Shell to built in WIndows capabilities > (such as FTP). No wall that I've come across. > From stuart at lexacorp.com.pg Fri Nov 13 19:44:31 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Nov 2009 11:44:31 +1000 Subject: [AccessD] Access/SQL In-Reply-To: <4AFE0824.4010609@colbyconsulting.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4AFDD93F.17131.EA69EDA@stuart.lexacorp.com.pg>, <4AFE0824.4010609@colbyconsulting.com> Message-ID: <4AFE0B7F.15158.F6AE9F1@stuart.lexacorp.com.pg> Shell is asynchronous, so no, it's not single threaded. It's simple enough to monitor which of the shelled processes are still running at any point in time and if necessary pause using thiings like WaitForSingleObject. -- Stuart On 13 Nov 2009 at 20:30, jwcolby wrote: > LOL. Is it single threaded? That is a wall. A HUGE wall. > > John W. Colby > www.ColbyConsulting.com > > > Stuart McLachlan wrote: > > I do file parsing, directory watching and FTP within Access all the time without third party > > controls - just a few API calls and the occassional Shell to built in WIndows capabilities > > (such as FTP). No wall that I've come across. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Nov 14 05:46:42 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 14 Nov 2009 12:46:42 +0100 Subject: [AccessD] Problem with Access VBA makes Excel Orphan Message-ID: Hi Stuart I think I read somewhere that .Sheets is considered "legacy" or should be reserved for graphs, and for worksheets it should read: .HPageBreaks.Add Before:=ExcelwBook.WorkSheets(sSheet).Cells(lRow + 1, 6). /gustav >>> stuart at lexacorp.com.pg 14-11-2009 00:22 >>> .HPageBreaks.Add Before:=Cells(lRow + 1, 6) There's your unqualified reference. Change it to: .HPageBreaks.Add Before:=ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6). -- Stuart From Gustav at cactus.dk Sat Nov 14 05:55:49 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 14 Nov 2009 12:55:49 +0100 Subject: [AccessD] Access/SQL Message-ID: Hi Mark True. I only do Access/VBA these days when maintaining code. Working with Visual Studio is so challenging - in a positive way - and so flexible and powerful that it runs away with you leaving no wish to look back. /gustav >>> shamil at smsconsulting.spb.ru 14-11-2009 01:33 >>> Hi Mark -- Have a look - http://northwind.codeplex.com Delivered before planned schedule: http://northwind.codeplex.com/Thread/View.aspx?ThreadId=54924 I personally have made quite some others in time or ahead planned schedule, I guess Gustav and Charlotte also have such positive experience with developing .NET applications... Thank you. -- Shamil ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 3:10 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Funny, I've never seen a dot-net application delivered "on time". > Doug -- > > .NET development made by experienced developers is as RAD as > MS Access or even "RAD-der"... > AFAIK experienced .NET developers are usually fluent with SQL > - MS Access or MS SQL backends - and they have so many ways > to communicate with backend to select from, which Access > developers never had... > > One of the huge advantages for .NET apps is that starting > from simple WinForm apps or console utilities you can scale > your apps almost endlessly (horizontally, vertically, > "diagonally"....) using the same code base: there will be no > way/it will be very expensive to do that if you start with MS > Access frontend. > > -- > Shamil From jwcolby at colbyconsulting.com Sat Nov 14 06:29:16 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 07:29:16 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFE0B7F.15158.F6AE9F1@stuart.lexacorp.com.pg> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4AFDD93F.17131.EA69EDA@stuart.lexacorp.com.pg>, <4AFE0824.4010609@colbyconsulting.com> <4AFE0B7F.15158.F6AE9F1@stuart.lexacorp.com.pg> Message-ID: <4AFEA29C.4050603@colbyconsulting.com> This discussion is getting funnier and funnier. Single threading is a huge wall. Shelling is not running native code it is running expernal applications, which is a "third party control" with all that entails. I am not claiming that Access is useless, I am claiming that it is not even in the same league with .Net in terms of programming power. Whether you can make it do everything you want it to do by scrambling around shelling applications is irrelevant to me, though entirely relevant to you. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > Shell is asynchronous, so no, it's not single threaded. It's simple enough to monitor which of > the shelled processes are still running at any point in time and if necessary pause using > thiings like WaitForSingleObject. > From stuart at lexacorp.com.pg Sat Nov 14 06:43:26 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 14 Nov 2009 22:43:26 +1000 Subject: [AccessD] Access/SQL In-Reply-To: <4AFEA29C.4050603@colbyconsulting.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4AFE0B7F.15158.F6AE9F1@stuart.lexacorp.com.pg>, <4AFEA29C.4050603@colbyconsulting.com> Message-ID: <4AFEA5EE.23406.11C62DB1@stuart.lexacorp.com.pg> .Net is not running native code either. FTP.exe, Net.exe, IPConfig.exe etc are not "third party controls", they are part of Windows and frequently are "native code". None of "all that entails" involved . However, when I want real programming power, I don't use Access or .Net. :-) -- Stuart On 14 Nov 2009 at 7:29, jwcolby wrote: > Shelling is not running native code it is running expernal > applications, which is a "third party control" with all that entails. > > I am not claiming that Access is useless, I am claiming that it is not even in the same league with > .Net in terms of programming power. From max.wanadoo at gmail.com Sat Nov 14 09:39:40 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Sat, 14 Nov 2009 15:39:40 -0000 Subject: [AccessD] Access/SQL In-Reply-To: <4AFEA5EE.23406.11C62DB1@stuart.lexacorp.com.pg> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4AFE0B7F.15158.F6AE9F1@stuart.lexacorp.com.pg>, <4AFEA29C.4050603@colbyconsulting.com> <4AFEA5EE.23406.11C62DB1@stuart.lexacorp.com.pg> Message-ID: <4afecf67.1701d00a.3606.ffffc908@mx.google.com> PB? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 14 November 2009 12:43 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access/SQL .Net is not running native code either. FTP.exe, Net.exe, IPConfig.exe etc are not "third party controls", they are part of Windows and frequently are "native code". None of "all that entails" involved . However, when I want real programming power, I don't use Access or .Net. :-) -- Stuart On 14 Nov 2009 at 7:29, jwcolby wrote: > Shelling is not running native code it is running expernal > applications, which is a "third party control" with all that entails. > > I am not claiming that Access is useless, I am claiming that it is not even in the same league with > .Net in terms of programming power. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Nov 14 10:33:07 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 11:33:07 -0500 Subject: [AccessD] SPAM-LOW: Re: Access/SQL In-Reply-To: <4afecf67.1701d00a.3606.ffffc908@mx.google.com> References: <4dd71a0c0911130753o5d5c8619yea057dd068949710@mail.gmail.com>, <4AFE0B7F.15158.F6AE9F1@stuart.lexacorp.com.pg>, <4AFEA29C.4050603@colbyconsulting.com> <4AFEA5EE.23406.11C62DB1@stuart.lexacorp.com.pg> <4afecf67.1701d00a.3606.ffffc908@mx.google.com> Message-ID: <4AFEDBC3.7050702@colbyconsulting.com> Of course! ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > PB? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 14 November 2009 12:43 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access/SQL > > .Net is not running native code either. > > FTP.exe, Net.exe, IPConfig.exe etc are not "third party controls", they are > part of Windows > and frequently are "native code". None of "all that entails" involved . > > However, when I want real programming power, I don't use Access or .Net. > > :-) > From marksimms at verizon.net Sat Nov 14 11:13:39 2009 From: marksimms at verizon.net (Mark Simms) Date: Sat, 14 Nov 2009 12:13:39 -0500 Subject: [AccessD] Access/SQL In-Reply-To: References: Message-ID: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> Visual Studio's flexibility, hugeness and the monolithic nature of the dot-net libraries allow it to build operating systems. And therein lies the problem: we are building BUSINESS applications. Big difference. I imagine if you use Visual Studio and dot-net every day for 12 hours/day for a couple of years, you can finally QUICKLY build business apps. > > Hi Mark > > True. I only do Access/VBA these days when maintaining code. > Working with Visual Studio is so challenging - in a positive > way - and so flexible and powerful that it runs away with you > leaving no wish to look back. > > /gustav > From rockysmolin at bchacc.com Sat Nov 14 11:17:22 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 14 Nov 2009 09:17:22 -0800 Subject: [AccessD] I need this Message-ID: Don't you need one too? http://manneli.com/movies/Laptop.html From edzedz at comcast.net Sat Nov 14 11:49:50 2009 From: edzedz at comcast.net (Edward Zuris) Date: Sat, 14 Nov 2009 10:49:50 -0700 Subject: [AccessD] Problem with Access VBA makes Excel Orphan In-Reply-To: Message-ID: <002e01ca6552$ddadf7d0$5bdea8c0@edz1> Just tried this and it works too. .HPageBreaks.Add Before:=ExcelwBook.WorkSheets(sSheet).Cells(lRow + 1, 6) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, November 14, 2009 4:47 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Problem with Access VBA makes Excel Orphan Hi Stuart I think I read somewhere that .Sheets is considered "legacy" or should be reserved for graphs, and for worksheets it should read: .HPageBreaks.Add Before:=ExcelwBook.WorkSheets(sSheet).Cells(lRow + 1, 6). /gustav >>> stuart at lexacorp.com.pg 14-11-2009 00:22 >>> .HPageBreaks.Add Before:=Cells(lRow + 1, 6) There's your unqualified reference. Change it to: .HPageBreaks.Add Before:=ExcelwBook.sheets(sSheet).Cells(lRow + 1, 6). -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat Nov 14 12:36:20 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 14 Nov 2009 21:36:20 +0300 Subject: [AccessD] Access/SQL In-Reply-To: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> Message-ID: <008e01ca6559$5d96f770$18c4e650$@spb.ru> Mark, IMO C# + .NET Framework is the best ever general purpose development platform for business applications. I'm talking from my experience in development of business applications using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, DataFlex, VBA, VB6, VB.NET, C#... One with good VB6/VBA development experience can start developing VB.NET business apps the next day/week provided they will get proper guidelines/help/tutoring... I have such examples as e.g. when I have got advanced MS Excel COM Add-in and converted it (just starting using VB.NET this day) to a VB.NET one within three days (10,000+ code lines) - it's nothing special - most of experienced VB6/VBA developers can do that. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 8:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Visual Studio's flexibility, hugeness and the monolithic nature of the dot-net libraries allow it to build operating systems. And therein lies the problem: we are building BUSINESS applications. Big difference. I imagine if you use Visual Studio and dot-net every day for 12 hours/day for a couple of years, you can finally QUICKLY build business apps. > > Hi Mark > > True. I only do Access/VBA these days when maintaining code. > Working with Visual Studio is so challenging - in a positive > way - and so flexible and powerful that it runs away with you > leaving no wish to look back. > > /gustav > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4607 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From dwaters at usinternet.com Sat Nov 14 14:27:27 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Nov 2009 14:27:27 -0600 Subject: [AccessD] I need this In-Reply-To: References: Message-ID: No - but I certainly want one! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 14, 2009 11:17 AM To: 'Access Developers discussion and problem solving'; 'Off Topic' Subject: [AccessD] I need this Don't you need one too? http://manneli.com/movies/Laptop.html -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Sat Nov 14 14:58:45 2009 From: marksimms at verizon.net (Mark Simms) Date: Sat, 14 Nov 2009 15:58:45 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <008e01ca6559$5d96f770$18c4e650$@spb.ru> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru> Message-ID: <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Shamil Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose > development platform for business applications. > > I'm talking from my experience in development of business > applications using PL/1, COBOL, Fortran (Fortran-77), Pascal, > Delphi, C/C++, DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start > developing VB.NET business apps the next day/week provided > they will get proper guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS > Excel COM Add-in and converted it (just starting using VB.NET > this day) to a VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA > developers can do that. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, November 14, 2009 8:14 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Visual Studio's flexibility, hugeness and the monolithic > nature of the dot-net libraries allow it to build operating > systems. And therein lies the > problem: we are building BUSINESS applications. > Big difference. > I imagine if you use Visual Studio and dot-net every day for > 12 hours/day for a couple of years, you can finally QUICKLY > build business apps. > > > > > Hi Mark > > > > True. I only do Access/VBA these days when maintaining code. > > Working with Visual Studio is so challenging - in a > positive way - and > > so flexible and powerful that it runs away with you leaving > no wish to > > look back. > > > > /gustav > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of > virus signature database 4607 (20091114) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From shamil at smsconsulting.spb.ru Sat Nov 14 15:29:57 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 15 Nov 2009 00:29:57 +0300 Subject: [AccessD] Access/SQL In-Reply-To: <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> Message-ID: <009701ca6571$9e805200$db80f600$@spb.ru> Mark, VB.Net is OK. I can use both C# and VB.NET interchangeably as many .NET developers do. But I do prefer C#. Nowadays in my development I'm using 99.99% of the time C# (for several years now). There are also F#, IronPython and IronRuby, which can be used on .NET development platform... Even more programming languages will come to .NET platform in the future... Even Fortran can be used within .NET - http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... Thank you. -- Shamil P.S. I'd guess "new powerful webdev platform" uses C# by default but you can always switch to VB.NET or use both... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 11:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Shamil Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose > development platform for business applications. > > I'm talking from my experience in development of business > applications using PL/1, COBOL, Fortran (Fortran-77), Pascal, > Delphi, C/C++, DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start > developing VB.NET business apps the next day/week provided > they will get proper guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS > Excel COM Add-in and converted it (just starting using VB.NET > this day) to a VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA > developers can do that. > > -- > Shamil <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4608 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From dwaters at usinternet.com Sat Nov 14 15:33:24 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Nov 2009 15:33:24 -0600 Subject: [AccessD] Access/SQL In-Reply-To: <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> Message-ID: <25730A18F2044598B1E9C54A72D3F243@danwaters> This will change with Visual Studio 10. In this version VB.Net and C# will have identical functionality. MS call this 'equalization'. It never made sense to have to programming languages that were 'almost' the same. Mark - you should select a language on how which one makes you (or your customer or your company) the most money. Not because something is 'more elegant'. This sounds like the PC vs. Mac argument. I know I'm picking on you, but I get quickly frustrated with arguments over which choice to make when the selection criteria are not based on something concrete. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 2:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Shamil Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose > development platform for business applications. > > I'm talking from my experience in development of business > applications using PL/1, COBOL, Fortran (Fortran-77), Pascal, > Delphi, C/C++, DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start > developing VB.NET business apps the next day/week provided > they will get proper guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS > Excel COM Add-in and converted it (just starting using VB.NET > this day) to a VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA > developers can do that. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, November 14, 2009 8:14 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Visual Studio's flexibility, hugeness and the monolithic > nature of the dot-net libraries allow it to build operating > systems. And therein lies the > problem: we are building BUSINESS applications. > Big difference. > I imagine if you use Visual Studio and dot-net every day for > 12 hours/day for a couple of years, you can finally QUICKLY > build business apps. > > > > > Hi Mark > > > > True. I only do Access/VBA these days when maintaining code. > > Working with Visual Studio is so challenging - in a > positive way - and > > so flexible and powerful that it runs away with you leaving > no wish to > > look back. > > > > /gustav > > > > > > > > __________ Information from ESET NOD32 Antivirus, version of > virus signature database 4607 (20091114) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Nov 14 16:24:19 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 17:24:19 -0500 Subject: [AccessD] What is .Net - was Access/SQL In-Reply-To: <25730A18F2044598B1E9C54A72D3F243@danwaters> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <25730A18F2044598B1E9C54A72D3F243@danwaters> Message-ID: <4AFF2E13.5060309@colbyconsulting.com> If you have ever read about the architecture of .Net, the language is a very thin veneer over the framework. Each language is slightly different and as of now, each language exposes a handful of things that the others don't. That means that (for now) C# can do a few things that VB cannot, but VB can do a few things that C# cannot. However... you can use BOTH in the same project so if you have a language preference but absolutely need the capabilities of the other language(s) then use them where needed. Try doing THAT in Access. Access is without par in what it does, but it has definite limitations and weaknesses, and to try to claim otherwise or cover them up does a disservice to everyone. The following is not what I read before but it is a good explanation. http://en.wikipedia.org/wiki/.NET_Framework http://www.devx.com/assets/summitdays/2679.pdf http://www.midnightbeach.com/dotNetArchitecture.2002.html John W. Colby www.ColbyConsulting.com Dan Waters wrote: > This will change with Visual Studio 10. In this version VB.Net and C# will > have identical functionality. MS call this 'equalization'. It never made > sense to have to programming languages that were 'almost' the same. > > Mark - you should select a language on how which one makes you (or your > customer or your company) the most money. Not because something is 'more > elegant'. This sounds like the PC vs. Mac argument. > > I know I'm picking on you, but I get quickly frustrated with arguments over > which choice to make when the selection criteria are not based on something > concrete. > > Dan From stuart at lexacorp.com.pg Sat Nov 14 16:39:56 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 15 Nov 2009 08:39:56 +1000 Subject: [AccessD] What is .Net - was Access/SQL In-Reply-To: <4AFF2E13.5060309@colbyconsulting.com> References: , <25730A18F2044598B1E9C54A72D3F243@danwaters>, <4AFF2E13.5060309@colbyconsulting.com> Message-ID: <4AFF31BC.130.13E84A8F@stuart.lexacorp.com.pg> But that's what I currently do all the time! I often need to use *more* that two differenent languages in a single project. It's not unusual these days for me to need four. In the majority of cases, Access is one of those components. I don't have a problem with this. It's just that I don't need .Net to replace one or more of the other components. :-) -- Stuart On 14 Nov 2009 at 17:24, jwcolby wrote: > If you have ever read about the architecture of .Net, the language is a very thin veneer over the > framework. Each language is slightly different and as of now, each language exposes a handful of > things that the others don't. That means that (for now) C# can do a few things that VB cannot, but > VB can do a few things that C# cannot. However... you can use BOTH in the same project so if you > have a language preference but absolutely need the capabilities of the other language(s) then use > them where needed. > > Try doing THAT in Access. Access is without par in what it does, but it has definite limitations > and weaknesses, and to try to claim otherwise or cover them up does a disservice to everyone. > From jwcolby at colbyconsulting.com Sat Nov 14 16:59:58 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 17:59:58 -0500 Subject: [AccessD] What is .Net - was Access/SQL In-Reply-To: <4AFF31BC.130.13E84A8F@stuart.lexacorp.com.pg> References: , <25730A18F2044598B1E9C54A72D3F243@danwaters>, <4AFF2E13.5060309@colbyconsulting.com> <4AFF31BC.130.13E84A8F@stuart.lexacorp.com.pg> Message-ID: <4AFF366E.1010909@colbyconsulting.com> I'm happy for you Stuart. I would no more try to sell you .Net than try to sell you Access. You obviously have your own environment that works for you. OTOH, I don't know of any environment other than .Net where you can choose several different languages that program to the same set of capabilities. Not to say that they don't exist, just that I don't know of any. I personally would prefer to use a single environment if that environment would do the job, than cobble together many different environments. Personally, I do not have the need for more than a single language. Most of my stuff is done in Access (to this point) but in the future most of my stuff will be done in .Net. I am absolutely sure that there is something that .net is not capable of or at least optimized for, but I haven't run into those situations. Just as an aside, I was not at all impressed with the .Net environment up until 2.0. Now I am very impressed, and I just see very nice improvements as time goes on. Stability is there, capability goes up. The same (VERY unfortunately) cannot be said for Access. Stability goes up and down, capability goes sideways. Usability goes up and down. There are a ton of programming languages Stuart. I used to be a Borland kind of guy. They had some slick and very powerful stuff. You have your preferences and I am not here to persuade you of anything other than that .net is quite powerful and capable. If you don't want to use it I understand and don't care. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > But that's what I currently do all the time! I often need to use *more* that two differenent > languages in a single project. It's not unusual these days for me to need four. In the > majority of cases, Access is one of those components. I don't have a problem with this. It's > just that I don't need .Net to replace one or more of the other components. > > :-) > From Gustav at cactus.dk Sat Nov 14 17:06:45 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 15 Nov 2009 00:06:45 +0100 Subject: [AccessD] Access/SQL Message-ID: Hi Mark I'm only doing business type of programming. And I don't program 12 hours per day ... /gustav >>> marksimms at verizon.net 14-11-2009 18:13:39 >>> Visual Studio's flexibility, hugeness and the monolithic nature of the dot-net libraries allow it to build operating systems. And therein lies the problem: we are building BUSINESS applications. Big difference. I imagine if you use Visual Studio and dot-net every day for 12 hours/day for a couple of years, you can finally QUICKLY build business apps. > > Hi Mark > > True. I only do Access/VBA these days when maintaining code. > Working with Visual Studio is so challenging - in a positive > way - and so flexible and powerful that it runs away with you > leaving no wish to look back. > > /gustav From rockysmolin at bchacc.com Sat Nov 14 18:03:50 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 14 Nov 2009 16:03:50 -0800 Subject: [AccessD] Access/SQL In-Reply-To: <009701ca6571$9e805200$db80f600$@spb.ru> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru> Message-ID: <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. One vote for the procrastinators. My kid is 13. He's heavy into JAVA now. But what should he learn for the future? What's going to be the platform du jour in 5 years? 10 years? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, November 14, 2009 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Mark, VB.Net is OK. I can use both C# and VB.NET interchangeably as many .NET developers do. But I do prefer C#. Nowadays in my development I'm using 99.99% of the time C# (for several years now). There are also F#, IronPython and IronRuby, which can be used on .NET development platform... Even more programming languages will come to .NET platform in the future... Even Fortran can be used within .NET - http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... Thank you. -- Shamil P.S. I'd guess "new powerful webdev platform" uses C# by default but you can always switch to VB.NET or use both... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 11:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose development > platform for business applications. > > I'm talking from my experience in development of business applications > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start developing > VB.NET business apps the next day/week provided they will get proper > guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS Excel COM > Add-in and converted it (just starting using VB.NET this day) to a > VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA developers > can do that. > > -- > Shamil <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4608 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat Nov 14 19:09:05 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 15 Nov 2009 04:09:05 +0300 Subject: [AccessD] Access/SQL In-Reply-To: <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru> <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> Message-ID: <009e01ca6590$3b45da10$b1d18e30$@spb.ru> <<< But what should he learn for the future? >>> JAVA, JavaScript, C#, Ruby, C/C++, Assembler, HTML, CSS... Maybe he should better start/switch to C/C+ and Assembler - then the other languages from the above list will be relatively easy to learn and use for him... <<< What's going to be the platform du jour in 5 years? 10 years? >>> No idea. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, November 15, 2009 3:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. One vote for the procrastinators. My kid is 13. He's heavy into JAVA now. But what should he learn for the future? What's going to be the platform du jour in 5 years? 10 years? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, November 14, 2009 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Mark, VB.Net is OK. I can use both C# and VB.NET interchangeably as many .NET developers do. But I do prefer C#. Nowadays in my development I'm using 99.99% of the time C# (for several years now). There are also F#, IronPython and IronRuby, which can be used on .NET development platform... Even more programming languages will come to .NET platform in the future... Even Fortran can be used within .NET - http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... Thank you. -- Shamil P.S. I'd guess "new powerful webdev platform" uses C# by default but you can always switch to VB.NET or use both... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 11:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose development > platform for business applications. > > I'm talking from my experience in development of business applications > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start developing > VB.NET business apps the next day/week provided they will get proper > guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS Excel COM > Add-in and converted it (just starting using VB.NET this day) to a > VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA developers > can do that. > > -- > Shamil <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4608 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From rockysmolin at bchacc.com Sat Nov 14 19:28:08 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 14 Nov 2009 17:28:08 -0800 Subject: [AccessD] Access/SQL In-Reply-To: <009e01ca6590$3b45da10$b1d18e30$@spb.ru> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru><1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> <009e01ca6590$3b45da10$b1d18e30$@spb.ru> Message-ID: Sheesh!! You gotta be multi-lingual? I think I'll urge him to do something simpler and easier. Like nuclear physics or brain surgery. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, November 14, 2009 5:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL <<< But what should he learn for the future? >>> JAVA, JavaScript, C#, Ruby, C/C++, Assembler, HTML, CSS... Maybe he should better start/switch to C/C+ and Assembler - then the other languages from the above list will be relatively easy to learn and use for him... <<< What's going to be the platform du jour in 5 years? 10 years? >>> No idea. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Sunday, November 15, 2009 3:04 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. One vote for the procrastinators. My kid is 13. He's heavy into JAVA now. But what should he learn for the future? What's going to be the platform du jour in 5 years? 10 years? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, November 14, 2009 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Mark, VB.Net is OK. I can use both C# and VB.NET interchangeably as many .NET developers do. But I do prefer C#. Nowadays in my development I'm using 99.99% of the time C# (for several years now). There are also F#, IronPython and IronRuby, which can be used on .NET development platform... Even more programming languages will come to .NET platform in the future... Even Fortran can be used within .NET - http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... Thank you. -- Shamil P.S. I'd guess "new powerful webdev platform" uses C# by default but you can always switch to VB.NET or use both... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 11:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose development > platform for business applications. > > I'm talking from my experience in development of business applications > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start developing > VB.NET business apps the next day/week provided they will get proper > guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS Excel COM > Add-in and converted it (just starting using VB.NET this day) to a > VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA developers > can do that. > > -- > Shamil <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4608 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Nov 14 19:43:25 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 15 Nov 2009 11:43:25 +1000 Subject: [AccessD] Access/SQL In-Reply-To: References: , <009e01ca6590$3b45da10$b1d18e30$@spb.ru>, Message-ID: <4AFF5CBD.9258.1490467D@stuart.lexacorp.com.pg> Not just in the future. Many of us have to be multilingual today. In my current projects I am using Access VBA, SQL, PB, HTML/CSS, Javascript and PHP (and if I really need power, I can embed Assembler in the PB components) -- Stuart On 14 Nov 2009 at 17:28, Rocky Smolin wrote: > Sheesh!! You gotta be multi-lingual? > > I think I'll urge him to do something simpler and easier. Like nuclear > physics or brain surgery. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 5:09 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > <<< > But what should he learn for the future? > >>> > JAVA, JavaScript, C#, Ruby, C/C++, Assembler, HTML, CSS... > > Maybe he should better start/switch to C/C+ and Assembler - then the other > languages from the above list will be relatively easy to learn and use for > him... > > <<< > What's going to be the platform du jour in 5 years? 10 years? > >>> > No idea. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Sunday, November 15, 2009 3:04 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. > One vote for the procrastinators. > > My kid is 13. He's heavy into JAVA now. But what should he learn for the > future? What's going to be the platform du jour in 5 years? 10 years? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > VB.Net is OK. > I can use both C# and VB.NET interchangeably as many .NET developers do. > But I do prefer C#. > Nowadays in my development I'm using 99.99% of the time C# (for several > years now). > There are also F#, IronPython and IronRuby, which can be used on .NET > development platform... > Even more programming languages will come to .NET platform in the future... > > Even Fortran can be used within .NET - > http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... > > Thank you. > > -- > Shamil > > P.S. I'd guess "new powerful webdev platform" uses C# by default but you can > always switch to VB.NET or use both... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, November 14, 2009 11:59 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > VB.NET is dead, dead, dead. > Everyone has moved to C#...much more elegant. > On Microsoft's new, most powerful webdev platform one can only use C#. > Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost > 3:1 !!! > > Note: Even John Colby has moved over to C#. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov > > Sent: Saturday, November 14, 2009 1:36 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Access/SQL > > > > Mark, > > > > IMO C# + .NET Framework is the best ever general purpose development > > platform for business applications. > > > > I'm talking from my experience in development of business applications > > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > > DataFlex, VBA, VB6, VB.NET, C#... > > > > One with good VB6/VBA development experience can start developing > > VB.NET business apps the next day/week provided they will get proper > > guidelines/help/tutoring... > > > > I have such examples as e.g. when I have got advanced MS Excel COM > > Add-in and converted it (just starting using VB.NET this day) to a > > VB.NET one within three days (10,000+ code > > lines) - it's nothing special - most of experienced VB6/VBA developers > > can do that. > > > > -- > > Shamil > > <<< snip >>> > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus signature > database 4608 (20091114) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Nov 14 20:23:23 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 14 Nov 2009 21:23:23 -0500 Subject: [AccessD] Access/SQL In-Reply-To: References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru><1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005><009e01ca6590$3b45da10$b1d18e30$@spb.ru> Message-ID: <7B3BEB2891384F63ADC2F3B57DAE96EF@jislaptopdev> ...when I went to school, the "future" (according to the profs) was Fortran and COBOL ...and I'm not THAT old :) ...Java is almost as old as your son, by the time he graduates it'll be in steep decline ...IBM is buying Sun, the evangelist behind Java ...but they want Sun's mainframe and workstation business, thus the continued financial evangelization of Java is almost certainly dead ...dot net is the immediate future and as others have mentioned, it really doesn't matter which language you use it with ...supposedly MS is even going to support Linux on it ...lots of heartburn in the geek world if MS turns out to be the first successful platform independent software provider. William -------------------------------------------------- From: "Rocky Smolin" Sent: Saturday, November 14, 2009 8:28 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Access/SQL > Sheesh!! You gotta be multi-lingual? > > I think I'll urge him to do something simpler and easier. Like nuclear > physics or brain surgery. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 5:09 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > <<< > But what should he learn for the future? >>>> > JAVA, JavaScript, C#, Ruby, C/C++, Assembler, HTML, CSS... > > Maybe he should better start/switch to C/C+ and Assembler - then the other > languages from the above list will be relatively easy to learn and use for > him... > > <<< > What's going to be the platform du jour in 5 years? 10 years? >>>> > No idea. > > -- > Shamil > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin > Sent: Sunday, November 15, 2009 3:04 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. > One vote for the procrastinators. > > My kid is 13. He's heavy into JAVA now. But what should he learn for the > future? What's going to be the platform du jour in 5 years? 10 years? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > VB.Net is OK. > I can use both C# and VB.NET interchangeably as many .NET developers do. > But I do prefer C#. > Nowadays in my development I'm using 99.99% of the time C# (for several > years now). > There are also F#, IronPython and IronRuby, which can be used on .NET > development platform... > Even more programming languages will come to .NET platform in the > future... > > Even Fortran can be used within .NET - > http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... > > Thank you. > > -- > Shamil > > P.S. I'd guess "new powerful webdev platform" uses C# by default but you > can > always switch to VB.NET or use both... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, November 14, 2009 11:59 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > VB.NET is dead, dead, dead. > Everyone has moved to C#...much more elegant. > On Microsoft's new, most powerful webdev platform one can only use C#. > Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# > openings....almost > 3:1 !!! > > Note: Even John Colby has moved over to C#. > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: Saturday, November 14, 2009 1:36 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access/SQL >> >> Mark, >> >> IMO C# + .NET Framework is the best ever general purpose development >> platform for business applications. >> >> I'm talking from my experience in development of business applications >> using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, >> DataFlex, VBA, VB6, VB.NET, C#... >> >> One with good VB6/VBA development experience can start developing >> VB.NET business apps the next day/week provided they will get proper >> guidelines/help/tutoring... >> >> I have such examples as e.g. when I have got advanced MS Excel COM >> Add-in and converted it (just starting using VB.NET this day) to a >> VB.NET one within three days (10,000+ code >> lines) - it's nothing special - most of experienced VB6/VBA developers >> can do that. >> >> -- >> Shamil > > <<< snip >>> > > > > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature > database 4608 (20091114) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sat Nov 14 20:34:57 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 14 Nov 2009 21:34:57 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFF5CBD.9258.1490467D@stuart.lexacorp.com.pg> References: , <009e01ca6590$3b45da10$b1d18e30$@spb.ru>, <4AFF5CBD.9258.1490467D@stuart.lexacorp.com.pg> Message-ID: <09377169F3814D4A88EFB975C2ED44A8@jislaptopdev> ...much as I want to focus on C#, I have to admit that a good share of my income is based on my ability to produce results with css, JavaScript, asp. Net, and sql ...and of course I still do vba when the client insists. William -------------------------------------------------- From: "Stuart McLachlan" Sent: Saturday, November 14, 2009 8:43 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Access/SQL > Not just in the future. Many of us have to be multilingual today. > > In my current projects I am using Access VBA, SQL, PB, HTML/CSS, > Javascript and PHP > (and if I really need power, I can embed Assembler in the PB components) > > -- > Stuart > > On 14 Nov 2009 at 17:28, Rocky Smolin wrote: > >> Sheesh!! You gotta be multi-lingual? >> >> I think I'll urge him to do something simpler and easier. Like nuclear >> physics or brain surgery. >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: Saturday, November 14, 2009 5:09 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access/SQL >> >> <<< >> But what should he learn for the future? >> >>> >> JAVA, JavaScript, C#, Ruby, C/C++, Assembler, HTML, CSS... >> >> Maybe he should better start/switch to C/C+ and Assembler - then the >> other >> languages from the above list will be relatively easy to learn and use >> for >> him... >> >> <<< >> What's going to be the platform du jour in 5 years? 10 years? >> >>> >> No idea. >> >> -- >> Shamil >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin >> Sent: Sunday, November 15, 2009 3:04 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access/SQL >> >> Well, I'm so happy I waited to learn VB.NET. It died while I was >> waiting. >> One vote for the procrastinators. >> >> My kid is 13. He's heavy into JAVA now. But what should he learn for >> the >> future? What's going to be the platform du jour in 5 years? 10 years? >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> Salakhetdinov >> Sent: Saturday, November 14, 2009 1:30 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access/SQL >> >> Mark, >> >> VB.Net is OK. >> I can use both C# and VB.NET interchangeably as many .NET developers do. >> But I do prefer C#. >> Nowadays in my development I'm using 99.99% of the time C# (for several >> years now). >> There are also F#, IronPython and IronRuby, which can be used on .NET >> development platform... >> Even more programming languages will come to .NET platform in the >> future... >> >> Even Fortran can be used within .NET - >> http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... >> >> Thank you. >> >> -- >> Shamil >> >> P.S. I'd guess "new powerful webdev platform" uses C# by default but you >> can >> always switch to VB.NET or use both... >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms >> Sent: Saturday, November 14, 2009 11:59 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Access/SQL >> >> VB.NET is dead, dead, dead. >> Everyone has moved to C#...much more elegant. >> On Microsoft's new, most powerful webdev platform one can only use C#. >> Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# >> openings....almost >> 3:1 !!! >> >> Note: Even John Colby has moved over to C#. >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >> > Salakhetdinov >> > Sent: Saturday, November 14, 2009 1:36 PM >> > To: 'Access Developers discussion and problem solving' >> > Subject: Re: [AccessD] Access/SQL >> > >> > Mark, >> > >> > IMO C# + .NET Framework is the best ever general purpose development >> > platform for business applications. >> > >> > I'm talking from my experience in development of business applications >> > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, >> > DataFlex, VBA, VB6, VB.NET, C#... >> > >> > One with good VB6/VBA development experience can start developing >> > VB.NET business apps the next day/week provided they will get proper >> > guidelines/help/tutoring... >> > >> > I have such examples as e.g. when I have got advanced MS Excel COM >> > Add-in and converted it (just starting using VB.NET this day) to a >> > VB.NET one within three days (10,000+ code >> > lines) - it's nothing special - most of experienced VB6/VBA developers >> > can do that. >> > >> > -- >> > Shamil >> >> <<< snip >>> >> >> >> >> >> >> __________ Information from ESET NOD32 Antivirus, version of virus >> signature >> database 4608 (20091114) __________ >> >> The message was checked by ESET NOD32 Antivirus. >> >> http://www.esetnod32.ru >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Sat Nov 14 20:53:54 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 15 Nov 2009 12:53:54 +1000 Subject: [AccessD] Access/SQL In-Reply-To: <7B3BEB2891384F63ADC2F3B57DAE96EF@jislaptopdev> References: , , <7B3BEB2891384F63ADC2F3B57DAE96EF@jislaptopdev> Message-ID: <4AFF6D42.27016.14D0CC21@stuart.lexacorp.com.pg> They wanted to, but Oracle beat the to it. -- Stuart On 14 Nov 2009 at 21:23, William Hindman wrote: > steep decline ...IBM is buying Sun, the evangelist behind Java ...but they > want Sun's mainframe and workstation business, thus the continued financial > evangelization of Java is almost certainly dead ...dot net is the immediate From marksimms at verizon.net Sat Nov 14 20:53:55 2009 From: marksimms at verizon.net (Mark Simms) Date: Sat, 14 Nov 2009 21:53:55 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <25730A18F2044598B1E9C54A72D3F243@danwaters> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <25730A18F2044598B1E9C54A72D3F243@danwaters> Message-ID: <002401ca659e$df285140$0601a8c0@MSIMMSWS> > > I know I'm picking on you, but I get quickly frustrated with > arguments over which choice to make when the selection > criteria are not based on something concrete. > > Dan > The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio would be reversed. From wdhindman at dejpolsystems.com Sat Nov 14 21:05:57 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 14 Nov 2009 22:05:57 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFF6D42.27016.14D0CC21@stuart.lexacorp.com.pg> References: , , <7B3BEB2891384F63ADC2F3B57DAE96EF@jislaptopdev> <4AFF6D42.27016.14D0CC21@stuart.lexacorp.com.pg> Message-ID: ...ah so, see what comes of getting old :) William -------------------------------------------------- From: "Stuart McLachlan" Sent: Saturday, November 14, 2009 9:53 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Access/SQL > They wanted to, but Oracle beat the to it. > > -- > Stuart > > On 14 Nov 2009 at 21:23, William Hindman wrote: > >> steep decline ...IBM is buying Sun, the evangelist behind Java ...but >> they >> want Sun's mainframe and workstation business, thus the continued >> financial >> evangelization of Java is almost certainly dead ...dot net is the >> immediate > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Sat Nov 14 21:19:34 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 14 Nov 2009 21:19:34 -0600 Subject: [AccessD] Access/SQL In-Reply-To: <002401ca659e$df285140$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <002401ca659e$df285140$0601a8c0@MSIMMSWS> Message-ID: Be interesting to look at those stats a year after the two languages are equalized. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 8:54 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL > > I know I'm picking on you, but I get quickly frustrated with > arguments over which choice to make when the selection > criteria are not based on something concrete. > > Dan > The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio would be reversed. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Nov 14 21:21:37 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 14 Nov 2009 22:21:37 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <002401ca659e$df285140$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <002401ca659e$df285140$0601a8c0@MSIMMSWS> Message-ID: <0004EF79B78B4746AC13ECC4DC091CFC@jislaptopdev> ...its not a matter of "better" ...it's a matter of resources ...when I started with dot net my natural path was to learn vb.net ...but what I found is that there are far more examples written in c# available on the net than vb.net ...and once I started looking at those examples, including translations done by the web based code converters, it turned out that the syntax wasn't all that different ...so I started playing with c# and its now my language of choice but by no means expertise. ...there is no natural upgrade path from a vb app to a vb.net app, it's a whole new paradigm, vb in name only ...thus a lot of vb programmers and apps never made the transition ...otoh, C# has a lot in common with past C and Java languages and a lot of them did make the transition to C# and dot net ...and they brought their tools and samples along. William -------------------------------------------------- From: "Mark Simms" Sent: Saturday, November 14, 2009 9:53 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Access/SQL >> >> I know I'm picking on you, but I get quickly frustrated with >> arguments over which choice to make when the selection >> criteria are not based on something concrete. >> >> Dan >> > The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio > would > be reversed. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Nov 14 21:35:35 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 22:35:35 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <002401ca659e$df285140$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <25730A18F2044598B1E9C54A72D3F243@danwaters> <002401ca659e$df285140$0601a8c0@MSIMMSWS> Message-ID: <4AFF7707.7090603@colbyconsulting.com> The DICE stats have absolutely nothing to do with the power of the language and everything to do with the perception of ignorant people writing up job specs. Never wrote a line of code in their lives but have heard all about the "C" programming language. People (apparently) somewhat like yourself. Microsoft itself says that C# is no better (or worse) than VB.Net. They wrote both, I would think they might know some small something about the issue. John W. Colby www.ColbyConsulting.com Mark Simms wrote: >> I know I'm picking on you, but I get quickly frustrated with >> arguments over which choice to make when the selection >> criteria are not based on something concrete. >> >> Dan >> > The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio would > be reversed. > > > From jwcolby at colbyconsulting.com Sat Nov 14 21:44:15 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 22:44:15 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFF7707.7090603@colbyconsulting.com> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <25730A18F2044598B1E9C54A72D3F243@danwaters> <002401ca659e$df285140$0601a8c0@MSIMMSWS> <4AFF7707.7090603@colbyconsulting.com> Message-ID: <4AFF790F.2010207@colbyconsulting.com> LOL, well, obviously you have written a line or two of code. ;) But you certainly appear to be ignorant about C# and VB.Net. Read up on what part the language layer plays in the .net environment, then rejoin the conversation. John W. Colby www.ColbyConsulting.com jwcolby wrote: > The DICE stats have absolutely nothing to do with the power of the language and everything to do > with the perception of ignorant people writing up job specs. Never wrote a line of code in their > lives but have heard all about the "C" programming language. > > People (apparently) somewhat like yourself. Microsoft itself says that C# is no better (or worse) > than VB.Net. They wrote both, I would think they might know some small something about the issue. > > John W. Colby > www.ColbyConsulting.com > > > Mark Simms wrote: >>> I know I'm picking on you, but I get quickly frustrated with >>> arguments over which choice to make when the selection >>> criteria are not based on something concrete. >>> >>> Dan >>> >> The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio would >> be reversed. >> >> >> From jwcolby at colbyconsulting.com Sat Nov 14 21:46:44 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 14 Nov 2009 22:46:44 -0500 Subject: [AccessD] Access/SQL In-Reply-To: <4AFF7707.7090603@colbyconsulting.com> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <25730A18F2044598B1E9C54A72D3F243@danwaters> <002401ca659e$df285140$0601a8c0@MSIMMSWS> <4AFF7707.7090603@colbyconsulting.com> Message-ID: <4AFF79A4.4080704@colbyconsulting.com> >> The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio would be reversed. http://support.microsoft.com/kb/308470 John W. Colby www.ColbyConsulting.com >>> >> The DICE stats ARE CONCRETE. If VB.NET were better, I think the ratio would >> be reversed. >> >> >> From kismert at gmail.com Sun Nov 15 10:52:13 2009 From: kismert at gmail.com (Kenneth Ismert) Date: Sun, 15 Nov 2009 10:52:13 -0600 Subject: [AccessD] AccessD Digest, Vol 81, Issue 20 In-Reply-To: References: Message-ID: <7c7841600911150852jdf6bd8chfa31995942960bd0@mail.gmail.com> William Hindman > ...supposedly MS is even going to support Linux on it [.NET] ...lots of > heartburn in the geek world if MS turns out to be the first successful > platform independent software provider. > Check out Mono http://mono-project.com/Main_Page This is an open-source, cross-platform .NET environment with an IDE and open-source implementation of Silverlight. It's at .NET 2.0, with many C# 3.0 features, with support for LINQ, ASP.NETand Windows.Forms 2.0. A fair number of commercial and open-source applications have been written in it, including EA's The Sims 3. -Ken From stuart at lexacorp.com.pg Mon Nov 16 04:11:45 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 16 Nov 2009 20:11:45 +1000 Subject: [AccessD] Replace multiple spaces with a single space In-Reply-To: <7c7841600911150852jdf6bd8chfa31995942960bd0@mail.gmail.com> References: , <7c7841600911150852jdf6bd8chfa31995942960bd0@mail.gmail.com> Message-ID: <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg> An rather neat expression to get rid of extra spaces in strings i.e. Convert "This string has too many spaces" to "This string has to many spaces" Based on an TSQL set based method in the latest SQLServerCentral newsletter. Can either be used directly as an expression in a query or you could create a single line function for it (inline in a query should be more efficient) 'uses chr$(7) as a safe substitution character which shouldn't appear in the original '1. replaces "space + space" with "space + Chr$(7)" '2. replaces "chr$(7) + space" with an empty strings '3. replaces left over chr$(7)s with empty strings ReduceSpaces = Replace(Replace(Replace(Trim(OriginalString), " ", " " _ + Chr$(7)), Chr$(7) + " ", ""), Chr$(7), "") Can be used almost unchanged in a TSQL stored procedure - just replace Chr$() with CHAR() and Trim() with LTRIM(RTRIM()) -- Stuart From max.wanadoo at gmail.com Mon Nov 16 04:40:51 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 16 Nov 2009 10:40:51 -0000 Subject: [AccessD] Replace multiple spaces with a single space In-Reply-To: <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg> References: , <7c7841600911150852jdf6bd8chfa31995942960bd0@mail.gmail.com> <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg> Message-ID: <4b012c57.1358560a.03f3.ffff93b5@mx.google.com> Why not a straight forward replace function called recursively, viz: Option Compare Database Option Explicit Private str As String Function xyz() str = "This string has too many spaces" Call nospaces End Function Function nospaces() As String str = Replace(str, " ", " ") Debug.Print str If InStr(str, " ") > 0 Then Call nospaces End If End Function Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 16 November 2009 10:12 To: Access Developers discussion and problem solving Subject: [AccessD] Replace multiple spaces with a single space An rather neat expression to get rid of extra spaces in strings i.e. Convert "This string has too many spaces" to "This string has to many spaces" Based on an TSQL set based method in the latest SQLServerCentral newsletter. Can either be used directly as an expression in a query or you could create a single line function for it (inline in a query should be more efficient) 'uses chr$(7) as a safe substitution character which shouldn't appear in the original '1. replaces "space + space" with "space + Chr$(7)" '2. replaces "chr$(7) + space" with an empty strings '3. replaces left over chr$(7)s with empty strings ReduceSpaces = Replace(Replace(Replace(Trim(OriginalString), " ", " " _ + Chr$(7)), Chr$(7) + " ", ""), Chr$(7), "") Can be used almost unchanged in a TSQL stored procedure - just replace Chr$() with CHAR() and Trim() with LTRIM(RTRIM()) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Nov 16 04:56:48 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Nov 2009 11:56:48 +0100 Subject: [AccessD] Replace multiple spaces with a single space Message-ID: Hi Stuart I like the combination ".. a safe substitution character which shouldn't appear .." Either it is safe and will not appear, or it is unsafe because it shouldn't appear but you don't know for sure. And as Max, I just replace directly with a single space for such tasks. Why wouldn't (shouldn't) that work with TSQL? /gustav >>> stuart at lexacorp.com.pg 16-11-2009 11:11 >>> An rather neat expression to get rid of extra spaces in strings i.e. Convert "This string has too many spaces" to "This string has to many spaces" Based on an TSQL set based method in the latest SQLServerCentral newsletter. Can either be used directly as an expression in a query or you could create a single line function for it (inline in a query should be more efficient) 'uses chr$(7) as a safe substitution character which shouldn't appear in the original '1. replaces "space + space" with "space + Chr$(7)" '2. replaces "chr$(7) + space" with an empty strings '3. replaces left over chr$(7)s with empty strings ReduceSpaces = Replace(Replace(Replace(Trim(OriginalString), " ", " " _ + Chr$(7)), Chr$(7) + " ", ""), Chr$(7), "") Can be used almost unchanged in a TSQL stored procedure - just replace Chr$() with CHAR() and Trim() with LTRIM(RTRIM()) -- Stuart From stuart at lexacorp.com.pg Mon Nov 16 06:33:12 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 16 Nov 2009 22:33:12 +1000 Subject: [AccessD] Replace multiple spaces with a single space In-Reply-To: <4b012c57.1358560a.03f3.ffff93b5@mx.google.com> References: , <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg>, <4b012c57.1358560a.03f3.ffff93b5@mx.google.com> Message-ID: <4B014688.5972.1324E44@stuart.lexacorp.com.pg> Efficiency! Version 1: SELECT tblElectors.FName, Replace(Replace(Replace(Trim([fname])," "," "+Chr$(7)),Chr$(7)+" ",""),Chr$(7),"") AS Expr1 FROM tblElectors WHERE (((Replace(Replace(Replace(Trim([fname])," "," "+Chr$(7)),Chr$(7)+" ",""),Chr$(7),""))<>[fname])); Version 2: Function nospaces(str As String) As String str = Replace(str, " ", " ") If InStr(str, " ") > 0 Then str = nospaces(str) End If nospaces = str End Function SELECT nospaces([FName]) AS Expr1, tblElectors.FName FROM tblElectors WHERE (((nospaces([FName]))<>[fname])); tblElectors has 4,118,769 records. There are 6742 problem records. Version 1 takes 70 seconds on my laptop. I broke into Version 2 after it had been running for about 15 minutes - Don't know how far it had got at that stage. :-( -- Stuart On 16 Nov 2009 at 10:40, Max Wanadoo wrote: > Why not a straight forward replace function called recursively, viz: > > Option Compare Database > Option Explicit > Private str As String > Function xyz() > str = "This string has too many > spaces" > Call nospaces > End Function > > > Function nospaces() As String > str = Replace(str, " ", " ") > Debug.Print str > If InStr(str, " ") > 0 Then > Call nospaces > End If > End Function > > > Max > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 16 November 2009 10:12 > To: Access Developers discussion and problem solving > Subject: [AccessD] Replace multiple spaces with a single space > > An rather neat expression to get rid of extra spaces in strings > i.e. Convert "This string has too many > spaces" to > "This string has to many spaces" > > Based on an TSQL set based method in the latest SQLServerCentral newsletter. > Can either be used directly as an expression in a query or you could create > a single line > function for it (inline in a query should be more efficient) > > 'uses chr$(7) as a safe substitution character which shouldn't appear in the > original > '1. replaces "space + space" with "space + Chr$(7)" > '2. replaces "chr$(7) + space" with an empty strings > '3. replaces left over chr$(7)s with empty strings > > ReduceSpaces = Replace(Replace(Replace(Trim(OriginalString), " ", " " _ > + Chr$(7)), Chr$(7) + " ", ""), Chr$(7), "") > > Can be used almost unchanged in a TSQL stored procedure - just replace > Chr$() with > CHAR() and Trim() with LTRIM(RTRIM()) > > > -- > 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 max.wanadoo at gmail.com Mon Nov 16 07:01:19 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 16 Nov 2009 13:01:19 -0000 Subject: [AccessD] Replace multiple spaces with a single space In-Reply-To: <4B014688.5972.1324E44@stuart.lexacorp.com.pg> References: , <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg>, <4b012c57.1358560a.03f3.ffff93b5@mx.google.com> <4B014688.5972.1324E44@stuart.lexacorp.com.pg> Message-ID: <4b014d2b.1438560a.3bdd.ffff809f@mx.google.com> Have you tried just swapping those lines around in V2? Function nospaces(str As String) As String If InStr(str, " ") > 0 Then str = Replace(str, " ", " ") str = nospaces(str) End If nospaces = str End Function Moving the "replace" line after the test should improve things. Might be quicker Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 16 November 2009 12:33 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Replace multiple spaces with a single space Efficiency! Version 1: SELECT tblElectors.FName, Replace(Replace(Replace(Trim([fname])," "," "+Chr$(7)),Chr$(7)+" ",""),Chr$(7),"") AS Expr1 FROM tblElectors WHERE (((Replace(Replace(Replace(Trim([fname])," "," "+Chr$(7)),Chr$(7)+" ",""),Chr$(7),""))<>[fname])); Version 2: Function nospaces(str As String) As String str = Replace(str, " ", " ") If InStr(str, " ") > 0 Then str = nospaces(str) End If nospaces = str End Function SELECT nospaces([FName]) AS Expr1, tblElectors.FName FROM tblElectors WHERE (((nospaces([FName]))<>[fname])); tblElectors has 4,118,769 records. There are 6742 problem records. Version 1 takes 70 seconds on my laptop. I broke into Version 2 after it had been running for about 15 minutes - Don't know how far it had got at that stage. :-( -- Stuart On 16 Nov 2009 at 10:40, Max Wanadoo wrote: > Why not a straight forward replace function called recursively, viz: > > Option Compare Database > Option Explicit > Private str As String > Function xyz() > str = "This string has too many > spaces" > Call nospaces > End Function > > > Function nospaces() As String > str = Replace(str, " ", " ") > Debug.Print str > If InStr(str, " ") > 0 Then > Call nospaces > End If > End Function > > > Max > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 16 November 2009 10:12 > To: Access Developers discussion and problem solving > Subject: [AccessD] Replace multiple spaces with a single space > > An rather neat expression to get rid of extra spaces in strings > i.e. Convert "This string has too many > spaces" to > "This string has to many spaces" > > Based on an TSQL set based method in the latest SQLServerCentral newsletter. > Can either be used directly as an expression in a query or you could create > a single line > function for it (inline in a query should be more efficient) > > 'uses chr$(7) as a safe substitution character which shouldn't appear in the > original > '1. replaces "space + space" with "space + Chr$(7)" > '2. replaces "chr$(7) + space" with an empty strings > '3. replaces left over chr$(7)s with empty strings > > ReduceSpaces = Replace(Replace(Replace(Trim(OriginalString), " ", " " _ > + Chr$(7)), Chr$(7) + " ", ""), Chr$(7), "") > > Can be used almost unchanged in a TSQL stored procedure - just replace > Chr$() with > CHAR() and Trim() with LTRIM(RTRIM()) > > > -- > 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 jwcolby at colbyconsulting.com Mon Nov 16 07:20:41 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 16 Nov 2009 08:20:41 -0500 Subject: [AccessD] SPAM-LOW: Replace multiple spaces with a single space In-Reply-To: <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg> References: , <7c7841600911150852jdf6bd8chfa31995942960bd0@mail.gmail.com> <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg> Message-ID: <4B0151A9.2020405@colbyconsulting.com> The original article. http://www.sqlservercentral.com/articles/T-SQL/68378/ I turned this into a UDF since that works for me. USE [_aDataMaster] GO /****** Object: UserDefinedFunction [dbo].[udf_ReplaceSpace] Script Date: 11/16/2009 08:16:06 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Jeff Moden, -- Create date: 2009/11/16 -- Description: http://www.sqlservercentral.com/articles/T-SQL/68378/ -- ============================================= CREATE FUNCTION [dbo].[udf_ReplaceSpace] ( -- Add the parameters for the function here @OrigString varchar(8000) ) RETURNS varchar(8000) AS BEGIN -- Declare the return variable here --===== Reduce each group of multiple spaces to a single space -- for a whole table without functions, loops, or other -- forms of slow RBAR. In the following example, CHAR(7) -- is the "unlikely" character that "X" was used for in -- the explanation. return REPLACE( REPLACE( REPLACE( LTRIM(RTRIM(@OrigString)) ,' ',' '+CHAR(7)) --Changes 2 spaces to the OX model ,CHAR(7)+' ','') --Changes the XO model to nothing ,CHAR(7),'') --Changes the remaining X's to nothing END John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > An rather neat expression to get rid of extra spaces in strings > i.e. Convert "This string has too many spaces" to > "This string has to many spaces" > > Based on an TSQL set based method in the latest SQLServerCentral newsletter. > Can either be used directly as an expression in a query or you could create a single line > function for it (inline in a query should be more efficient) > > 'uses chr$(7) as a safe substitution character which shouldn't appear in the original > '1. replaces "space + space" with "space + Chr$(7)" > '2. replaces "chr$(7) + space" with an empty strings > '3. replaces left over chr$(7)s with empty strings > > ReduceSpaces = Replace(Replace(Replace(Trim(OriginalString), " ", " " _ > + Chr$(7)), Chr$(7) + " ", ""), Chr$(7), "") > > Can be used almost unchanged in a TSQL stored procedure - just replace Chr$() with > CHAR() and Trim() with LTRIM(RTRIM()) > > From joeo at appoli.com Mon Nov 16 08:26:38 2009 From: joeo at appoli.com (Joe O'Connell) Date: Mon, 16 Nov 2009 09:26:38 -0500 Subject: [AccessD] Redemption question In-Reply-To: <4AFF2E13.5060309@colbyconsulting.com> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <4AFF2E13.5060309@colbyconsulting.com> Message-ID: <1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net> What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell From max.wanadoo at gmail.com Mon Nov 16 09:51:03 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 16 Nov 2009 15:51:03 -0000 Subject: [AccessD] Redemption question In-Reply-To: <1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <4AFF2E13.5060309@colbyconsulting.com> <1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net> Message-ID: <4b0174f3.08b6660a.0891.68c7@mx.google.com> Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeo at appoli.com Mon Nov 16 10:01:40 2009 From: joeo at appoli.com (Joe O'Connell) Date: Mon, 16 Nov 2009 11:01:40 -0500 Subject: [AccessD] Redemption question In-Reply-To: <4b0174f3.08b6660a.0891.68c7@mx.google.com> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net> <4b0174f3.08b6660a.0891.68c7@mx.google.com> Message-ID: <1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Nov 16 10:24:53 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 16 Nov 2009 16:24:53 -0000 Subject: [AccessD] Redemption question In-Reply-To: <1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net> <4b0174f3.08b6660a.0891.68c7@mx.google.com> <1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> Message-ID: <4b017ce4.08b6660a.0891.ffff8686@mx.google.com> Don't use it Joe, I use ClickYes for the YES response. Never used Redemption. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 16:02 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Nov 16 11:40:35 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 16 Nov 2009 11:40:35 -0600 Subject: [AccessD] Redemption question In-Reply-To: <1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters> <4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net> <4b0174f3.08b6660a.0891.68c7@mx.google.com> <1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> Message-ID: Redemption doesn't work through Outlook. It uses the CDO object directly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell From joeo at appoli.com Mon Nov 16 12:06:12 2009 From: joeo at appoli.com (Joe O'Connell) Date: Mon, 16 Nov 2009 13:06:12 -0500 Subject: [AccessD] Redemption question In-Reply-To: References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters><4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net><4b0174f3.08b6660a.0891.68c7@mx.google.com><1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> Message-ID: <1CF20DB644BE124083B31638E5D5C0234A1C5B@exch2.Onappsad.net> Charlotte, Is there a way to delete an email message from the inbox and have it moved to the deleted items folder? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Redemption doesn't work through Outlook. It uses the CDO object directly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Nov 16 12:51:21 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 16 Nov 2009 12:51:21 -0600 Subject: [AccessD] Redemption question In-Reply-To: <1CF20DB644BE124083B31638E5D5C0234A1C5B@exch2.Onappsad.net> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters><4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net><4b0174f3.08b6660a.0891.68c7@mx.google.com><1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net> <1CF20DB644BE124083B31638E5D5C0234A1C5B@exch2.Onappsad.net> Message-ID: I haven't programmed it in several years so I don't recall, but you should be able to copy the email to the deleted folder and then delete it using redemption. Wouldn't that accomplish the same thing? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Charlotte, Is there a way to delete an email message from the inbox and have it moved to the deleted items folder? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Redemption doesn't work through Outlook. It uses the CDO object directly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Nov 16 13:08:27 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 16 Nov 2009 11:08:27 -0800 Subject: [AccessD] Query Problem Message-ID: Dear List: I have a query in code as a SQL statement which I use to open a recordset in DAO. It retrieves 16 records but it should retrieve 20. I display this SQL text on the calling form so I can cut it and paste it into the SQL view of a query and run it there. When I run it as a query it retrieves all 20 records. The four missing records from the DAO recordset are the ones where the field fldUSRHeaderAdjustment is TRUE. Question is why the records retrieved would differ when using the same string to open a DAO recordset and pasting the SQL into a query_ Here*s the SQL strSQL = "SELECT tblLicensee.fldLicenseeID, tblLicensee.fldLicenseeName, " _ & "tblUSRDetail.fldUSRDetailQuantity, tblUSRDetail.fldUSRDetailShipDate, " _ & "tblUSRHeader.fldUSRHeaderShipmentYear, tblUSRHeader.fldUSRHeaderShipmentQuarter, " _ & "tblUSRHeader.fldUSRHeaderAdjustment, tblUSRHeader.fldUSRHeaderReportingQuarter, " _ & "tblUSRHeader.fldUSRHeaderReportingYear, Trim(Str([fldUSRHeaderShipmentYear])) & " _ & "Trim(Str([fldUSRHeaderShipmentQuarter])) AS ShipYearQuarter FROM tblUSRHeader " _ & "INNER JOIN ((tblLicensee INNER JOIN tblProduct ON tblLicensee.fldLicenseeID = " _ & "tblProduct.fldLicenseeID) INNER JOIN tblUSRDetail ON tblProduct.fldProductID = " _ & "tblUSRDetail.fldProductID) ON tblUSRHeader.fldUSRHeaderID = " _ & "tblUSRDetail.fldUSRHeaderID WHERE (((tblLicensee.fldLicenseeName) Like '" _ & Me.txtCDLIHScenarioPrefix & "*') AND ((Trim(Str([fldUSRHeaderShipmentYear])) & " _ & "Trim(Str([fldUSRHeaderShipmentQuarter])))<='" & Me.cboShipmentYear _ & Me.cboShipmentQuarter & "') AND ((tblProduct.fldProductCDLInvoiceEligible)=True) AND " _ & "((tblUSRHeader.fldUSRHeaderDeleteFlag)=False) AND " _ & "((tblUSRDetail.fldUSRDetailDeleteFlag)=False)) ORDER BY tblLicensee.fldLicenseeName, " _ & "tblUSRHeader.fldUSRHeaderShipmentYear, tblUSRHeader.fldUSRHeaderShipmentQuarter, " _ & "tblUSRHeader.fldUSRHeaderAdjustment DESC , Trim(Str([fldUSRHeaderShipmentYear])) & " _ & "Trim(Str([fldUSRHeaderShipmentQuarter]));" in the code. And here it is cut from the text box and pasted into a query SELECT tblLicensee.fldLicenseeID, tblLicensee.fldLicenseeName, tblUSRDetail.fldUSRDetailQuantity, tblUSRDetail.fldUSRDetailShipDate, tblUSRHeader.fldUSRHeaderShipmentYear, tblUSRHeader.fldUSRHeaderShipmentQuarter, tblUSRHeader.fldUSRHeaderAdjustment, tblUSRHeader.fldUSRHeaderReportingQuarter, tblUSRHeader.fldUSRHeaderReportingYear, Trim(Str([fldUSRHeaderShipmentYear])) & Trim(Str([fldUSRHeaderShipmentQuarter])) AS ShipYearQuarter FROM tblUSRHeader INNER JOIN ((tblLicensee INNER JOIN tblProduct ON tblLicensee.fldLicenseeID = tblProduct.fldLicenseeID) INNER JOIN tblUSRDetail ON tblProduct.fldProductID = tblUSRDetail.fldProductID) ON tblUSRHeader.fldUSRHeaderID = tblUSRDetail.fldUSRHeaderID WHERE (((tblLicensee.fldLicenseeName) Like 'C7-*') AND ((Trim(Str([fldUSRHeaderShipmentYear])) & Trim(Str([fldUSRHeaderShipmentQuarter])))<='20104') AND ((tblProduct.fldProductCDLInvoiceEligible)=True) AND ((tblUSRHeader.fldUSRHeaderDeleteFlag)=False) AND ((tblUSRDetail.fldUSRDetailDeleteFlag)=False)) ORDER BY tblLicensee.fldLicenseeName, tblUSRHeader.fldUSRHeaderShipmentYear, tblUSRHeader.fldUSRHeaderShipmentQuarter, tblUSRHeader.fldUSRHeaderAdjustment DESC , Trim(Str([fldUSRHeaderShipmentYear])) & Trim(Str([fldUSRHeaderShipmentQuarter])); MTIA, Rocky From ssharkins at gmail.com Mon Nov 16 15:05:36 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 16 Nov 2009 16:05:36 -0500 Subject: [AccessD] Article on Access Message-ID: I'm going to write a series of articles of favorite/least favorite tips/features in the Office applications. The selling point is that these comments are your's and not mine for a change. :) If you want to be included, I'll include your contact information in the article -- similar to the security and add-in articles I wrote last year. I'll be writing one on Access. If you're interested, I'll need your favorite all-time Access tip/feature and your least favorite feature. Please mail them to me privately -- ss harkins at gmail dot com -- so we don't upset the kind moderators! I'm been asked not to include keyboard shortcuts. I need a user/code/feature type solution -- it can be very easy. If you want to include a keyboard shortcut, we can do so, as an after thought... "In addition, so and so uses the blah, blah shortcut regular..." Your least favorite can be something you find awkward, a bug, or a feature you think that should be available, but isn't -- or something else -- those are just ideas. What makes you pound your desk and spit out, "D*mn!" I'll be writing one for Word and Excel too, and possibly Outlook and PP if I can find enough people interested, so keep those in mind too if you're interested. Thanks! Susan From stuart at lexacorp.com.pg Mon Nov 16 15:41:36 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Nov 2009 07:41:36 +1000 Subject: [AccessD] SPAM-LOW: Replace multiple spaces with a single space In-Reply-To: <4B0151A9.2020405@colbyconsulting.com> References: , <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg>, <4B0151A9.2020405@colbyconsulting.com> Message-ID: <4B01C710.9334.328619F@stuart.lexacorp.com.pg> You missed the whole point of the article. The prupose of the method is to use the efficiency of Set based operations. The truth is that you don't need the RBAR of a User Defined Function at all. This article explains the "puzzle solving" behind a common set based method ... Remember the goal is to convert all of those sets of spaces to just a single space without the use of RBAR even if the RBAR is through the simple use of a UDF. ... "RBAR" is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row". -- Stuart On 16 Nov 2009 at 8:20, jwcolby wrote: > The original article. > > http://www.sqlservercentral.com/articles/T-SQL/68378/ > > I turned this into a UDF since that works for me. > From Darryl.Collins at anz.com Mon Nov 16 16:00:30 2009 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Tue, 17 Nov 2009 09:00:30 +1100 Subject: [AccessD] Excel Security Patch issue Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E8101688C10@EXUAU020HWT110.oceania.corp.anz.com> Hi Folks, You might want to be aware of this one.... One of the XL L list members came across this problem yesterday. Check if you have this installed KB973593? (MS Security patch released 11 Nov 2009) (http://www.microsoft.com/technet/security/bulletin/MS09-067.mspx) There are reports of that causing big screen refresh issues with non active sheet contents bleeding through to the visible one. The problems will just start one day and your Excel seems to be going buggy with everything bleeding like wounded soldier. For more info there is some spiel here. http://www.thecodecage.com/forumz/excel-vba-programming/153341-excel-200 7-bug-caused-latest-security-patch-kb973593.html At first it was just reported in XL2007, but there are numerous reports that XL2003 is also impacted. Really annoying.... I now know other folks who are having this issue as well. :-/ Immediate fix it to uninstall the security patch. Regards Darryl Collins | Data Integration Specialist Technology Institutional Program Management Office (TIPMO) ANZ, Level 23, 55 Collins Street, Melbourne Ph: +61 3 9658 1587 (Local: 03 9658 1587) Mobile: +61 418 381 548 (Local: 0418 381 548) Email: darryl.collins at anz.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From joeo at appoli.com Mon Nov 16 18:20:18 2009 From: joeo at appoli.com (Joe O'Connell) Date: Mon, 16 Nov 2009 19:20:18 -0500 Subject: [AccessD] Redemption question In-Reply-To: References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters><4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net><4b0174f3.08b6660a.0891.68c7@mx.google.com><1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net><1CF20DB644BE124083B31638E5D5C0234A1C5B@exch2.Onappsad.net> Message-ID: <1CF20DB644BE124083B31638E5D5C0234A1C7E@exch2.Onappsad.net> Charlotte, That is what Max had suggested earlier. It gives me the desired result so it is a good solution. I was just curious as to why the delete in Redemption behaved differently. Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 1:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question I haven't programmed it in several years so I don't recall, but you should be able to copy the email to the deleted folder and then delete it using redemption. Wouldn't that accomplish the same thing? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Charlotte, Is there a way to delete an email message from the inbox and have it moved to the deleted items folder? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Redemption doesn't work through Outlook. It uses the CDO object directly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Nov 16 18:44:28 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 16 Nov 2009 18:44:28 -0600 Subject: [AccessD] Redemption question In-Reply-To: <1CF20DB644BE124083B31638E5D5C0234A1C7E@exch2.Onappsad.net> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters><4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net><4b0174f3.08b6660a.0891.68c7@mx.google.com><1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net><1CF20DB644BE124083B31638E5D5C0234A1C5B@exch2.Onappsad.net> <1CF20DB644BE124083B31638E5D5C0234A1C7E@exch2.Onappsad.net> Message-ID: Because Redemption isn't working through Outlook, it's working through CDO. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 4:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Charlotte, That is what Max had suggested earlier. It gives me the desired result so it is a good solution. I was just curious as to why the delete in Redemption behaved differently. Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 1:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question I haven't programmed it in several years so I don't recall, but you should be able to copy the email to the deleted folder and then delete it using redemption. Wouldn't that accomplish the same thing? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Charlotte, Is there a way to delete an email message from the inbox and have it moved to the deleted items folder? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Redemption doesn't work through Outlook. It uses the CDO object directly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dw-murphy at cox.net Mon Nov 16 18:59:49 2009 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 16 Nov 2009 16:59:49 -0800 Subject: [AccessD] Redemption question In-Reply-To: References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><25730A18F2044598B1E9C54A72D3F243@danwaters><4AFF2E13.5060309@colbyconsulting.com><1CF20DB644BE124083B31638E5D5C0234A1C44@exch2.Onappsad.net><4b0174f3.08b6660a.0891.68c7@mx.google.com><1CF20DB644BE124083B31638E5D5C0234A1C4D@exch2.Onappsad.net><1CF20DB644BE124083B31638E5D5C0234A1C5B@exch2.Onappsad.net><1CF20DB644BE124083B31638E5D5C0234A1C7E@exch2.Onappsad.net> Message-ID: Don't have a lot of experience with Redemption but I believe that all the folder stuff is MAPI. Send may be CDO. Look at the examples on the Redemption site. I don't have the pro version so don't have the official documentation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 4:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Because Redemption isn't working through Outlook, it's working through CDO. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 4:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Charlotte, That is what Max had suggested earlier. It gives me the desired result so it is a good solution. I was just curious as to why the delete in Redemption behaved differently. Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 1:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question I haven't programmed it in several years so I don't recall, but you should be able to copy the email to the deleted folder and then delete it using redemption. Wouldn't that accomplish the same thing? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 10:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Charlotte, Is there a way to delete an email message from the inbox and have it moved to the deleted items folder? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, November 16, 2009 12:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Redemption doesn't work through Outlook. It uses the CDO object directly. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: Monday, November 16, 2009 8:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Redemption question Max, Thanks for the suggestion, I will give it a try. I would still like to better understand Redemption. Can anyone shed any light on why Redemption behaves differently from Outlook? Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, November 16, 2009 10:51 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Redemption question Joe, change it to so that it moves the email to another folder, in this case the delete folder. I cannot give you the code right now, but it should be easy enough to find with intellisense. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe O'Connell Sent: 16 November 2009 14:27 To: Access Developers discussion and problem solving Subject: [AccessD] Redemption question What is the proper way to use Redemption to move email messages from the inbox to the deleted items folder? An Access 2003 application had been using Outlook objects to read each email in the inbox, process it, and then delete it. The delete behaved just like Outlook - the email was moved to the deleted items folder. Requirements changed and properties needed to be accessed that caused the "confirmation" message box to be displayed. To eliminate the message box, the code was changed to use Redemption. The processing of the emails is working properly, but the delete now deletes the emails completely from Outlook instead of moving them to the deleted items folder. Business rules require all email messages to be retained for a specific period of time after being processed. Here is the relevant code: Dim i As Integer Dim lngNumItems As Long Dim Session As Object, Folder As Object, olItems As Object Set Session = CreateObject("Redemption.RDOSession") Session.Logon Set Folder = Session.GetDefaultFolder(olFolderInbox) lngNumItems = Folder.Items.Count Set olItems = Folder.Items If lngNumItems > 0 Then For i = 1 To lngNumItems .... process email, works OK ....... Next i For i = lngNumItems To 1 Step -1 olItems(i).Delete Next i End If Any help on how to change the "olItems(i).Delete" statement to move the email to the deleted items folder is greatly appreciated. Joe O'Connell -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Nov 16 20:27:18 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 16 Nov 2009 21:27:18 -0500 Subject: [AccessD] SPAM-LOW: Replace multiple spaces with a single space In-Reply-To: <4B01C710.9334.328619F@stuart.lexacorp.com.pg> References: , <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg>, <4B0151A9.2020405@colbyconsulting.com> <4B01C710.9334.328619F@stuart.lexacorp.com.pg> Message-ID: <4B020A06.50802@colbyconsulting.com> ROTFLMAO. No Stuart, YOU missed the whole point of the article. Look closely at the bottom of the article and you will see he is proselytizing getting rid of cursors. All there are are rows. You think a table isn't "row by agonizing row"? What, do you think it updates every row simultaneously? This operation applies the set of (hmmm... functions?) to one field of one ROW, then does the same field of the next ROW, and so forth ad nauseam until it finishes all of the ROWS in the result set. Let me see, it calls... Replace (a function) (Replace (a function) (Replace (a function) (LTrim (a function) (RTrim (a function) Char(A function) Char(A function) Char(a function) So... let's count here... I count EIGHT functions in this little doosey. And you are raising cain about my wrapping that in one more function to make it universal??????? Yes there is an overhead to calling a function but inside of that function it is performing the same operation. OTOH you can now apply my udf to update / process any field in any table instead of trying to remember ... where the heck was that tip again. If you don't want to use UDF, then store the tip wherever you store such things. I will store it in my UDF, thank you very much! Notice that I also provided a pointer to the article in my UDF so I can get back there. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > You missed the whole point of the article. The prupose of the method is to use the > efficiency of Set based operations. > > > The truth is that you don't need the RBAR of a User Defined Function at all. > This article explains the "puzzle solving" behind a common set based method > ... > Remember the goal is to convert all of those sets of spaces to just a single space without > the use of RBAR even if the RBAR is through the simple use of a UDF. > ... > "RBAR" is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row". > > From shamil at smsconsulting.spb.ru Tue Nov 17 02:25:08 2009 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 17 Nov 2009 11:25:08 +0300 Subject: [AccessD] SPAM-LOW: Replace multiple spaces with a single space In-Reply-To: <4B020A06.50802@colbyconsulting.com> References: , <4B012561.16556.B0CE2A@stuart.lexacorp.com.pg>, <4B0151A9.2020405@colbyconsulting.com> <4B01C710.9334.328619F@stuart.lexacorp.com.pg> <4B020A06.50802@colbyconsulting.com> Message-ID: <011f01ca675f$7ad56580$70803080$@spb.ru> Touch?? ;) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, November 17, 2009 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SPAM-LOW: Replace multiple spaces with a single space ROTFLMAO. No Stuart, YOU missed the whole point of the article. Look closely at the bottom of the article and you will see he is proselytizing getting rid of cursors. All there are are rows. You think a table isn't "row by agonizing row"? What, do you think it updates every row simultaneously? This operation applies the set of (hmmm... functions?) to one field of one ROW, then does the same field of the next ROW, and so forth ad nauseam until it finishes all of the ROWS in the result set. Let me see, it calls... Replace (a function) (Replace (a function) (Replace (a function) (LTrim (a function) (RTrim (a function) Char(A function) Char(A function) Char(a function) So... let's count here... I count EIGHT functions in this little doosey. And you are raising cain about my wrapping that in one more function to make it universal??????? Yes there is an overhead to calling a function but inside of that function it is performing the same operation. OTOH you can now apply my udf to update / process any field in any table instead of trying to remember ... where the heck was that tip again. If you don't want to use UDF, then store the tip wherever you store such things. I will store it in my UDF, thank you very much! Notice that I also provided a pointer to the article in my UDF so I can get back there. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > You missed the whole point of the article. The prupose of the method is to use the > efficiency of Set based operations. > > > The truth is that you don't need the RBAR of a User Defined Function at all. > This article explains the "puzzle solving" behind a common set based method > ... > Remember the goal is to convert all of those sets of spaces to just a single space without > the use of RBAR even if the RBAR is through the simple use of a UDF. > ... > "RBAR" is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row". > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4613 (20091116) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru From Chester_Kaup at kindermorgan.com Tue Nov 17 07:39:31 2009 From: Chester_Kaup at kindermorgan.com (Kaup, Chester) Date: Tue, 17 Nov 2009 07:39:31 -0600 Subject: [AccessD] Creating Daily Records Message-ID: <0B2BF8524B73A248A2F1B81BA751ED3C191098628B@houex1.kindermorgan.com> I have a table that has one record on the first day of each month. I need to duplicate this record for each day of the month. I need help on how to do this. 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 Gustav at cactus.dk Tue Nov 17 08:21:21 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 17 Nov 2009 15:21:21 +0100 Subject: [AccessD] Creating Daily Records Message-ID: Hi Chester Use DAO. Something like: Public Function CopyRecord() As Boolean Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim rstAdd As DAO.Recordset Dim fld As DAO.Field Dim strFld As String Dim intDay As Integer Set dbs = CurrentDb Set rst = dbs.OpenRecordset("Select * From tblTable Where [DateField] = DateSerial(Year(Date), Month(Date), 1);") Set rstAdd = rst.Clone With rstAdd For intDay = 2 To Day(DateSerial(Year(Date), Month(Date) + 1, 0)) .AddNew For Each fld In rstAdd.Fields With fld strFld = .Name If Not strFld = "Id" Then If strFld = "NameOfYourDateField" Then .Value = DateSerial(Year(Date), Month(Date), intDay) Else .Value = rst.Fields(strFld).Value End If End If End With Next .Update Next .Close End With rst.Close Set fld = Nothing Set rstAdd = Nothing Set rst = Nothing Set dbs = Nothing End Function /gustav >>> Chester_Kaup at kindermorgan.com 17-11-2009 14:39 >>> I have a table that has one record on the first day of each month. I need to duplicate this record for each day of the month. I need help on how to do this. Thanks. Chester Kaup Engineering Technician Kinder Morgan CO2 Company, LLP Office (432) 688-3797 From dkalsow at yahoo.com Tue Nov 17 12:23:20 2009 From: dkalsow at yahoo.com (Dale Kalsow) Date: Tue, 17 Nov 2009 10:23:20 -0800 (PST) Subject: [AccessD] <\Div> In-Reply-To: Message-ID: <587090.10000.qm@web50405.mail.re2.yahoo.com> I am getting this <\Div>? at the begining and end of a text field.? However it only shows up in the table and on a report not when the user goes into the form.? Has anyone seen this before or have any idea how to fix it? ? thanks! ? Dale From garykjos at gmail.com Tue Nov 17 16:16:37 2009 From: garykjos at gmail.com (Gary Kjos) Date: Tue, 17 Nov 2009 16:16:37 -0600 Subject: [AccessD] <\Div> In-Reply-To: <587090.10000.qm@web50405.mail.re2.yahoo.com> References: <587090.10000.qm@web50405.mail.re2.yahoo.com> Message-ID: So you want that to show or you are wondering where it is coming from or what? That would appear to be some sort of HTML code delimiter or something. Perhaps the form is just ignoring it as a formatting code or something. The bigger question to me is how the heck did it get into the table data if it's not supposed to be there. Where did the data in the table come from? Was it entered from that form that now doesn't show those delimiters? If so then something on the form must be adding them to the data. Good luck figuring it out Dale. GK On Tue, Nov 17, 2009 at 12:23 PM, Dale Kalsow wrote: > > I am getting this <\Div>? at the begining and end of a text field.? However it only shows up in the table and on a report not when the user goes into the form.? Has anyone seen this before or have any idea how to fix it? > > thanks! > > Dale > > > > -- > 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 dkalsow at yahoo.com Wed Nov 18 07:06:18 2009 From: dkalsow at yahoo.com (Dale Kalsow) Date: Wed, 18 Nov 2009 05:06:18 -0800 (PST) Subject: [AccessD] <\Div> In-Reply-To: Message-ID: <928704.81873.qm@web50405.mail.re2.yahoo.com> I do not want it in the table and it is showing up when the user enters that data in the form. ? Dale --- On Tue, 11/17/09, Gary Kjos wrote: From: Gary Kjos Subject: Re: [AccessD] <\Div> To: "Access Developers discussion and problem solving" Date: Tuesday, November 17, 2009, 4:16 PM So you want that to show or you are wondering where it is coming from or what?? That would appear to be some sort of HTML code delimiter or something. Perhaps the form is just ignoring it as a formatting code or something. The bigger question to me is how the heck did it get into the table data if it's not supposed to be there.? Where did the data in the table come from?? Was it entered from that form that now doesn't show those delimiters?? If so then something on the form must be adding them to the data. Good luck figuring it out Dale. GK On Tue, Nov 17, 2009 at 12:23 PM, Dale Kalsow wrote: > > I am getting this <\Div>? at the begining and end of a text field.? However it only shows up in the table and on a report not when the user goes into the form.? Has anyone seen this before or have any idea how to fix it? > > thanks! > > Dale > > > > -- > 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 bryan at stlcc.edu Wed Nov 18 08:16:03 2009 From: bryan at stlcc.edu (Ryan, Bob T.) Date: Wed, 18 Nov 2009 08:16:03 -0600 Subject: [AccessD] <\Div> In-Reply-To: <928704.81873.qm@web50405.mail.re2.yahoo.com> References: <928704.81873.qm@web50405.mail.re2.yahoo.com> Message-ID: I believe the tag is the result of an previous item that was not terminated properly. I run into this in ASP. When the form is submitted, the form is erroneously including the closing tag as being part of the data entered into the form. Hope this helps. Bob Ryan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dale Kalsow Sent: Wednesday, November 18, 2009 7:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] <\Div> I do not want it in the table and it is showing up when the user enters that data in the form. ? Dale --- On Tue, 11/17/09, Gary Kjos wrote: From: Gary Kjos Subject: Re: [AccessD] <\Div> To: "Access Developers discussion and problem solving" Date: Tuesday, November 17, 2009, 4:16 PM So you want that to show or you are wondering where it is coming from or what?? That would appear to be some sort of HTML code delimiter or something. Perhaps the form is just ignoring it as a formatting code or something. The bigger question to me is how the heck did it get into the table data if it's not supposed to be there.? Where did the data in the table come from?? Was it entered from that form that now doesn't show those delimiters?? If so then something on the form must be adding them to the data. Good luck figuring it out Dale. GK On Tue, Nov 17, 2009 at 12:23 PM, Dale Kalsow wrote: > > I am getting this <\Div>? at the begining and end of a text field.? However it only shows up in the table and on a report not when the user goes into the form.? Has anyone seen this before or have any idea how to fix it? > > thanks! > > Dale > > > > -- > 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 hollisvj at pgdp.usec.com Wed Nov 18 09:43:26 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 18 Nov 2009 09:43:26 -0600 Subject: [AccessD] Duplicates on Two Values Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> I need to prevent duplicates based on two text field entries. I asked something like this awhile back & want to use something similar on another form except base it on two fields. The ItemName & ItemDesc (these are Text fields). I set the ItemName & ItemDesc as primary keys - thought that would work. But I still can't get it to say - 'hey you already entered this item, you can't add it again'. Also, should they be primary keys or is there a better way for that too? Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.ItemName) Then OXK = Me.ItemName.Value (Need to have ItemDesc too) stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" 'Check for duplicate If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Item " _ & OXK & " has already been entered." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing From rockysmolin at bchacc.com Wed Nov 18 10:01:19 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 18 Nov 2009 08:01:19 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> Message-ID: <52DE2BADE137424C8C3272A71F792679@HAL9005> I would use either the before or after update events to check for duplicate data. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 7:43 AM To: accessD at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values I need to prevent duplicates based on two text field entries. I asked something like this awhile back & want to use something similar on another form except base it on two fields. The ItemName & ItemDesc (these are Text fields). I set the ItemName & ItemDesc as primary keys - thought that would work. But I still can't get it to say - 'hey you already entered this item, you can't add it again'. Also, should they be primary keys or is there a better way for that too? Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.ItemName) Then OXK = Me.ItemName.Value (Need to have ItemDesc too) stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" 'Check for duplicate If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Item " _ & OXK & " has already been entered." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Wed Nov 18 10:13:22 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 18 Nov 2009 10:13:22 -0600 Subject: [AccessD] Duplicates on Two Values Message-ID: <703BDA18A87DFA4CB265A86F42E4178D094984BA@c2k3exchange.pgdp.corp.usec.com> But what do I use on the before or after update to check both fields? What I have below just checks one field. They can enter the ItemName then after they enter the ItemDesc, it needs to check if this is a duplicate entry. But it checks it based on both fields, the name & the description. ************* I would use either the before or after update events to check for duplicate data. Rocky From: Hollis, Virginia Sent: Wednesday, November 18, 2009 9:43 AM To: 'accessD at databaseadvisors.com' Subject: Duplicates on Two Values I need to prevent duplicates based on two text field entries. I asked something like this awhile back & want to use something similar on another form except base it on two fields. The ItemName & ItemDesc (these are Text fields). I set the ItemName & ItemDesc as primary keys - thought that would work. But I still can't get it to say - 'hey you already entered this item, you can't add it again'. Also, should they be primary keys or is there a better way for that too? Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.ItemName) Then OXK = Me.ItemName.Value (Need to have ItemDesc too) stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" 'Check for duplicate If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Item " _ & OXK & " has already been entered." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing From cfoust at infostatsystems.com Wed Nov 18 10:18:19 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 18 Nov 2009 10:18:19 -0600 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D094984BA@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D094984BA@c2k3exchange.pgdp.corp.usec.com> Message-ID: Virginia, In the BeforeUpdate of each field, call a routine that validates both fields. If these are primary key fields (in which case they really shouldn't be entered by the user, right?) they are required but may not have been entered yet, so only validate if both values are entered. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:13 AM To: accessD at databaseadvisors.com Subject: Re: [AccessD] Duplicates on Two Values But what do I use on the before or after update to check both fields? What I have below just checks one field. They can enter the ItemName then after they enter the ItemDesc, it needs to check if this is a duplicate entry. But it checks it based on both fields, the name & the description. ************* I would use either the before or after update events to check for duplicate data. Rocky From: Hollis, Virginia Sent: Wednesday, November 18, 2009 9:43 AM To: 'accessD at databaseadvisors.com' Subject: Duplicates on Two Values I need to prevent duplicates based on two text field entries. I asked something like this awhile back & want to use something similar on another form except base it on two fields. The ItemName & ItemDesc (these are Text fields). I set the ItemName & ItemDesc as primary keys - thought that would work. But I still can't get it to say - 'hey you already entered this item, you can't add it again'. Also, should they be primary keys or is there a better way for that too? Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.ItemName) Then OXK = Me.ItemName.Value (Need to have ItemDesc too) stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" 'Check for duplicate If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Item " _ & OXK & " has already been entered." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Nov 18 10:36:05 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 18 Nov 2009 08:36:05 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D094984BA@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D094984BA@c2k3exchange.pgdp.corp.usec.com> Message-ID: Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:13 AM To: accessD at databaseadvisors.com Subject: Re: [AccessD] Duplicates on Two Values But what do I use on the before or after update to check both fields? What I have below just checks one field. They can enter the ItemName then after they enter the ItemDesc, it needs to check if this is a duplicate entry. But it checks it based on both fields, the name & the description. ************* I would use either the before or after update events to check for duplicate data. Rocky From: Hollis, Virginia Sent: Wednesday, November 18, 2009 9:43 AM To: 'accessD at databaseadvisors.com' Subject: Duplicates on Two Values I need to prevent duplicates based on two text field entries. I asked something like this awhile back & want to use something similar on another form except base it on two fields. The ItemName & ItemDesc (these are Text fields). I set the ItemName & ItemDesc as primary keys - thought that would work. But I still can't get it to say - 'hey you already entered this item, you can't add it again'. Also, should they be primary keys or is there a better way for that too? Dim OXK As String Dim stLinkCriteria As String Dim rsc As DAO.Recordset Set rsc = Me.RecordsetClone If Not IsNull(Me.ItemName) Then OXK = Me.ItemName.Value (Need to have ItemDesc too) stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" 'Check for duplicate If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ stLinkCriteria) > 0 Then 'Undo duplicate entry Me.Undo 'Message box warning of duplication If MsgBox("Item " _ & OXK & " has already been entered." _ & vbCr & vbCr & "Would you like to view to the record?", _ vbYesNo, "Duplicate Record") = vbYes Then rsc.FindFirst stLinkCriteria Me.Bookmark = rsc.Bookmark Else Exit Sub End If End If End If Set rsc = Nothing -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Wed Nov 18 10:46:47 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 18 Nov 2009 10:46:47 -0600 Subject: [AccessD] Duplicates on Two Values Message-ID: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. For example, Paper comes in several different kinds, it can be Legal Paper, Lined Paper, Construction Paper, etc. I just don't want them entering Legal Paper twice. If it has already been entered, I would like it to take them to that record, but at this point just letting them know Legal Paper has been entered would be ok. I am having a problem checking ItemName AND ItemDesc, especially since they are text fields. ItemName: Paper ItemDesc: Legal ItemName: Paper ItemDesc: Lined ItemName: Book ItemDesc: Legal ItemName: Book ItemDesc: Lined ******** Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky From cjlabs at worldnet.att.net Wed Nov 18 11:20:14 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Wed, 18 Nov 2009 11:20:14 -0600 Subject: [AccessD] set control source for text box in VBA using Nz Message-ID: Access2003, WinXP I have a report using a dynamic crosstab query. I have set the control source for the text boxes based on the output field names of the crosstab query in the Report open property of the report. I would like to have 0 printed instead of nothing if the value from the crosstab is null. When I set the control source as Me.Controls("txt" & rstData.Fields("Day") & "Product").ControlSource = Nz(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"), 0) in the Report open code, the Nz function is ignored. The data are dsiplayed, but the null values are blank instead of 0. If I set the control source in the property of the text box, the Nz function would work. Is there a way to use the Nz function if the control source is set by code? Thanks Carolyn Johnson St Louis, MO From rockysmolin at bchacc.com Wed Nov 18 11:33:06 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 18 Nov 2009 09:33:06 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> Message-ID: <7244AC9F285B455FA3DAC3844839F5C3@HAL9005> In the before update event of each field check if field1 = field2. If yes, then message to user delete contents of the field being checked. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. For example, Paper comes in several different kinds, it can be Legal Paper, Lined Paper, Construction Paper, etc. I just don't want them entering Legal Paper twice. If it has already been entered, I would like it to take them to that record, but at this point just letting them know Legal Paper has been entered would be ok. I am having a problem checking ItemName AND ItemDesc, especially since they are text fields. ItemName: Paper ItemDesc: Legal ItemName: Paper ItemDesc: Lined ItemName: Book ItemDesc: Legal ItemName: Book ItemDesc: Lined ******** Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Wed Nov 18 11:50:30 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 18 Nov 2009 11:50:30 -0600 Subject: [AccessD] Duplicates on Two Values Message-ID: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> This gives me an error. I think because I have the text fields '''' messed up. If Not IsNull(ItemName) And Not IsNull(ItemDesc) Then If DCount("ItemName", "tbl_ItemMain", "ItemName = '" & [ItemName] & "'and "ItemDesc = '" & [ItemDesc]) > 0 Then MsgBox "You have entered a ItemName and ItemDesc that already exists" ItemName.SetFocus ItemName.Undo End If End If From Lambert.Heenan at chartisinsurance.com Wed Nov 18 12:18:43 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 18 Nov 2009 13:18:43 -0500 Subject: [AccessD] set control source for text box in VBA using Nz In-Reply-To: References: Message-ID: Carolyn, I have a problem with this use of Nz Nz(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"), 0) The expression inside Nz() is *never* null for several reasons. Taking the first part of the expression: Format(rstData.Fields("Date"), "ddd") The field named 'Date' (not a good name for a field as 'Date' is a reserved word in VBA) is first being formatted and then passed to Nz, but therein lies a problem, the Format function will change null values to something that is not null. Type the following in the immediate window and hit enter: ? "!" & format(null,"dddd") & "!", "@" & nz(format(null,"dddd"),0) & "@", "$" & nz(null,0) & "$" The output is: !! @@ $0$ Notice that nothing is printed between the two @ symbols. That is because format(null,"dddd") does not return null. Instead it returns an *empty string*. Format always returns some sort of string, and there is no such thing as a null string. As a result of this nz(format(null,"dddd"),0) does not return 0 (zero), it just gives you an empty string. So the first part of you expression is always a string, never null. But you should also not that ? "$" & nz(null,0) & "$" does indeed result in $0$, because Nz sees the null value. The next part of your expression also guaranteed not to be null: & " " & It adds a space to the first part, and so is not null. That expression inside Nz is always going to be a space character at a minimum, and so the Nz function will never see null. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Wednesday, November 18, 2009 12:20 PM To: Access Developers Subject: [AccessD] set control source for text box in VBA using Nz Access2003, WinXP I have a report using a dynamic crosstab query. I have set the control source for the text boxes based on the output field names of the crosstab query in the Report open property of the report. I would like to have 0 printed instead of nothing if the value from the crosstab is null. When I set the control source as Me.Controls("txt" & rstData.Fields("Day") & "Product").ControlSource = Nz(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"), 0) in the Report open code, the Nz function is ignored. The data are dsiplayed, but the null values are blank instead of 0. If I set the control source in the property of the text box, the Nz function would work. Is there a way to use the Nz function if the control source is set by code? Thanks Carolyn Johnson St Louis, MO From pharold at proftesting.com Wed Nov 18 12:30:21 2009 From: pharold at proftesting.com (Perry L Harold) Date: Wed, 18 Nov 2009 13:30:21 -0500 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> Message-ID: If you have set the Primary Key as ItemName+ItemDesc and attempt to write the record it will give you an error message at that stage. Assuming the data entry person can get it correct most of the time why not capture the error at the point of writing the record and have changes made at that point? Perry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 12:51 PM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values This gives me an error. I think because I have the text fields '''' messed up. If Not IsNull(ItemName) And Not IsNull(ItemDesc) Then If DCount("ItemName", "tbl_ItemMain", "ItemName = '" & [ItemName] & "'and "ItemDesc = '" & [ItemDesc]) > 0 Then MsgBox "You have entered a ItemName and ItemDesc that already exists" ItemName.SetFocus ItemName.Undo End If End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Nov 18 12:33:12 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 18 Nov 2009 10:33:12 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> Message-ID: <8786a4c00911181033m558f9a23ld64e0fee16aa864d@mail.gmail.com> In your example, change the dcount statement to something like (warning air code): If DCount("ItemNumber", "tbl_ItemMain", "= " & me.ItemNumber) > 0 Then If DCount("ItemDescription", "tbl_ItemMain", "= " & me.ItemDescription) > 0 Then 'Item number and description both exist. Handle it here Else ' Do nothing, unless you want to trap for when the item already exists but not the description End if Else 'THis is where any code goes if the item doesnt exist End if On Wed, Nov 18, 2009 at 7:43 AM, Hollis, Virginia wrote: > I need to prevent duplicates based on two text field entries. I asked > something like this awhile back & want to use something similar on > another form except base it on two fields. The ItemName & ItemDesc > (these are Text fields). I set the ItemName & ItemDesc as primary keys - > thought that would work. But I still can't get it to say - 'hey you > already entered this item, you can't add it again'. Also, should they be > primary keys or is there a better way for that too? > > > > ?Dim OXK As String > > ? Dim stLinkCriteria As String > > ? Dim rsc As DAO.Recordset > > > > ? ?Set rsc = Me.RecordsetClone > > > > If Not IsNull(Me.ItemName) Then > > ? ?OXK = Me.ItemName.Value (Need to have ItemDesc too) > > ? ?stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" > > ? ?'Check for duplicate > > ? If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ > > ? ? ? ? ? ? stLinkCriteria) > 0 Then > > ? ? ? ?'Undo duplicate entry > > ? ? ? Me.Undo > > ? ? ? ?'Message box warning of duplication > > ? ? ?If MsgBox("Item " _ > > ? ? ? ? ? ?& OXK & " has already been entered." _ > > ? ? ? ? ? ?& vbCr & vbCr & "Would you like to view to the record?", _ > > ? ? ? ? ? ? ? ? ? vbYesNo, "Duplicate Record") = vbYes Then > > ? ? ? ? ? ? ?rsc.FindFirst stLinkCriteria > > ? ? ? ? ? ? Me.Bookmark = rsc.Bookmark > > ? ? ? ? ? ? ? ?Else > > ? ? ? ? ? ?Exit Sub > > ? ?End If > > ? ? ? ?End If > > End If > > Set rsc = Nothing > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at dejpolsystems.com Wed Nov 18 12:33:00 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 18 Nov 2009 13:33:00 -0500 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> Message-ID: <07F17CC7FF414DDEB4E617C7933266A9@jislaptopdev> ...I must be missing something again ...happens more and more often these days ...but why not just set a unique index on the table using the two fields and trap for the error? ...use the error trap to pop up a custom dialog William -------------------------------------------------- From: "Hollis, Virginia" Sent: Wednesday, November 18, 2009 12:50 PM To: Subject: [AccessD] Duplicates on Two Values > This gives me an error. I think because I have the text fields '''' > messed up. > > > > If Not IsNull(ItemName) And Not IsNull(ItemDesc) Then > > If DCount("ItemName", "tbl_ItemMain", "ItemName = '" & [ItemName] & > "'and "ItemDesc = '" & [ItemDesc]) > 0 Then > > MsgBox "You have entered a ItemName and ItemDesc that already > exists" > > ItemName.SetFocus > > ItemName.Undo > > End If > > End If > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davidmcafee at gmail.com Wed Nov 18 12:36:22 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 18 Nov 2009 10:36:22 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: References: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> Message-ID: <8786a4c00911181036g4422e41ak573e1b94f9f41a08@mail.gmail.com> I think thats what this form is doing, entering the initial items into the system. I'd recommend using an autonumber PKID instead of using Item Name andItem Desc. Any table/form that needs to store the item in question should store the autonumber PKID. If the item description changes at a later date, you only have to change it in one place. On Wed, Nov 18, 2009 at 10:30 AM, Perry L Harold wrote: > > If you have set the Primary Key as ItemName+ItemDesc and attempt to > write the record it will give you an error message at that stage. > Assuming the data entry person can get it correct most of the time why > not capture the error at the point of writing the record and have > changes made at that point? > > Perry > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, > Virginia > Sent: Wednesday, November 18, 2009 12:51 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Duplicates on Two Values > > This gives me an error. I think because I have the text fields '''' > messed up. > > > > ?If Not IsNull(ItemName) And Not IsNull(ItemDesc) Then > > ? ?If DCount("ItemName", "tbl_ItemMain", "ItemName = '" & [ItemName] & > "'and "ItemDesc = '" & [ItemDesc]) > 0 Then > > ? ? ? ?MsgBox "You have entered a ItemName and ItemDesc that already > exists" > > ? ? ? ?ItemName.SetFocus > > ? ? ? ?ItemName.Undo > > ? ?End If > > End If > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From hollisvj at pgdp.usec.com Wed Nov 18 12:46:33 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Wed, 18 Nov 2009 12:46:33 -0600 Subject: [AccessD] Duplicates on Two Values Message-ID: <703BDA18A87DFA4CB265A86F42E4178D09498567@c2k3exchange.pgdp.corp.usec.com> I always do use Autonumbers as PK, but thought putting the Name & Desc as PK would be a way to check for duplicates. I didn't do it that way - I tried it for a bit as a test - but changed it back. ******** I think thats what this form is doing, entering the initial items into the system. I'd recommend using an autonumber PKID instead of using Item Name andItem Desc. Any table/form that needs to store the item in question should store the autonumber PKID. If the item description changes at a later date, you only have to change it in one place. From rockysmolin at bchacc.com Wed Nov 18 12:50:35 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 18 Nov 2009 10:50:35 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D09498526@c2k3exchange.pgdp.corp.usec.com> Message-ID: Needs a space between the ' and the AND in ...& "'and "ItemDesc... And no " before ItemDesc Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 9:51 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values This gives me an error. I think because I have the text fields '''' messed up. If Not IsNull(ItemName) And Not IsNull(ItemDesc) Then If DCount("ItemName", "tbl_ItemMain", "ItemName = '" & [ItemName] & "'and "ItemDesc = '" & [ItemDesc]) > 0 Then MsgBox "You have entered a ItemName and ItemDesc that already exists" ItemName.SetFocus ItemName.Undo End If End If -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at worldnet.att.net Wed Nov 18 12:56:06 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Wed, 18 Nov 2009 12:56:06 -0600 Subject: [AccessD] set control source for text box in VBA using Nz References: Message-ID: Thanks. I didn't know that the format funtion would return a string, but I should have at least caught the space I put there. Unfortunately, I still don't see how to replace the null values with 0 when the control source is set in code. Carolyn Johnson ----- Original Message ----- From: Heenan, Lambert To: 'Access Developers discussion and problem solving' Sent: Wednesday, November 18, 2009 12:18 PM Subject: Re: [AccessD] set control source for text box in VBA using Nz Carolyn, I have a problem with this use of Nz Nz(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"), 0) The expression inside Nz() is *never* null for several reasons. Taking the first part of the expression: Format(rstData.Fields("Date"), "ddd") The field named 'Date' (not a good name for a field as 'Date' is a reserved word in VBA) is first being formatted and then passed to Nz, but therein lies a problem, the Format function will change null values to something that is not null. Type the following in the immediate window and hit enter: ? "!" & format(null,"dddd") & "!", "@" & nz(format(null,"dddd"),0) & "@", "$" & nz(null,0) & "$" The output is: !! @@ $0$ Notice that nothing is printed between the two @ symbols. That is because format(null,"dddd") does not return null. Instead it returns an *empty string*. Format always returns some sort of string, and there is no such thing as a null string. As a result of this nz(format(null,"dddd"),0) does not return 0 (zero), it just gives you an empty string. So the first part of you expression is always a string, never null. But you should also not that ? "$" & nz(null,0) & "$" does indeed result in $0$, because Nz sees the null value. The next part of your expression also guaranteed not to be null: & " " & It adds a space to the first part, and so is not null. That expression inside Nz is always going to be a space character at a minimum, and so the Nz function will never see null. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Wednesday, November 18, 2009 12:20 PM To: Access Developers Subject: [AccessD] set control source for text box in VBA using Nz Access2003, WinXP I have a report using a dynamic crosstab query. I have set the control source for the text boxes based on the output field names of the crosstab query in the Report open property of the report. I would like to have 0 printed instead of nothing if the value from the crosstab is null. When I set the control source as Me.Controls("txt" & rstData.Fields("Day") & "Product").ControlSource = Nz(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"), 0) in the Report open code, the Nz function is ignored. The data are dsiplayed, but the null values are blank instead of 0. If I set the control source in the property of the text box, the Nz function would work. Is there a way to use the Nz function if the control source is set by code? Thanks Carolyn Johnson St Louis, MO -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Nov 18 12:57:07 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 18 Nov 2009 12:57:07 -0600 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D09498567@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D09498567@c2k3exchange.pgdp.corp.usec.com> Message-ID: You can still create a unique key on those two fields without making it the primary key. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 10:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values I always do use Autonumbers as PK, but thought putting the Name & Desc as PK would be a way to check for duplicates. I didn't do it that way - I tried it for a bit as a test - but changed it back. ******** I think thats what this form is doing, entering the initial items into the system. I'd recommend using an autonumber PKID instead of using Item Name andItem Desc. Any table/form that needs to store the item in question should store the autonumber PKID. If the item description changes at a later date, you only have to change it in one place. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Wed Nov 18 14:09:57 2009 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 18 Nov 2009 21:09:57 +0100 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <7244AC9F285B455FA3DAC3844839F5C3@HAL9005> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> <7244AC9F285B455FA3DAC3844839F5C3@HAL9005> Message-ID: Virginia, Did you try Rocky's suggestion? Just tried it - works fine. Private Sub Field1_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Private Sub Field2_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Don't know why this shouldn't do for you - perhaps I'm missing something? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 18. november 2009 18:33 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Duplicates on Two Values In the before update event of each field check if field1 = field2. If yes, then message to user delete contents of the field being checked. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. For example, Paper comes in several different kinds, it can be Legal Paper, Lined Paper, Construction Paper, etc. I just don't want them entering Legal Paper twice. If it has already been entered, I would like it to take them to that record, but at this point just letting them know Legal Paper has been entered would be ok. I am having a problem checking ItemName AND ItemDesc, especially since they are text fields. ItemName: Paper ItemDesc: Legal ItemName: Paper ItemDesc: Lined ItemName: Book ItemDesc: Legal ItemName: Book ItemDesc: Lined ******** Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at chartisinsurance.com Wed Nov 18 14:19:16 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Wed, 18 Nov 2009 15:19:16 -0500 Subject: [AccessD] set control source for text box in VBA using Nz In-Reply-To: References: Message-ID: Just break the problem up? You have two data elements, so you need two Nz calls... Format(Nz(rstData.Fields("Date"),""), "dddd") & " " & Nz(rstData.Fields("ProductName"), 0)) Note that the Nz is applied to the two fields before doing anything else, and that the Nz wrapping the date field is set to return an empty string and not zero. The reason is that if you format 0 as a date you will get 12/31/1899, which was a Saturday so Format(0, "dddd") will result in "Saturday", probably not what you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Wednesday, November 18, 2009 1:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] set control source for text box in VBA using Nz Thanks. I didn't know that the format funtion would return a string, but I should have at least caught the space I put there. Unfortunately, I still don't see how to replace the null values with 0 when the control source is set in code. Carolyn Johnson From davidmcafee at gmail.com Wed Nov 18 14:22:21 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 18 Nov 2009 12:22:21 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> <7244AC9F285B455FA3DAC3844839F5C3@HAL9005> Message-ID: <8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com> Doesn't that check if Item Number and Item Description equal each other? I assume (and we know what happens when I do that!) that she wants to prevent a duplicate entry if the item number and item description already exist,but allow an item number with a different description (or misspelled description) to be entered. On Wed, Nov 18, 2009 at 12:09 PM, Asger Blond wrote: > Virginia, > Did you try Rocky's suggestion? Just tried it - works fine. > Private Sub Field1_BeforeUpdate(Cancel As Integer) > ? ?If Field1.Value = Field2.Value Then > ? ? ? ?MsgBox "Dublicate values for Field1 and Field2 not allowed" > ? ? ? ?Cancel = True > ? ?End If > End Sub > Private Sub Field2_BeforeUpdate(Cancel As Integer) > ? ?If Field1.Value = Field2.Value Then > ? ? ? ?MsgBox "Dublicate values for Field1 and Field2 not allowed" > ? ? ? ?Cancel = True > ? ?End If > End Sub > Don't know why this shouldn't do for you - perhaps I'm missing something? > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin > Sendt: 18. november 2009 18:33 > Til: 'Access Developers discussion and problem solving' > Emne: Re: [AccessD] Duplicates on Two Values > > In the before update event of each field check if field1 = field2. ?If yes, > then message to user delete contents of the field being checked. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia > Sent: Wednesday, November 18, 2009 8:47 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Duplicates on Two Values > > Number 3. ItemName can be repeated & so can the ItemDesc just not together > in the same record. > > > > For example, Paper comes in several different kinds, it can be Legal Paper, > Lined Paper, Construction Paper, etc. I just don't want them entering Legal > Paper twice. If it has already been entered, I would like it to take them to > that record, but at this point just letting them know Legal Paper has been > entered would be ok. > > > > I am having a problem checking ItemName AND ItemDesc, especially since they > are text fields. > > > > ItemName: Paper > > ItemDesc: Legal > > > > ItemName: Paper > > ItemDesc: Lined > > > > ItemName: Book > > ItemDesc: Legal > > > > ItemName: Book > > ItemDesc: Lined > > > > ******** > > Is it the case that you have three checks to make? > > > > 1) Is ItemName already being used in an existing record? > > 2) Is ItemDesc already being used in an existing record? > > 3) Is ItemName = ItemDesc in the current record? > > > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at gmail.com Wed Nov 18 14:31:59 2009 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 18 Nov 2009 15:31:59 -0500 Subject: [AccessD] Fw: Article on Access Message-ID: Someone has suggested that I clarify this request. I am looking for specific favorite/least favorite items for Access, Excel, and Word. The original post said "Office" -- so I want to be clear. Not getting much response, which surprises me! ;) Susan H. > I'm going to write a series of articles of favorite/least favorite > tips/features in the Office applications. The selling point is that these > comments are your's and not mine for a change. :) If you want to be > included, I'll include your contact information in the article -- similar > to the security and add-in articles I wrote last year. > > > > I'll be writing one on Access. If you're interested, I'll need your > favorite > all-time Access tip/feature and your least favorite feature. Please mail > them > to me privately -- ss harkins at gmail dot com -- so we don't upset the > kind > moderators! > > I'm been asked not to include keyboard shortcuts. I need a > user/code/feature type solution -- it can be very easy. If you want to > include a keyboard shortcut, we can do so, as an after thought... "In > addition, so and so uses the blah, blah shortcut regular..." Your least > favorite can be something you find awkward, a bug, or a feature you think > that should be available, but isn't -- or something else -- those are just > ideas. What makes you pound your desk and spit out, "D*mn!" > > I'll be writing one for Word and Excel too, and possibly Outlook and PP if > I can find enough people interested, so keep those in mind too if you're > interested. > > Thanks! > Susan > From ab-mi at post3.tele.dk Wed Nov 18 15:00:03 2009 From: ab-mi at post3.tele.dk (Asger Blond) Date: Wed, 18 Nov 2009 22:00:03 +0100 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com><7244AC9F285B455FA3DAC3844839F5C3@HAL9005> <8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com> Message-ID: <36BDCDC7E0C2483E994355BE2D8E6DEF@AB> David, Your assumption (that you may be wrong) is quite right ;-) In a previous posting Rocky asked: Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? And Virginia answered: Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. This kind of constraint just isn't as case for a KEY constraint (neither a PK constraint nor a UNIQUE constraint). It can only be enforced using either 1) a TABLE-LEVEL CHECK constraint (perhaps the best solution because it's enforced no matter where you are making your entry), or 2) a PROCEDURAL constraint (as suggested by Rocky and me). Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 18. november 2009 21:22 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Duplicates on Two Values Doesn't that check if Item Number and Item Description equal each other? I assume (and we know what happens when I do that!) that she wants to prevent a duplicate entry if the item number and item description already exist,but allow an item number with a different description (or misspelled description) to be entered. On Wed, Nov 18, 2009 at 12:09 PM, Asger Blond wrote: > Virginia, > Did you try Rocky's suggestion? Just tried it - works fine. > Private Sub Field1_BeforeUpdate(Cancel As Integer) > ? ?If Field1.Value = Field2.Value Then > ? ? ? ?MsgBox "Dublicate values for Field1 and Field2 not allowed" > ? ? ? ?Cancel = True > ? ?End If > End Sub > Private Sub Field2_BeforeUpdate(Cancel As Integer) > ? ?If Field1.Value = Field2.Value Then > ? ? ? ?MsgBox "Dublicate values for Field1 and Field2 not allowed" > ? ? ? ?Cancel = True > ? ?End If > End Sub > Don't know why this shouldn't do for you - perhaps I'm missing something? > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin > Sendt: 18. november 2009 18:33 > Til: 'Access Developers discussion and problem solving' > Emne: Re: [AccessD] Duplicates on Two Values > > In the before update event of each field check if field1 = field2. ?If yes, > then message to user delete contents of the field being checked. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia > Sent: Wednesday, November 18, 2009 8:47 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Duplicates on Two Values > > Number 3. ItemName can be repeated & so can the ItemDesc just not together > in the same record. > > > > For example, Paper comes in several different kinds, it can be Legal Paper, > Lined Paper, Construction Paper, etc. I just don't want them entering Legal > Paper twice. If it has already been entered, I would like it to take them to > that record, but at this point just letting them know Legal Paper has been > entered would be ok. > > > > I am having a problem checking ItemName AND ItemDesc, especially since they > are text fields. > > > > ItemName: Paper > > ItemDesc: Legal > > > > ItemName: Paper > > ItemDesc: Lined > > > > ItemName: Book > > ItemDesc: Legal > > > > ItemName: Book > > ItemDesc: Lined > > > > ******** > > Is it the case that you have three checks to make? > > > > 1) Is ItemName already being used in an existing record? > > 2) Is ItemDesc already being used in an existing record? > > 3) Is ItemName = ItemDesc in the current record? > > > > Rocky > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Nov 18 15:26:40 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 18 Nov 2009 13:26:40 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <36BDCDC7E0C2483E994355BE2D8E6DEF@AB> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> <7244AC9F285B455FA3DAC3844839F5C3@HAL9005> <8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com> <36BDCDC7E0C2483E994355BE2D8E6DEF@AB> Message-ID: <8786a4c00911181326n50bc412erb896be70f244ac62@mail.gmail.com> I assumed Virgina meant a 4th option, ItemName+ItemDesc cannot be used if they already exist in the system Is this correct: ItemNo ItemDesc 12345 Battery (allowed as long as 12345+Battery do not already exist) 2255 Battery (allowed as long as 2255+Battery do not already exist) 12345 Hammer (allowed as long as 12345+Hammer do not already exist) 4567 4567 (not allowed as per 3) below) cable cable (Not allowed) 12345 Battery (Not allowed a 2nd time) 12345 Battrey (Allowed as long as 2255+Battrey do not already exist) If it is simply the 3rd option below, Why couldn't you put the following in the BeforeUpdate events of txtItemNo and txtItemDesc: Private Sub txtItemNo_BeforeUpdate(Cancel As Integer) If NZ(me.txtItemNo,"") <> "" And me.txtItemNo = me.txtItemDesc then cancel = true End Sub Private Sub txtItemDesc_BeforeUpdate(Cancel As Integer) If NZ(me.txtItemDesc,"") <> "" And me.txtItemDesc = me.txtItemNo then cancel = true End Sub This is why I brought up the idea of the PKID in another post. If this is an entry screen for entering the item no and description into the sytem, then I would believe not allowing the item number and description more than once as a pair is correct. If this is an order form, or something similar, then the ItemNo should be entered, then in the After Update open a recordset and populate the PKID and Description. On Wed, Nov 18, 2009 at 1:00 PM, Asger Blond wrote: > David, > Your assumption (that you may be wrong) is quite right ;-) > In a previous posting Rocky asked: > ? ? ? ?Is it the case that you have three checks to make? > ? ? ? ?1) Is ItemName already being used in an existing record? > ? ? ? ?2) Is ItemDesc already being used in an existing record? > ? ? ? ?3) Is ItemName = ItemDesc in the current record? > And Virginia answered: > ? ? ? ?Number 3. ItemName can be repeated & so can the ItemDesc just not > ? ? ? ?together in the same record. > > This kind of constraint just isn't as case for a KEY constraint (neither a > PK constraint nor a UNIQUE constraint). It can only be enforced using either > 1) a TABLE-LEVEL CHECK constraint (perhaps the best solution because it's > enforced no matter where you are making your entry), or 2) a PROCEDURAL > constraint (as suggested by Rocky and me). > Asger From stuart at lexacorp.com.pg Wed Nov 18 15:44:30 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Nov 2009 07:44:30 +1000 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> References: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> Message-ID: <4B046ABE.5630.D77CB7F@stuart.lexacorp.com.pg> Do NOT use the two fields as a PK! Just create an additional unique index in the table on the two fields. -- Stuart On 18 Nov 2009 at 9:43, Hollis, Virginia wrote: > I need to prevent duplicates based on two text field entries. I asked > something like this awhile back & want to use something similar on > another form except base it on two fields. The ItemName & ItemDesc > (these are Text fields). I set the ItemName & ItemDesc as primary keys - > thought that would work. But I still can't get it to say - 'hey you > already entered this item, you can't add it again'. Also, should they be > primary keys or is there a better way for that too? > > > > Dim OXK As String > > Dim stLinkCriteria As String > > Dim rsc As DAO.Recordset > > > > Set rsc = Me.RecordsetClone > > > > If Not IsNull(Me.ItemName) Then > > OXK = Me.ItemName.Value (Need to have ItemDesc too) > > stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" > > 'Check for duplicate > > If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ > > stLinkCriteria) > 0 Then > > 'Undo duplicate entry > > Me.Undo > > 'Message box warning of duplication > > If MsgBox("Item " _ > > & OXK & " has already been entered." _ > > & vbCr & vbCr & "Would you like to view to the record?", _ > > vbYesNo, "Duplicate Record") = vbYes Then > > rsc.FindFirst stLinkCriteria > > Me.Bookmark = rsc.Bookmark > > Else > > Exit Sub > > End If > > End If > > End If > > Set rsc = Nothing > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Wed Nov 18 16:27:21 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 18 Nov 2009 17:27:21 -0500 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <4B046ABE.5630.D77CB7F@stuart.lexacorp.com.pg> References: <703BDA18A87DFA4CB265A86F42E4178D0926BD6D@c2k3exchange.pgdp.corp.usec.com> <4B046ABE.5630.D77CB7F@stuart.lexacorp.com.pg> Message-ID: Virginia 1) to ensure that no two distinct records have the same data in the two fields ID ItemName ItemDesc 1 red blue 2 red blue set a unique index using both fields in the index ...this will gen an error when record two is entered use the error to gen a custom dialog 2) to ensure that a distinct record does not have the same data in both fields set a table level validation check constraint [ItemName] <> [ItemDesc] zero code and it works in the background however the data in those two fields are edited hth William -------------------------------------------------- From: "Stuart McLachlan" Sent: Wednesday, November 18, 2009 4:44 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Duplicates on Two Values > Do NOT use the two fields as a PK! > > Just create an additional unique index in the table on the two fields. > > -- > Stuart > > On 18 Nov 2009 at 9:43, Hollis, Virginia wrote: > >> I need to prevent duplicates based on two text field entries. I asked >> something like this awhile back & want to use something similar on >> another form except base it on two fields. The ItemName & ItemDesc >> (these are Text fields). I set the ItemName & ItemDesc as primary keys - >> thought that would work. But I still can't get it to say - 'hey you >> already entered this item, you can't add it again'. Also, should they be >> primary keys or is there a better way for that too? >> >> >> >> Dim OXK As String >> >> Dim stLinkCriteria As String >> >> Dim rsc As DAO.Recordset >> >> >> >> Set rsc = Me.RecordsetClone >> >> >> >> If Not IsNull(Me.ItemName) Then >> >> OXK = Me.ItemName.Value (Need to have ItemDesc too) >> >> stLinkCriteria = "[ItemName]=" & "'" & OXK & "'" >> >> 'Check for duplicate >> >> If DCount("ItemName", "tbl_ItemMain", (AND ItemDesc) _ >> >> stLinkCriteria) > 0 Then >> >> 'Undo duplicate entry >> >> Me.Undo >> >> 'Message box warning of duplication >> >> If MsgBox("Item " _ >> >> & OXK & " has already been entered." _ >> >> & vbCr & vbCr & "Would you like to view to the record?", _ >> >> vbYesNo, "Duplicate Record") = vbYes Then >> >> rsc.FindFirst stLinkCriteria >> >> Me.Bookmark = rsc.Bookmark >> >> Else >> >> Exit Sub >> >> End If >> >> End If >> >> End If >> >> Set rsc = Nothing >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cjlabs at worldnet.att.net Wed Nov 18 16:34:50 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Wed, 18 Nov 2009 16:34:50 -0600 Subject: [AccessD] set control source for text box in VBA using Nz References: Message-ID: The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson ----- Original Message ----- From: Heenan, Lambert To: 'Access Developers discussion and problem solving' Sent: Wednesday, November 18, 2009 2:19 PM Subject: Re: [AccessD] set control source for text box in VBA using Nz Just break the problem up? You have two data elements, so you need two Nz calls... Format(Nz(rstData.Fields("Date"),""), "dddd") & " " & Nz(rstData.Fields("ProductName"), 0)) Note that the Nz is applied to the two fields before doing anything else, and that the Nz wrapping the date field is set to return an empty string and not zero. The reason is that if you format 0 as a date you will get 12/31/1899, which was a Saturday so Format(0, "dddd") will result in "Saturday", probably not what you want. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Carolyn Johnson Sent: Wednesday, November 18, 2009 1:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] set control source for text box in VBA using Nz Thanks. I didn't know that the format funtion would return a string, but I should have at least caught the space I put there. Unfortunately, I still don't see how to replace the null values with 0 when the control source is set in code. Carolyn Johnson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Nov 18 17:30:36 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 18 Nov 2009 15:30:36 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com><7244AC9F285B455FA3DAC3844839F5C3@HAL9005> Message-ID: <0440B10BA6B64C6C9FB6460D20AB699D@HAL9005> Asger: Should there also be a check before the Fieldx.Value = Fieldy.Value to see if both fields have values (Not IsNull) and if both do not have values then Exit Sub? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, November 18, 2009 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Duplicates on Two Values Virginia, Did you try Rocky's suggestion? Just tried it - works fine. Private Sub Field1_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Private Sub Field2_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Don't know why this shouldn't do for you - perhaps I'm missing something? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 18. november 2009 18:33 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Duplicates on Two Values In the before update event of each field check if field1 = field2. If yes, then message to user delete contents of the field being checked. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. For example, Paper comes in several different kinds, it can be Legal Paper, Lined Paper, Construction Paper, etc. I just don't want them entering Legal Paper twice. If it has already been entered, I would like it to take them to that record, but at this point just letting them know Legal Paper has been entered would be ok. I am having a problem checking ItemName AND ItemDesc, especially since they are text fields. ItemName: Paper ItemDesc: Legal ItemName: Paper ItemDesc: Lined ItemName: Book ItemDesc: Legal ItemName: Book ItemDesc: Lined ******** Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Wed Nov 18 17:39:53 2009 From: ab-mi at post3.tele.dk (Asger Blond) Date: Thu, 19 Nov 2009 00:39:53 +0100 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <8786a4c00911181326n50bc412erb896be70f244ac62@mail.gmail.com> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com><7244AC9F285B455FA3DAC3844839F5C3@HAL9005><8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com><36BDCDC7E0C2483E994355BE2D8E6DEF@AB> <8786a4c00911181326n50bc412erb896be70f244ac62@mail.gmail.com> Message-ID: <769EBC9B417B41E09FFD090B4C75EBB0@AB> David, Just curious: what's your using NZ in the BeforeUpdate event supposed to do? The NZ function is checking for NULL, and: 1. If you don't make an entry (leaving the field NULL or bypassing an existing value) then per definition the BeforeUpdate event won't fire. 2. If you make an entry (making the field NOT NULL) or delete an existing entry (making the field NULL) then the event will fire but per definition the expression NZ(Field,"")<>"" will always evaluate to FALSE making the whole IF condition FALSE. Net sum, as I see it: Your BeforeUpdate procedure won't do anything whatsoever howsoever. Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 18. november 2009 22:27 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Duplicates on Two Values I assumed Virgina meant a 4th option, ItemName+ItemDesc cannot be used if they already exist in the system Is this correct: ItemNo ItemDesc 12345 Battery (allowed as long as 12345+Battery do not already exist) 2255 Battery (allowed as long as 2255+Battery do not already exist) 12345 Hammer (allowed as long as 12345+Hammer do not already exist) 4567 4567 (not allowed as per 3) below) cable cable (Not allowed) 12345 Battery (Not allowed a 2nd time) 12345 Battrey (Allowed as long as 2255+Battrey do not already exist) If it is simply the 3rd option below, Why couldn't you put the following in the BeforeUpdate events of txtItemNo and txtItemDesc: Private Sub txtItemNo_BeforeUpdate(Cancel As Integer) If NZ(me.txtItemNo,"") <> "" And me.txtItemNo = me.txtItemDesc then cancel = true End Sub Private Sub txtItemDesc_BeforeUpdate(Cancel As Integer) If NZ(me.txtItemDesc,"") <> "" And me.txtItemDesc = me.txtItemNo then cancel = true End Sub This is why I brought up the idea of the PKID in another post. If this is an entry screen for entering the item no and description into the sytem, then I would believe not allowing the item number and description more than once as a pair is correct. If this is an order form, or something similar, then the ItemNo should be entered, then in the After Update open a recordset and populate the PKID and Description. On Wed, Nov 18, 2009 at 1:00 PM, Asger Blond wrote: > David, > Your assumption (that you may be wrong) is quite right ;-) > In a previous posting Rocky asked: > ? ? ? ?Is it the case that you have three checks to make? > ? ? ? ?1) Is ItemName already being used in an existing record? > ? ? ? ?2) Is ItemDesc already being used in an existing record? > ? ? ? ?3) Is ItemName = ItemDesc in the current record? > And Virginia answered: > ? ? ? ?Number 3. ItemName can be repeated & so can the ItemDesc just not > ? ? ? ?together in the same record. > > This kind of constraint just isn't as case for a KEY constraint (neither a > PK constraint nor a UNIQUE constraint). It can only be enforced using either > 1) a TABLE-LEVEL CHECK constraint (perhaps the best solution because it's > enforced no matter where you are making your entry), or 2) a PROCEDURAL > constraint (as suggested by Rocky and me). > Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Wed Nov 18 18:22:26 2009 From: ab-mi at post3.tele.dk (Asger Blond) Date: Thu, 19 Nov 2009 01:22:26 +0100 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <0440B10BA6B64C6C9FB6460D20AB699D@HAL9005> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com><7244AC9F285B455FA3DAC3844839F5C3@HAL9005> <0440B10BA6B64C6C9FB6460D20AB699D@HAL9005> Message-ID: <835BB3E08FB746C5A491EF8F368BF751@AB> Rocky, No, that's not necessary. If the event-firing field is NULL then the event just won't fire. And if the event-firing field is NOT NULL and the other field is NULL then the expression will evaluate to FALSE, making the entry acceptable. Even if you delete an existing entry from one of the fields making it NULL then both the expression NULL = NOT NULL and the expression NULL = NULL will per definition evaluate to FALSE, making the entry acceptable. If NULLs are not wanted in a field then the best way to prevent this is by making the field required in the table's design. And as said I would prefer to enforce the non-duplicates constraint as a table-level check constraint: In design view of the table I would use View|Properties and set Validation Rule to [ItemName]<>[ItemDesc] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 19. november 2009 00:31 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Duplicates on Two Values Asger: Should there also be a check before the Fieldx.Value = Fieldy.Value to see if both fields have values (Not IsNull) and if both do not have values then Exit Sub? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, November 18, 2009 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Duplicates on Two Values Virginia, Did you try Rocky's suggestion? Just tried it - works fine. Private Sub Field1_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Private Sub Field2_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Don't know why this shouldn't do for you - perhaps I'm missing something? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 18. november 2009 18:33 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Duplicates on Two Values In the before update event of each field check if field1 = field2. If yes, then message to user delete contents of the field being checked. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. For example, Paper comes in several different kinds, it can be Legal Paper, Lined Paper, Construction Paper, etc. I just don't want them entering Legal Paper twice. If it has already been entered, I would like it to take them to that record, but at this point just letting them know Legal Paper has been entered would be ok. I am having a problem checking ItemName AND ItemDesc, especially since they are text fields. ItemName: Paper ItemDesc: Legal ItemName: Paper ItemDesc: Lined ItemName: Book ItemDesc: Legal ItemName: Book ItemDesc: Lined ******** Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Nov 18 18:54:55 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 18 Nov 2009 16:54:55 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <835BB3E08FB746C5A491EF8F368BF751@AB> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com><7244AC9F285B455FA3DAC3844839F5C3@HAL9005><0440B10BA6B64C6C9FB6460D20AB699D@HAL9005> <835BB3E08FB746C5A491EF8F368BF751@AB> Message-ID: "If the event-firing field is NULL then the event just won't fire." Of course! (dope-slap) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, November 18, 2009 4:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Duplicates on Two Values Rocky, No, that's not necessary. If the event-firing field is NULL then the event just won't fire. And if the event-firing field is NOT NULL and the other field is NULL then the expression will evaluate to FALSE, making the entry acceptable. Even if you delete an existing entry from one of the fields making it NULL then both the expression NULL = NOT NULL and the expression NULL = NULL will per definition evaluate to FALSE, making the entry acceptable. If NULLs are not wanted in a field then the best way to prevent this is by making the field required in the table's design. And as said I would prefer to enforce the non-duplicates constraint as a table-level check constraint: In design view of the table I would use View|Properties and set Validation Rule to [ItemName]<>[ItemDesc] Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 19. november 2009 00:31 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Duplicates on Two Values Asger: Should there also be a check before the Fieldx.Value = Fieldy.Value to see if both fields have values (Not IsNull) and if both do not have values then Exit Sub? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Wednesday, November 18, 2009 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Duplicates on Two Values Virginia, Did you try Rocky's suggestion? Just tried it - works fine. Private Sub Field1_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Private Sub Field2_BeforeUpdate(Cancel As Integer) If Field1.Value = Field2.Value Then MsgBox "Dublicate values for Field1 and Field2 not allowed" Cancel = True End If End Sub Don't know why this shouldn't do for you - perhaps I'm missing something? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Rocky Smolin Sendt: 18. november 2009 18:33 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Duplicates on Two Values In the before update event of each field check if field1 = field2. If yes, then message to user delete contents of the field being checked. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hollis, Virginia Sent: Wednesday, November 18, 2009 8:47 AM To: accessd at databaseadvisors.com Subject: [AccessD] Duplicates on Two Values Number 3. ItemName can be repeated & so can the ItemDesc just not together in the same record. For example, Paper comes in several different kinds, it can be Legal Paper, Lined Paper, Construction Paper, etc. I just don't want them entering Legal Paper twice. If it has already been entered, I would like it to take them to that record, but at this point just letting them know Legal Paper has been entered would be ok. I am having a problem checking ItemName AND ItemDesc, especially since they are text fields. ItemName: Paper ItemDesc: Legal ItemName: Paper ItemDesc: Lined ItemName: Book ItemDesc: Legal ItemName: Book ItemDesc: Lined ******** Is it the case that you have three checks to make? 1) Is ItemName already being used in an existing record? 2) Is ItemDesc already being used in an existing record? 3) Is ItemName = ItemDesc in the current record? Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Wed Nov 18 18:55:08 2009 From: davidmcafee at gmail.com (David McAfee) Date: Wed, 18 Nov 2009 16:55:08 -0800 Subject: [AccessD] Duplicates on Two Values In-Reply-To: <769EBC9B417B41E09FFD090B4C75EBB0@AB> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com> <7244AC9F285B455FA3DAC3844839F5C3@HAL9005> <8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com> <36BDCDC7E0C2483E994355BE2D8E6DEF@AB> <8786a4c00911181326n50bc412erb896be70f244ac62@mail.gmail.com> <769EBC9B417B41E09FFD090B4C75EBB0@AB> Message-ID: <8786a4c00911181655y7b2ecb50m183034ee6ef8af6d@mail.gmail.com> It was simply Air code. There should actually be a message displayed in prior to the Cancel = true firing 1. If you don't make an entry, of course the event wont fire 2. It works, try it. Create a new form with two text boxes on it: Private Sub Text0_BeforeUpdate(Cancel As Integer) If Nz(Me.Text0, "") <> "" And Me.Text0 = Me.Text2 Then MsgBox "the two boxes cannot have the same value" Cancel = True End If End Sub Private Sub Text2_BeforeUpdate(Cancel As Integer) If Nz(Me.Text2, "") <> "" And Me.Text2 = Me.Text0 Then MsgBox "the two boxes cannot have the same value" Cancel = True End If End Sub That is what the "And" is for ;) This is for Rocky's condition #3 in his question to Virginia, which doesn't apply anyway. On Wed, Nov 18, 2009 at 3:39 PM, Asger Blond wrote: > David, > Just curious: what's your using NZ in the BeforeUpdate event supposed to do? > The NZ function is checking for NULL, and: > 1. If you don't make an entry (leaving the field NULL or bypassing an > existing value) then per definition the BeforeUpdate event won't fire. > 2. If you make an entry (making the field NOT NULL) or delete an existing > entry (making the field NULL) then the event will fire but per definition > the expression NZ(Field,"")<>"" will always evaluate to FALSE making the > whole IF condition FALSE. > Net sum, as I see it: Your BeforeUpdate procedure won't do anything > whatsoever howsoever. > Asger > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee > Sendt: 18. november 2009 22:27 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Duplicates on Two Values > > I assumed Virgina meant a 4th option, ItemName+ItemDesc cannot be used > if they already exist in the system > > Is this correct: > > ItemNo ?ItemDesc > 12345 ? ?Battery (allowed as long as 12345+Battery do not already exist) > ?2255 ? ? Battery (allowed as long as 2255+Battery do not already exist) > 12345 ? ?Hammer (allowed as long as 12345+Hammer do not already exist) > 4567 ? ? 4567 (not allowed as per 3) below) > cable ? ?cable (Not allowed) > 12345 ? Battery (Not allowed a 2nd time) > 12345 ? Battrey (Allowed as long as 2255+Battrey do not already exist) > > > If it is simply the 3rd option below, Why couldn't you put the > following in the BeforeUpdate events of txtItemNo and txtItemDesc: > > > Private Sub txtItemNo_BeforeUpdate(Cancel As Integer) > ? If NZ(me.txtItemNo,"") <> "" And me.txtItemNo = me.txtItemDesc > then cancel = true > End Sub > > Private Sub txtItemDesc_BeforeUpdate(Cancel As Integer) > ? If NZ(me.txtItemDesc,"") <> "" And me.txtItemDesc = me.txtItemNo > then cancel = true > End Sub > > This is why I brought up the idea of the PKID in another post. > > If this is an entry screen for entering the item no and description > into the sytem, then I would believe not allowing the item number and > description more than once as a pair is correct. > > If this is an order form, or something similar, then the ItemNo should > be entered, then in the After Update open a recordset and populate the > PKID and Description. > > > > On Wed, Nov 18, 2009 at 1:00 PM, Asger Blond wrote: >> David, >> Your assumption (that you may be wrong) is quite right ;-) >> In a previous posting Rocky asked: >> ? ? ? ?Is it the case that you have three checks to make? >> ? ? ? ?1) Is ItemName already being used in an existing record? >> ? ? ? ?2) Is ItemDesc already being used in an existing record? >> ? ? ? ?3) Is ItemName = ItemDesc in the current record? >> And Virginia answered: >> ? ? ? ?Number 3. ItemName can be repeated & so can the ItemDesc just not >> ? ? ? ?together in the same record. >> >> This kind of constraint just isn't as case for a KEY constraint (neither a >> PK constraint nor a UNIQUE constraint). It can only be enforced using > either >> 1) a TABLE-LEVEL CHECK constraint (perhaps the best solution because it's >> enforced no matter where you are making your entry), or 2) a PROCEDURAL >> constraint (as suggested by Rocky and me). >> Asger > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Thu Nov 19 03:30:28 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Nov 2009 10:30:28 +0100 Subject: [AccessD] set control source for text box in VBA using Nz Message-ID: Hi Carolyn A simple method as the length of the space is 1: =IIf(Len(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"))=1,"0",Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName")) /gustav >>> cjlabs at worldnet.att.net 18-11-2009 23:34 >>> The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson From hollisvj at pgdp.usec.com Thu Nov 19 06:49:24 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Thu, 19 Nov 2009 06:49:24 -0600 Subject: [AccessD] Duplicates on Two Values Message-ID: <703BDA18A87DFA4CB265A86F42E4178D094986D1@c2k3exchange.pgdp.corp.usec.com> William got the idea. I guess I am not explaining it right. This is for ordering & tracking supplies. Each record contains a different supply consisting of the name of the supply item and its description. The name & description together need to be different on each record. So each distinct record name & description when paired together are different. Like Williams example. They can't put Red & Blue in record 1 & then again in record 2. It can be Red & Green for record 2. I don't want duplicate records based on the supplies item name & matching description. One record for each name & description together. However, checking that the same data isn't entered in both fields is a good idea to check for too. I didn't think of that. ************** Virginia 1) to ensure that no two distinct records have the same data in the two fields ID ItemName ItemDesc 1 red blue 2 red blue set a unique index using both fields in the index ...this will gen an error when record two is entered use the error to gen a custom dialog 2) to ensure that a distinct record does not have the same data in both fields set a table level validation check constraint [ItemName] <> [ItemDesc] zero code and it works in the background however the data in those two fields are edited hth William From cjlabs at worldnet.att.net Thu Nov 19 07:23:05 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Thu, 19 Nov 2009 07:23:05 -0600 Subject: [AccessD] set control source for text box in VBA using Nz References: Message-ID: <5771598F6BFF4E1A8A3C31FE5C77C95A@Dell> Using Len() gives you the length of the combined date and product name themselves, no the length of the value of the field with that name. For example, a column produced by the crosstab query might be [Mon Tape], so the Len function is returning 8. If the column was [Mon Paper], the Len function returns 9. The only way Len(Format(rstData.Fields("Date"),"ddd") & " " & rstData.Fields("ProductName")) = 1 is when the column produced by the crosstab query is [ ]. I need to know if the value in the [Mon Tape] field is null. If so, I want to print 0. There still seems to be an issue with trying to use an expression when you assign a control source for a text box by code. Thanks Carolyn ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 3:30 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn A simple method as the length of the space is 1: =IIf(Len(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"))=1,"0",Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName")) /gustav >>> cjlabs at worldnet.att.net 18-11-2009 23:34 >>> The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Nov 19 07:48:06 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Nov 2009 14:48:06 +0100 Subject: [AccessD] set control source for text box in VBA using Nz Message-ID: Hi Carolyn OK, that was not what I could read from what you wrote. But you may need a function that reads the output from the crosstab ignoring the column names and returns the desired output. Or perhaps this will do: =IIf(Len(Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value)=1,"0",Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value) where 2 and 3 are the column index of the fields from the crosstab. Property Value will return the value of the fields while property Name would return the name of the fields. /gustav >>> cjlabs at worldnet.att.net 19-11-2009 14:23 >>> Using Len() gives you the length of the combined date and product name themselves, no the length of the value of the field with that name. For example, a column produced by the crosstab query might be [Mon Tape], so the Len function is returning 8. If the column was [Mon Paper], the Len function returns 9. The only way Len(Format(rstData.Fields("Date"),"ddd") & " " & rstData.Fields("ProductName")) = 1 is when the column produced by the crosstab query is [ ]. I need to know if the value in the [Mon Tape] field is null. If so, I want to print 0. There still seems to be an issue with trying to use an expression when you assign a control source for a text box by code. Thanks Carolyn ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 3:30 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn A simple method as the length of the space is 1: =IIf(Len(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"))=1,"0",Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName")) /gustav >>> cjlabs at worldnet.att.net 18-11-2009 23:34 >>> The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson From cjlabs at worldnet.att.net Thu Nov 19 09:09:40 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Thu, 19 Nov 2009 09:09:40 -0600 Subject: [AccessD] set control source for text box in VBA using Nz References: Message-ID: <9D14EF506261446482CAE39A085955CF@Dell> If I use the index for the column, I still get the same result as using the concatenated column name. The Len approach will not work because the value of the field is never " ", it's either a number or null. But the Nz function will not work either. There is either a way to put an expression in for the control source that I haven't found, or you cannot put an expression in for the control source if you assign it in code. Fortunately, my workaround of using a second text box based on the value of the programmatically-assigned text box is working. Thanks Carolyn Johnson ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 7:48 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn OK, that was not what I could read from what you wrote. But you may need a function that reads the output from the crosstab ignoring the column names and returns the desired output. Or perhaps this will do: =IIf(Len(Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value)=1,"0",Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value) where 2 and 3 are the column index of the fields from the crosstab. Property Value will return the value of the fields while property Name would return the name of the fields. /gustav >>> cjlabs at worldnet.att.net 19-11-2009 14:23 >>> Using Len() gives you the length of the combined date and product name themselves, no the length of the value of the field with that name. For example, a column produced by the crosstab query might be [Mon Tape], so the Len function is returning 8. If the column was [Mon Paper], the Len function returns 9. The only way Len(Format(rstData.Fields("Date"),"ddd") & " " & rstData.Fields("ProductName")) = 1 is when the column produced by the crosstab query is [ ]. I need to know if the value in the [Mon Tape] field is null. If so, I want to print 0. There still seems to be an issue with trying to use an expression when you assign a control source for a text box by code. Thanks Carolyn ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 3:30 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn A simple method as the length of the space is 1: =IIf(Len(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"))=1,"0",Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName")) /gustav >>> cjlabs at worldnet.att.net 18-11-2009 23:34 >>> The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Thu Nov 19 14:12:35 2009 From: adtp at airtelmail.in (A.D. Tejpal) Date: Fri, 20 Nov 2009 01:42:35 +0530 Subject: [AccessD] set control source for text box in VBA using Nz References: <9D14EF506261446482CAE39A085955CF@Dell> Message-ID: <008a01ca6954$d4371730$3701a8c0@adtpc> Carolyn, The result sought by you can be achieved by assigning the source field via a calculated expression (instead of direct binding). Sample code snippet in report's module is given below: ' Sample code part in report's open event ' (ControlName & FieldName are string variables ' WDay and WDate used instead of Day & Date ' so as to avoid potential conflict with reserved words) '==================================== ControlName = "Txt" & _ rstData.Fields("WDay") & "Product" FieldName = Format(rstData.Fields("WDate"), "ddd") & _ " " & rstData.Fields("ProductName") Me(ControlName).ControlSource = _ "=Nz([" & FieldName & "], 0)" '==================================== Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Carolyn Johnson To: Access Developers discussion and problem solving Sent: Thursday, November 19, 2009 20:39 Subject: Re: [AccessD] set control source for text box in VBA using Nz If I use the index for the column, I still get the same result as using the concatenated column name. The Len approach will not work because the value of the field is never " ", it's either a number or null. But the Nz function will not work either. There is either a way to put an expression in for the control source that I haven't found, or you cannot put an expression in for the control source if you assign it in code. Fortunately, my workaround of using a second text box based on the value of the programmatically-assigned text box is working. Thanks Carolyn Johnson ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 7:48 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn OK, that was not what I could read from what you wrote. But you may need a function that reads the output from the crosstab ignoring the column names and returns the desired output. Or perhaps this will do: =IIf(Len(Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value)=1,"0",Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value) where 2 and 3 are the column index of the fields from the crosstab. Property Value will return the value of the fields while property Name would return the name of the fields. /gustav >>> cjlabs at worldnet.att.net 19-11-2009 14:23 >>> Using Len() gives you the length of the combined date and product name themselves, no the length of the value of the field with that name. For example, a column produced by the crosstab query might be [Mon Tape], so the Len function is returning 8. If the column was [Mon Paper], the Len function returns 9. The only way Len(Format(rstData.Fields("Date"),"ddd") & " " & rstData.Fields("ProductName")) = 1 is when the column produced by the crosstab query is [ ]. I need to know if the value in the [Mon Tape] field is null. If so, I want to print 0. There still seems to be an issue with trying to use an expression when you assign a control source for a text box by code. Thanks Carolyn ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 3:30 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn A simple method as the length of the space is 1: =IIf(Len(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"))=1,"0",Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName")) /gustav >>> cjlabs at worldnet.att.net 18-11-2009 23:34 >>> The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson From ab-mi at post3.tele.dk Thu Nov 19 14:31:08 2009 From: ab-mi at post3.tele.dk (Asger Blond) Date: Thu, 19 Nov 2009 21:31:08 +0100 Subject: [AccessD] Duplicates on Two Values - NZ In-Reply-To: <8786a4c00911181655y7b2ecb50m183034ee6ef8af6d@mail.gmail.com> References: <703BDA18A87DFA4CB265A86F42E4178D094984ED@c2k3exchange.pgdp.corp.usec.com><7244AC9F285B455FA3DAC3844839F5C3@HAL9005><8786a4c00911181222w6d035fb0nb31e2f9cd7f5f7ca@mail.gmail.com><36BDCDC7E0C2483E994355BE2D8E6DEF@AB><8786a4c00911181326n50bc412erb896be70f244ac62@mail.gmail.com><769EBC9B417B41E09FFD090B4C75EBB0@AB> <8786a4c00911181655y7b2ecb50m183034ee6ef8af6d@mail.gmail.com> Message-ID: My mistake, sure your code is working. But what I still don't understand is what the NZ(, "") <> "" is supposed to do. Consider following 3 scenarios: 1) Entering two different values in the two textboxes. 2) Entering two identical values in the two textboxes. 3) Deleting an entry in one of the textboxes. Then the expression NZ(Me.TextBox1, "") <> "" And Me.TextBox1 = Me.TextBox2 will evaluate to the following respectively: 1) TRUE AND FALSE --> FALSE 2) TRUE AND TRUE --> TRUE 3) FALSE AND FALSE --> FALSE Now remove the NZ part of your expression leaving only a test for Me.TextBox1 = Me.TextBox2. You will get the exact same result. So I'm still confused why you use the NZ part... Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee Sendt: 19. november 2009 01:55 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] Duplicates on Two Values It was simply Air code. There should actually be a message displayed in prior to the Cancel = true firing 1. If you don't make an entry, of course the event wont fire 2. It works, try it. Create a new form with two text boxes on it: Private Sub Text0_BeforeUpdate(Cancel As Integer) If Nz(Me.Text0, "") <> "" And Me.Text0 = Me.Text2 Then MsgBox "the two boxes cannot have the same value" Cancel = True End If End Sub Private Sub Text2_BeforeUpdate(Cancel As Integer) If Nz(Me.Text2, "") <> "" And Me.Text2 = Me.Text0 Then MsgBox "the two boxes cannot have the same value" Cancel = True End If End Sub That is what the "And" is for ;) This is for Rocky's condition #3 in his question to Virginia, which doesn't apply anyway. On Wed, Nov 18, 2009 at 3:39 PM, Asger Blond wrote: > David, > Just curious: what's your using NZ in the BeforeUpdate event supposed to do? > The NZ function is checking for NULL, and: > 1. If you don't make an entry (leaving the field NULL or bypassing an > existing value) then per definition the BeforeUpdate event won't fire. > 2. If you make an entry (making the field NOT NULL) or delete an existing > entry (making the field NULL) then the event will fire but per definition > the expression NZ(Field,"")<>"" will always evaluate to FALSE making the > whole IF condition FALSE. > Net sum, as I see it: Your BeforeUpdate procedure won't do anything > whatsoever howsoever. > Asger > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af David McAfee > Sendt: 18. november 2009 22:27 > Til: Access Developers discussion and problem solving > Emne: Re: [AccessD] Duplicates on Two Values > > I assumed Virgina meant a 4th option, ItemName+ItemDesc cannot be used > if they already exist in the system > > Is this correct: > > ItemNo ?ItemDesc > 12345 ? ?Battery (allowed as long as 12345+Battery do not already exist) > ?2255 ? ? Battery (allowed as long as 2255+Battery do not already exist) > 12345 ? ?Hammer (allowed as long as 12345+Hammer do not already exist) > 4567 ? ? 4567 (not allowed as per 3) below) > cable ? ?cable (Not allowed) > 12345 ? Battery (Not allowed a 2nd time) > 12345 ? Battrey (Allowed as long as 2255+Battrey do not already exist) > > > If it is simply the 3rd option below, Why couldn't you put the > following in the BeforeUpdate events of txtItemNo and txtItemDesc: > > > Private Sub txtItemNo_BeforeUpdate(Cancel As Integer) > ? If NZ(me.txtItemNo,"") <> "" And me.txtItemNo = me.txtItemDesc > then cancel = true > End Sub > > Private Sub txtItemDesc_BeforeUpdate(Cancel As Integer) > ? If NZ(me.txtItemDesc,"") <> "" And me.txtItemDesc = me.txtItemNo > then cancel = true > End Sub > > This is why I brought up the idea of the PKID in another post. > > If this is an entry screen for entering the item no and description > into the sytem, then I would believe not allowing the item number and > description more than once as a pair is correct. > > If this is an order form, or something similar, then the ItemNo should > be entered, then in the After Update open a recordset and populate the > PKID and Description. > > > > On Wed, Nov 18, 2009 at 1:00 PM, Asger Blond wrote: >> David, >> Your assumption (that you may be wrong) is quite right ;-) >> In a previous posting Rocky asked: >> ? ? ? ?Is it the case that you have three checks to make? >> ? ? ? ?1) Is ItemName already being used in an existing record? >> ? ? ? ?2) Is ItemDesc already being used in an existing record? >> ? ? ? ?3) Is ItemName = ItemDesc in the current record? >> And Virginia answered: >> ? ? ? ?Number 3. ItemName can be repeated & so can the ItemDesc just not >> ? ? ? ?together in the same record. >> >> This kind of constraint just isn't as case for a KEY constraint (neither a >> PK constraint nor a UNIQUE constraint). It can only be enforced using > either >> 1) a TABLE-LEVEL CHECK constraint (perhaps the best solution because it's >> enforced no matter where you are making your entry), or 2) a PROCEDURAL >> constraint (as suggested by Rocky and me). >> Asger > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cjlabs at worldnet.att.net Thu Nov 19 16:12:44 2009 From: cjlabs at worldnet.att.net (Carolyn Johnson) Date: Thu, 19 Nov 2009 16:12:44 -0600 Subject: [AccessD] set control source for text box in VBA using Nz References: <9D14EF506261446482CAE39A085955CF@Dell> <008a01ca6954$d4371730$3701a8c0@adtpc> Message-ID: Thanks. Using an expression works. I had tried putting the expression inside quotations, but it didn't working. The control source seems to become the literal value. Carolyn Johnson ----- Original Message ----- From: A.D. Tejpal To: Access Developers discussion and problem solving Sent: Thursday, November 19, 2009 2:12 PM Subject: Re: [AccessD] set control source for text box in VBA using Nz Carolyn, The result sought by you can be achieved by assigning the source field via a calculated expression (instead of direct binding). Sample code snippet in report's module is given below: ' Sample code part in report's open event ' (ControlName & FieldName are string variables ' WDay and WDate used instead of Day & Date ' so as to avoid potential conflict with reserved words) '==================================== ControlName = "Txt" & _ rstData.Fields("WDay") & "Product" FieldName = Format(rstData.Fields("WDate"), "ddd") & _ " " & rstData.Fields("ProductName") Me(ControlName).ControlSource = _ "=Nz([" & FieldName & "], 0)" '==================================== Best wishes, A.D. Tejpal ------------ ----- Original Message ----- From: Carolyn Johnson To: Access Developers discussion and problem solving Sent: Thursday, November 19, 2009 20:39 Subject: Re: [AccessD] set control source for text box in VBA using Nz If I use the index for the column, I still get the same result as using the concatenated column name. The Len approach will not work because the value of the field is never " ", it's either a number or null. But the Nz function will not work either. There is either a way to put an expression in for the control source that I haven't found, or you cannot put an expression in for the control source if you assign it in code. Fortunately, my workaround of using a second text box based on the value of the programmatically-assigned text box is working. Thanks Carolyn Johnson ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 7:48 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn OK, that was not what I could read from what you wrote. But you may need a function that reads the output from the crosstab ignoring the column names and returns the desired output. Or perhaps this will do: =IIf(Len(Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value)=1,"0",Format(rstData.Fields(2).Value, "ddd") & " " & rstData.Fields(3).Value) where 2 and 3 are the column index of the fields from the crosstab. Property Value will return the value of the fields while property Name would return the name of the fields. /gustav >>> cjlabs at worldnet.att.net 19-11-2009 14:23 >>> Using Len() gives you the length of the combined date and product name themselves, no the length of the value of the field with that name. For example, a column produced by the crosstab query might be [Mon Tape], so the Len function is returning 8. If the column was [Mon Paper], the Len function returns 9. The only way Len(Format(rstData.Fields("Date"),"ddd") & " " & rstData.Fields("ProductName")) = 1 is when the column produced by the crosstab query is [ ]. I need to know if the value in the [Mon Tape] field is null. If so, I want to print 0. There still seems to be an issue with trying to use an expression when you assign a control source for a text box by code. Thanks Carolyn ----- Original Message ----- From: Gustav Brock To: accessd at databaseadvisors.com Sent: Thursday, November 19, 2009 3:30 AM Subject: Re: [AccessD] set control source for text box in VBA using Nz Hi Carolyn A simple method as the length of the space is 1: =IIf(Len(Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName"))=1,"0",Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName")) /gustav >>> cjlabs at worldnet.att.net 18-11-2009 23:34 >>> The control source for the text box is Format(rstData.Fields("Date"), "ddd") & " " & rstData.Fields("ProductName") For example, it might be [Mon Tape] or [Tue Tape]. If the value is null, I want the text box to show 0. If I had a fixed crosstab query, I could just put in the control source property of the text box =Nz([Mon Tape],0) With the dynamic query, I have concatenated field names as above. I can't find a way to add the Nz function around that concatenated field name. I have tried putting brackets around the field name, saving the field name as a string and putting brackets around it, and putting quotes around it. It seems that the control source property set in code will only accept a field name, as opposed to an expression with a field name. I have now gotten around this by making the text box with the concantenated field name invisible, and adding a second text box whole control source is = Nz([concatenated field],0) Thanks, Carolyn Johnson -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Nov 20 09:56:43 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 20 Nov 2009 10:56:43 -0500 Subject: [AccessD] Filter for #2 in SELECT TOP 2 qry criteria In-Reply-To: References: <9D14EF506261446482CAE39A085955CF@Dell><008a01ca6954$d4371730$3701a8c0@adtpc> Message-ID: <60A23F501E704FD7814E9064D5AC4D4E@jislaptopdev> "In (SELECT TOP 1 EventStartDate FROM tblEvents WHERE EventStartDate > Date()-10 And EventName = "xyz" ORDER BY EventStartDate)" I use the above query criteria to derive the current (upcoming) EventID Now I need to filter for the "next" event, the one that would be added if I used "SELECT TOP 2" in the above criteria instead. Any ideas appreciated. William From Lambert.Heenan at chartisinsurance.com Fri Nov 20 10:23:46 2009 From: Lambert.Heenan at chartisinsurance.com (Heenan, Lambert) Date: Fri, 20 Nov 2009 11:23:46 -0500 Subject: [AccessD] Filter for #2 in SELECT TOP 2 qry criteria In-Reply-To: <60A23F501E704FD7814E9064D5AC4D4E@jislaptopdev> References: <9D14EF506261446482CAE39A085955CF@Dell><008a01ca6954$d4371730$3701a8c0@adtpc> <60A23F501E704FD7814E9064D5AC4D4E@jislaptopdev> Message-ID: A nested query and a reverse sort is what you need... In (select top 1 EventStartDate From (SELECT TOP 2 EventStartDate FROM tblEvents WHERE EventStartDate > Date()-10 And EventName = "xyz" ORDER BY EventStartDate DESC) ) should do it. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Friday, November 20, 2009 10:57 AM To: Access Developers discussion and problem solving Subject: [AccessD] Filter for #2 in SELECT TOP 2 qry criteria "In (SELECT TOP 1 EventStartDate FROM tblEvents WHERE EventStartDate > Date()-10 And EventName = "xyz" ORDER BY EventStartDate)" I use the above query criteria to derive the current (upcoming) EventID Now I need to filter for the "next" event, the one that would be added if I used "SELECT TOP 2" in the above criteria instead. Any ideas appreciated. William -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Fri Nov 20 11:14:03 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Fri, 20 Nov 2009 12:14:03 -0500 Subject: [AccessD] Filter for #2 in SELECT TOP 2 qry criteria In-Reply-To: References: <9D14EF506261446482CAE39A085955CF@Dell><008a01ca6954$d4371730$3701a8c0@adtpc><60A23F501E704FD7814E9064D5AC4D4E@jislaptopdev> Message-ID: <52744529BA1F41769ADDDC6190AC4C92@jislaptopdev> ...did it ...thanks :))) William -------------------------------------------------- From: "Heenan, Lambert" Sent: Friday, November 20, 2009 11:23 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Filter for #2 in SELECT TOP 2 qry criteria > A nested query and a reverse sort is what you need... > > In (select top 1 EventStartDate From > (SELECT TOP 2 EventStartDate FROM tblEvents WHERE EventStartDate > > Date()-10 And EventName = "xyz" > ORDER BY EventStartDate DESC) > ) > > should do it. > > Lambert > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Friday, November 20, 2009 10:57 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Filter for #2 in SELECT TOP 2 qry criteria > > > "In (SELECT TOP 1 EventStartDate FROM tblEvents WHERE EventStartDate > > Date()-10 And EventName = "xyz" ORDER BY EventStartDate)" > > I use the above query criteria to derive the current (upcoming) EventID > > Now I need to filter for the "next" event, the one that would be added if > I used "SELECT TOP 2" in the above criteria instead. > > Any ideas appreciated. > > William > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Nov 21 08:26:44 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Sat, 21 Nov 2009 06:26:44 -0800 Subject: [AccessD] Access/SQL In-Reply-To: <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru> <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> Message-ID: Hi Rocky: Java is the most used language in the programming world. All the universities, that I know, teach it in their computer science courses. Google is written in a combination of Java and JavaScript. Below is the best list of languages and their status that I have found: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 14, 2009 4:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. One vote for the procrastinators. My kid is 13. He's heavy into JAVA now. But what should he learn for the future? What's going to be the platform du jour in 5 years? 10 years? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, November 14, 2009 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Mark, VB.Net is OK. I can use both C# and VB.NET interchangeably as many .NET developers do. But I do prefer C#. Nowadays in my development I'm using 99.99% of the time C# (for several years now). There are also F#, IronPython and IronRuby, which can be used on .NET development platform... Even more programming languages will come to .NET platform in the future... Even Fortran can be used within .NET - http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... Thank you. -- Shamil P.S. I'd guess "new powerful webdev platform" uses C# by default but you can always switch to VB.NET or use both... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 11:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose development > platform for business applications. > > I'm talking from my experience in development of business applications > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start developing > VB.NET business apps the next day/week provided they will get proper > guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS Excel COM > Add-in and converted it (just starting using VB.NET this day) to a > VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA developers > can do that. > > -- > Shamil <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4608 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Nov 21 09:08:07 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Nov 2009 07:08:07 -0800 Subject: [AccessD] Access/SQL In-Reply-To: References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS><008e01ca6559$5d96f770$18c4e650$@spb.ru><000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS><009701ca6571$9e805200$db80f600$@spb.ru><1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> Message-ID: Thanks for that link. Very interesting. I'll forward to Noah. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Saturday, November 21, 2009 6:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Hi Rocky: Java is the most used language in the programming world. All the universities, that I know, teach it in their computer science courses. Google is written in a combination of Java and JavaScript. Below is the best list of languages and their status that I have found: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 14, 2009 4:04 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Well, I'm so happy I waited to learn VB.NET. It died while I was waiting. One vote for the procrastinators. My kid is 13. He's heavy into JAVA now. But what should he learn for the future? What's going to be the platform du jour in 5 years? 10 years? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, November 14, 2009 1:30 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL Mark, VB.Net is OK. I can use both C# and VB.NET interchangeably as many .NET developers do. But I do prefer C#. Nowadays in my development I'm using 99.99% of the time C# (for several years now). There are also F#, IronPython and IronRuby, which can be used on .NET development platform... Even more programming languages will come to .NET platform in the future... Even Fortran can be used within .NET - http://www.codeproject.com/KB/net-languages/intro_fortran.aspx AFAIHF... Thank you. -- Shamil P.S. I'd guess "new powerful webdev platform" uses C# by default but you can always switch to VB.NET or use both... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 14, 2009 11:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access/SQL VB.NET is dead, dead, dead. Everyone has moved to C#...much more elegant. On Microsoft's new, most powerful webdev platform one can only use C#. Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# openings....almost 3:1 !!! Note: Even John Colby has moved over to C#. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Saturday, November 14, 2009 1:36 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > IMO C# + .NET Framework is the best ever general purpose development > platform for business applications. > > I'm talking from my experience in development of business applications > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > DataFlex, VBA, VB6, VB.NET, C#... > > One with good VB6/VBA development experience can start developing > VB.NET business apps the next day/week provided they will get proper > guidelines/help/tutoring... > > I have such examples as e.g. when I have got advanced MS Excel COM > Add-in and converted it (just starting using VB.NET this day) to a > VB.NET one within three days (10,000+ code > lines) - it's nothing special - most of experienced VB6/VBA developers > can do that. > > -- > Shamil <<< snip >>> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4608 (20091114) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Sat Nov 21 10:26:01 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 21 Nov 2009 11:26:01 -0500 Subject: [AccessD] List the columns in a given Access table Message-ID: <29f585dd0911210826o45283d7r7e1b53e66ed54fce@mail.gmail.com> I used to have a procedure to do this, but cannot locate it. Does anyone have something handy? ADO or DAO, I don't really care. I just want to dump all the column names to the debug window so I can paste them into a document. TIA, Arthur From rockysmolin at bchacc.com Sat Nov 21 10:31:08 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Nov 2009 08:31:08 -0800 Subject: [AccessD] Fw: Article on Access In-Reply-To: References: Message-ID: How's this? Access is known as a Rapid application Development platform, and for the development of custom databases and applications I have found it head and shoulders above any other product in that respect. Since I develop applications for business, speed of development the most important consideration for me in choice of platform. (And my customers, too, by the way!) Now like all programmers, I like doing the high level stuff - fashioning slick queries, writing elegant functions, and the like. Getting all the text boxes, labels and controls on a report or form lined up and positioned where you want them is tedious, time consuming, and unrewarding - nudging text or combo boxes, command buttons or labels around by the hundredth of an inch until they're all lined up right. So while it might seem a bit trivial, one of my favorite features is the ability to 'rubber band' a group of controls and line them up and/or space them equally so that my forms and reports look crisp and professional. And being a mouseophobe, I always use the keyboard shortcuts to: Align Top (Alt OAT) Align Bottom (Alt OAB) Align Left (Alt OAL) Align Right (Alt OAR) Equal Space Horizontally (Alt OZE) Equal Space vertically (Alt OVE) Increase/Decrease space Horizontally (Alt OZI/Alt OZD) Increase/Decrease space Vertically (Alt OVI/Alt OVD) And once aligned, if the group of controls needs some nudging, again I use the keyboard shortcut - Ctrl with the up, done, left and right arrows - to move them about in small increments. These are not sexy or particularly sophisticated features of the IDE. But they are workhorse functions that have saved me enormous time, aggravation, and eyestrain. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, November 18, 2009 12:32 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Fw: Article on Access Someone has suggested that I clarify this request. I am looking for specific favorite/least favorite items for Access, Excel, and Word. The original post said "Office" -- so I want to be clear. Not getting much response, which surprises me! ;) Susan H. > I'm going to write a series of articles of favorite/least favorite > tips/features in the Office applications. The selling point is that > these comments are your's and not mine for a change. :) If you want to > be included, I'll include your contact information in the article -- > similar to the security and add-in articles I wrote last year. > > > > I'll be writing one on Access. If you're interested, I'll need your > favorite all-time Access tip/feature and your least favorite feature. > Please mail them to me privately -- ss harkins at gmail dot com -- so > we don't upset the kind moderators! > > I'm been asked not to include keyboard shortcuts. I need a > user/code/feature type solution -- it can be very easy. If you want to > include a keyboard shortcut, we can do so, as an after thought... "In > addition, so and so uses the blah, blah shortcut regular..." Your > least favorite can be something you find awkward, a bug, or a feature > you think that should be available, but isn't -- or something else -- > those are just ideas. What makes you pound your desk and spit out, "D*mn!" > > I'll be writing one for Word and Excel too, and possibly Outlook and > PP if I can find enough people interested, so keep those in mind too > if you're interested. > > Thanks! > Susan > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Sat Nov 21 10:49:23 2009 From: davidmcafee at gmail.com (David McAfee) Date: Sat, 21 Nov 2009 08:49:23 -0800 Subject: [AccessD] List the columns in a given Access table In-Reply-To: <29f585dd0911210826o45283d7r7e1b53e66ed54fce@mail.gmail.com> References: <29f585dd0911210826o45283d7r7e1b53e66ed54fce@mail.gmail.com> Message-ID: <8786a4c00911210849t7c24f840id39772a7d818d084@mail.gmail.com> Dim i As Integer For i = 1 To CurrentDb.TableDefs("mytablename").Fields.Count - 1 Debug.Print CurrentDb.TableDefs("mytablename").Fields(i).Name Next i On Sat, Nov 21, 2009 at 8:26 AM, Arthur Fuller wrote: > I used to have a procedure to do this, but cannot locate it. Does anyone > have something handy? ADO or DAO, I don't really care. I just want to dump > all the column names to the debug window so I can paste them into a > document. > > TIA, > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From fuller.artful at gmail.com Sat Nov 21 10:56:02 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Sat, 21 Nov 2009 11:56:02 -0500 Subject: [AccessD] List the columns in a given Access table In-Reply-To: <8786a4c00911210849t7c24f840id39772a7d818d084@mail.gmail.com> References: <29f585dd0911210826o45283d7r7e1b53e66ed54fce@mail.gmail.com> <8786a4c00911210849t7c24f840id39772a7d818d084@mail.gmail.com> Message-ID: <29f585dd0911210856k11124d47k7d8ec13df3a9eb99@mail.gmail.com> Thanks David. A. On Sat, Nov 21, 2009 at 11:49 AM, David McAfee wrote: > Dim i As Integer > For i = 1 To CurrentDb.TableDefs("mytablename").Fields.Count - 1 > Debug.Print CurrentDb.TableDefs("mytablename").Fields(i).Name > Next i > > From marksimms at verizon.net Sat Nov 21 11:24:58 2009 From: marksimms at verizon.net (Mark Simms) Date: Sat, 21 Nov 2009 12:24:58 -0500 Subject: [AccessD] Java-some interesting info In-Reply-To: References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru> <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> Message-ID: <005501ca6acf$8d1fda90$0601a8c0@MSIMMSWS> Indeed Java is popular, but it is productive ? Where I am contracting right now, a web app built in java/jsp/j2ee took about 6 man-months to develop. After the app appears never to reach stability, a hot-shot programmer comes along and rewrites it in 2 months using ASP.NET and VS2008. Actually Java's J2EE architecture appears to have failed. If you get onto the Springhouse website, you'll see mention of why their framework has replaced it (and why the company was recently sold for several hundred million dollars recently). >From Dice.com - USA openings: Java= 3280 C#= 1076 .NET= 1780 VBA= 69 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Saturday, November 21, 2009 9:27 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Hi Rocky: > > Java is the most used language in the programming world. All > the universities, that I know, teach it in their computer > science courses. > Google is written in a combination of Java and JavaScript. > Below is the best list of languages and their status that I > have found: > > http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Saturday, November 14, 2009 4:04 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Well, I'm so happy I waited to learn VB.NET. It died while I > was waiting. > One vote for the procrastinators. > > My kid is 13. He's heavy into JAVA now. But what should he > learn for the future? What's going to be the platform du > jour in 5 years? 10 years? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Shamil Salakhetdinov > Sent: Saturday, November 14, 2009 1:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > VB.Net is OK. > I can use both C# and VB.NET interchangeably as many .NET > developers do. > But I do prefer C#. > Nowadays in my development I'm using 99.99% of the time C# > (for several years now). > There are also F#, IronPython and IronRuby, which can be used > on .NET development platform... > Even more programming languages will come to .NET platform in > the future... > > Even Fortran can be used within .NET - > http://www.codeproject.com/KB/net-languages/intro_fortran.aspx > AFAIHF... > > Thank you. > > -- > Shamil > > P.S. I'd guess "new powerful webdev platform" uses C# by > default but you can always switch to VB.NET or use both... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, November 14, 2009 11:59 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > VB.NET is dead, dead, dead. > Everyone has moved to C#...much more elegant. > On Microsoft's new, most powerful webdev platform one can only use C#. > Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# > openings....almost > 3:1 !!! > > Note: Even John Colby has moved over to C#. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov > > Sent: Saturday, November 14, 2009 1:36 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Access/SQL > > > > Mark, > > > > IMO C# + .NET Framework is the best ever general purpose > development > > platform for business applications. > > > > I'm talking from my experience in development of business > applications > > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > > DataFlex, VBA, VB6, VB.NET, C#... > > > > One with good VB6/VBA development experience can start developing > > VB.NET business apps the next day/week provided they will > get proper > > guidelines/help/tutoring... > > > > I have such examples as e.g. when I have got advanced MS Excel COM > > Add-in and converted it (just starting using VB.NET this day) to a > > VB.NET one within three days (10,000+ code > > lines) - it's nothing special - most of experienced VB6/VBA > developers > > can do that. > > > > -- > > Shamil > > <<< snip >>> > > > __________ Information from ESET NOD32 Antivirus, version of > virus signature database 4608 (20091114) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Nov 21 11:47:27 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 21 Nov 2009 12:47:27 -0500 Subject: [AccessD] Loss leader (or just plain loss) Message-ID: <4B0827AF.6040608@colbyconsulting.com> A friend has approached me about building an application for a small chain of stores to manage inventory. "Very simple". I haven't yet talked to her about the requirements. She did say they were quoted (and rejected) a bid of $4000 to do the job. If I am going to do this at all it will have to be very quick and dirty, and would be just to help a friend. Is Access 2007 runtime stable? Easy or difficult to use / install / implement on site? -- John W. Colby www.ColbyConsulting.com From rockysmolin at bchacc.com Sat Nov 21 12:09:29 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Nov 2009 10:09:29 -0800 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <4B0827AF.6040608@colbyconsulting.com> References: <4B0827AF.6040608@colbyconsulting.com> Message-ID: I'd recommend 2003. I have a fairly complex docketing system developed for a patent attorney which is maintained in 2003 but he runs in 2007 on some boxes. If there are problems it's on the 2007 machines. Maybe if I switched it over entirely to 2007 those problems might go away. But the IDE in 2007 is so difficult, I won't do it (fortunately it's not a deal breaker for the client). As far as runtime - I use Wise/Sagekey for 2003 apps and it works flawlessly. If it's going to be runtime, it doesn't matter to them which version, yes? Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, November 21, 2009 9:47 AM To: Access Developers discussion and problem solving; VBA Subject: [AccessD] Loss leader (or just plain loss) A friend has approached me about building an application for a small chain of stores to manage inventory. "Very simple". I haven't yet talked to her about the requirements. She did say they were quoted (and rejected) a bid of $4000 to do the job. If I am going to do this at all it will have to be very quick and dirty, and would be just to help a friend. Is Access 2007 runtime stable? Easy or difficult to use / install / implement on site? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Sat Nov 21 12:41:52 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 21 Nov 2009 12:41:52 -0600 Subject: [AccessD] Fw: Article on Access In-Reply-To: References: Message-ID: <490FD2BF6B1A4E969C480C0C27957E39@danwaters> Hi Rocky, You might try creating a custom toolbar with all of those functions. I have one with just the align functions - big time saver! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 21, 2009 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Fw: Article on Access How's this? Access is known as a Rapid application Development platform, and for the development of custom databases and applications I have found it head and shoulders above any other product in that respect. Since I develop applications for business, speed of development the most important consideration for me in choice of platform. (And my customers, too, by the way!) Now like all programmers, I like doing the high level stuff - fashioning slick queries, writing elegant functions, and the like. Getting all the text boxes, labels and controls on a report or form lined up and positioned where you want them is tedious, time consuming, and unrewarding - nudging text or combo boxes, command buttons or labels around by the hundredth of an inch until they're all lined up right. So while it might seem a bit trivial, one of my favorite features is the ability to 'rubber band' a group of controls and line them up and/or space them equally so that my forms and reports look crisp and professional. And being a mouseophobe, I always use the keyboard shortcuts to: Align Top (Alt OAT) Align Bottom (Alt OAB) Align Left (Alt OAL) Align Right (Alt OAR) Equal Space Horizontally (Alt OZE) Equal Space vertically (Alt OVE) Increase/Decrease space Horizontally (Alt OZI/Alt OZD) Increase/Decrease space Vertically (Alt OVI/Alt OVD) And once aligned, if the group of controls needs some nudging, again I use the keyboard shortcut - Ctrl with the up, done, left and right arrows - to move them about in small increments. These are not sexy or particularly sophisticated features of the IDE. But they are workhorse functions that have saved me enormous time, aggravation, and eyestrain. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, November 18, 2009 12:32 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Fw: Article on Access Someone has suggested that I clarify this request. I am looking for specific favorite/least favorite items for Access, Excel, and Word. The original post said "Office" -- so I want to be clear. Not getting much response, which surprises me! ;) Susan H. > I'm going to write a series of articles of favorite/least favorite > tips/features in the Office applications. The selling point is that > these comments are your's and not mine for a change. :) If you want to > be included, I'll include your contact information in the article -- > similar to the security and add-in articles I wrote last year. > > > > I'll be writing one on Access. If you're interested, I'll need your > favorite all-time Access tip/feature and your least favorite feature. > Please mail them to me privately -- ss harkins at gmail dot com -- so > we don't upset the kind moderators! > > I'm been asked not to include keyboard shortcuts. I need a > user/code/feature type solution -- it can be very easy. If you want to > include a keyboard shortcut, we can do so, as an after thought... "In > addition, so and so uses the blah, blah shortcut regular..." Your > least favorite can be something you find awkward, a bug, or a feature > you think that should be available, but isn't -- or something else -- > those are just ideas. What makes you pound your desk and spit out, "D*mn!" > > I'll be writing one for Word and Excel too, and possibly Outlook and > PP if I can find enough people interested, so keep those in mind too > if you're interested. > > Thanks! > Susan > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From miscellany at mvps.org Sat Nov 21 13:15:41 2009 From: miscellany at mvps.org (Steve Schapel) Date: Sun, 22 Nov 2009 08:15:41 +1300 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <4B0827AF.6040608@colbyconsulting.com> References: <4B0827AF.6040608@colbyconsulting.com> Message-ID: <00B60C0988504799931E410618A51B65@stevePC> John, I have a few applications running under Access 2007 Runtime, and have found it excellent. It is extremely easy to install. It's just a free download from Microsoft, double-click, shazam. The only tricky bit is setting up the folder where your app will go as a Trusted Location. This is done either via a registry edit, or else running a little utility available from http://www.accessribbon.de/en/ Only time I would not recommend this is if the computers also have another version of Access installed (and used) - but that sounds unlikely. Regards Steve -------------------------------------------------- From: "jwcolby" Sent: Sunday, November 22, 2009 6:47 AM To: "Access Developers discussion and problem solving" ; "VBA" Subject: [AccessD] Loss leader (or just plain loss) > A friend has approached me about building an application for a small chain > of stores to manage > inventory. "Very simple". I haven't yet talked to her about the > requirements. She did say they > were quoted (and rejected) a bid of $4000 to do the job. > > If I am going to do this at all it will have to be very quick and dirty, > and would be just to help a > friend. > > Is Access 2007 runtime stable? Easy or difficult to use / install / > implement on site? > From jwcolby at colbyconsulting.com Sat Nov 21 13:27:37 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 21 Nov 2009 14:27:37 -0500 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: References: <4B0827AF.6040608@colbyconsulting.com> Message-ID: <4B083F29.9060507@colbyconsulting.com> I thought the runtime was only included in 2007. John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > I'd recommend 2003. I have a fairly complex docketing system developed for > a patent attorney which is maintained in 2003 but he runs in 2007 on some > boxes. If there are problems it's on the 2007 machines. Maybe if I > switched it over entirely to 2007 those problems might go away. But the IDE > in 2007 is so difficult, I won't do it (fortunately it's not a deal breaker > for the client). > > As far as runtime - I use Wise/Sagekey for 2003 apps and it works > flawlessly. If it's going to be runtime, it doesn't matter to them which > version, yes? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, November 21, 2009 9:47 AM > To: Access Developers discussion and problem solving; VBA > Subject: [AccessD] Loss leader (or just plain loss) > > A friend has approached me about building an application for a small chain > of stores to manage inventory. "Very simple". I haven't yet talked to her > about the requirements. She did say they were quoted (and rejected) a bid > of $4000 to do the job. > > If I am going to do this at all it will have to be very quick and dirty, and > would be just to help a friend. > > Is Access 2007 runtime stable? Easy or difficult to use / install / > implement on site? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jwcolby at colbyconsulting.com Sat Nov 21 13:28:32 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 21 Nov 2009 14:28:32 -0500 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <00B60C0988504799931E410618A51B65@stevePC> References: <4B0827AF.6040608@colbyconsulting.com> <00B60C0988504799931E410618A51B65@stevePC> Message-ID: <4B083F60.5080009@colbyconsulting.com> Thanks Steve, John W. Colby www.ColbyConsulting.com Steve Schapel wrote: > John, > > I have a few applications running under Access 2007 Runtime, and have found > it excellent. > > It is extremely easy to install. It's just a free download from Microsoft, > double-click, shazam. The only tricky bit is setting up the folder where > your app will go as a Trusted Location. This is done either via a registry > edit, or else running a little utility available from > http://www.accessribbon.de/en/ > > Only time I would not recommend this is if the computers also have another > version of Access installed (and used) - but that sounds unlikely. > > Regards > Steve > > > -------------------------------------------------- > From: "jwcolby" > Sent: Sunday, November 22, 2009 6:47 AM > To: "Access Developers discussion and problem solving" > ; "VBA" > Subject: [AccessD] Loss leader (or just plain loss) > >> A friend has approached me about building an application for a small chain >> of stores to manage >> inventory. "Very simple". I haven't yet talked to her about the >> requirements. She did say they >> were quoted (and rejected) a bid of $4000 to do the job. >> >> If I am going to do this at all it will have to be very quick and dirty, >> and would be just to help a >> friend. >> >> Is Access 2007 runtime stable? Easy or difficult to use / install / >> implement on site? >> > > From rockysmolin at bchacc.com Sat Nov 21 14:07:08 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Nov 2009 12:07:08 -0800 Subject: [AccessD] Fw: Article on Access In-Reply-To: <490FD2BF6B1A4E969C480C0C27957E39@danwaters> References: <490FD2BF6B1A4E969C480C0C27957E39@danwaters> Message-ID: <4AD204521A2D49E7AF545299BA64712F@HAL9005> True, except I try to keep my hands on the keyboard as much as possible. Moving keyboard to mouse is my personal pet peeve. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, November 21, 2009 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Fw: Article on Access Hi Rocky, You might try creating a custom toolbar with all of those functions. I have one with just the align functions - big time saver! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 21, 2009 10:31 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Fw: Article on Access How's this? Access is known as a Rapid application Development platform, and for the development of custom databases and applications I have found it head and shoulders above any other product in that respect. Since I develop applications for business, speed of development the most important consideration for me in choice of platform. (And my customers, too, by the way!) Now like all programmers, I like doing the high level stuff - fashioning slick queries, writing elegant functions, and the like. Getting all the text boxes, labels and controls on a report or form lined up and positioned where you want them is tedious, time consuming, and unrewarding - nudging text or combo boxes, command buttons or labels around by the hundredth of an inch until they're all lined up right. So while it might seem a bit trivial, one of my favorite features is the ability to 'rubber band' a group of controls and line them up and/or space them equally so that my forms and reports look crisp and professional. And being a mouseophobe, I always use the keyboard shortcuts to: Align Top (Alt OAT) Align Bottom (Alt OAB) Align Left (Alt OAL) Align Right (Alt OAR) Equal Space Horizontally (Alt OZE) Equal Space vertically (Alt OVE) Increase/Decrease space Horizontally (Alt OZI/Alt OZD) Increase/Decrease space Vertically (Alt OVI/Alt OVD) And once aligned, if the group of controls needs some nudging, again I use the keyboard shortcut - Ctrl with the up, done, left and right arrows - to move them about in small increments. These are not sexy or particularly sophisticated features of the IDE. But they are workhorse functions that have saved me enormous time, aggravation, and eyestrain. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, November 18, 2009 12:32 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Fw: Article on Access Someone has suggested that I clarify this request. I am looking for specific favorite/least favorite items for Access, Excel, and Word. The original post said "Office" -- so I want to be clear. Not getting much response, which surprises me! ;) Susan H. > I'm going to write a series of articles of favorite/least favorite > tips/features in the Office applications. The selling point is that > these comments are your's and not mine for a change. :) If you want to > be included, I'll include your contact information in the article -- > similar to the security and add-in articles I wrote last year. > > > > I'll be writing one on Access. If you're interested, I'll need your > favorite all-time Access tip/feature and your least favorite feature. > Please mail them to me privately -- ss harkins at gmail dot com -- so > we don't upset the kind moderators! > > I'm been asked not to include keyboard shortcuts. I need a > user/code/feature type solution -- it can be very easy. If you want to > include a keyboard shortcut, we can do so, as an after thought... "In > addition, so and so uses the blah, blah shortcut regular..." Your > least favorite can be something you find awkward, a bug, or a feature > you think that should be available, but isn't -- or something else -- > those are just ideas. What makes you pound your desk and spit out, "D*mn!" > > I'll be writing one for Word and Excel too, and possibly Outlook and > PP if I can find enough people interested, so keep those in mind too > if you're interested. > > Thanks! > Susan > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Nov 21 14:11:40 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 21 Nov 2009 12:11:40 -0800 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <4B083F29.9060507@colbyconsulting.com> References: <4B0827AF.6040608@colbyconsulting.com> <4B083F29.9060507@colbyconsulting.com> Message-ID: <66E76BD97738415CA4BA0A4F4BFD760D@HAL9005> The Sagekey script assembles it. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, November 21, 2009 11:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Loss leader (or just plain loss) I thought the runtime was only included in 2007. John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > I'd recommend 2003. I have a fairly complex docketing system > developed for a patent attorney which is maintained in 2003 but he > runs in 2007 on some boxes. If there are problems it's on the 2007 > machines. Maybe if I switched it over entirely to 2007 those problems > might go away. But the IDE in 2007 is so difficult, I won't do it > (fortunately it's not a deal breaker for the client). > > As far as runtime - I use Wise/Sagekey for 2003 apps and it works > flawlessly. If it's going to be runtime, it doesn't matter to them > which version, yes? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, November 21, 2009 9:47 AM > To: Access Developers discussion and problem solving; VBA > Subject: [AccessD] Loss leader (or just plain loss) > > A friend has approached me about building an application for a small > chain of stores to manage inventory. "Very simple". I haven't yet > talked to her about the requirements. She did say they were quoted > (and rejected) a bid of $4000 to do the job. > > If I am going to do this at all it will have to be very quick and > dirty, and would be just to help a friend. > > Is Access 2007 runtime stable? Easy or difficult to use / install / > implement on site? > > -- > John W. Colby > 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 wdhindman at dejpolsystems.com Sat Nov 21 14:10:57 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 21 Nov 2009 15:10:57 -0500 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <4B083F29.9060507@colbyconsulting.com> References: <4B0827AF.6040608@colbyconsulting.com> <4B083F29.9060507@colbyconsulting.com> Message-ID: <28076D15D7DC4AFD98DC884C23883834@jislaptopdev> ...the Access 2003 runtime is included in the retail version but the distribution license is not ...if that doesn't bother you, install and run ...if you want the license then you have to buy the Office 2003 Developer Extensions ...readily available on e-bay. ...I'm with Rocky on this ...unless you need functionality only available in A2007, I'd go with A2003 ...dead reliable and a piece of cake to install and use ...and you get a friendly developer environment. ...otoh, an inventory app should be an almost ideal first c#.net program using SQL Server Express as the be ...you gotta start somewhere and in this case you get paid "something" for your time while learning. William -------------------------------------------------- From: "jwcolby" Sent: Saturday, November 21, 2009 2:27 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Loss leader (or just plain loss) > I thought the runtime was only included in 2007. > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin wrote: >> I'd recommend 2003. I have a fairly complex docketing system developed >> for >> a patent attorney which is maintained in 2003 but he runs in 2007 on some >> boxes. If there are problems it's on the 2007 machines. Maybe if I >> switched it over entirely to 2007 those problems might go away. But the >> IDE >> in 2007 is so difficult, I won't do it (fortunately it's not a deal >> breaker >> for the client). >> >> As far as runtime - I use Wise/Sagekey for 2003 apps and it works >> flawlessly. If it's going to be runtime, it doesn't matter to them which >> version, yes? >> >> Rocky >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Saturday, November 21, 2009 9:47 AM >> To: Access Developers discussion and problem solving; VBA >> Subject: [AccessD] Loss leader (or just plain loss) >> >> A friend has approached me about building an application for a small >> chain >> of stores to manage inventory. "Very simple". I haven't yet talked to >> her >> about the requirements. She did say they were quoted (and rejected) a >> bid >> of $4000 to do the job. >> >> If I am going to do this at all it will have to be very quick and dirty, >> and >> would be just to help a friend. >> >> Is Access 2007 runtime stable? Easy or difficult to use / install / >> implement on site? >> >> -- >> John W. Colby >> 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 miscellany at mvps.org Sat Nov 21 16:34:58 2009 From: miscellany at mvps.org (Steve Schapel) Date: Sun, 22 Nov 2009 11:34:58 +1300 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <28076D15D7DC4AFD98DC884C23883834@jislaptopdev> References: <4B0827AF.6040608@colbyconsulting.com> <4B083F29.9060507@colbyconsulting.com> <28076D15D7DC4AFD98DC884C23883834@jislaptopdev> Message-ID: <0BF81E799012498091B5C84C91FCC502@stevePC> As far as I know, it is unlikely there would be any difficulty running an Access 2003 MDE under the Access 2007 Runtime. Regards Steve -------------------------------------------------- From: "William Hindman" Sent: Sunday, November 22, 2009 9:10 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Loss leader (or just plain loss) > ...the Access 2003 runtime is included in the retail version but the > distribution license is not ...if that doesn't bother you, install and run > ...if you want the license then you have to buy the Office 2003 Developer > Extensions ...readily available on e-bay. > > ...I'm with Rocky on this ...unless you need functionality only available > in > A2007, I'd go with A2003 ...dead reliable and a piece of cake to install > and > use ...and you get a friendly developer environment. From accessd at shaw.ca Mon Nov 23 00:45:39 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 22 Nov 2009 22:45:39 -0800 Subject: [AccessD] Java-some interesting info In-Reply-To: <005501ca6acf$8d1fda90$0601a8c0@MSIMMSWS> References: <003301ca654d$cf2eabf0$0601a8c0@MSIMMSWS> <008e01ca6559$5d96f770$18c4e650$@spb.ru> <000c01ca656d$41a47ce0$0601a8c0@MSIMMSWS> <009701ca6571$9e805200$db80f600$@spb.ru> <1D1C58D90A5B499480C6BDED80F6FFCE@HAL9005> <005501ca6acf$8d1fda90$0601a8c0@MSIMMSWS> Message-ID: <7546C034D6F543CDADDE86B577081FDD@creativesystemdesigns.com> Hi Mark: All Google, Oracle, IBM and Sun applications are made from it. Most cross-platform servers use it. There is always lots of job openning for Java programmers and they are paid very well... 80k plus. It all depends on the programmers as to how good a good a java program is. It is by far the most used development language. I do not use Java and am personally much more interested in .Net development but those are statistics and the world we live in. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Saturday, November 21, 2009 9:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Java-some interesting info Indeed Java is popular, but it is productive ? Where I am contracting right now, a web app built in java/jsp/j2ee took about 6 man-months to develop. After the app appears never to reach stability, a hot-shot programmer comes along and rewrites it in 2 months using ASP.NET and VS2008. Actually Java's J2EE architecture appears to have failed. If you get onto the Springhouse website, you'll see mention of why their framework has replaced it (and why the company was recently sold for several hundred million dollars recently). >From Dice.com - USA openings: Java= 3280 C#= 1076 .NET= 1780 VBA= 69 > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Saturday, November 21, 2009 9:27 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Hi Rocky: > > Java is the most used language in the programming world. All > the universities, that I know, teach it in their computer > science courses. > Google is written in a combination of Java and JavaScript. > Below is the best list of languages and their status that I > have found: > > http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin > Sent: Saturday, November 14, 2009 4:04 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Well, I'm so happy I waited to learn VB.NET. It died while I > was waiting. > One vote for the procrastinators. > > My kid is 13. He's heavy into JAVA now. But what should he > learn for the future? What's going to be the platform du > jour in 5 years? 10 years? > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Shamil Salakhetdinov > Sent: Saturday, November 14, 2009 1:30 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > Mark, > > VB.Net is OK. > I can use both C# and VB.NET interchangeably as many .NET > developers do. > But I do prefer C#. > Nowadays in my development I'm using 99.99% of the time C# > (for several years now). > There are also F#, IronPython and IronRuby, which can be used > on .NET development platform... > Even more programming languages will come to .NET platform in > the future... > > Even Fortran can be used within .NET - > http://www.codeproject.com/KB/net-languages/intro_fortran.aspx > AFAIHF... > > Thank you. > > -- > Shamil > > P.S. I'd guess "new powerful webdev platform" uses C# by > default but you can always switch to VB.NET or use both... > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Saturday, November 14, 2009 11:59 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access/SQL > > VB.NET is dead, dead, dead. > Everyone has moved to C#...much more elegant. > On Microsoft's new, most powerful webdev platform one can only use C#. > Recent stat from DICE.COM: 68 VB.NET openings vs. 162 C# > openings....almost > 3:1 !!! > > Note: Even John Colby has moved over to C#. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > > Salakhetdinov > > Sent: Saturday, November 14, 2009 1:36 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] Access/SQL > > > > Mark, > > > > IMO C# + .NET Framework is the best ever general purpose > development > > platform for business applications. > > > > I'm talking from my experience in development of business > applications > > using PL/1, COBOL, Fortran (Fortran-77), Pascal, Delphi, C/C++, > > DataFlex, VBA, VB6, VB.NET, C#... > > > > One with good VB6/VBA development experience can start developing > > VB.NET business apps the next day/week provided they will > get proper > > guidelines/help/tutoring... > > > > I have such examples as e.g. when I have got advanced MS Excel COM > > Add-in and converted it (just starting using VB.NET this day) to a > > VB.NET one within three days (10,000+ code > > lines) - it's nothing special - most of experienced VB6/VBA > developers > > can do that. > > > > -- > > Shamil > > <<< snip >>> > > > __________ Information from ESET NOD32 Antivirus, version of > virus signature database 4608 (20091114) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.esetnod32.ru > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davidmcafee at gmail.com Mon Nov 23 01:45:47 2009 From: davidmcafee at gmail.com (David McAfee) Date: Sun, 22 Nov 2009 23:45:47 -0800 Subject: [AccessD] Fw: Article on Access In-Reply-To: References: Message-ID: <8786a4c00911222345t3af7d2f8h9617aed2ea555ac8@mail.gmail.com> I use ALT+O A L, ALT + O A T, Alt+O S W all the time :) On Sat, Nov 21, 2009 at 8:31 AM, Rocky Smolin wrote: > How's this? > > > Access is known as a Rapid application Development platform, and for the > development of custom databases and applications I have found it head and > shoulders above any other product in that respect. ?Since I develop > applications for business, speed of development the most important > consideration for me in choice of platform. ?(And my customers, too, by the > way!) > > Now like all programmers, I like doing the high level stuff - fashioning > slick queries, writing elegant functions, and the like. ?Getting all the > text boxes, labels and controls on a report or form lined up and positioned > where you want them is tedious, time consuming, and unrewarding - nudging > text or combo boxes, command buttons or labels around by the hundredth of an > inch until they're all lined up right. > > So while it might seem a bit trivial, one of my favorite features is the > ability to 'rubber band' a group of controls and line them up and/or space > them equally so that my forms and reports look crisp and professional. > > And being a mouseophobe, ?I always use the keyboard shortcuts to: > > Align Top (Alt OAT) > Align Bottom (Alt OAB) > Align Left (Alt OAL) > Align Right (Alt OAR) > > Equal Space Horizontally (Alt OZE) > Equal Space vertically (Alt OVE) > Increase/Decrease space Horizontally (Alt OZI/Alt OZD) > Increase/Decrease space Vertically (Alt OVI/Alt OVD) > > And once aligned, if the group of controls needs some nudging, again I use > the keyboard shortcut - Ctrl with the up, done, left and right arrows - to > move them about in small increments. > > These are not sexy or particularly sophisticated features of the IDE. But > they are workhorse functions that have saved me enormous time, aggravation, > and eyestrain. > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Wednesday, November 18, 2009 12:32 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Fw: Article on Access > > Someone has suggested that I clarify this request. I am looking for specific > favorite/least favorite items for Access, Excel, and Word. The original post > said "Office" -- so I want to be clear. > > Not getting much response, which surprises me! ;) > > Susan H. > > > > >> I'm going to write a series of articles of favorite/least favorite >> tips/features in the Office applications. The selling point is that >> these comments are your's and not mine for a change. :) If you want to >> be included, I'll include your contact information in the article -- >> similar to the security and add-in articles I wrote last year. >> >> >> >> I'll be writing one on Access. If you're interested, I'll need your >> favorite all-time Access tip/feature and your least favorite feature. >> Please mail them to me privately -- ss harkins at gmail dot com -- so >> we don't upset the kind moderators! >> >> I'm been asked not to include keyboard shortcuts. I need a >> user/code/feature type solution -- it can be very easy. If you want to >> include a keyboard shortcut, we can do so, as an after thought... "In >> addition, so and so uses the blah, blah shortcut regular..." Your >> least favorite can be something you find awkward, a bug, or a feature >> you think that should be available, but isn't -- or something else -- >> those are just ideas. What makes you pound your desk and spit out, "D*mn!" >> >> I'll be writing one for Word and Excel too, and possibly Outlook and >> PP if I can find enough people interested, so keep those in mind too >> if you're interested. >> >> Thanks! >> Susan >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Mon Nov 23 07:39:09 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 23 Nov 2009 05:39:09 -0800 Subject: [AccessD] Fw: Article on Access In-Reply-To: <8786a4c00911222345t3af7d2f8h9617aed2ea555ac8@mail.gmail.com> References: <8786a4c00911222345t3af7d2f8h9617aed2ea555ac8@mail.gmail.com> Message-ID: Size - don't know about that one. (Only been using Access for 10+ years now.) R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee Sent: Sunday, November 22, 2009 11:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fw: Article on Access I use ALT+O A L, ALT + O A T, Alt+O S W all the time :) On Sat, Nov 21, 2009 at 8:31 AM, Rocky Smolin wrote: > How's this? > > > Access is known as a Rapid application Development platform, and for > the development of custom databases and applications I have found it > head and shoulders above any other product in that respect. ?Since I > develop applications for business, speed of development the most > important consideration for me in choice of platform. ?(And my > customers, too, by the > way!) > > Now like all programmers, I like doing the high level stuff - > fashioning slick queries, writing elegant functions, and the like. ? > Getting all the text boxes, labels and controls on a report or form > lined up and positioned where you want them is tedious, time > consuming, and unrewarding - nudging text or combo boxes, command > buttons or labels around by the hundredth of an inch until they're all lined up right. > > So while it might seem a bit trivial, one of my favorite features is > the ability to 'rubber band' a group of controls and line them up > and/or space them equally so that my forms and reports look crisp and professional. > > And being a mouseophobe, ?I always use the keyboard shortcuts to: > > Align Top (Alt OAT) > Align Bottom (Alt OAB) > Align Left (Alt OAL) > Align Right (Alt OAR) > > Equal Space Horizontally (Alt OZE) > Equal Space vertically (Alt OVE) > Increase/Decrease space Horizontally (Alt OZI/Alt OZD) > Increase/Decrease space Vertically (Alt OVI/Alt OVD) > > And once aligned, if the group of controls needs some nudging, again I > use the keyboard shortcut - Ctrl with the up, done, left and right > arrows - to move them about in small increments. > > These are not sexy or particularly sophisticated features of the IDE. > But they are workhorse functions that have saved me enormous time, > aggravation, and eyestrain. > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Wednesday, November 18, 2009 12:32 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Fw: Article on Access > > Someone has suggested that I clarify this request. I am looking for > specific favorite/least favorite items for Access, Excel, and Word. > The original post said "Office" -- so I want to be clear. > > Not getting much response, which surprises me! ;) > > Susan H. > > > > >> I'm going to write a series of articles of favorite/least favorite >> tips/features in the Office applications. The selling point is that >> these comments are your's and not mine for a change. :) If you want >> to be included, I'll include your contact information in the article >> -- similar to the security and add-in articles I wrote last year. >> >> >> >> I'll be writing one on Access. If you're interested, I'll need your >> favorite all-time Access tip/feature and your least favorite feature. >> Please mail them to me privately -- ss harkins at gmail dot com -- so >> we don't upset the kind moderators! >> >> I'm been asked not to include keyboard shortcuts. I need a >> user/code/feature type solution -- it can be very easy. If you want >> to include a keyboard shortcut, we can do so, as an after thought... >> "In addition, so and so uses the blah, blah shortcut regular..." Your >> least favorite can be something you find awkward, a bug, or a feature >> you think that should be available, but isn't -- or something else -- >> those are just ideas. What makes you pound your desk and spit out, "D*mn!" >> >> I'll be writing one for Word and Excel too, and possibly Outlook and >> PP if I can find enough people interested, so keep those in mind too >> if you're interested. >> >> Thanks! >> Susan >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Mon Nov 23 07:50:12 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 23 Nov 2009 08:50:12 -0500 Subject: [AccessD] SPAM-LOW: Re: Fw: Article on Access In-Reply-To: References: <8786a4c00911222345t3af7d2f8h9617aed2ea555ac8@mail.gmail.com> Message-ID: <4B0A9314.60306@colbyconsulting.com> I use Size to grid all of the time to get all of the objects to align to the grid properly. John W. Colby www.ColbyConsulting.com Rocky Smolin wrote: > Size - don't know about that one. (Only been using Access for 10+ years > now.) > > R > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David McAfee > Sent: Sunday, November 22, 2009 11:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fw: Article on Access > > I use ALT+O A L, ALT + O A T, Alt+O S W all the time :) > > On Sat, Nov 21, 2009 at 8:31 AM, Rocky Smolin > wrote: >> How's this? >> >> >> Access is known as a Rapid application Development platform, and for >> the development of custom databases and applications I have found it >> head and shoulders above any other product in that respect. Since I >> develop applications for business, speed of development the most >> important consideration for me in choice of platform. (And my >> customers, too, by the >> way!) >> >> Now like all programmers, I like doing the high level stuff - >> fashioning slick queries, writing elegant functions, and the like. >> Getting all the text boxes, labels and controls on a report or form >> lined up and positioned where you want them is tedious, time >> consuming, and unrewarding - nudging text or combo boxes, command >> buttons or labels around by the hundredth of an inch until they're all > lined up right. >> So while it might seem a bit trivial, one of my favorite features is >> the ability to 'rubber band' a group of controls and line them up >> and/or space them equally so that my forms and reports look crisp and > professional. >> And being a mouseophobe, I always use the keyboard shortcuts to: >> >> Align Top (Alt OAT) >> Align Bottom (Alt OAB) >> Align Left (Alt OAL) >> Align Right (Alt OAR) >> >> Equal Space Horizontally (Alt OZE) >> Equal Space vertically (Alt OVE) >> Increase/Decrease space Horizontally (Alt OZI/Alt OZD) >> Increase/Decrease space Vertically (Alt OVI/Alt OVD) >> >> And once aligned, if the group of controls needs some nudging, again I >> use the keyboard shortcut - Ctrl with the up, done, left and right >> arrows - to move them about in small increments. >> >> These are not sexy or particularly sophisticated features of the IDE. >> But they are workhorse functions that have saved me enormous time, >> aggravation, and eyestrain. >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan >> Harkins >> Sent: Wednesday, November 18, 2009 12:32 PM >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Fw: Article on Access >> >> Someone has suggested that I clarify this request. I am looking for >> specific favorite/least favorite items for Access, Excel, and Word. >> The original post said "Office" -- so I want to be clear. >> >> Not getting much response, which surprises me! ;) >> >> Susan H. >> >> >> >> >>> I'm going to write a series of articles of favorite/least favorite >>> tips/features in the Office applications. The selling point is that >>> these comments are your's and not mine for a change. :) If you want >>> to be included, I'll include your contact information in the article >>> -- similar to the security and add-in articles I wrote last year. >>> >>> >>> >>> I'll be writing one on Access. If you're interested, I'll need your >>> favorite all-time Access tip/feature and your least favorite feature. >>> Please mail them to me privately -- ss harkins at gmail dot com -- so >>> we don't upset the kind moderators! >>> >>> I'm been asked not to include keyboard shortcuts. I need a >>> user/code/feature type solution -- it can be very easy. If you want >>> to include a keyboard shortcut, we can do so, as an after thought... >>> "In addition, so and so uses the blah, blah shortcut regular..." Your >>> least favorite can be something you find awkward, a bug, or a feature >>> you think that should be available, but isn't -- or something else -- >>> those are just ideas. What makes you pound your desk and spit out, > "D*mn!" >>> I'll be writing one for Word and Excel too, and possibly Outlook and >>> PP if I can find enough people interested, so keep those in mind too >>> if you're interested. >>> >>> Thanks! >>> Susan >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Mon Nov 23 07:57:41 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 23 Nov 2009 08:57:41 -0500 Subject: [AccessD] XNA game development Message-ID: <4B0A94D5.3010601@colbyconsulting.com> Have you ever wanted to write your own little windows game. Microsoft provides a free game development framework called XNA. It runs in C# express and everything is free free free. It is designed to get you writing games for the XBox BUT... it can write games for Windows as well, and in fact they are apparently interchangeable, once written they can be played on the XBox (but not for free). The best part is that they have a very basic cannon / flying saucer demo game with videos for how to develop this game, all of the source code, sprites etc. I have stepped through the first few chapters and it really does start at ground zero. They claim you don't even need to know C# to follow the tutorial. As we all know, writing a project that holds your interest is the best way to get involved and learn a language. If writing a game is your interest, this might be just the ticket to getting into C#. http://creators.xna.com/en-US/education/gettingstarted/bg2d/chapter1 -- John W. Colby www.ColbyConsulting.com From fuller.artful at gmail.com Mon Nov 23 11:24:46 2009 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 23 Nov 2009 12:24:46 -0500 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <0BF81E799012498091B5C84C91FCC502@stevePC> References: <4B0827AF.6040608@colbyconsulting.com> <4B083F29.9060507@colbyconsulting.com> <28076D15D7DC4AFD98DC884C23883834@jislaptopdev> <0BF81E799012498091B5C84C91FCC502@stevePC> Message-ID: <29f585dd0911230924r2dd00817o31f962c1da2ad0b9@mail.gmail.com> The A2K7 RT works just fine. The part I would be worried about is the $4K turn-down. Good opportunity to get bitten or lose a friend. A. From jwcolby at colbyconsulting.com Mon Nov 23 11:35:50 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 23 Nov 2009 12:35:50 -0500 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <29f585dd0911230924r2dd00817o31f962c1da2ad0b9@mail.gmail.com> References: <4B0827AF.6040608@colbyconsulting.com> <4B083F29.9060507@colbyconsulting.com> <28076D15D7DC4AFD98DC884C23883834@jislaptopdev> <0BF81E799012498091B5C84C91FCC502@stevePC> <29f585dd0911230924r2dd00817o31f962c1da2ad0b9@mail.gmail.com> Message-ID: <4B0AC7F6.4050509@colbyconsulting.com> LOL, yea. It turns out that the owner has decided to use something that already exists. John W. Colby www.ColbyConsulting.com Arthur Fuller wrote: > The A2K7 RT works just fine. The part I would be worried about is the $4K > turn-down. Good opportunity to get bitten or lose a friend. > > A. From jwcolby at colbyconsulting.com Mon Nov 23 15:57:12 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 23 Nov 2009 16:57:12 -0500 Subject: [AccessD] XNA is darned fun Message-ID: <4B0B0538.1020904@colbyconsulting.com> I have to say that this is darned fun. I have worked through much of the tutorial I posted a link to. I have ships flying and cannonballs firing. Woohoo! Very very cool! I know what I will be doing over the Thanksgiving holiday. -- John W. Colby www.ColbyConsulting.com From Darryl.Collins at anz.com Mon Nov 23 16:35:21 2009 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Tue, 24 Nov 2009 09:35:21 +1100 Subject: [AccessD] Loss leader (or just plain loss) In-Reply-To: <29f585dd0911230924r2dd00817o31f962c1da2ad0b9@mail.gmail.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E8101688C4D@EXUAU020HWT110.oceania.corp.anz.com> Yes... This would be my thought on this too. I think you need to be very clear about what you are doing for the $4K and what they expect for their $4K. Also what about 'on-going' support and scope creep etc? With friends stuff, sometimes it is better to walk away.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Tuesday, 24 November 2009 4:25 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Loss leader (or just plain loss) The A2K7 RT works just fine. The part I would be worried about is the $4K turn-down. Good opportunity to get bitten or lose a friend. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From Gustav at cactus.dk Tue Nov 24 04:50:40 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 24 Nov 2009 11:50:40 +0100 Subject: [AccessD] This is hot: WCF RIA Services Message-ID: Hi all RIA: Rich Internet Applications Microsoft WCF RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier Though not explained at a place to find, what it does is automatically to set up for you a web service which your Silverlight frontend communicates with, and to establish the client side code that handles this communication. http://silverlight.net/getstarted/riaservices/ Watch the 1-hour video "Introduction to WCF RIA Services" and combine this with the racing speed at which Silverlight evolves, and it will erase any doubt you still may have about browser-based applications. Note too, that while this works in VS2008 and with Silverlight 3 it is really aimed at VS2010 and Silverlight 4 both currently available as betas. I attended a developer meeting a couple of days ago where we ran a similar walk-through, and it was very convincing. This is exactly what I for years have been looking for. /gustav From accessd at shaw.ca Tue Nov 24 11:29:29 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 24 Nov 2009 09:29:29 -0800 Subject: [AccessD] This is hot: WCF RIA Services In-Reply-To: References: Message-ID: Hi Gustav: Thanks for the heads up Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, November 24, 2009 2:51 AM To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [AccessD] This is hot: WCF RIA Services Hi all RIA: Rich Internet Applications Microsoft WCF RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms. RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier Though not explained at a place to find, what it does is automatically to set up for you a web service which your Silverlight frontend communicates with, and to establish the client side code that handles this communication. http://silverlight.net/getstarted/riaservices/ Watch the 1-hour video "Introduction to WCF RIA Services" and combine this with the racing speed at which Silverlight evolves, and it will erase any doubt you still may have about browser-based applications. Note too, that while this works in VS2008 and with Silverlight 3 it is really aimed at VS2010 and Silverlight 4 both currently available as betas. I attended a developer meeting a couple of days ago where we ran a similar walk-through, and it was very convincing. This is exactly what I for years have been looking for. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Nov 25 13:58:06 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 25 Nov 2009 19:58:06 -0000 Subject: [AccessD] XNA game development In-Reply-To: <4B0A94D5.3010601@colbyconsulting.com> References: <4B0A94D5.3010601@colbyconsulting.com> Message-ID: <4b0d8c7d.0aaa660a.4889.ffffd06b@mx.google.com> When you have mastered that and feel the need to move on to something more mature and serious, you might want to try this... http://superherosquad.marvel.com/create_your_own_comic max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 23 November 2009 13:58 To: VBA; Access Developers discussion and problem solving Subject: [AccessD] XNA game development Have you ever wanted to write your own little windows game. Microsoft provides a free game development framework called XNA. It runs in C# express and everything is free free free. It is designed to get you writing games for the XBox BUT... it can write games for Windows as well, and in fact they are apparently interchangeable, once written they can be played on the XBox (but not for free). The best part is that they have a very basic cannon / flying saucer demo game with videos for how to develop this game, all of the source code, sprites etc. I have stepped through the first few chapters and it really does start at ground zero. They claim you don't even need to know C# to follow the tutorial. As we all know, writing a project that holds your interest is the best way to get involved and learn a language. If writing a game is your interest, this might be just the ticket to getting into C#. http://creators.xna.com/en-US/education/gettingstarted/bg2d/chapter1 -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Nov 25 14:11:18 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 25 Nov 2009 15:11:18 -0500 Subject: [AccessD] XNA game development In-Reply-To: <4b0d8c7d.0aaa660a.4889.ffffd06b@mx.google.com> References: <4B0A94D5.3010601@colbyconsulting.com> <4b0d8c7d.0aaa660a.4889.ffffd06b@mx.google.com> Message-ID: <4B0D8F66.2000301@colbyconsulting.com> LOL. Are you ridiculing my inner child? I spend hours doing serious stuff every day. My inner child needs a break sometimes. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > When you have mastered that and feel the need to move on to something more > mature and serious, you might want to try this... > > > http://superherosquad.marvel.com/create_your_own_comic > > max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 23 November 2009 13:58 > To: VBA; Access Developers discussion and problem solving > Subject: [AccessD] XNA game development > > Have you ever wanted to write your own little windows game. Microsoft > provides a free game > development framework called XNA. It runs in C# express and everything is > free free free. > > It is designed to get you writing games for the XBox BUT... it can write > games for Windows as well, > and in fact they are apparently interchangeable, once written they can be > played on the XBox (but > not for free). > > The best part is that they have a very basic cannon / flying saucer demo > game with videos for how to > develop this game, all of the source code, sprites etc. I have stepped > through the first few > chapters and it really does start at ground zero. They claim you don't even > need to know C# to > follow the tutorial. > > As we all know, writing a project that holds your interest is the best way > to get involved and learn > a language. If writing a game is your interest, this might be just the > ticket to getting into C#. > > http://creators.xna.com/en-US/education/gettingstarted/bg2d/chapter1 > From max.wanadoo at gmail.com Wed Nov 25 14:18:38 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 25 Nov 2009 20:18:38 -0000 Subject: [AccessD] XNA game development In-Reply-To: <4B0D8F66.2000301@colbyconsulting.com> References: <4B0A94D5.3010601@colbyconsulting.com> <4b0d8c7d.0aaa660a.4889.ffffd06b@mx.google.com> <4B0D8F66.2000301@colbyconsulting.com> Message-ID: <4b0d914e.0506d00a.5881.ffffeed4@mx.google.com> I bet your 8 year old will love it. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 25 November 2009 20:11 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XNA game development LOL. Are you ridiculing my inner child? I spend hours doing serious stuff every day. My inner child needs a break sometimes. ;) John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > When you have mastered that and feel the need to move on to something more > mature and serious, you might want to try this... > > > http://superherosquad.marvel.com/create_your_own_comic > > max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: 23 November 2009 13:58 > To: VBA; Access Developers discussion and problem solving > Subject: [AccessD] XNA game development > > Have you ever wanted to write your own little windows game. Microsoft > provides a free game > development framework called XNA. It runs in C# express and everything is > free free free. > > It is designed to get you writing games for the XBox BUT... it can write > games for Windows as well, > and in fact they are apparently interchangeable, once written they can be > played on the XBox (but > not for free). > > The best part is that they have a very basic cannon / flying saucer demo > game with videos for how to > develop this game, all of the source code, sprites etc. I have stepped > through the first few > chapters and it really does start at ground zero. They claim you don't even > need to know C# to > follow the tutorial. > > As we all know, writing a project that holds your interest is the best way > to get involved and learn > a language. If writing a game is your interest, this might be just the > ticket to getting into C#. > > http://creators.xna.com/en-US/education/gettingstarted/bg2d/chapter1 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Wed Nov 25 14:30:20 2009 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 25 Nov 2009 12:30:20 -0800 Subject: [AccessD] Time warp? Message-ID: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> I just received an Access database from a client, generated by Walmart's very sophisticated online supplier reporting system. I was interested to find out if it would be in Access 2007 or 2003 format. Wrong on both counts - Access 97! Doug Steele From max.wanadoo at gmail.com Wed Nov 25 14:38:06 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 25 Nov 2009 20:38:06 -0000 Subject: [AccessD] Time warp? In-Reply-To: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> Message-ID: <4b0d95e0.0f67f10a.1563.0118@mx.google.com> If it aint broken, don't fix it... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: 25 November 2009 20:30 To: Access Developers discussion and problem solving Subject: [AccessD] Time warp? I just received an Access database from a client, generated by Walmart's very sophisticated online supplier reporting system. I was interested to find out if it would be in Access 2007 or 2003 format. Wrong on both counts - Access 97! Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Nov 25 14:42:52 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 25 Nov 2009 15:42:52 -0500 Subject: [AccessD] Time warp? In-Reply-To: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> Message-ID: <4B0D96CC.3080408@colbyconsulting.com> If it is just for reporting, what more do you need? John W. Colby www.ColbyConsulting.com Doug Steele wrote: > I just received an Access database from a client, generated by Walmart's > very sophisticated online supplier reporting system. I was interested to > find out if it would be in Access 2007 or 2003 format. Wrong on both counts > - Access 97! > > Doug Steele From Darryl.Collins at anz.com Wed Nov 25 15:14:41 2009 From: Darryl.Collins at anz.com (Collins, Darryl) Date: Thu, 26 Nov 2009 08:14:41 +1100 Subject: [AccessD] Time warp? In-Reply-To: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> Message-ID: <6DC4725FDCDD72428D6114F1B6CC6E8101688C67@EXUAU020HWT110.oceania.corp.anz.com> I guess that makes sense though as they would have to be prepared for oldest likely software. Often you still get spreadsheets in XL97 format from external systems for the same reason. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Thursday, 26 November 2009 7:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] Time warp? I just received an Access database from a client, generated by Walmart's very sophisticated online supplier reporting system. I was interested to find out if it would be in Access 2007 or 2003 format. Wrong on both counts - Access 97! Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com "This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Australia and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related entities including ANZ National Bank Limited (together "ANZ"). ANZ does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication." From stuart at lexacorp.com.pg Wed Nov 25 15:26:45 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 26 Nov 2009 07:26:45 +1000 Subject: [AccessD] Time warp? In-Reply-To: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> Message-ID: <4B0DA115.27169.3174348B@stuart.lexacorp.com.pg> Good policy - use the lowest comon denominator for data transfer. Some people out there are still using 97 for front end applications (including one of my clients). Like Max says, if it ain't broke...... -- Stuart On 25 Nov 2009 at 12:30, Doug Steele wrote: > I just received an Access database from a client, generated by Walmart's > very sophisticated online supplier reporting system. I was interested to > find out if it would be in Access 2007 or 2003 format. Wrong on both counts > - Access 97! > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Wed Nov 25 15:42:03 2009 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 25 Nov 2009 21:42:03 -0000 Subject: [AccessD] Time warp? In-Reply-To: <4B0DA115.27169.3174348B@stuart.lexacorp.com.pg> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <4B0DA115.27169.3174348B@stuart.lexacorp.com.pg> Message-ID: <4b0da4e4.1818d00a.6373.5c13@mx.google.com> You may read this in "Ripley's believe it or not" but I wrote a program in FoxBase (before FoxPro) which is still being used for running a marina - berths, moorings etc. Must have been around 20+ years ago. AFAIK the PC is still the same one too....I just don't go anywhere near it, just in case... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 25 November 2009 21:27 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Time warp? Good policy - use the lowest comon denominator for data transfer. Some people out there are still using 97 for front end applications (including one of my clients). Like Max says, if it ain't broke...... -- Stuart On 25 Nov 2009 at 12:30, Doug Steele wrote: > I just received an Access database from a client, generated by Walmart's > very sophisticated online supplier reporting system. I was interested to > find out if it would be in Access 2007 or 2003 format. Wrong on both counts > - Access 97! > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Nov 25 16:16:37 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Wed, 25 Nov 2009 14:16:37 -0800 Subject: [AccessD] Time warp? In-Reply-To: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> Message-ID: <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> And I support an interest banking application that was written almost 40 years ago. The best it can do graphically do is emphasis letters but it is paid for, works every time and it is easy to support. My thoughts on an application on whether it should be upgraded; is whether it does what it is supposed to. If the answer is 'yes' it stays and if 'no'... time to change. Why change just to change. I support more 'older' apps than I do new ones. ;-) Access97 was perhaps the best version of Access ever created; maybe one of the best application ever built. It was and is a mile post of its time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Wednesday, November 25, 2009 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Time warp? I just received an Access database from a client, generated by Walmart's very sophisticated online supplier reporting system. I was interested to find out if it would be in Access 2007 or 2003 format. Wrong on both counts - Access 97! Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Wed Nov 25 16:32:29 2009 From: dbdoug at gmail.com (Doug Steele) Date: Wed, 25 Nov 2009 14:32:29 -0800 Subject: [AccessD] Time warp? In-Reply-To: <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> Message-ID: <4dd71a0c0911251432n6c635652x84799e501f2c6e0@mail.gmail.com> On Wed, Nov 25, 2009 at 2:16 PM, Jim Lawrence wrote: > > Access97 was perhaps the best version of Access ever created; maybe one of > the best application ever built. > It was and is a mile post of its time. > > Just like so many members of this group :) Doug From rockysmolin at bchacc.com Wed Nov 25 16:51:11 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 25 Nov 2009 14:51:11 -0800 Subject: [AccessD] Time warp? In-Reply-To: <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> Message-ID: <1DA1E0E4ED5D437EAB8BC5E20DDDC648@HAL9005> Hey - older apps for older guys, no? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Wednesday, November 25, 2009 2:17 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Time warp? And I support an interest banking application that was written almost 40 years ago. The best it can do graphically do is emphasis letters but it is paid for, works every time and it is easy to support. My thoughts on an application on whether it should be upgraded; is whether it does what it is supposed to. If the answer is 'yes' it stays and if 'no'... time to change. Why change just to change. I support more 'older' apps than I do new ones. ;-) Access97 was perhaps the best version of Access ever created; maybe one of the best application ever built. It was and is a mile post of its time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Wednesday, November 25, 2009 12:30 PM To: Access Developers discussion and problem solving Subject: [AccessD] Time warp? I just received an Access database from a client, generated by Walmart's very sophisticated online supplier reporting system. I was interested to find out if it would be in Access 2007 or 2003 format. Wrong on both counts - Access 97! Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Nov 25 20:22:00 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 25 Nov 2009 21:22:00 -0500 Subject: [AccessD] Time warp? In-Reply-To: <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> Message-ID: <4B0DE648.6020207@colbyconsulting.com> In my opinion 2003 was the best version ever created. There were issues with classes and withevents back in 97. John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > And I support an interest banking application that was written almost 40 > years ago. The best it can do graphically do is emphasis letters but it is > paid for, works every time and it is easy to support. > > My thoughts on an application on whether it should be upgraded; is whether > it does what it is supposed to. If the answer is 'yes' it stays and if > 'no'... time to change. Why change just to change. > > I support more 'older' apps than I do new ones. ;-) > > Access97 was perhaps the best version of Access ever created; maybe one of > the best application ever built. It was and is a mile post of its time. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Wednesday, November 25, 2009 12:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Time warp? > > I just received an Access database from a client, generated by Walmart's > very sophisticated online supplier reporting system. I was interested to > find out if it would be in Access 2007 or 2003 format. Wrong on both counts > - Access 97! > > Doug Steele From marksimms at verizon.net Wed Nov 25 21:50:44 2009 From: marksimms at verizon.net (Mark Simms) Date: Wed, 25 Nov 2009 22:50:44 -0500 Subject: [AccessD] Time warp? In-Reply-To: <4B0DE648.6020207@colbyconsulting.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> <4B0DE648.6020207@colbyconsulting.com> Message-ID: <016701ca6e4b$a20109a0$0601a8c0@MSIMMSWS> So what's happened in the last 7 to 13 years at MSFT ? I'll tell you what: ATTITUDE. The current techies there are a bunch of spoiled slackers. And...they're the "dash-trash" gang....and proud of it: http://blog.seattlepi.com/microsoft/archives/160076.asp > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, November 25, 2009 9:22 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Time warp? > > In my opinion 2003 was the best version ever created. There > were issues with classes and withevents back in 97. > > From rockysmolin at bchacc.com Wed Nov 25 23:03:48 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Wed, 25 Nov 2009 21:03:48 -0800 Subject: [AccessD] Time warp? In-Reply-To: <4B0DE648.6020207@colbyconsulting.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com><497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> <4B0DE648.6020207@colbyconsulting.com> Message-ID: <223BBF57E13542249B40B2D9BB439DB6@HAL9005> Agree about A2003. Just had an old client call tonight about transferring an old app from WXP & A2003 to W7 and A2007. Would you believe they were having problems? I'm going there next week to take a look. Meanwhile, does O2010 look as good as O2003? Because no matter how much we like it O2003 will go away some day just line A97. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, November 25, 2009 6:22 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Time warp? In my opinion 2003 was the best version ever created. There were issues with classes and withevents back in 97. John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > And I support an interest banking application that was written almost 40 > years ago. The best it can do graphically do is emphasis letters but it is > paid for, works every time and it is easy to support. > > My thoughts on an application on whether it should be upgraded; is whether > it does what it is supposed to. If the answer is 'yes' it stays and if > 'no'... time to change. Why change just to change. > > I support more 'older' apps than I do new ones. ;-) > > Access97 was perhaps the best version of Access ever created; maybe one of > the best application ever built. It was and is a mile post of its time. > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Wednesday, November 25, 2009 12:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Time warp? > > I just received an Access database from a client, generated by Walmart's > very sophisticated online supplier reporting system. I was interested to > find out if it would be in Access 2007 or 2003 format. Wrong on both counts > - Access 97! > > Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Nov 26 00:11:13 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 26 Nov 2009 01:11:13 -0500 Subject: [AccessD] SPAM-LOW: Re: Time warp? In-Reply-To: <016701ca6e4b$a20109a0$0601a8c0@MSIMMSWS> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> <4B0DE648.6020207@colbyconsulting.com> <016701ca6e4b$a20109a0$0601a8c0@MSIMMSWS> Message-ID: <4B0E1C01.9000303@colbyconsulting.com> What the heck is that about? John W. Colby www.ColbyConsulting.com Mark Simms wrote: > So what's happened in the last 7 to 13 years at MSFT ? > I'll tell you what: ATTITUDE. > The current techies there are a bunch of spoiled slackers. > > And...they're the "dash-trash" gang....and proud of it: > http://blog.seattlepi.com/microsoft/archives/160076.asp > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, November 25, 2009 9:22 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Time warp? >> >> In my opinion 2003 was the best version ever created. There >> were issues with classes and withevents back in 97. >> >> > > > From andy at minstersystems.co.uk Thu Nov 26 01:25:57 2009 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Nov 2009 07:25:57 -0000 Subject: [AccessD] Time warp? In-Reply-To: <4B0DA115.27169.3174348B@stuart.lexacorp.com.pg> Message-ID: "Some people out there are still using 97 for front end applications" Me, for one. Not building new apps in A97 but certainly maintaining and developing existing ones. Andy -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: 25 November 2009 21:27 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Time warp? Good policy - use the lowest comon denominator for data transfer. Some people out there are still using 97 for front end applications (including one of my clients). Like Max says, if it ain't broke...... -- Stuart On 25 Nov 2009 at 12:30, Doug Steele wrote: > I just received an Access database from a client, generated by Walmart's > very sophisticated online supplier reporting system. I was interested to > find out if it would be in Access 2007 or 2003 format. Wrong on both counts > - Access 97! > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Thu Nov 26 04:14:47 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 26 Nov 2009 20:14:47 +1000 Subject: [AccessD] Time warp? In-Reply-To: References: <4B0DA115.27169.3174348B@stuart.lexacorp.com.pg>, Message-ID: <4B0E5517.131.343364EC@stuart.lexacorp.com.pg> Just did two mods on an Access 97 system for a client this afternoon. -- Stuart On 26 Nov 2009 at 7:25, Andy Lacey wrote: > "Some people out there are still using 97 for front end applications" > > Me, for one. Not building new apps in A97 but certainly maintaining and > developing existing ones. > > Andy > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan > Sent: 25 November 2009 21:27 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Time warp? > > > Good policy - use the lowest comon denominator for data transfer. > > Some people out there are still using 97 for front end applications > (including one of my > clients). Like Max says, if it ain't broke...... > > -- > Stuart > > On 25 Nov 2009 at 12:30, Doug Steele wrote: > > > I just received an Access database from a client, generated by Walmart's > > very sophisticated online supplier reporting system. I was interested to > > find out if it would be in Access 2007 or 2003 format. Wrong on both > counts > > - Access 97! > > > > Doug Steele > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From dbdoug at gmail.com Thu Nov 26 10:46:38 2009 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 26 Nov 2009 08:46:38 -0800 Subject: [AccessD] Currency symbols Message-ID: <4dd71a0c0911260846t17e855ey68e0b04b82a8fa5a@mail.gmail.com> I've just had a request to change a purchase order database to allow printing of Euro currency as required. My first crack at this is to do the following in each currency text box on the printout: =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") (I hope the Euro sign came through in the second format string) This is going to be a bit tedious - does anyone have a better method? Some reports will have to both both EUR and USD currencies, so I can't set anything before the report prints. Doug Steele From Gustav at cactus.dk Thu Nov 26 11:02:59 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Nov 2009 18:02:59 +0100 Subject: [AccessD] Currency symbols Message-ID: Hi Doug You could use: =IIf(CustCurrency="USD","$","?") & Format(POValue,"#,##0.00") /gustav >>> dbdoug at gmail.com 26-11-2009 17:46 >>> I've just had a request to change a purchase order database to allow printing of Euro currency as required. My first crack at this is to do the following in each currency text box on the printout: =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") (I hope the Euro sign came through in the second format string) This is going to be a bit tedious - does anyone have a better method? Some reports will have to both both EUR and USD currencies, so I can't set anything before the report prints. Doug Steele From iggy at nanaimo.ark.com Thu Nov 26 11:04:29 2009 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 26 Nov 2009 09:04:29 -0800 Subject: [AccessD] Printing in Colour Message-ID: <4B0EB51D.1080804@nanaimo.ark.com> Hey All This is new to me but some of my reports, display colour in the preview mode but only print black and white, whereas others are fine, they display and print in colour. Checked the printer properties and for the problem reports it says greyscale. The only thing I can think of is these reports originated in Access 2002 and have been converted to Access 2003. Any suggestions on how to get my colours back? and please don't recommend buying a pack of crayons. Thanks From davidmcafee at gmail.com Thu Nov 26 11:32:53 2009 From: davidmcafee at gmail.com (David McAfee) Date: Thu, 26 Nov 2009 09:32:53 -0800 Subject: [AccessD] Printing in Colour In-Reply-To: <4B0EB51D.1080804@nanaimo.ark.com> References: <4B0EB51D.1080804@nanaimo.ark.com> Message-ID: <8786a4c00911260932k4cffebd4q2098fcc325d172d6@mail.gmail.com> I was going to recommend colored markers :P Can you pic a different printer in design mode and save it. Close the report and switch back to the printer you wanted and see if it now prints in color. On Thu, Nov 26, 2009 at 9:04 AM, Tony Septav wrote: > Hey All > This is new to me but some of my reports, display colour in the preview > mode but only print black and white, whereas others are fine, they > display and print in colour. Checked the printer properties and for the > problem reports ?it says greyscale. ?The only thing I can think of is > these reports originated in Access 2002 and have been converted to > Access 2003. Any suggestions on how to get my colours back? and please > don't recommend buying a pack of crayons. > > Thanks > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Thu Nov 26 11:55:03 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Thu, 26 Nov 2009 09:55:03 -0800 Subject: [AccessD] Currency symbols In-Reply-To: <4dd71a0c0911260846t17e855ey68e0b04b82a8fa5a@mail.gmail.com> References: <4dd71a0c0911260846t17e855ey68e0b04b82a8fa5a@mail.gmail.com> Message-ID: <9F61F62C45C24E21AD4B38CFAE40594A@HAL9005> I'm not sure this is less work but: In a packaged app that I sell overseas (when I'm lucky) I took the Currency format out of the dollar figures throughout the app and replaced it with Standard. On the user's Preferences form, I gave them a place where they could enter whatever currency symbol they want and made it big enough to hold three characters so they could put in Rls, Pta, or whatever. Then I put a text box to the left of the text box with the money numbers to print a currency symbol. The control source for the currency symbol text box is =currencysymbol() where currencysymbol() is a function which returns the currency symbol from the user's preferences table. So the user has control over what symbol they want on their money numbers. But this may be overkill for you. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Thursday, November 26, 2009 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Currency symbols I've just had a request to change a purchase order database to allow printing of Euro currency as required. My first crack at this is to do the following in each currency text box on the printout: =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") (I hope the Euro sign came through in the second format string) This is going to be a bit tedious - does anyone have a better method? Some reports will have to both both EUR and USD currencies, so I can't set anything before the report prints. Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Thu Nov 26 11:59:03 2009 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 26 Nov 2009 09:59:03 -0800 Subject: [AccessD] Printing in Colour In-Reply-To: <8786a4c00911260932k4cffebd4q2098fcc325d172d6@mail.gmail.com> References: <4B0EB51D.1080804@nanaimo.ark.com> <8786a4c00911260932k4cffebd4q2098fcc325d172d6@mail.gmail.com> Message-ID: <4B0EC1E7.7020106@nanaimo.ark.com> Hey David I only have one printer connected to my computer. I am using the default printer mode for the reports. A friend of mine tried it on his machine and he gets the same thing some reports with colour some without. There has to be a switch somewhere to tell the report to print in colour and not grayscale. Thanks David McAfee wrote: >I was going to recommend colored markers :P > >Can you pic a different printer in design mode and save it. >Close the report and switch back to the printer you wanted and see if >it now prints in color. > > > >On Thu, Nov 26, 2009 at 9:04 AM, Tony Septav wrote: > > >>Hey All >>This is new to me but some of my reports, display colour in the preview >>mode but only print black and white, whereas others are fine, they >>display and print in colour. Checked the printer properties and for the >>problem reports it says greyscale. The only thing I can think of is >>these reports originated in Access 2002 and have been converted to >>Access 2003. Any suggestions on how to get my colours back? and please >>don't recommend buying a pack of crayons. >> >>Thanks >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> > > > From dbdoug at gmail.com Thu Nov 26 12:09:54 2009 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 26 Nov 2009 10:09:54 -0800 Subject: [AccessD] Currency symbols In-Reply-To: References: Message-ID: <4dd71a0c0911261009m388f87aco169a37cbf0ede146@mail.gmail.com> Thanks, Gustav. That will save me some typing.. On Thu, Nov 26, 2009 at 9:02 AM, Gustav Brock wrote: > Hi Doug > > You could use: > > =IIf(CustCurrency="USD","$","?") & Format(POValue,"#,##0.00") > > /gustav > > > >>> dbdoug at gmail.com 26-11-2009 17:46 >>> > I've just had a request to change a purchase order database to allow > printing of Euro currency as required. My first crack at this is to do the > following in each currency text box on the printout: > > > =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") > > (I hope the Euro sign came through in the second format string) > > This is going to be a bit tedious - does anyone have a better method? Some > reports will have to both both EUR and USD currencies, so I can't set > anything before the report prints. > > Doug Steele > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dbdoug at gmail.com Thu Nov 26 12:12:16 2009 From: dbdoug at gmail.com (Doug Steele) Date: Thu, 26 Nov 2009 10:12:16 -0800 Subject: [AccessD] Currency symbols In-Reply-To: <9F61F62C45C24E21AD4B38CFAE40594A@HAL9005> References: <4dd71a0c0911260846t17e855ey68e0b04b82a8fa5a@mail.gmail.com> <9F61F62C45C24E21AD4B38CFAE40594A@HAL9005> Message-ID: <4dd71a0c0911261012q38352db5md18c7513a7ba98cb@mail.gmail.com> Thanks, Rocky. The idea of a separate text box for the currency symbol is excellent - if my client wants me to convert the db to multicurrency on all screens and reports, I'll try that. Doug On Thu, Nov 26, 2009 at 9:55 AM, Rocky Smolin wrote: > I'm not sure this is less work but: > > In a packaged app that I sell overseas (when I'm lucky) I took the Currency > format out of the dollar figures throughout the app and replaced it with > Standard. On the user's Preferences form, I gave them a place where they > could enter whatever currency symbol they want and made it big enough to > hold three characters so they could put in Rls, Pta, or whatever. > > Then I put a text box to the left of the text box with the money numbers to > print a currency symbol. The control source for the currency symbol text > box is =currencysymbol() where currencysymbol() is a function which returns > the currency symbol from the user's preferences table. > > So the user has control over what symbol they want on their money numbers. > But this may be overkill for you. > > Rocky > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele > Sent: Thursday, November 26, 2009 8:47 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Currency symbols > > I've just had a request to change a purchase order database to allow > printing of Euro currency as required. My first crack at this is to do the > following in each currency text box on the printout: > > > =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") > > (I hope the Euro sign came through in the second format string) > > This is going to be a bit tedious - does anyone have a better method? Some > reports will have to both both EUR and USD currencies, so I can't set > anything before the report prints. > > From stuart at lexacorp.com.pg Thu Nov 26 15:07:58 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Nov 2009 07:07:58 +1000 Subject: [AccessD] Currency symbols In-Reply-To: <4dd71a0c0911260846t17e855ey68e0b04b82a8fa5a@mail.gmail.com> References: <4dd71a0c0911260846t17e855ey68e0b04b82a8fa5a@mail.gmail.com> Message-ID: <4B0EEE2E.17311.4F047@stuart.lexacorp.com.pg> I'd create a function CurrDisplay(amount as Currency,CustCurrency as string) as string Select case UCase$(CustCurrency) Case "USD" CurrDisplay = format(amount,"$#,###.00") Case "EUR" CurrDisplay = format(amount,"EUR#,###.00") Case Else CurrrDisplay = format(amount,"#,###.00") End Select End Function Then make each textbox =CurrDisplay(POVAlue,CustCurrency) Not only that, but it becomes trivial to maintain when they want to add Yen, Remnibi or whatever later -- Stuart On 26 Nov 2009 at 8:46, Doug Steele wrote: > I've just had a request to change a purchase order database to allow > printing of Euro currency as required. My first crack at this is to do the > following in each currency text box on the printout: > > =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"EUR#,###.00") > > (I hope the Euro sign came through in the second format string) > > This is going to be a bit tedious - does anyone have a better method? Some > reports will have to both both EUR and USD currencies, so I can't set > anything before the report prints. > > Doug Steele > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From iggy at nanaimo.ark.com Thu Nov 26 17:08:42 2009 From: iggy at nanaimo.ark.com (Tony Septav) Date: Thu, 26 Nov 2009 15:08:42 -0800 Subject: [AccessD] Printing in Colour Message-ID: <4B0F0A7A.5010908@nanaimo.ark.com> Hey All I will try again. You mean to tell me no one in this group has experienced this problem before???. From marksimms at verizon.net Thu Nov 26 17:37:33 2009 From: marksimms at verizon.net (Mark Simms) Date: Thu, 26 Nov 2009 18:37:33 -0500 Subject: [AccessD] SPAM-LOW: Re: Time warp? In-Reply-To: <4B0E1C01.9000303@colbyconsulting.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> <4B0DE648.6020207@colbyconsulting.com> <016701ca6e4b$a20109a0$0601a8c0@MSIMMSWS> <4B0E1C01.9000303@colbyconsulting.com> Message-ID: <008601ca6ef1$6db9b060$0601a8c0@MSIMMSWS> Just some venting John. Currently in an engagement at a large corp with a 94%+ outsourcing mandate. Probably my last. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, November 26, 2009 1:11 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > What the heck is that about? > > John W. Colby > www.ColbyConsulting.com > > > Mark Simms wrote: > > So what's happened in the last 7 to 13 years at MSFT ? > > I'll tell you what: ATTITUDE. > > The current techies there are a bunch of spoiled slackers. > > > > And...they're the "dash-trash" gang....and proud of it: > > http://blog.seattlepi.com/microsoft/archives/160076.asp > > > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >> Sent: Wednesday, November 25, 2009 9:22 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Time warp? > >> > >> In my opinion 2003 was the best version ever created. There were > >> issues with classes and withevents back in 97. > >> > >> > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Nov 26 19:05:50 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Nov 2009 11:05:50 +1000 Subject: [AccessD] Printing in Colour In-Reply-To: <4B0F0A7A.5010908@nanaimo.ark.com> References: <4B0F0A7A.5010908@nanaimo.ark.com> Message-ID: <4B0F25EE.31563.DEB426@stuart.lexacorp.com.pg> Nope, but I've just reproduced it :-) I have a report which is set to print to a specific printer - (PDFCreator) in colour. I created a copy of that report , went into design view the File - Page setup - Page, clicked on Printer, then on Properties and changed the Paper/Quality to "Black and White". The I saved the changes as a new report. So the first report prints in colour and the new report prints in B&W. I then set the PDFCreator as the default printer and changed the reports to print to Default Printer. The old report still prints in the colour and the new report still prints in B&W. So: If the report is configured to use a specific printer, change the printer properties in the report in Design view and save the report again. If it is set to use the Default Printer, you can't change the printer properties, so change the report to use a specific printer, set the properties to print in colour and then set it back to use the Default Printer. -- Stuart On 26 Nov 2009 at 15:08, Tony Septav wrote: > Hey All > I will try again. You mean to tell me no one in this group has > experienced this problem before???. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Nov 26 22:42:32 2009 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 26 Nov 2009 20:42:32 -0800 Subject: [AccessD] SPAM-LOW: Re: Time warp? In-Reply-To: <008601ca6ef1$6db9b060$0601a8c0@MSIMMSWS> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> <4B0DE648.6020207@colbyconsulting.com> <016701ca6e4b$a20109a0$0601a8c0@MSIMMSWS> <4B0E1C01.9000303@colbyconsulting.com> <008601ca6ef1$6db9b060$0601a8c0@MSIMMSWS> Message-ID: <7D83A666B72E4F60A763FDF2D652083E@creativesystemdesigns.com> Off to the far east? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms Sent: Thursday, November 26, 2009 3:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? Just some venting John. Currently in an engagement at a large corp with a 94%+ outsourcing mandate. Probably my last. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, November 26, 2009 1:11 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > What the heck is that about? > > John W. Colby > www.ColbyConsulting.com > > > Mark Simms wrote: > > So what's happened in the last 7 to 13 years at MSFT ? > > I'll tell you what: ATTITUDE. > > The current techies there are a bunch of spoiled slackers. > > > > And...they're the "dash-trash" gang....and proud of it: > > http://blog.seattlepi.com/microsoft/archives/160076.asp > > > > > >> -----Original Message----- > >> From: accessd-bounces at databaseadvisors.com > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > >> Sent: Wednesday, November 25, 2009 9:22 PM > >> To: Access Developers discussion and problem solving > >> Subject: Re: [AccessD] Time warp? > >> > >> In my opinion 2003 was the best version ever created. There were > >> issues with classes and withevents back in 97. > >> > >> > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Fri Nov 27 07:12:49 2009 From: iggy at nanaimo.ark.com (Tony Septav) Date: Fri, 27 Nov 2009 05:12:49 -0800 Subject: [AccessD] Printing in Colour Message-ID: <4B0FD051.6080901@nanaimo.ark.com> Thanks to David and Stuart Hey Stuart Your solution is so eloquently simple (as long as you do not forget to reset to the Default Printer). Last night in bed I was thinking "Yuck", well, if I got to, I will have to recreate all 21 of the old reports. Funny thing though only about 12 of the reports were stuck in grayscale and I haven't got a clue as to why some were and some weren't. Thanks again. From marksimms at verizon.net Fri Nov 27 19:52:15 2009 From: marksimms at verizon.net (Mark Simms) Date: Fri, 27 Nov 2009 20:52:15 -0500 Subject: [AccessD] SPAM-LOW: Re: Time warp? In-Reply-To: <7D83A666B72E4F60A763FDF2D652083E@creativesystemdesigns.com> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com> <497BF48089044FCF8FF93C3299B4D141@creativesystemdesigns.com> <4B0DE648.6020207@colbyconsulting.com> <016701ca6e4b$a20109a0$0601a8c0@MSIMMSWS> <4B0E1C01.9000303@colbyconsulting.com> <008601ca6ef1$6db9b060$0601a8c0@MSIMMSWS> <7D83A666B72E4F60A763FDF2D652083E@creativesystemdesigns.com> Message-ID: <00a001ca6fcd$69376fa0$0601a8c0@MSIMMSWS> No Jim, I don't want to live in a "mud hut"...LOL ! > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence > Sent: Thursday, November 26, 2009 11:43 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > Off to the far east? > > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > Sent: Thursday, November 26, 2009 3:38 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > Just some venting John. > Currently in an engagement at a large corp with a 94%+ > outsourcing mandate. > Probably my last. > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > Sent: Thursday, November 26, 2009 1:11 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > > > What the heck is that about? > > > > John W. Colby > > www.ColbyConsulting.com > > > > > > Mark Simms wrote: > > > So what's happened in the last 7 to 13 years at MSFT ? > > > I'll tell you what: ATTITUDE. > > > The current techies there are a bunch of spoiled slackers. > > > > > > And...they're the "dash-trash" gang....and proud of it: > > > http://blog.seattlepi.com/microsoft/archives/160076.asp > > > > > > > > >> -----Original Message----- > > >> From: accessd-bounces at databaseadvisors.com > > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of jwcolby > > >> Sent: Wednesday, November 25, 2009 9:22 PM > > >> To: Access Developers discussion and problem solving > > >> Subject: Re: [AccessD] Time warp? > > >> > > >> In my opinion 2003 was the best version ever created. > There were > > >> issues with classes and withevents back in 97. > > >> > > >> > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Fri Nov 27 20:44:22 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 28 Nov 2009 12:44:22 +1000 Subject: [AccessD] SPAM-LOW: Re: Time warp? In-Reply-To: <00a001ca6fcd$69376fa0$0601a8c0@MSIMMSWS> References: <4dd71a0c0911251230v8d0030ft2192edc8d7804e6f@mail.gmail.com>, <7D83A666B72E4F60A763FDF2D652083E@creativesystemdesigns.com>, <00a001ca6fcd$69376fa0$0601a8c0@MSIMMSWS> Message-ID: <4B108E86.17812.65F4827@stuart.lexacorp.com.pg> It's mud huts in Africa, grass huts in the far east. Mud huts can't stand up to the monsoon rains :-) -- Stuart On 27 Nov 2009 at 20:52, Mark Simms wrote: > No Jim, I don't want to live in a "mud hut"...LOL ! > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Jim Lawrence > > Sent: Thursday, November 26, 2009 11:43 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > > > Off to the far east? > > > > Jim > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Simms > > Sent: Thursday, November 26, 2009 3:38 PM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > > > Just some venting John. > > Currently in an engagement at a large corp with a 94%+ > > outsourcing mandate. > > Probably my last. > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > > > Sent: Thursday, November 26, 2009 1:11 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] SPAM-LOW: Re: Time warp? > > > > > > What the heck is that about? > > > > > > John W. Colby > > > www.ColbyConsulting.com > > > > > > > > > Mark Simms wrote: > > > > So what's happened in the last 7 to 13 years at MSFT ? > > > > I'll tell you what: ATTITUDE. > > > > The current techies there are a bunch of spoiled slackers. > > > > > > > > And...they're the "dash-trash" gang....and proud of it: > > > > http://blog.seattlepi.com/microsoft/archives/160076.asp > > > > > > > > > > > >> -----Original Message----- > > > >> From: accessd-bounces at databaseadvisors.com > > > >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of jwcolby > > > >> Sent: Wednesday, November 25, 2009 9:22 PM > > > >> To: Access Developers discussion and problem solving > > > >> Subject: Re: [AccessD] Time warp? > > > >> > > > >> In my opinion 2003 was the best version ever created. > > There were > > > >> issues with classes and withevents back in 97. > > > >> > > > >> > > > > > > > > > > > > > > > -- > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Nov 28 11:10:49 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Nov 2009 09:10:49 -0800 Subject: [AccessD] Copying Records Message-ID: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> Dear list: I have to copy a number of records from a table in an external database to the current back end. The source and object tables have the same fields. Normally I would do this by setting up a look to copy field by field, record by record, and that works. But it seems like there should be a more elegant technique. I suppose I could create links to the source tables and make an append query to the target tables. Any other ideas? MTIA rocky From dwaters at usinternet.com Sat Nov 28 11:53:31 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 28 Nov 2009 11:53:31 -0600 Subject: [AccessD] Copying Records In-Reply-To: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> References: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> Message-ID: <3E9F57EF877C4E2A8E7453B919AAD9AB@danwaters> Hi Rocky, My first thought on this would be to do a regular 'Select - Into' update query. Should be pretty straightforward. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 28, 2009 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Copying Records Dear list: I have to copy a number of records from a table in an external database to the current back end. The source and object tables have the same fields. Normally I would do this by setting up a look to copy field by field, record by record, and that works. But it seems like there should be a more elegant technique. I suppose I could create links to the source tables and make an append query to the target tables. Any other ideas? MTIA rocky From rockysmolin at bchacc.com Sat Nov 28 11:59:25 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Nov 2009 09:59:25 -0800 Subject: [AccessD] Copying Records In-Reply-To: <3E9F57EF877C4E2A8E7453B919AAD9AB@danwaters> References: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> <3E9F57EF877C4E2A8E7453B919AAD9AB@danwaters> Message-ID: I think I have to use an Append query, don't I? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, November 28, 2009 9:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Copying Records Hi Rocky, My first thought on this would be to do a regular 'Select - Into' update query. Should be pretty straightforward. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 28, 2009 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Copying Records Dear list: I have to copy a number of records from a table in an external database to the current back end. The source and object tables have the same fields. Normally I would do this by setting up a look to copy field by field, record by record, and that works. But it seems like there should be a more elegant technique. I suppose I could create links to the source tables and make an append query to the target tables. Any other ideas? MTIA rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Nov 28 12:22:10 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 28 Nov 2009 13:22:10 -0500 Subject: [AccessD] Copying Records In-Reply-To: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> References: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> Message-ID: <5DD20BA1522841C7B584CC5FF76E25C9@jislaptopdev> ...by virtue of habit I prefer using the DoCmd.TransferDatabase method with a query. William -------------------------------------------------- From: "Rocky Smolin" Sent: Saturday, November 28, 2009 12:10 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Copying Records > Dear list: > > I have to copy a number of records from a table in an external database to > the current back end. The source and object tables have the same fields. > Normally I would do this by setting up a look to copy field by field, > record > by record, and that works. But it seems like there should be a more > elegant > technique. > > I suppose I could create links to the source tables and make an append > query > to the target tables. > > Any other ideas? > > MTIA > > > > rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Sat Nov 28 12:43:12 2009 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 28 Nov 2009 12:43:12 -0600 Subject: [AccessD] Copying Records In-Reply-To: References: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005><3E9F57EF877C4E2A8E7453B919AAD9AB@danwaters> Message-ID: Sorry - Append it is! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 28, 2009 11:59 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Copying Records I think I have to use an Append query, don't I? R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Saturday, November 28, 2009 9:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Copying Records Hi Rocky, My first thought on this would be to do a regular 'Select - Into' update query. Should be pretty straightforward. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Saturday, November 28, 2009 11:11 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Copying Records Dear list: I have to copy a number of records from a table in an external database to the current back end. The source and object tables have the same fields. Normally I would do this by setting up a look to copy field by field, record by record, and that works. But it seems like there should be a more elegant technique. I suppose I could create links to the source tables and make an append query to the target tables. Any other ideas? MTIA rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Nov 28 12:46:30 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Nov 2009 10:46:30 -0800 Subject: [AccessD] Copying Records In-Reply-To: <5DD20BA1522841C7B584CC5FF76E25C9@jislaptopdev> References: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005> <5DD20BA1522841C7B584CC5FF76E25C9@jislaptopdev> Message-ID: <859A06D3DB954D439173156FDEC6338B@HAL9005> For a straight record copy that works. But in this case I'm importing header and detail records, so the imported detail records have to use the PK of the new header records in the target table as the FK. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, November 28, 2009 10:22 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Copying Records ...by virtue of habit I prefer using the DoCmd.TransferDatabase method with a query. William -------------------------------------------------- From: "Rocky Smolin" Sent: Saturday, November 28, 2009 12:10 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Copying Records > Dear list: > > I have to copy a number of records from a table in an external > database to the current back end. The source and object tables have the same fields. > Normally I would do this by setting up a look to copy field by field, > record by record, and that works. But it seems like there should be a > more elegant technique. > > I suppose I could create links to the source tables and make an append > query to the target tables. > > Any other ideas? > > MTIA > > > > rocky > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Sat Nov 28 13:17:17 2009 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 28 Nov 2009 14:17:17 -0500 Subject: [AccessD] Copying Records In-Reply-To: <859A06D3DB954D439173156FDEC6338B@HAL9005> References: <203245ECAAD44E8F8A37457CD7396BA8@HAL9005><5DD20BA1522841C7B584CC5FF76E25C9@jislaptopdev> <859A06D3DB954D439173156FDEC6338B@HAL9005> Message-ID: ...so you have to import the header record ID as an FK in the new header record, and then use it to sync the imported detail records to the imported header record PK ...a TransferDatabase still works but you have to set up the Import Spec to get the original header ID into the FK field, then another TransferDatabase to get the detail records, and then an update query to link them ...not exactly elegant but it should work and easy to automate in code. William -------------------------------------------------- From: "Rocky Smolin" Sent: Saturday, November 28, 2009 1:46 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Copying Records > For a straight record copy that works. But in this case I'm importing > header and detail records, so the imported detail records have to use the > PK > of the new header records in the target table as the FK. > > Rocky > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Saturday, November 28, 2009 10:22 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Copying Records > > ...by virtue of habit I prefer using the DoCmd.TransferDatabase method > with > a query. > > William > > -------------------------------------------------- > From: "Rocky Smolin" > Sent: Saturday, November 28, 2009 12:10 PM > To: "'Access Developers discussion and problem solving'" > > Subject: [AccessD] Copying Records > >> Dear list: >> >> I have to copy a number of records from a table in an external >> database to the current back end. The source and object tables have the > same fields. >> Normally I would do this by setting up a look to copy field by field, >> record by record, and that works. But it seems like there should be a >> more elegant technique. >> >> I suppose I could create links to the source tables and make an append >> query to the target tables. >> >> Any other ideas? >> >> MTIA >> >> >> >> rocky >> >> >> >> > > > >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Sat Nov 28 15:19:00 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 28 Nov 2009 22:19:00 +0100 Subject: [AccessD] Copying Records Message-ID: Hi Rocky .. in this case I'm importing header and detail records, so the imported detail records have to use the PK of the new header records in the target table as the FK. If so, I would use the same method as you currently use. Pure DAO or ADO. /gustav From jwcolby at colbyconsulting.com Sat Nov 28 15:58:16 2009 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 28 Nov 2009 16:58:16 -0500 Subject: [AccessD] Copying Records In-Reply-To: References: Message-ID: <4B119CF8.5050804@colbyconsulting.com> Naw, possibly dynamic SQL where you build up the SQL statement and then execute the SQL statement using the db object. This has the advantage of doing all of the records at once which can be much faster depending on the quantity. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi Rocky > > .. in this case I'm importing header and detail records, so the imported detail records have to use the PK of the new header records in the target table as the FK. > > If so, I would use the same method as you currently use. Pure DAO or ADO. > > /gustav > > From rockysmolin at bchacc.com Sat Nov 28 16:16:03 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sat, 28 Nov 2009 14:16:03 -0800 Subject: [AccessD] Copying Records In-Reply-To: References: Message-ID: <1BA6AC1FA9614A7C861F436235E23F91@HAL9005> Which is what I did and it turned out to take about 20 minutes to put the code together - which is probably faster than trying to make the queries behave. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, November 28, 2009 1:19 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Copying Records Hi Rocky .. in this case I'm importing header and detail records, so the imported detail records have to use the PK of the new header records in the target table as the FK. If so, I would use the same method as you currently use. Pure DAO or ADO. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sun Nov 29 02:26:51 2009 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 29 Nov 2009 09:26:51 +0100 Subject: [AccessD] Copying Records Message-ID: Hi Rocky JC is of course correct. If this is a huge import, it will probably pay off to run queries. However, I assumed your record count is counted in hundreds and then your method is fine. /gustav >>> rockysmolin at bchacc.com 28-11-2009 23:16 >>> Which is what I did and it turned out to take about 20 minutes to put the code together - which is probably faster than trying to make the queries behave. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, November 28, 2009 1:19 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Copying Records Hi Rocky .. in this case I'm importing header and detail records, so the imported detail records have to use the PK of the new header records in the target table as the FK. If so, I would use the same method as you currently use. Pure DAO or ADO. /gustav From rockysmolin at bchacc.com Sun Nov 29 08:21:18 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Sun, 29 Nov 2009 06:21:18 -0800 Subject: [AccessD] Copying Records In-Reply-To: References: Message-ID: Yeah - small number of records each time. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, November 29, 2009 12:27 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Copying Records Hi Rocky JC is of course correct. If this is a huge import, it will probably pay off to run queries. However, I assumed your record count is counted in hundreds and then your method is fine. /gustav >>> rockysmolin at bchacc.com 28-11-2009 23:16 >>> Which is what I did and it turned out to take about 20 minutes to put the code together - which is probably faster than trying to make the queries behave. R -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, November 28, 2009 1:19 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Copying Records Hi Rocky .. in this case I'm importing header and detail records, so the imported detail records have to use the PK of the new header records in the target table as the FK. If so, I would use the same method as you currently use. Pure DAO or ADO. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From marksimms at verizon.net Sun Nov 29 21:12:09 2009 From: marksimms at verizon.net (Mark Simms) Date: Sun, 29 Nov 2009 22:12:09 -0500 Subject: [AccessD] Access 2010 - Publish To Sharepoint In-Reply-To: References: Message-ID: <004301ca716a$e7ea3b40$0601a8c0@MSIMMSWS> Just learned this: Still no VBA conversion support. Very disappointing. It appears to be "by design". Dreams of "design and code in Access", then "publish to web"....are just that. Corporate mandates of "MS Access is banned" will remain in-force IMHO. From cfoust at infostatsystems.com Mon Nov 30 10:37:40 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 30 Nov 2009 10:37:40 -0600 Subject: [AccessD] Currency symbols In-Reply-To: References: Message-ID: An even better way is to create a function the returns the correct format (however you determine that, system settings or data) and make that part of the format string. That avoids umpteen Iif statements and works in code or in the properties grid. Just call the function each time you use a formatted currency value. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, November 26, 2009 9:03 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Currency symbols Hi Doug You could use: =IIf(CustCurrency="USD","$","?") & Format(POValue,"#,##0.00") /gustav >>> dbdoug at gmail.com 26-11-2009 17:46 >>> I've just had a request to change a purchase order database to allow printing of Euro currency as required. My first crack at this is to do the following in each currency text box on the printout: =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") (I hope the Euro sign came through in the second format string) This is going to be a bit tedious - does anyone have a better method? Some reports will have to both both EUR and USD currencies, so I can't set anything before the report prints. Doug Steele -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Mon Nov 30 10:46:37 2009 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 30 Nov 2009 08:46:37 -0800 Subject: [AccessD] Currency symbols In-Reply-To: References: Message-ID: <4dd71a0c0911300846y745c6767x98740124516d49b8@mail.gmail.com> I wonder if that would slow down a large report with lots of currency values? I will experiment. Thanks Doug On Mon, Nov 30, 2009 at 8:37 AM, Charlotte Foust wrote: > An even better way is to create a function the returns the correct format > (however you determine that, system settings or data) and make that part of > the format string. That avoids umpteen Iif statements and works in code or > in the properties grid. Just call the function each time you use a > formatted currency value. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, November 26, 2009 9:03 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Currency symbols > > Hi Doug > > You could use: > > =IIf(CustCurrency="USD","$","?") & Format(POValue,"#,##0.00") > > /gustav > > > >>> dbdoug at gmail.com 26-11-2009 17:46 >>> > I've just had a request to change a purchase order database to allow > printing of Euro currency as required. My first crack at this is to do the > following in each currency text box on the printout: > > > =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?#,###.00") > > (I hope the Euro sign came through in the second format string) > > This is going to be a bit tedious - does anyone have a better method? Some > reports will have to both both EUR and USD currencies, so I can't set > anything before the report prints. > > Doug Steele > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From cfoust at infostatsystems.com Mon Nov 30 10:50:09 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 30 Nov 2009 10:50:09 -0600 Subject: [AccessD] Currency symbols In-Reply-To: <4dd71a0c0911300846y745c6767x98740124516d49b8@mail.gmail.com> References: <4dd71a0c0911300846y745c6767x98740124516d49b8@mail.gmail.com> Message-ID: Doesn't have to if you use code. In the Open event of the report, populate a module level variable using the call to the function. Then use that variable to populate the individual fields or format the individual currency values. If you're using Format anyhow, it should be no slower. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Monday, November 30, 2009 8:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Currency symbols I wonder if that would slow down a large report with lots of currency values? I will experiment. Thanks Doug On Mon, Nov 30, 2009 at 8:37 AM, Charlotte Foust wrote: > An even better way is to create a function the returns the correct > format (however you determine that, system settings or data) and make > that part of the format string. That avoids umpteen Iif statements > and works in code or in the properties grid. Just call the function > each time you use a formatted currency value. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto: > accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, November 26, 2009 9:03 AM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Currency symbols > > Hi Doug > > You could use: > > =IIf(CustCurrency="USD","$","?") & Format(POValue,"#,##0.00") > > /gustav > > > >>> dbdoug at gmail.com 26-11-2009 17:46 >>> > I've just had a request to change a purchase order database to allow > printing of Euro currency as required. My first crack at this is to > do the following in each currency text box on the printout: > > > =iif(CustCurrency="USD",format(POValue,"$#,###.00"),format(POValue,"?# > ,###.00") > > (I hope the Euro sign came through in the second format string) > > This is going to be a bit tedious - does anyone have a better method? > Some reports will have to both both EUR and USD currencies, so I can't > set anything before the report prints. > > Doug Steele > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Mon Nov 30 11:47:19 2009 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 30 Nov 2009 09:47:19 -0800 Subject: [AccessD] Currency symbols In-Reply-To: References: <4dd71a0c0911300846y745c6767x98740124516d49b8@mail.gmail.com> Message-ID: <4dd71a0c0911300947s70794915tfaa8682676aea4f6@mail.gmail.com> Thanks, Charlotte, I'll try that Doug On Mon, Nov 30, 2009 at 8:50 AM, Charlotte Foust wrote: > Doesn't have to if you use code. In the Open event of the report, populate > a module level variable using the call to the function. Then use that > variable to populate the individual fields or format the individual currency > values. If you're using Format anyhow, it should be no slower. > > Charlotte Foust > From cfoust at infostatsystems.com Mon Nov 30 12:56:37 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 30 Nov 2009 12:56:37 -0600 Subject: [AccessD] Currency symbols In-Reply-To: <4dd71a0c0911300947s70794915tfaa8682676aea4f6@mail.gmail.com> References: <4dd71a0c0911300846y745c6767x98740124516d49b8@mail.gmail.com> <4dd71a0c0911300947s70794915tfaa8682676aea4f6@mail.gmail.com> Message-ID: One thing to remember is that you can't use a variable in a property expression, but you could create a property of the report and use it to return the variable or create a function in the report to return the variable. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Monday, November 30, 2009 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Currency symbols Thanks, Charlotte, I'll try that Doug On Mon, Nov 30, 2009 at 8:50 AM, Charlotte Foust wrote: > Doesn't have to if you use code. In the Open event of the report, > populate a module level variable using the call to the function. Then > use that variable to populate the individual fields or format the > individual currency values. If you're using Format anyhow, it should be no slower. > > Charlotte Foust > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hollisvj at pgdp.usec.com Mon Nov 30 14:26:51 2009 From: hollisvj at pgdp.usec.com (Hollis, Virginia) Date: Mon, 30 Nov 2009 14:26:51 -0600 Subject: [AccessD] Don't Run Update Query on NoData Message-ID: <703BDA18A87DFA4CB265A86F42E4178D0959CAD2@c2k3exchange.pgdp.corp.usec.com> I run an update query when a report closes that changes the Order Status (OrderItem - Yes/No) of an item to False. I use the below code to run an update query that changes OrderItem from True to False. The problem I run into is when the Order Status of an item is marked False (no items marked as needing ordered) I get an error when the report opens "You entered an expression that has no value." I also have a NoData that closes the report if there aren't any items that need ordered. I would like it to check if the OrderItem = True, if it does, then open the report. When the user closes the report, it runs the update query to change OrderItem = False. If OrderItem = False, then do not open the report, just give a NoData message. Private Sub Report_Close() If Me.OrderItem = True Then DoCmd.SetWarnings False vbresponse = MsgBox("You are about to change the Order Status", vbYesNo, "Update Data?") If vbresponse = vbYes Then DoCmd.OpenQuery "qry_UpdateOrder" End If DoCmd.SetWarnings True End If End Sub From stuart at lexacorp.com.pg Mon Nov 30 14:44:02 2009 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 01 Dec 2009 06:44:02 +1000 Subject: [AccessD] Currency symbols In-Reply-To: References: , Message-ID: <4B142E92.27006.14887E01@stuart.lexacorp.com.pg> You mean like the one I posted last Friday? :-) On 30 Nov 2009 at 10:37, Charlotte Foust wrote: > An even better way is to create a function the returns the correct > format (however you determine that, system settings or data) and make > that part of the format string. That avoids umpteen Iif statements > and works in code or in the properties grid. Just call the function > each time you use a formatted currency value. > > Charlotte Foust From cfoust at infostatsystems.com Mon Nov 30 14:56:35 2009 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 30 Nov 2009 14:56:35 -0600 Subject: [AccessD] Currency symbols In-Reply-To: <4B142E92.27006.14887E01@stuart.lexacorp.com.pg> References: , <4B142E92.27006.14887E01@stuart.lexacorp.com.pg> Message-ID: Exactly! I start at the earliest post and work forward, so I hadn't seen your's until after I posted. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, November 30, 2009 12:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Currency symbols You mean like the one I posted last Friday? :-) On 30 Nov 2009 at 10:37, Charlotte Foust wrote: > An even better way is to create a function the returns the correct > format (however you determine that, system settings or data) and make > that part of the format string. That avoids umpteen Iif statements > and works in code or in the properties grid. Just call the function > each time you use a formatted currency value. > > Charlotte Foust -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Nov 30 18:17:19 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Nov 2009 16:17:19 -0800 Subject: [AccessD] Label Printer Message-ID: <0C2F2F2E52E14D23A715C878DC922A19@HAL9005> Dear List(s): I have a client who wants a label printer - single labels off a roll. It will be printing the label from a record in my database from a bound form. So I want as simple as possible. Haven't fooled with these for years. Any recommendations - cheap, simple, easy to drive from an Access app? MTIA Rocky From miscellany at mvps.org Mon Nov 30 18:35:20 2009 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 01 Dec 2009 13:35:20 +1300 Subject: [AccessD] Access 2010 - Publish To Sharepoint In-Reply-To: <004301ca716a$e7ea3b40$0601a8c0@MSIMMSWS> References: <004301ca716a$e7ea3b40$0601a8c0@MSIMMSWS> Message-ID: <00AFD31CEF5A40A99594A0410AF1E14A@stevePC> You are correct, Mark. You can't use VBA with Access web applications. As far as I know, there has never been any suggestion that you would be able to. You need to use macros. Even then, there are macro actions that are not available in web apps. Just like there is other functionality that we take for granted in client apps, but they are not available in web apps - lots of query stuff for example. It definitely requires quite a change of mindset, if you decide you want to use this aspect of Access. Regards Steve -------------------------------------------------- From: "Mark Simms" Sent: Monday, November 30, 2009 4:12 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Access 2010 - Publish To Sharepoint > Just learned this: > Still no VBA conversion support. > Very disappointing. > It appears to be "by design". > Dreams of "design and code in Access", then "publish to web"....are just > that. > > Corporate mandates of "MS Access is banned" will remain in-force IMHO. From rockysmolin at bchacc.com Mon Nov 30 18:39:29 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Nov 2009 16:39:29 -0800 Subject: [AccessD] Runaway Form? Message-ID: Dear List: I have a simple bound form. When I open it and it is (apparently) just sitting there waiting for me to do something, the task manager shows Access using 50% of the machine cycles (I discovered this because whenever I opened the app the fan in the comp would fire up). I put break points in all the modules behind the form, and breakpoints in all the public functions to see if I could catch it doing something. The form is called from the Main Menu. So in the called form Open event, I put Docmd.Close acForm, "frmMainMenu" and the CPU use for Access went to zero. So It's apparently something about leaving the Main Menu form open with the called form. I put breakpoints in all the modules behind Main Menu. Didn't break anywhere. I tried putting an open Main Menu command in the called form's exit routine, but the Main Menu didn't open. This is pretty plain vanilla stuff and I've never seen this before. So I'm kind of stumped. Has anyone seen this behavior before or have any ideas on how to track down the problem? MTIA Rocky From dwaters at usinternet.com Mon Nov 30 18:56:06 2009 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 30 Nov 2009 18:56:06 -0600 Subject: [AccessD] Runaway Form? In-Reply-To: References: Message-ID: <1F7FDC685FEE424F85779D4092E90EE6@danwaters> For testing: Create a new blank form named: frmCPUTest Create a new item in your Main Menu to open the above form. Bit by bit, copy code and controls to the form frmCPUTest from the form frmMainMenu, until the new form has identical functionality to the original form. Test the new form for CPU usage after each change. If the new form never does spike the CPU usage, then that's your new form! Otherwise, you should be able to see what in particular about the frmMainMenu is causing the problem. Good Luck! PS - If you haven't already, import the frmMainMenu to a new Access file, then back again to 'renew' this form. You could also try a Decompile/Compile and then a Compact/Repair. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, November 30, 2009 6:39 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Runaway Form? Dear List: I have a simple bound form. When I open it and it is (apparently) just sitting there waiting for me to do something, the task manager shows Access using 50% of the machine cycles (I discovered this because whenever I opened the app the fan in the comp would fire up). I put break points in all the modules behind the form, and breakpoints in all the public functions to see if I could catch it doing something. The form is called from the Main Menu. So in the called form Open event, I put Docmd.Close acForm, "frmMainMenu" and the CPU use for Access went to zero. So It's apparently something about leaving the Main Menu form open with the called form. I put breakpoints in all the modules behind Main Menu. Didn't break anywhere. I tried putting an open Main Menu command in the called form's exit routine, but the Main Menu didn't open. This is pretty plain vanilla stuff and I've never seen this before. So I'm kind of stumped. Has anyone seen this behavior before or have any ideas on how to track down the problem? MTIA Rocky From rockysmolin at bchacc.com Mon Nov 30 19:27:54 2009 From: rockysmolin at bchacc.com (Rocky Smolin) Date: Mon, 30 Nov 2009 17:27:54 -0800 Subject: [AccessD] Runaway Form? In-Reply-To: <1F7FDC685FEE424F85779D4092E90EE6@danwaters> References: <1F7FDC685FEE424F85779D4092E90EE6@danwaters> Message-ID: Dan: "If you haven't already, import the frmMainMenu to a new Access file, then back again to 'renew' this form. " THAT DONE IT!!! Mil gracias. Rocky -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, November 30, 2009 4:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Runaway Form? For testing: Create a new blank form named: frmCPUTest Create a new item in your Main Menu to open the above form. Bit by bit, copy code and controls to the form frmCPUTest from the form frmMainMenu, until the new form has identical functionality to the original form. Test the new form for CPU usage after each change. If the new form never does spike the CPU usage, then that's your new form! Otherwise, you should be able to see what in particular about the frmMainMenu is causing the problem. Good Luck! PS - If you haven't already, import the frmMainMenu to a new Access file, then back again to 'renew' this form. You could also try a Decompile/Compile and then a Compact/Repair. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin Sent: Monday, November 30, 2009 6:39 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Runaway Form? Dear List: I have a simple bound form. When I open it and it is (apparently) just sitting there waiting for me to do something, the task manager shows Access using 50% of the machine cycles (I discovered this because whenever I opened the app the fan in the comp would fire up). I put break points in all the modules behind the form, and breakpoints in all the public functions to see if I could catch it doing something. The form is called from the Main Menu. So in the called form Open event, I put Docmd.Close acForm, "frmMainMenu" and the CPU use for Access went to zero. So It's apparently something about leaving the Main Menu form open with the called form. I put breakpoints in all the modules behind Main Menu. Didn't break anywhere. I tried putting an open Main Menu command in the called form's exit routine, but the Main Menu didn't open. This is pretty plain vanilla stuff and I've never seen this before. So I'm kind of stumped. Has anyone seen this behavior before or have any ideas on how to track down the problem? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dbdoug at gmail.com Mon Nov 30 19:56:59 2009 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 30 Nov 2009 17:56:59 -0800 Subject: [AccessD] Label Printer In-Reply-To: <0C2F2F2E52E14D23A715C878DC922A19@HAL9005> References: <0C2F2F2E52E14D23A715C878DC922A19@HAL9005> Message-ID: <4dd71a0c0911301756h6b96ed37m103bdcfee0ff3021@mail.gmail.com> I have one client who uses a Datamax E4203. It prints 4"x6" shipping labels from a standard Access report. I think I had some problems originally getting the correct driver, but once it was set up it was fine. It's not super cheap ($400+). Doug Steele On Mon, Nov 30, 2009 at 4:17 PM, Rocky Smolin wrote: > Dear List(s): > > I have a client who wants a label printer - single labels off a roll. It > will be printing the label from a record in my database from a bound form. > So I want as simple as possible. Haven't fooled with these for years. Any > recommendations - cheap, simple, easy to drive from an Access app? > From dbdoug at gmail.com Mon Nov 30 20:00:24 2009 From: dbdoug at gmail.com (Doug Steele) Date: Mon, 30 Nov 2009 18:00:24 -0800 Subject: [AccessD] Access 2010 - Publish To Sharepoint In-Reply-To: <00AFD31CEF5A40A99594A0410AF1E14A@stevePC> References: <004301ca716a$e7ea3b40$0601a8c0@MSIMMSWS> <00AFD31CEF5A40A99594A0410AF1E14A@stevePC> Message-ID: <4dd71a0c0911301800m76595b48vef087987a239a9ee@mail.gmail.com> Steve, while we're on the topic, is my understanding correct that in order to create Access web apps, you will need to buy Sharepoint Server at a price around $40,000? I had a look at the pricing structure and it was pretty confusing. Thanks, Doug Steele On Mon, Nov 30, 2009 at 4:35 PM, Steve Schapel wrote: > You are correct, Mark. You can't use VBA with Access web applications. As > far as I know, there has never been any suggestion that you would be able > to. You need to use macros. Even then, there are macro actions that are > not available in web apps. Just like there is other functionality that we > take for granted in client apps, but they are not available in web apps - > lots of query stuff for example. It definitely requires quite a change of > mindset, if you decide you want to use this aspect of Access. > > Regards > Steve > > > -------------------------------------------------- > From: "Mark Simms" > Sent: Monday, November 30, 2009 4:12 PM > To: "'Access Developers discussion and problem solving'" > > Subject: [AccessD] Access 2010 - Publish To Sharepoint > > > Just learned this: > > Still no VBA conversion support. > > Very disappointing. > > It appears to be "by design". > > Dreams of "design and code in Access", then "publish to web"....are just > > that. > > > > Corporate mandates of "MS Access is banned" will remain in-force IMHO. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From miscellany at mvps.org Mon Nov 30 20:48:57 2009 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 01 Dec 2009 15:48:57 +1300 Subject: [AccessD] Access 2010 - Publish To Sharepoint In-Reply-To: <4dd71a0c0911301800m76595b48vef087987a239a9ee@mail.gmail.com> References: <004301ca716a$e7ea3b40$0601a8c0@MSIMMSWS> <00AFD31CEF5A40A99594A0410AF1E14A@stevePC> <4dd71a0c0911301800m76595b48vef087987a239a9ee@mail.gmail.com> Message-ID: <5AE18B491A35466AAF6EEEDD0DD34A4B@stevePC> Hi Doug, An Access web app creates a site in SharePoint. If you are in a large organisation that already runs a SharePoint server, then obviously you would publish to your corporate server. Otherwise, you would most likely consider using a SharePoint hosting service of some sort. Most individuals and small organisations that have a website, do not run their own web server. They have their site hosted. Same with an Access web app - get it hosted. There are a large (and increasing) number of companies offering SharePoint hosting, most for a very moderate monthly charge. One of the web hosting companies that I use, webhost4life.com are offering an attractive deal. Other options are to publish your web app to Office Live, or SharePoint Online. There is also speculation that we may be able to publish to a SkyDrive site. I expect other options will also become available in time. Regards Steve -------------------------------------------------- From: "Doug Steele" Sent: Tuesday, December 01, 2009 3:00 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Access 2010 - Publish To Sharepoint > Steve, while we're on the topic, is my understanding correct that in order > to create Access web apps, you will need to buy Sharepoint Server at a > price > around $40,000? I had a look at the pricing structure and it was pretty > confusing. > From adtp at airtelmail.in Mon Nov 30 23:39:35 2009 From: adtp at airtelmail.in (A.D. Tejpal) Date: Tue, 1 Dec 2009 11:09:35 +0530 Subject: [AccessD] Creating Daily Records References: <0B2BF8524B73A248A2F1B81BA751ED3C191098628B@houex1.kindermorgan.com> Message-ID: <00d601ca7248$f9c835e0$3701a8c0@adtpc> Chester, In such situations, it is often convenient to display a grid of virtual new records for he month in question. Such an arrangement has the advantage that while the user can see at a glance all the available data entry slots, no redundant record gets actually inserted in the source table until some data is positively entered into it. My sample db named Form_VirtualRecordsMatrix demonstrates the approach outlined above. It is in access 2000 file format and is available at Rogers Access Library. Link - http://www.rogersaccesslibrary.com/forum/forum_topics.asp?FID=45 Brief description is placed below. Best wishes, A.D. Tejpal ------------ Form_VirtualRecordsMatrix (Sample Db) Brief Description =============================== This sample db demonstrates generation and display of a matrix of virtual new records. This arrangement has the advantage that while the user can see at a glance all the available data entry slots, no redundant record actually gets inserted in the source table until some data is actually entered in it. For example, task planner for December would show 31 virtual records, one for each day of the month. If the user makes entries only for 5th and 20th December, only these two records will actually get inserted in the table, while records pertaining to all the 31 days continue to get displayed. Three styles have been demonstrated in this sample db: (a) Task planner as per each day of the given month. (b) Task planner as per half hourly time slots on the given day. (c) Bike sales: For each batch of bikes received, a matrix having number of virtual records matching the batch size (number of bikes received in the given batch) is displayed. As and when a bike gets sold, ticking the check box inserts the record in source table with automatic filling in of sale date as well as sale stamp fields. Note: Styles (a) and (b) above use a modified version of calendar form originally developed by Allen Browne. Following features have been incorporated while implementing the adaptation: (a) Use of calendar form as a subform. (b) Mild highlighting (persistent) of today's date - This is in addition to strong highlighting of selected date. (c) Two way synchronization between calendar subform and task planner subform. Version: Access 2000 file format. ======================================= ----- Original Message ----- From: Kaup, Chester To: Access Developers discussion and problem solving Sent: Tuesday, November 17, 2009 19:09 Subject: [AccessD] Creating Daily Records I have a table that has one record on the first day of each month. I need to duplicate this record for each day of the month. I need help on how to do this. Thanks. Chester Kaup